/* The audience pages (/churches/, /missionaries/, /supporters/) and the blog, all written by
   ../site-src/build.mjs. The tokens, type, header, buttons, form fields, FAQ and footer are the
   homepage's; index.html keeps its own copy inline because it is one self-contained file. A change
   to the brand has to be made in both. */

:root {
  --ink:            #14100C;
  --ink-2:          #1B1610;
  --ink-3:          #241E17;
  --paper:          #F5EFE3;
  --paper-2:        #EBE3D0;
  --text-on-dark:   #E9E1D0;
  --text-on-dark-2: #B8AE99;
  --text-on-light:  #14100C;
  --text-on-light-2:#5B5142;
  --gold:           #C99A3B;
  --gold-2:         #E5C77A;
  --gold-deep:      #8E6A20;
  --gold-text:      #7A5A18;   /* small text on paper: 5.5:1, and 4.9:1 on paper-2 (gold-deep is 4.3 and 3.9) */
  --rule-dark:      rgba(201,154,59,0.22);
  --rule-light:     rgba(20,16,12,0.14);
  --error:          #F2A08A;   /* coral, 8.7:1 on the form panel, so an error never reads as gold */

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --band: clamp(64px, 9vw, 116px);   /* top and bottom of a section */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Emphasis reads from colour, never slant. */
em, i { font-style: normal; }
[hidden] { display: none !important; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* A long word or web address in a post breaks instead of pushing the page wide. */
h1, h2, h3, p, li, blockquote, figcaption { overflow-wrap: break-word; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -10000px; top: 0; z-index: 60; padding: 12px 18px; background: var(--gold); color: var(--ink); }
.skip:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.paper a:focus-visible, .paper-2 a:focus-visible { outline-color: var(--gold-deep); }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40;
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em { font-variation-settings: "SOFT" 60; color: var(--gold-2); }
.paper .display em, .paper-2 .display em { color: var(--gold-deep); }
.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.paper .eyebrow, .paper-2 .eyebrow { color: var(--gold-text); }

/* ---------- Brand mark and header ---------- */
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark__logo { width: 42px; height: 42px; flex: none; border-radius: 6px; }
.mark__name { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; line-height: 1.4; white-space: nowrap; }
.mark__name small {
  display: block; margin-top: 2px;
  font-family: var(--sans); font-weight: 400; font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-on-dark-2);
}
header.site {
  position: sticky; top: 0; z-index: 40;
  padding: 16px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
}
header.site .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header.site nav { display: flex; gap: 28px; align-items: center; }
header.site nav a { font-size: 13.5px; color: var(--text-on-dark-2); transition: color 0.2s; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--gold-2); }
header.site nav .nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-2); font-size: 13px; letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
header.site nav .nav-cta:hover { background: var(--gold); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  header.site nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; padding: 12px; margin: -12px -6px -12px 0; font-size: 13px; color: var(--gold-2); }
  header.site.menu-open nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 22px;
    background: var(--ink); border-bottom: 1px solid var(--rule-dark);
  }
  header.site.menu-open nav a:not(.nav-cta) { padding: 14px 0; font-size: 15px; color: var(--text-on-dark); border-bottom: 1px solid var(--rule-dark); }
  header.site.menu-open nav a[aria-current="page"] { color: var(--gold-2); }
  header.site.menu-open nav .nav-cta { margin-top: 16px; padding: 12px 16px; text-align: center; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.4; text-align: center;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--rule-dark); color: var(--text-on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn small { font-size: 12.5px; font-weight: 400; color: var(--text-on-dark-2); }

/* ---------- Sections ---------- */
section.paper   { background: var(--paper);   color: var(--text-on-light); padding: var(--band) 0; }
section.paper-2 { background: var(--paper-2); color: var(--text-on-light); padding: var(--band) 0; }
section.dark    { background: var(--ink);     padding: var(--band) 0; }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2, .lp-join h2, .lp-film h2, .post-cta h2 { font-size: clamp(34px, 4.6vw, 58px); margin: 14px 0 0; }
.section-head p { margin: 18px 0 0; max-width: 56ch; color: var(--text-on-light-2); }

/* ---------- Audience page hero ---------- */
/* Words on the left, the photo in its own column on the right, so no face is under the text and
   the photo is never blown up past its own size. Phones: the photo first, fading into the words. */
.lp-hero { position: relative; overflow: hidden; background: var(--ink); }
.lp-hero__photo { position: relative; }
.lp-hero__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,16,12,0) 55%, var(--ink) 100%);
}
.lp-hero__body { padding: 8px var(--gutter) clamp(52px, 8vw, 72px); }
.lp-hero__title { font-size: clamp(38px, 10.4vw, 60px); margin: 16px 0 0; }
.lp-hero__title--two span, .lp-hero__title--two em { display: block; }
.lp-hero__lede { margin: 22px 0 0; max-width: 52ch; color: var(--text-on-dark); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 560px) { .lp-hero__actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .lp-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); min-height: min(78svh, 700px); }
  .lp-hero__photo { grid-column: 2; grid-row: 1; }
  .lp-hero__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .lp-hero__photo::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(20,16,12,0.3) 13%, rgba(20,16,12,0) 30%); }
  .lp-hero__body {
    grid-column: 1; grid-row: 1; align-self: center;
    /* The words start where .wrap starts on every other section. */
    padding: 72px clamp(24px, 4vw, 64px) 72px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .lp-hero__title { font-size: clamp(44px, 4.9vw, 74px); }
}

