/* Verbum Digital LLC — company website styles.
   Colors are ChristGPT's own (Theme.swift), so the company site and the app read as one brand. */

@font-face {
  font-family: "Cardo";
  src: url("cardo-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("cardo-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #05060b;
  --night-raised: #0b0d16;
  --night-panel: #10131e;
  --gold: #d9b978;
  --gold-bright: #fff3d6;
  --gold-ink: #231c0c;
  --parchment: #e9e2d0;
  --text: #d6cfbd;
  --muted: #948f82;
  --azure: #6fa8c9;
  --line: rgba(217, 185, 120, 0.2);
  --line-soft: rgba(233, 226, 208, 0.09);

  --serif: "Cardo", "Iowan Old Style", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A quiet field of stars behind every page, like the app's background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 243, 214, 0.55), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 243, 214, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255, 243, 214, 0.4), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255, 243, 214, 0.45), transparent 60%),
    radial-gradient(1px 1px at 71% 58%, rgba(255, 243, 214, 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 26%, rgba(255, 243, 214, 0.35), transparent 60%),
    radial-gradient(1px 1px at 92% 82%, rgba(255, 243, 214, 0.4), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 243, 214, 0.3), transparent 60%),
    radial-gradient(1px 1px at 52% 92%, rgba(255, 243, 214, 0.25), transparent 60%),
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(217, 185, 120, 0.08), transparent 70%);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-bright); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font: 400 clamp(2.3rem, 1.5rem + 2.8vw, 3.6rem)/1.08 var(--serif);
  color: var(--gold-bright);
  letter-spacing: -0.01em;
}

h2 {
  font: 400 clamp(1.8rem, 1.35rem + 1.5vw, 2.6rem)/1.12 var(--serif);
  color: var(--parchment);
  letter-spacing: -0.005em;
}

h3 {
  font: 600 1.125rem/1.35 var(--sans);
  color: var(--parchment);
}

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }

.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

ul, ol { margin: 0; padding-left: 1.25rem; }
li { margin: 0.35rem 0; max-width: var(--measure); }
li::marker { color: var(--gold); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-bright); color: var(--gold-ink); }
.btn-quiet { border-color: var(--line); color: var(--parchment); }
.btn-quiet:hover { border-color: var(--gold); color: var(--gold-bright); }

/* "Coming soon" is a status, not a button: it has no action yet. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 1.25rem 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(217, 185, 120, 0.06);
  color: var(--parchment);
  font: 500 0.95rem/1.2 var(--sans);
}
.soon .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.soon small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 400 1.4rem/1 var(--serif);
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--gold-bright); }
.wordmark svg { width: 0.9rem; height: auto; }

.nav-main ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-main li { margin: 0; }
.nav-main a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-main a:hover { color: var(--parchment); }
.nav-main a[aria-current="page"] { color: var(--gold-bright); background: rgba(217, 185, 120, 0.1); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--parchment);
  font-size: 0.95rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { border-color: var(--gold); }
.nav-mobile ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 5;
  min-width: 13rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--night-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.nav-mobile li { margin: 0; }
.nav-mobile a { display: block; padding: 0.7rem 0.9rem; border-radius: 12px; color: var(--parchment); text-decoration: none; }
.nav-mobile a[aria-current="page"] { color: var(--gold-bright); background: rgba(217, 185, 120, 0.1); }

@media (max-width: 820px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Sections ---------- */

main { display: block; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; }

.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-head p { margin-top: 1.25rem; }
.page-head + .section { border-top: 1px solid var(--line-soft); padding-top: clamp(2.75rem, 5vw, 4rem); }

