/* =====================================================================
   kellydernauthor.com — Figma layout integration
   Hero: full-bleed twilight-desert image + left sidebar nav + giant
   wordmark, with a floating white rounded card holding bio + content.
   ===================================================================== */

/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16
 *
 * The fonts listed below are subject to the End User License Agreement
 * entered into by the website owner. All other parties are explicitly
 * restricted from using these Licensed Webfonts.
 *
 * Webfont: Windsor Regular (D)     by URW Type Foundry
 * Webfont: Windsor Bold (D)        by URW Type Foundry
 * Webfont: Windsor Ultra Heavy (D) by URW Type Foundry
 * https://www.myfonts.com/collections/urw-foundry
 *
 * © MyFonts Inc.
 */
@font-face {
  font-family: "Windsor D";
  src: local("Windsor D"), local("Windsor D Regular"), local("WindsorD-Reg"),
       url("assets/fonts/WindsorD-Reg.woff2") format("woff2"),
       url("assets/fonts/WindsorD-Reg.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Windsor D";
  src: local("Windsor D Bold"), local("WindsorD-Bol"),
       url("assets/fonts/WindsorD-Bol.woff2") format("woff2"),
       url("assets/fonts/WindsorD-Bol.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Windsor D";
  src: local("Windsor D Ultra Heavy"), local("WindsorD-UltHea"),
       url("assets/fonts/WindsorD-UltHea.woff2") format("woff2"),
       url("assets/fonts/WindsorD-UltHea.woff")  format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #090909;                /* card body text (from Figma) */
  --ink-soft: #4a4a4a;
  --on-image: #eee;              /* off-white over the hero image */
  --on-image-soft: rgba(238, 238, 238, 0.85);
  --card-bg: #f5f5f5;            /* from Figma */
  --card-radius: 40px;           /* from Figma */
  --accent: #8a4a2a;             /* ember (used sparingly) */
  --rule: rgba(9, 9, 9, 0.12);

  --pink: #fdaebc;               /* hero accent / wordmark (from Figma) */
  --pink-band: #ffe0e6;          /* lighter band bg for body-text contrast */
  --pink-deep: #c46578;          /* darker pink for input borders */
  --indigo-veil: #282230;        /* 20% top overlay over hero image */

  --font-display: "Windsor D", "DM Serif Display", "Cormorant Garamond",
    "Bodoni Moda", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-prose: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;

  --content-max: 936px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: #0d0a14;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
a:hover,
a:focus-visible {
  color: var(--pink);
  border-bottom-color: var(--pink);
  opacity: 1;
}

/* ── accessibility helpers ─────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  z-index: 100;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ======================================================================
   HERO SHELL
   ====================================================================== */

.hero-shell {
  position: relative;
  min-height: clamp(640px, 95vh, 940px);  /* hero portion only, ≈Figma 931px */
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem);

  background-image:
    /* 20% indigo legibility veil per Figma (74:109) */
    linear-gradient(
      to bottom,
      rgba(40, 34, 48, 0.32) 0%,
      rgba(40, 34, 48, 0.18) 60%,
      rgba(40, 34, 48, 0.05) 100%
    ),
    url("assets/hero-bg.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #0d0a14;

  color: var(--on-image);
  isolation: isolate;
}

/* same image, framed to its lower portion (beach / city / figures) */
.home-bottom {
  width: 100%;
  height: clamp(440px, 60vw, 900px);
  background-image: url("assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  background-color: #0d0a14;
}

/* ── primary nav (desktop) — vertically centered left sidebar ─ */
.sidenav {
  position: fixed;          /* stays put while you scroll the hero */
  top: 50%;
  left: clamp(1.5rem, 3vw, 3rem);
  transform: translateY(-50%);
  z-index: 5;
}
.sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidenav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--on-image);
  transition: color 220ms ease, border-color 220ms ease;
}
.sidenav a.is-active { font-weight: 700; }

/* over a light section (e.g. the pink band) — text becomes dark warm grey */
.sidenav.is-on-light a {
  color: #2b2230;
}
.sidenav.is-on-light a:hover,
.sidenav.is-on-light a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

/* ── mobile hamburger (hidden on desktop) ──────────────── */
.menu-toggle {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 6;

  padding: 0.5rem 0.65rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--on-image);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  grid-template-columns: 22px auto;
  grid-template-rows: 1.5px 1.5px 1.5px;
  column-gap: 0.6rem;
  row-gap: 4px;
  align-items: center;
}
.menu-toggle__bar {
  grid-column: 1;
  width: 22px;
  height: 1.5px;
  background: var(--on-image);
  display: block;
}
.menu-toggle__label {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--on-image-soft);
}

