/* Mason Gates for Scottsdale: site styles.
   Brand: social/assets/README.md. Navy #303e7d, tan #e8c494, white.
   Headlines Bebas Neue, body Montserrat, disclaimer Oswald 300.
   Mobile-first: base rules are the phone layout, @media blocks widen it. */

:root {
  --navy: #303e7d;
  --navy-dark: #232e5f;
  --tan: #e8c494;
  --white: #ffffff;
  --ink: #1f2747;
  --muted: #5a6180;
  --paper: #f7f4ee;
  --line: #dcd6ca;
  --wrap: 1120px;
  --gutter: 20px;
  --head: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
/* No hyperlink look (Mason's rule): no blue, no underline at rest. Brand navy, bold; tan underline on hover only. */
a { color: var(--navy); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn:hover, .nav a:hover, .brand:hover, .plank:hover { text-decoration: none; }
.navy a:not(.btn), .page-head a:not(.btn) { color: var(--tan); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  color: var(--navy);
}
h1 { font-size: clamp(3rem, 12vw, 6rem); }
h2 { font-size: clamp(2.2rem, 7vw, 3.25rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
.em { color: var(--tan); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--tan); color: var(--navy); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* DRAFT markers: copy Mason hasn't approved. Before launch, delete every .draft element
   (or set .draft { display: none } to hide them all at once). */
.draft {
  display: inline-block;
  font: 700 0.7rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a1f1f;
  background: #ffe9a8;
  border: 1px dashed #b07a00;
  padding: 4px 7px;
  border-radius: 3px;
  vertical-align: middle;
}
.draft-note { display: table; margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand { display: block; flex: none; line-height: 0; }
/* Bordered logo (2:1, navy matches the header). Height = width / 2. */
.brand img { width: 144px; height: auto; }
.nav { display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--tan); }
.nav .btn-donate { color: var(--navy); }
.nav .btn-donate[aria-current="page"] { color: var(--navy); background: var(--white); border-color: var(--white); }

/* Mobile menu: a <details> element, so no JavaScript is needed. */
.menu > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 6px 12px 4px;
  line-height: 1;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { color: var(--tan); border-color: var(--tan); }
.menu ul {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 8px var(--gutter) 20px;
}
.menu li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.menu li:last-child a { border-bottom: 0; margin-top: 12px; text-align: center; }
.nav-desk { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 14px 24px 12px;
  text-decoration: none;
  border: 2px solid var(--tan);
  background: var(--tan);
  color: var(--navy);
  text-align: center;
}
.btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--navy); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.kicker {
  font-family: var(--head);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--tan);
  margin: 0 0 0.5em;
  line-height: 1;
}
.paper .kicker, .plain .kicker { color: #a77c3d; }
.lede { font-size: 1.1rem; max-width: 40em; }
.prose { max-width: 44em; }
/* .wrap.prose: keep the column left-aligned with the page header instead of centering it */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44em; }
.prose h2 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Inset frame: the thin white border from the yard sign. */
.inset { position: relative; }
.inset::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.85);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 36px; }
.hero h1 { color: var(--white); margin-bottom: 0.2em; }
.hero p { font-size: 1.08rem; max-width: 34em; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }

.page-head { background: var(--navy); color: var(--white); }
.page-head .wrap { padding-top: 28px; padding-bottom: 28px; }
.page-head h1 { color: var(--white); font-size: clamp(2.8rem, 10vw, 4.75rem); margin: 0; }
.page-head p { margin: 0.6em 0 0; max-width: 40em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tan);
  padding: 22px 20px 18px;
}
.card p:last-child { margin-bottom: 0; }


/* Platform list on Home: compact rows, tan rule, whole row clickable. */
.planks { display: grid; border-top: 1px solid var(--line); }
.plank { display: block; padding: 16px 0 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.plank h3 { margin: 0 0 4px; font-size: 1.6rem; }
.plank p { margin: 0; }
.plank:hover h3 { color: var(--navy-dark); text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.issue { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.issue:first-of-type { border-top: 0; padding-top: 0; }
.issue h2 { margin-bottom: 0.3em; }
.issue .stance { font-weight: 700; font-size: 1.08rem; }

.split { display: grid; gap: 28px; align-items: center; }
.split img { width: 100%; }

.quote {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
  color: var(--white);
}
.quote cite { display: block; margin-top: 14px; font: 500 0.95rem/1.4 var(--body); color: var(--tan); }

.news-list, .prose .news-list { list-style: none; margin: 0; padding: 0; }
.prose > h2:first-child { margin-top: 0; }
.news-list + h2 { margin-top: 1.4em; }
.news-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list .meta { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; }
.news-list h3 { font-size: 1.9rem; margin: 0 0 6px; }
.news-list h3 a { font-weight: 400; }
.news-list p { margin: 0; }

.sources { font-size: 0.85rem; color: var(--muted); }
.sources ol { padding-left: 1.3em; }
.sources li { margin-bottom: 0.35em; }
sup a { text-decoration: none; font-weight: 700; font-size: 0.75em; padding: 0 1px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 640px; }
.form .row { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  font: 500 1rem/1.4 var(--body);
  color: var(--ink);
  padding: 12px 12px;
  border: 1px solid #b9b3a6;
  border-radius: 0;
  background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; padding: 0; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.fine { font-size: 0.8rem; color: var(--muted); }
.navy .fine { color: rgba(255,255,255,0.75); }
.form .btn { justify-self: start; }

.notice {
  border-left: 4px solid var(--tan);
  background: var(--paper);
  padding: 16px 18px;
  margin: 0 0 1.5rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0 32px; text-align: center; }
.site-footer .logo { width: 180px; margin: 0 auto 20px; }
.foot-nav, .social { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot-nav a, .social a { color: var(--white); }
.foot-nav a { font-family: var(--head); font-size: 1.25rem; letter-spacing: 0.05em; }
.social a { font-size: 0.9rem; }
.foot-nav a:hover, .social a:hover { color: var(--tan); }
.address { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0 0 22px; }
.disclaimer {
  display: inline-block;
  border: 1px solid var(--white);
  padding: 7px 12px 6px;
  font-family: "Oswald", var(--head);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 100%;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .brand img { width: 184px; }
  .site-header .wrap { min-height: 108px; }
  .menu { display: none; }
  .nav-desk { display: flex; align-items: center; gap: 26px; }
  .nav-desk .btn-donate { padding: 10px 18px 8px; font-size: 1.3rem; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .planks { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.narrow-img { grid-template-columns: 2fr 3fr; align-items: start; }
  .section { padding: 56px 0; }
  .page-head .wrap { padding-top: 40px; padding-bottom: 40px; }
}