/* ---------- Home hero: the Word, and light in the darkness ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem); }
.hero .wrap { position: relative; z-index: 1; }

.verse-latin {
  font: italic 400 clamp(3.1rem, 1.2rem + 7.6vw, 7.6rem)/0.98 var(--serif);
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  max-width: 12ch;
  text-shadow: 0 0 48px rgba(217, 185, 120, 0.28);
}
.verse-en { margin-top: 1.4rem; font: 400 1.25rem/1.4 var(--serif); color: var(--parchment); }
.verse-en cite { display: block; margin-top: 0.3rem; font: 400 0.9rem/1.4 var(--sans); font-style: normal; color: var(--muted); }

.hero h1 {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 32ch;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.22;
  color: var(--parchment);
}
.hero h1 + p { margin-top: 1.1rem; }

.light-cross {
  position: absolute;
  z-index: 0;
  right: clamp(-2rem, 6vw, 9rem);
  top: 8%;
  width: min(34vw, 340px);
  height: 84%;
  pointer-events: none;
}
.light-cross::before,
.light-cross::after {
  content: "";
  position: absolute;
  background: linear-gradient(var(--dir, 180deg), transparent, rgba(255, 243, 214, 0.95) 45%, rgba(217, 185, 120, 0.9) 55%, transparent);
  box-shadow: 0 0 28px rgba(217, 185, 120, 0.55), 0 0 80px rgba(217, 185, 120, 0.25);
  border-radius: 2px;
}
.light-cross::before { left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%); transform-origin: top; }
.light-cross::after { --dir: 90deg; top: 30%; left: 12%; width: 76%; height: 3px; transform-origin: left; }
.light-cross span {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 243, 214, 0.35), rgba(217, 185, 120, 0.12) 35%, transparent 70%);
  filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  .light-cross::before { animation: beam-down 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .light-cross::after { animation: beam-across 1.4s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .light-cross span { animation: glow 1.6s 1.2s ease-out both; }
}
@keyframes beam-down { from { transform: translateX(-50%) scaleY(0); } to { transform: translateX(-50%) scaleY(1); } }
@keyframes beam-across { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glow { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 820px) {
  .light-cross { right: -3rem; width: 60vw; opacity: 0.35; }
}

/* ---------- Split layouts (text + phone) ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split > :last-child { justify-self: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.checklist { list-style: none; padding: 0; margin-top: 1.5rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin: 0.7rem 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.app-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.app-title svg { width: 1.1rem; height: auto; }
.app-title span { font: 400 1.5rem/1 var(--serif); color: var(--gold-bright); }

.status { margin-top: 1.75rem; }

/* ---------- Phone mock-up of ChristGPT (built in HTML, no screenshots) ---------- */

.phone-figure { margin: 0; text-align: center; }
.phone-figure figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #1a1c24, #07080c 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(217, 185, 120, 0.1);
  text-align: left;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--night);
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  line-height: 1.45;
}
.phone-island { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: 46px 16px 10px; border-bottom: 1px solid var(--line-soft); }
.phone-bar .title { display: flex; align-items: center; gap: 6px; color: var(--parchment); font-weight: 600; font-size: 13px; }
.phone-bar .title svg { width: 8px; }
.phone-icon { width: 18px; height: 18px; color: var(--muted); }
.phone-chat { flex: 1; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bubble-user { align-self: flex-end; max-width: 82%; padding: 8px 11px; border-radius: 16px 16px 4px 16px; background: #1b1e2b; color: var(--parchment); }
.answer { color: var(--text); }
.answer + .answer { margin-top: 2px; }
.tag { display: inline-block; margin-bottom: 4px; font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }
.tag-scripture { color: var(--gold); }
.tag-insight { color: var(--azure); }
.verse-card { padding: 8px 10px; border-left: 2px solid var(--gold); background: rgba(217, 185, 120, 0.06); border-radius: 0 10px 10px 0; color: var(--gold-bright); font-family: var(--serif); font-size: 12.5px; line-height: 1.4; }
.verse-card small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--sans); font-size: 9.5px; }
.phone-composer { margin: 8px 12px 22px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 20px; background: var(--night-raised); color: var(--muted); }
.phone-composer .grow { flex: 1; }
.phone-composer svg { width: 15px; height: 15px; }

/* ---------- Feature lists (hairline rows, not cards) ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.feature-grid > div { padding-block: 1.5rem; border-top: 1px solid var(--line-soft); }
.feature-grid p { margin-top: 0.45rem; color: var(--text); }
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Two deeper modes, compared side by side. */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mode { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(217, 185, 120, 0.05), rgba(217, 185, 120, 0) 60%); }
.mode h3 { font: 400 1.65rem/1.15 var(--serif); color: var(--gold-bright); }
.mode p { margin-top: 0.8rem; }
.mode dl { margin: 1.25rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.95rem; }
.mode dt { color: var(--muted); }
.mode dd { margin: 0; color: var(--parchment); }
@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr; }
}

