/* ══════════════════════════════════════════════════════════════════
   ROBIN MOUNCE — shared stylesheet
   Palette: The River at Dawn (locked 2026-09-10)
   Type: Newsreader (headings, scripture) + Karla (body)
   Edit colors here and every page updates.
   ══════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-var.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 200 800; font-display: swap; src: url("/fonts/karla-var.woff2") format("woff2"); }

:root {
  /* The three brand colors */
  --nightfall: #12242C;   /* primary dark surface, ink on light grounds */
  --first-light: #F4EDE1; /* page ground, words on dark grounds */
  --gold: #E8A94A;        /* the light: buttons and accents on dark grounds only */

  /* Supporting tones, derived from the three */
  --paper: var(--first-light);
  --paper-deep: #E9DFCC;  /* tonal neighbor for alternating sections */
  --card: #FBF6EC;
  --ink: var(--nightfall);
  --ink-2: #1B323C;       /* slightly lifted dark, for cards on nightfall */
  --muted: #4E5B5F;       /* secondary text on light (6.0:1) */
  --muted-dark: #B9C4BE;  /* secondary text on nightfall (8.9:1) */
  --line: #DCCFB8;
  --line-dark: #2B3E46;
  --gold-deep: #8A5A12;   /* gold that passes as text on light grounds (5.1:1) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
em, i { font-style: italic; }
::selection { background: var(--gold); color: var(--nightfall); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--nightfall); color: var(--first-light); padding: 10px 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: "Karla", sans-serif; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 13.5px;
  color: var(--gold-deep);
}
.on-ink .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ── Header ─────────────────────────────────────────────────────── */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
/* LOGO: Mark C · The Robin, plus her name set in Newsreader.
   The mark files live in /brand/. Nothing else on the page depends on them. */
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: 26px; letter-spacing: -0.005em; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.wordmark img { width: 40px; height: 40px; }
.wordmark:hover { color: var(--ink); }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: 16.5px; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--gold); color: var(--ink); }
nav.main a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--gold); }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font: 700 14px "Karla", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  padding: 10px 0 10px 12px;
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; font-size: 18px; border-bottom: 0; width: 100%; }
  nav.main a.btn { margin-top: 10px; width: auto; }
  .wordmark { font-size: 23px; }
  .wordmark img { width: 34px; height: 34px; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--nightfall); color: var(--first-light); line-height: 1.2;
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 16.5px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink-2); color: var(--first-light); }
/* keep button styling when a .btn sits inside the nav (beats `nav.main a`) */
nav.main a.btn { color: var(--first-light); font-weight: 700; padding: 11px 22px; border-bottom: none; }
nav.main a.btn:hover { border-bottom: none; }
.btn.gold { background: var(--gold); color: var(--nightfall); }
.btn.gold:hover { background: #F0BB66; color: var(--nightfall); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--first-light); }
.btn.ghost.light { color: var(--first-light); box-shadow: inset 0 0 0 2px rgba(244,237,225,0.75); }
.btn.ghost.light:hover { background: var(--first-light); color: var(--nightfall); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 42px); margin: 10px 0 16px; }
.section-head p { color: var(--muted); }
.on-deep { background: var(--paper-deep); }
.on-ink { background: var(--nightfall); color: var(--first-light); }
.on-ink p { color: var(--muted-dark); }
.on-ink a { color: var(--first-light); }
.on-ink a:hover { color: var(--gold); }
.prose p + p { margin-top: 1.1em; }
.lede { font-size: 21px; line-height: 1.55; }