/* ── hero (wordmark + title block) ─────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--on-image);
  margin: 0;
}

/* oversize wordmark on the pink-accent home variant (122px in Figma) */
.wordmark--xl {
  font-size: clamp(4.5rem, 14vw, 11rem);
  letter-spacing: 0.04em;
}

/* two-phase reveal, applied per word group:
   1) outline "draws" left → right via a clip-path wipe (trim path)
   2) fill fades in once the outline is fully visible              */
.wordmark--xl {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .wordmark--xl {
    white-space: normal;
    font-size: clamp(4rem, 18vw, 6.5rem);
  }
  .wordmark--xl .wordmark__sep {
    display: block;
    height: 0;
    width: 0;
  }
}
.wordmark__group {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.wordmark__sep {
  display: inline-block;
  width: 0.28em;       /* reserves the L.'s neighboring whitespace */
}
.wordmark__outline,
.wordmark__fill {
  display: block;
}
/* phase 1 — outline only, wipes in from the left */
.wordmark__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
  /* negative top/bottom insets so the clip never touches ascenders/descenders
     when line-height < 1 (avoids clipping the tops of letters like L)        */
  clip-path: inset(-0.25em 100% -0.25em 0);
  animation: trim-path 1100ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
/* phase 2 — solid fill, fades in over the completed outline */
.wordmark__fill {
  position: absolute;
  inset: 0;
  color: var(--pink);
  opacity: 0;
  animation: fill-in 700ms ease-out 1000ms forwards;
}

/* Wordmark reveal: outline trims in, then fill fades. */
.wordmark__group--late .wordmark__outline {
  animation: trim-path 600ms cubic-bezier(0.45, 0, 0.2, 1) 1900ms forwards;
}
.wordmark__group--late .wordmark__fill {
  animation: fill-in 500ms ease-out 2350ms forwards;
}

@keyframes trim-path {
  to { clip-path: inset(-0.25em 0% -0.25em 0); }
}
@keyframes fill-in {
  to { opacity: 1; }
}

/* pink hero accent: only on the home page */
.page-home .wordmark,
.page-home .eyebrow,
.page-home .book-title,
.page-home .book-pitch,
.page-home .book-blurb {
  color: #fff;
}

.page-home .eyebrow {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 24px rgba(0, 0, 0, 0.12);
  color: #fff;
  margin-bottom: 1.75rem;
}

.hero__title {
  margin-top: clamp(4rem, 9vw, 8rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-image);
  margin: 0 0 0.5rem;
}

.book-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--on-image);
  margin: 0;
}

.book-pitch {
  max-width: 38ch;
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 1.45vw, 1.375rem); /* 22px on desktop, Figma 74:94 */
  line-height: 1.35;
  color: var(--on-image);
  letter-spacing: -0.01em;
}

.book-blurb {
  max-width: 46ch;
  margin: 1rem auto 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* ======================================================================
   FLOATING CARD
   ====================================================================== */

.card-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(-6rem, -8vw, -3rem); /* pulls the card up over the hero */
  padding: 0 var(--gutter) clamp(4rem, 8vw, 8rem);
}