/* ---------- Three points and the questions under them ---------- */
.points { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.points li { padding-top: 22px; border-top: 1px solid rgba(142,106,32,0.45); }
.points h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2vw, 25px); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
.points p { margin: 12px 0 0; max-width: 46ch; color: var(--text-on-light-2); font-size: 16px; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

.faq { max-width: 860px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-light); }
.faq__item { border-bottom: 1px solid var(--rule-light); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px 0;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); line-height: 1.3; text-wrap: balance;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--gold-deep); transition: transform 0.2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--gold-text); }
.faq__item summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.faq__item p { margin: 0 0 22px; max-width: 64ch; color: var(--text-on-light-2); }

/* ---------- Sign-up ---------- */
.lp-join__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.lp-join__pitch p { margin: 20px 0 0; max-width: 52ch; color: var(--text-on-dark-2); }
.lp-join ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lp-join li { position: relative; padding-left: 26px; color: var(--text-on-dark); }
.lp-join li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (min-width: 960px) { .lp-join__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

#join, #film { scroll-margin-top: 76px; }   /* a jump lands below the sticky header */

.signup {
  color-scheme: dark;
  padding: clamp(22px, 4vw, 40px);
  background: var(--ink-2);
  border: 1px solid var(--rule-dark); border-radius: 4px;
}
.signup__fields { display: grid; gap: 20px; }
.signup label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text-on-dark); }
.signup input:not([type="checkbox"]) {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans);   /* 16px: iOS zooms the page into any smaller field */
  color: var(--text-on-dark); background: var(--ink);
  border: 1px solid var(--gold-deep); border-radius: 4px;
  -webkit-appearance: none; appearance: none; transition: border-color 0.2s;
}
.signup input:hover { border-color: var(--gold); }
.signup input:focus { outline: 2px solid var(--gold-2); outline-offset: 2px; border-color: var(--gold-2); }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.signup .signup__consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0; font-weight: 400; line-height: 1.5; cursor: pointer; }
.signup__consent input {
  width: 24px; height: 24px; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--ink) center / 16px no-repeat; border: 1px solid var(--gold); border-radius: 4px;
}
.signup__consent input:checked {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314100C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.signup__error { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--error); }
.signup__status {
  margin: 22px 0 0; padding: 12px 16px;
  border: 1px solid rgba(242,160,138,0.45); border-radius: 4px; background: rgba(242,160,138,0.08);
  font-size: 14.5px; line-height: 1.5; color: var(--text-on-dark); overflow-wrap: anywhere;
}
.signup__actions { margin-top: 26px; display: grid; gap: 14px; }
.signup__actions .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.signup__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-on-dark-2); }
.signup__note a, .signup__status a, .signup__done a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
/* The bot trap: off screen and aria-hidden, but never display:none, which bots know to skip. */
.signup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__done:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 6px; }
.signup__done h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.01em; color: var(--gold-2); }
.signup__done p { margin: 12px 0 0; color: var(--text-on-dark-2); overflow-wrap: anywhere; }