/* Commitments on the homepage. */
.commitments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); margin: 0; }
.commitments > div { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.commitments dt { font: 400 1.5rem/1.2 var(--serif); color: var(--gold-bright); }
.commitments dd { margin: 0.6rem 0 0; max-width: 40ch; }
@media (max-width: 760px) {
  .commitments { grid-template-columns: 1fr; }
}

/* ---------- Plans table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--night-raised); }
table.plans { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.98rem; }
.plans caption { text-align: left; padding: 1.25rem 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.plans th, .plans td { padding: 0.95rem 1.5rem; text-align: center; border-bottom: 1px solid var(--line-soft); }
.plans thead th { font: 400 1.35rem/1.2 var(--serif); color: var(--parchment); }
.plans thead th.featured { color: var(--gold-bright); }
.plans tbody th { text-align: left; font-weight: 400; color: var(--text); }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans td { color: var(--parchment); white-space: nowrap; }
.plans .no { color: var(--muted); }
.plans .yes { color: var(--gold); }
.note { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-soft); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font: 600 1.05rem/1.4 var(--sans);
  color: var(--parchment);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer-body { padding: 0 0 1.4rem; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 1rem; }

/* ---------- Lists of links (Support quick actions, Products) ---------- */

.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.link-list li { margin: 0; max-width: none; border-bottom: 1px solid var(--line-soft); }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; padding: 1.25rem 0.25rem; text-decoration: none; color: var(--text); }
.link-list a strong { font-weight: 600; color: var(--parchment); }
.link-list a span { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.link-list a::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--gold); border-top: 2px solid var(--gold); transform: rotate(45deg); }
.link-list a:hover strong { color: var(--gold-bright); }

.product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--night-raised);
}
.product-icon { width: clamp(4.5rem, 10vw, 6.5rem); aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1b1a16, var(--night) 75%); border: 1px solid var(--line); box-shadow: 0 0 40px rgba(217, 185, 120, 0.12); }
.product-icon svg { width: 34%; height: auto; }
.product h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); color: var(--gold-bright); }
.product .kicker { margin-top: 0.35rem; color: var(--muted); }
.product > div > p:not(.kicker) { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; font-size: 0.97rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--parchment); }
@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
}

/* ---------- Steps (a real sequence) ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; max-width: 46rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.25rem; margin: 0; max-width: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  font: 400 1.05rem/1 var(--serif);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: 0.3rem; width: 1px; background: var(--line); }
.steps strong { color: var(--parchment); font-weight: 600; }

/* ---------- Prose pages (legal, deletion, about) ---------- */

.prose h2 { font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.95rem); margin: 2.75rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose ul, .prose ol:not(.steps) { margin-top: 0.75rem; }
.prose p + ul, .prose ul + p { margin-top: 0.9rem; }
.prose b, .prose strong { color: var(--parchment); font-weight: 600; }

.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: 0.92rem; }
.toc p { color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-soft); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 1rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold-bright); }
.toc-mobile { display: none; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 16px; padding: 0.25rem 1rem; }
.toc-mobile summary { cursor: pointer; padding: 0.75rem 0; color: var(--parchment); font-weight: 600; }
.toc-mobile ol { padding-left: 1.25rem; margin: 0 0 0.75rem; font-size: 0.95rem; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
.doc-meta { color: var(--muted); font-size: 0.95rem; }

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(217, 185, 120, 0.05);
  max-width: 46rem;
}
.callout p { max-width: none; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-ways { margin: 0; }
.contact-ways > div { padding-block: 1.4rem; border-top: 1px solid var(--line-soft); }
.contact-ways > div:first-child { border-top: 0; padding-top: 0; }
.contact-ways dt { font-weight: 600; color: var(--parchment); }
.contact-ways dd { margin: 0.35rem 0 0; }
.contact-ways dd a { font-size: 1.1rem; }

form.contact { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 24px; background: var(--night-raised); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.92rem; color: var(--parchment); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--night);
  color: var(--parchment);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 185, 120, 0.18); }
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }

/* ---------- Closing band ---------- */

.closing { text-align: left; }
.closing h2 { max-width: 30ch; }
.closing p { margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: var(--night-raised); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.45fr); gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-brand p { margin-top: 0.9rem; color: var(--muted); max-width: 30ch; }
.site-footer h2 { font: 600 0.95rem/1.3 var(--sans); color: var(--parchment); margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.5rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; overflow-wrap: break-word; }
.site-footer .wordmark { color: var(--gold-bright); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.85rem; }
.footer-bottom p { max-width: none; margin: 0; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.not-found { min-height: 55vh; display: grid; align-content: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