.card {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.card__section + .card__section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.card__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.card__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.card__body {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* updates list ──────────────────────────────────────────── */
.updates {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.update {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
}
.update__date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.update__body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

/* works list ────────────────────────────────────────────── */
.works {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.work:last-child { border-bottom: none; }
.work__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.work__meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* newsletter ────────────────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 30rem;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.newsletter-form button {
  padding: 0.9rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.newsletter-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ======================================================================
   FOOTER
   ====================================================================== */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  background: #0d0a14;
  color: rgba(238, 238, 238, 0.7);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer .copy { margin: 0.5rem 0; }
.site-footer .links { margin: 0.5rem 0 0; }
.site-footer a { color: inherit; }

/* ======================================================================
   MOBILE OVERLAY MENU
   ====================================================================== */

html.menu-open,
html.menu-open body { overflow: hidden; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: #1f1a13;
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(138, 74, 42, 0.18) 0%,
      transparent 65%
    ),
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'>\
<filter id='n'>\
<feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/>\
<feColorMatrix values='0 0 0 0 0.95   0 0 0 0 0.90   0 0 0 0 0.78   0 0 0 0.08 0'/>\
</filter>\
<rect width='100%' height='100%' filter='url(%23n)'/>\
</svg>");
  background-size: auto, 260px 260px;
  color: #f1e7d3;

  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.site-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #f1e7d3;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.85;
}
.site-menu__close:hover { opacity: 1; color: #e6b48a; }

.site-menu__inner {
  padding: 3rem 2rem;
  width: min(420px, 100%);
  text-align: left;
}
.site-menu__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1;
  margin: 0 0 2.25rem;
  color: #f5ebd6;
}
.site-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.site-menu__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #f1e7d3;
}
.site-menu__list .arrow { font-size: 0.9em; opacity: 0.85; }

/* ↗ is missing from Windsor D — draw it in Inter instead */
.arrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */

/* tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidenav { display: none; }
  .menu-toggle { display: inline-grid; }

  .hero { padding-top: 5rem; }
  .card-wrap { margin-top: -2rem; }
  .card { padding: 2.25rem 1.5rem; border-radius: 28px; }

  .band { padding-left: 1.5rem; padding-right: 1.5rem; }

  .update {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .work {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* phone ──────────────────────────────────────────────── */
@media (max-width: 520px) {
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  .book-pitch { padding: 0 1rem; }
  .card { border-radius: 22px; }
}

/* motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .wordmark:not(.wordmark--xl),
  .eyebrow,
  .book-title,
  .book-pitch,
  .book-blurb,
  .card__lede {
    animation: rise 800ms ease-out both;
  }
  /* hero stack: eyebrow → title → pitch → blurb, timed after wordmark */
  .eyebrow     { animation-delay: 2900ms; }
  .book-title  { animation-delay: 3050ms; }
  .book-pitch  { animation-delay: 3300ms; animation-duration: 900ms; }
  .book-blurb  { animation-delay: 3550ms; animation-duration: 900ms; }
  .card__lede  { animation-delay: 220ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* reduced motion: show the wordmark all at once */
@media (prefers-reduced-motion: reduce) {
  .wordmark__outline {
    clip-path: none;
    animation: none;
  }
  .wordmark__fill {
    opacity: 1;
    animation: none;
  }
}

/* ======================================================================
   FULL-WIDTH PINK BAND (home page)
   ====================================================================== */

.band {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  --band-ink: #2b2230;           /* dark warm grey on pink */
  --band-ink-soft: rgba(43, 34, 48, 0.75);
  --band-rule: rgba(43, 34, 48, 0.22);
  color: var(--band-ink);
}
.band--pink { background: var(--pink-band); }

/* keep links readable inside the pink band */
.band--pink a:hover,
.band--pink a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.band__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.band__section + .band__section {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--band-rule);
}

.band__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--band-ink);
  margin: 0;
  max-width: none;
}

.band__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--band-ink);
  margin: 0 0 1.5rem;
}