/* ---------- Shawn's film ---------- */
.lp-film__grid { display: grid; gap: 40px; align-items: center; }
.lp-film p { margin: 18px 0 0; max-width: 52ch; color: var(--text-on-light-2); }
.film {
  position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 340px; margin: 0;
  border-radius: 12px; overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(20,16,12,0.45);
}
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.film__play {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
  padding: 24px 22px; color: var(--paper); text-align: left;
  background: linear-gradient(180deg, rgba(20,16,12,0) 58%, rgba(20,16,12,0.78) 100%);
}
.film__play:focus-visible { outline: 3px solid var(--gold-2); outline-offset: -3px; }
.film__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,0.35); transition: transform 0.2s, background 0.2s; }
.film__icon svg { width: 24px; height: 24px; margin-left: 3px; }
.film__play:hover .film__icon { transform: scale(1.06); background: var(--gold-2); }
.film__label { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.film__label small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; color: rgba(245,239,227,0.82); }
@media (min-width: 900px) { .lp-film__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; } .film { justify-self: end; } }

/* ---------- Blog ---------- */
.blog-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px); background: var(--ink); }
.blog-head h1 { font-size: clamp(40px, 6vw, 76px); margin: 14px 0 0; }
.blog-head p { margin: 18px 0 0; max-width: 56ch; color: var(--text-on-dark-2); }
.cards { display: grid; gap: 34px; margin: 0; padding: 0; list-style: none; }
.cards > li { min-width: 0; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; height: 100%; }
.card__photo { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.paper-2 .card__photo { background: var(--paper); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__photo img { transform: scale(1.02); }
.card__date { display: block; margin-top: 16px; font-size: 13px; color: var(--text-on-light-2); }
.card h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2vw, 25px); line-height: 1.22; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
.card:hover h3 { color: var(--gold-text); }
.card p { margin: 10px 0 0; font-size: 16px; color: var(--text-on-light-2); }

.post-head { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); background: var(--ink); }
.post-head .narrow, .post-body .narrow { max-width: 760px; margin: 0 auto; }
.post-head h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; margin: 16px 0 0; }
.post-head a.back { font-size: 13.5px; color: var(--text-on-dark-2); }
.post-head a.back:hover { color: var(--gold-2); }
.post-meta { margin: 20px 0 0; font-size: 14px; color: var(--text-on-dark-2); }
.post-meta a { text-decoration: underline; text-underline-offset: 3px; }
.post-meta a:hover { color: var(--gold-2); }
.post-photo { margin: 0 0 clamp(32px, 4vw, 48px); }
.post-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 4px; }
.post-body { font-size: 18px; line-height: 1.65; }
.post-body .narrow > :first-child { margin-top: 0; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.2em; max-width: 68ch; }
.post-body h2 { margin: 1.8em 0 0.6em; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.post-body h3 { margin: 1.6em 0 0.5em; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; }
.post-body a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body li { margin-bottom: 0.45em; }
/* Set like the homepage's pull quote: between two hairlines. */
.post-body blockquote {
  margin: 1.8em 0; padding: 24px 0;
  border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light);
  font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.35;
  letter-spacing: -0.01em; font-variation-settings: "SOFT" 80;
}
.post-body blockquote p { margin: 0; max-width: 32ch; }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { width: 100%; max-height: 820px; object-fit: contain; border-radius: 4px; }   /* a tall photo stays on one screen */
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--text-on-light-2); }
/* A question and its answer: the post's FAQ, set off by a hairline above it, as the pull quote is. */
.post-body .answer { margin: 1.8em 0; padding-top: 22px; border-top: 1px solid var(--rule-light); }
.post-body .answer h2 { margin: 0 0 0.4em; font-size: clamp(22px, 2.4vw, 27px); }
.post-body .answer p { margin: 0; }
.post-body [id] { scroll-margin-top: 96px; }   /* a link from the contents lands below the header */
/* The post's contents, from its headings. */
.post-body .contents { margin: 0 0 2em; padding: 20px 24px; background: var(--paper-2); border-radius: 4px; font-size: 16px; line-height: 1.5; }
.post-body .contents__title { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.post-body .contents ol { margin: 0; padding-left: 1.3em; }
.post-body .contents ol ol { margin: 0.35em 0 0; }
.post-body .contents li { margin-bottom: 0.35em; }
.post-body .contents a { text-decoration: none; }
.post-body .contents a:hover { text-decoration: underline; }
/* A wide table scrolls inside its own box on a phone, never the page. */
.post-body .table-wrap { margin: 1.8em 0; overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.post-body th, .post-body td { min-width: 8em; padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-light); }
.post-body thead th { font-weight: 600; border-bottom-color: var(--gold); }
.post-body tbody th { font-weight: 600; }
.post-body th p, .post-body td p { margin: 0 0 0.5em; }
/* A PDF to download. */
.post-body .download { margin: 1.8em 0; padding: 22px 24px; border: 1px solid var(--rule-light); border-radius: 4px; }
.post-body .download__title { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.post-body .download p { margin: 0 0 16px; }
.post-body .download a.btn { color: var(--ink); text-decoration: none; }
.download__size { font-weight: 400; }
/* A post's first tag, on its card. */
.card__tag { margin-right: 10px; font-weight: 500; color: var(--gold-text); text-transform: capitalize; }
/* An author's page (BlogPages.author). */
.author-head .author-photo { display: block; width: 96px; height: 96px; margin: 28px 0 0; border-radius: 50%; object-fit: cover; }
.author-role { margin: 14px 0 0; font-size: 15px; color: var(--gold-2); }
.author-tagline { margin: 10px 0 0; max-width: 54ch; font-size: 18px; color: var(--text-on-dark-2); }
.post-body .author-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.post-body .author-links li { margin: 0; }
.post-cta p { margin: 16px 0 26px; max-width: 54ch; color: var(--text-on-dark-2); }
/* Only on the preview of a draft (BlogPages.preview). */
.preview-bar { margin: 0; padding: 10px var(--gutter); background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 500; text-align: center; }

/* ---------- Footer ---------- */
footer.site { background: #0D0A07; color: var(--text-on-dark-2); padding: 60px 0 40px; border-top: 1px solid var(--rule-dark); }
footer.site .row { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px) { footer.site .row { grid-template-columns: 1fr 1fr; } footer.site .row > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { footer.site .row { grid-template-columns: 1.4fr 1fr 1fr max-content; } footer.site .row > :first-child { grid-column: auto; } }
footer.site h2 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site li a { font-size: 13.5px; transition: color 0.2s; overflow-wrap: break-word; }
footer.site li a:hover, footer.site .legal a:hover { color: var(--gold-2); }
footer.site .desc { font-size: 13px; line-height: 1.6; max-width: 34ch; margin: 18px 0 0; }
footer.site .base { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
footer.site .legal { display: flex; flex-wrap: wrap; gap: 18px; }
/* Touch layouts: every footer link is a 44px target. */
@media (max-width: 999px) {
  footer.site ul { gap: 0; }
  footer.site li a, footer.site .legal a { display: inline-flex; align-items: center; min-height: 44px; }
  footer.site h2 { margin-bottom: 4px; }
  footer.site .base, footer.site .legal { align-items: center; row-gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