/* ── Scripture ──────────────────────────────────────────────────── */
blockquote.scripture { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400; }
blockquote.scripture p { font-size: inherit; color: inherit; }
blockquote.scripture cite {
  display: block; margin-top: 14px; font-family: "Karla", sans-serif; font-style: normal;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.on-ink blockquote.scripture cite, .photo-band blockquote.scripture cite { color: var(--gold); }

/* ── Cards & grids ──────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Photo helpers ──────────────────────────────────────────────── */
.ph { width: 100%; height: 100%; object-fit: cover; }
figure.photo { border-radius: 14px; overflow: hidden; background: var(--paper-deep); }
figure.captioned figcaption { font-size: 14.5px; color: var(--muted); padding-top: 10px; }

/* Full-bleed photo band with a centered quote */
.photo-band { position: relative; padding: 140px 0; color: var(--first-light); background: var(--nightfall); overflow: hidden; }
.photo-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,36,44,0.88), rgba(18,36,44,0.55) 60%, rgba(18,36,44,0.35)); }
.photo-band .inner { position: relative; text-align: center; }
.photo-band blockquote { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; max-width: 820px; margin: 0 auto; }

/* ── Placeholders: content Robin still needs to supply ──────────── */
/* Anything with class="todo" is visible on the page until replaced.
   Search the site for `todo` to find every remaining gap. */
.todo {
  border: 2px dashed var(--gold-deep); border-radius: 14px; padding: 24px 26px;
  background: repeating-linear-gradient(-45deg, rgba(232,169,74,0.08) 0 12px, transparent 12px 24px);
  color: var(--muted);
}
.todo .todo-label {
  display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--nightfall); background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.todo h3 { color: var(--ink); font-size: 23px; margin-bottom: 6px; }
.todo p { font-size: 16.5px; }
.todo.photo-slot { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 260px; }

/* ── Conversion band (shared) ───────────────────────────────────── */
.connect-band { background: var(--nightfall); color: var(--first-light); padding: 88px 0; }
.connect-band .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.connect-band img.mark { width: 72px; height: 72px; }
.connect-band h2 { font-size: clamp(30px, 3.6vw, 40px); }
.connect-band p { color: var(--muted-dark); margin-top: 8px; max-width: 560px; }
@media (max-width: 900px) {
  .connect-band .inner { grid-template-columns: 1fr; text-align: left; gap: 24px; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site { background: var(--nightfall); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; } }
footer .wordmark { color: var(--first-light); font-size: 24px; }
footer .wordmark:hover { color: var(--first-light); }
footer .tagline { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 20px; color: var(--first-light); margin: 16px 0 6px; max-width: 360px; line-height: 1.4; }
footer .f-label { font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12.5px; color: var(--gold); margin-bottom: 12px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: var(--first-light); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .legal { color: var(--muted-dark); font-size: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* ── Page hero (interior pages) ─────────────────────────────────── */
.page-hero { padding: 88px 0 64px; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 62px); margin: 14px 0 20px; max-width: 900px; }
.page-hero .lede { max-width: 640px; color: var(--muted); }

/* ── Blog ───────────────────────────────────────────────────────── */
.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover h3 { color: var(--gold-deep); }
.post-list time { font-size: 14.5px; color: var(--muted); padding-top: 6px; }
.post-list h3 { font-size: 25px; margin-bottom: 6px; transition: color 0.2s ease; }
.post-list p { color: var(--muted); font-size: 16.5px; }
@media (max-width: 600px) { .post-list a { grid-template-columns: 1fr; gap: 4px; } }
.year-head { font-family: "Newsreader", Georgia, serif; font-size: 22px; color: var(--gold-deep); margin: 48px 0 12px; }
.year-head:first-child { margin-top: 0; }

article.post header { padding: 80px 0 36px; }
article.post h1 { font-size: clamp(38px, 5vw, 56px); margin: 16px 0 14px; }
article.post .meta { color: var(--muted); font-size: 15.5px; }
.post-body { font-size: 19px; line-height: 1.75; padding-bottom: 72px; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin-bottom: 1.15em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-body h2 { font-size: 30px; margin: 1.6em 0 0.6em; }
.post-body h3 { font-size: 24px; margin: 1.4em 0 0.5em; }
.post-body blockquote { border-left: 3px solid var(--gold); padding-left: 20px; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 21px; }
.post-body > p:first-child::first-letter {
  font-family: "Newsreader", Georgia, serif; float: left; font-size: 74px; line-height: 0.82;
  padding: 8px 10px 0 0; color: var(--gold-deep);
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 32px 0 88px; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav span { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.post-nav strong { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 21px; line-height: 1.3; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ── Reveal animation ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