.band__body {
  margin: 0;
  font-size: 1.05rem;
  color: var(--band-ink-soft);
  max-width: 56ch;
}

/* updates on pink ───────────────────────────────────────── */
.updates--on-pink .update__date { color: var(--band-ink-soft); }
.updates--on-pink .update__body { color: var(--band-ink); }

/* works on pink ─────────────────────────────────────────── */
.works--on-pink .work {
  border-bottom-color: var(--band-rule);
}
.works--on-pink .work__title { color: var(--band-ink); }
.works--on-pink .work__meta  { color: var(--band-ink-soft); }

/* newsletter on pink ────────────────────────────────────── */
.newsletter-form--on-pink input[type="email"] {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(43, 34, 48, 0.2);
  color: var(--band-ink);
}
.newsletter-form--on-pink input[type="email"]:focus {
  border-color: var(--band-ink);
  box-shadow: 0 0 0 2px rgba(43, 34, 48, 0.18);
}
.newsletter-form--on-pink button {
  background: var(--band-ink);
  color: #fff;
  border-color: var(--band-ink);
}
.newsletter-form--on-pink button:hover {
  background: #fff;
  color: var(--band-ink);
  border-color: var(--band-ink);
}

/* ======================================================================
   PAGE VARIANTS
   ====================================================================== */

/* shorter hero used on inner pages (no big book title block) */
.hero--page {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.hero__sub {
  margin: 1rem auto 0;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--on-image);
  opacity: 0.9;
}

/* ── Contact & bio page ───────────────────────────────── */
.page-contact { background: #3c4a6f; }   /* slate blue from Figma */

.hero-shell--contact {
  background-image:
    /* darken top for nav legibility, and fade into card at the bottom */
    linear-gradient(
      to bottom,
      rgba(15, 18, 36, 0.55) 0%,
      rgba(15, 18, 36, 0.15) 28%,
      rgba(60, 74, 111, 0) 55%,
      rgba(60, 74, 111, 0.15) 88%,
      #3c4a6f 100%
    ),
    url("assets/contact-bg.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #3c4a6f;

  /* Crop the shell so it ends just below the queen's eyes.
     Image aspect = 850/1056 (0.805); with cover on full-bleed width,
     scaled image height ≈ 124vw; eyes at 34% of image height ≈ 42vw.
     Shell height ≈ 46vw leaves the eyes ~4vw above the fold on any
     viewport (proportional crop).                                    */
  min-height: 0;
  height: 46vw;
  /* Very narrow viewports would compress the wordmark; keep a floor. */
  min-height: 240px;
  max-height: 760px;
}

.card-wrap--contact {
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

.card--contact .card__heading {
  margin-bottom: 1rem;
}
.card__prose {
  font-family: var(--font-prose);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card__prose p { margin: 0 0 1.1em; }
.card__prose p:last-child { margin-bottom: 0; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 640px) {
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ── Tendril updates page ─────────────────────────────── */
.page-tendril { background: #2b283b; }   /* deep indigo from Figma */

.hero-shell--tendril {
  background-image: none;
  background-color: #2b283b;
  min-height: 100vh;
  padding-bottom: 6rem;
}
.hero-shell--tendril .hero--page { padding-bottom: clamp(3rem, 6vw, 4rem); }

.tendril-feed {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  color: var(--on-image);
}

.feed-entry {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(238, 238, 238, 0.12);
}
.feed-entry:last-child { border-bottom: none; }

.feed-entry__date {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 238, 238, 0.65);
}
.feed-entry__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--on-image);
}
.feed-entry__body {
  margin: 0 0 1rem;
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(238, 238, 238, 0.85);
}
.feed-entry__link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-image);
  border-bottom: 1px solid rgba(238, 238, 238, 0.4);
  padding-bottom: 2px;
}

/* footer on dark pages (no separate band) */
.site-footer--on-dark { background: transparent; }

