/* ==========================================================================
   Amber Lane — editorial author site
   Palette: warm ivory / espresso / muted sage / restrained champagne gold
   Type: Cormorant Garamond (display) + Manrope (text), self-hosted
   ========================================================================== */

/* ---- Fonts --------------------------------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Palette taken from the "For the Love of Me" cover:
     sunset apricot sky · sand · sea blue-grey · slate back cover · night-blue base */
  --ivory: #f8f1e7;      /* page background — warm sand */
  --paper: #fcf8f2;      /* lighter panel */
  --cream: #f3e5d3;      /* peach-sand band */
  --glow: #f4dcc0;       /* sunset glow tint */
  --night: #23222b;      /* cover base / main text */
  --slate: #3d3c45;      /* back-cover slate */
  --ink: #34333b;
  --muted: #5f5c64;
  --sea: #7d8892;        /* sea blue-grey (decor) */
  --sea-deep: #465260;   /* sea blue-grey (text accent) */
  --sea-tint: #e3e4e2;
  --sun: #e2a46c;        /* sunset apricot */
  --sun-soft: #f1c9a0;
  --sun-text: #8f5320;   /* burnt sunset — accessible on light backgrounds */
  --line: rgba(35, 34, 43, 0.14);
  --line-light: rgba(248, 241, 231, 0.16);
  --error: #9b3424;
  --error-bg: #f8e2da;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 2px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sun-soft); color: var(--night); }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--sun-text); outline-offset: 3px; }
.site-footer :focus-visible, .book-feature :focus-visible, .cta-band :focus-visible { outline-color: var(--sun-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--night); color: var(--ivory); padding: .75rem 1.1rem; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- Type ---------------------------------------------------------------- */
.display-1, .display-2, .role__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--night);
  letter-spacing: -0.012em;
}
.display-1 { font-size: clamp(3.4rem, 8vw, 7rem); line-height: .94; }
.display-2 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); line-height: 1.02; }
.display-1 em, .display-2 em { font-style: italic; color: var(--sea-deep); }
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.line > span { display: inline-block; }

.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sea-deep);
  margin: 0 0 1.4rem;
}
.eyebrow__rule { width: 2.5rem; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--sun { color: var(--sun-soft); }

.lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.65; color: var(--ink); }

/* ---- Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: transparent; --btn-fg: var(--night); --btn-bd: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { --btn-bg: var(--night); --btn-fg: var(--ivory); }
.btn--solid:hover { --btn-bg: var(--sea-deep); --btn-bd: var(--sea-deep); }
.btn--ghost:hover { --btn-bg: var(--night); --btn-fg: var(--ivory); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--night); --btn-bd: var(--sun); }
.btn--sun:hover { --btn-bg: var(--sun-soft); --btn-bd: var(--sun-soft); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .72rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--night); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .2rem;
  transition: background-size .45s var(--ease), color .3s;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--sea-deep); }
.text-link svg { width: 1em; height: 1em; }
.text-link--light { color: var(--ivory); }
.text-link--light:hover { color: var(--sun-soft); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled { background: var(--ivory); box-shadow: 0 1px 0 var(--line); height: 70px; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--night); line-height: 1; }
.wordmark__name { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; letter-spacing: -.01em; }
.wordmark__name em { font-weight: 500; color: var(--sea-deep); }
.wordmark__sub { margin-top: .35rem; font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.wordmark--light { color: var(--ivory); }
.wordmark--light .wordmark__name em { color: var(--sun-soft); }

.primary-nav { display: flex; align-items: center; gap: 2.5rem; }
.primary-nav ul { display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav ul a {
  position: relative; text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .04em; color: var(--ink);
  padding-block: .4rem;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sun-text);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .wordmark__name { font-size: 1.6rem; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .7rem; position: relative; z-index: 2;
    background: none; border: 0; padding: .6rem 0 .6rem .6rem; cursor: pointer;
    font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--night);
  }
  .nav-toggle__bars { width: 26px; height: 10px; position: relative; }
  .nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
  .nav-toggle__bars span:first-child { top: 0; }
  .nav-toggle__bars span:last-child { top: 8.5px; }
  .nav-open .nav-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
  .nav-open .nav-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

  .js .primary-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--ivory);
    visibility: hidden; opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .js .nav-open .primary-nav { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .js .primary-nav ul { flex-direction: column; gap: .4rem; }
  .js .primary-nav ul a { font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 3.2rem); font-weight: 500; letter-spacing: -.01em; color: var(--night); }
  .js .primary-nav ul a::after { bottom: .3rem; }
  .js .primary-nav__cta { min-height: 3.25rem; padding: .85rem 1.6rem; font-size: .8rem; }
  .nav-open .site-header { background: var(--ivory); }
  body.nav-open { overflow: hidden; }

  /* No-JS: let the nav wrap under the wordmark */
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 1rem; gap: 1rem; }
  html:not(.js) .primary-nav { flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .primary-nav ul { flex-wrap: wrap; gap: 1rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 45%, var(--glow) 0%, rgba(244, 220, 192, 0) 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero__copy { max-width: 37rem; }
.hero .display-1 { margin-bottom: 1.4rem; }
.hero__subtitle {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  color: var(--sun-text); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem;
}
.hero__subtitle::before { content: ""; width: 2.75rem; height: 1px; background: var(--sun); }
.hero__intro { color: var(--muted); max-width: 33rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero__buy { font-size: .9rem; }
.hero__buy .text-link { font-weight: 500; color: var(--muted); }

.hero__visual { position: relative; display: grid; place-items: center; padding: 2rem 0; }
.hero__arch {
  position: absolute; width: min(82%, 440px); aspect-ratio: 3 / 4; bottom: 4%;
  border-radius: 999px 999px 0 0;
  /* the cover's sunset: apricot sky -> sand horizon -> blue-grey sea */
  background: linear-gradient(180deg, #f1c9a0 0%, #e9b07c 38%, #e8d2b6 58%, #a9b0b4 82%, #7d8892 100%);
  opacity: .9;
}
.hero__book { position: relative; width: min(100%, 540px); }
.hero__book img { width: 100%; filter: drop-shadow(0 30px 40px rgba(35, 34, 43, .16)); }
.hero__ring {
  position: absolute; width: 7.5rem; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--sun); top: 6%; right: 4%; opacity: .7;
}

/* Hero entrance pre-state (only while GSAP is pending; see header.php failsafe) */
.anim-pending [data-hero], .anim-pending [data-hero-visual] { opacity: 0; }
.anim-pending [data-hero-line] > span { transform: translateY(105%); }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; padding: 0; max-width: 420px; width: 88%; margin-inline: auto; }
  .hero__ring { width: 5rem; right: -2%; }
  .hero__wash { background: radial-gradient(90% 45% at 50% 22%, var(--glow) 0%, rgba(244,220,192,0) 70%); }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---- Epigraph ------------------------------------------------------------ */
.epigraph { padding-block: clamp(3rem, 6vw, 4.5rem); border-block: 1px solid var(--line); background: var(--paper); }
.epigraph__inner { margin: 0 auto; text-align: center; max-width: 52rem; }
.epigraph blockquote { margin: 0; }
.epigraph blockquote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--night);
}
.epigraph figcaption { margin-top: 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sun-text); }

/* ---- About --------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.about__media { position: relative; max-width: 460px; }
.about__frame { position: relative; z-index: 1; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--cream); aspect-ratio: 746 / 1057; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__block { position: absolute; z-index: 0; inset: 12% -10% -6% 18%; background: linear-gradient(180deg, var(--sun-soft), var(--sea-tint)); border-radius: 999px 999px 0 0; }
.about__copy .display-2 { margin-bottom: 2rem; }
.about__copy .lead { margin-bottom: 2rem; max-width: 36rem; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { width: 78%; max-width: 360px; margin-inline: auto; }
}

/* ---- Roles --------------------------------------------------------------- */
.roles { background: var(--paper); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 44rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.roles__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.55fr); gap: 2rem; align-items: baseline;
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.role__num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sun-text); }
.role__title { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1; transition: transform .5s var(--ease), color .4s; }
.role:hover .role__title { transform: translateX(.4rem); color: var(--sea-deep); }
.role__body p { color: var(--muted); margin-bottom: 1.2rem; max-width: 34rem; }
@media (max-width: 760px) {
  .role { grid-template-columns: 2.75rem 1fr; gap: .5rem 1rem; }
  .role__body { grid-column: 2; margin-top: 1rem; }
}

/* ---- Book feature (dark) -------------------------------------------------- */
.book-feature { background: linear-gradient(180deg, var(--slate) 0%, var(--night) 100%); color: rgba(248, 241, 231, .82); overflow: hidden; }
.book-feature::before {
  content: ""; position: absolute; width: 46rem; aspect-ratio: 1; border-radius: 50%;
  left: -14rem; top: 50%; translate: 0 -50%; border: 1px solid var(--line-light);
}
.book-feature__grid { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.book-feature .display-2 { color: var(--ivory); }
.book-feature__subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--sun-soft); margin: .6rem 0 2rem; }
.book-feature .lead { color: var(--ivory); }
.book-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.5rem; }
.cover { position: relative; width: min(100%, 380px); margin-inline: auto; aspect-ratio: 768 / 1182; }
.cover picture, .cover img { width: 100%; height: 100%; }
.cover img {
  object-fit: cover; border-radius: 1px 4px 4px 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 30px 60px -20px rgba(0,0,0,.45);
}
.cover::after { /* subtle spine highlight for realism */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6%;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.08) 45%, rgba(0,0,0,0)); pointer-events: none;
}
@media (max-width: 860px) {
  .book-feature__grid { grid-template-columns: 1fr; }
  .book-feature__cover .cover { width: 62%; max-width: 300px; }
}

/* ---- Learnings ----------------------------------------------------------- */
.learnings { background: var(--cream); }
.learnings__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 2rem clamp(3rem, 7vw, 7rem); }
.learnings__head { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.learnings__head .display-2 { margin-bottom: 1.5rem; }
.learnings__intro { color: var(--muted); max-width: 22rem; }
.learnings__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.learnings__list li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.learnings__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sun-text); min-width: 1.6rem; }
.learnings__text { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; color: var(--night); }
.learnings__foot { grid-column: 2; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--muted); max-width: 40rem; }
.learnings__signoff { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--sea-deep); margin-top: .5rem; }
@media (max-width: 960px) {
  .learnings__grid { grid-template-columns: 1fr; }
  .learnings__head { position: static; }
  .learnings__foot { grid-column: 1; }
}
@media (max-width: 560px) { .learnings__list { grid-template-columns: 1fr; } }

/* ---- Reviews ------------------------------------------------------------- */
.reviews { background: var(--ivory); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review--lead { position: relative; max-width: 58rem; margin: 0 auto clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.review__mark {
  display: block; font-family: var(--serif); font-size: 7rem; line-height: .6; height: 3.2rem; color: var(--sun);
}
.review--lead blockquote p { font-family: var(--serif); font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.35; color: var(--night); }
.review figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .2rem; }
.review--lead figcaption { align-items: center; }
.review__name { font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night); }
.review__role { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.reviews__pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.reviews__pair .review { padding: clamp(2rem, 4vw, 3rem) clamp(0rem, 3vw, 3rem) 0 0; }
.reviews__pair .review + .review { padding-left: clamp(1.5rem, 4vw, 3rem); border-left: 1px solid var(--line); }
.reviews__pair blockquote p { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) {
  .reviews__pair { grid-template-columns: 1fr; }
  .reviews__pair .review + .review { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
}

/* ---- Contact ------------------------------------------------------------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact__intro .display-2 { margin-bottom: 1.5rem; }
.contact__intro p { color: var(--muted); }
.contact__email a { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--night); text-decoration-color: var(--sun); text-underline-offset: .3em; text-decoration-thickness: 1px; word-break: break-word; }
.contact__details { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.contact__details div { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact__details dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sea-deep); margin-bottom: .2rem; }
.contact__details dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.contact__details a { color: var(--night); text-decoration-color: var(--sun); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.contact--page { border-top: 0; padding-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* Form */
.contact-form { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.9rem 2rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(35, 34, 43, .35); border-radius: 0;
  background: transparent; padding: .7rem 0; font-size: 1.05rem; color: var(--night);
  transition: border-color .3s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 9rem; border: 1px solid rgba(35, 34, 43, .35); padding: .9rem 1rem; background: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea-deep); box-shadow: 0 1px 0 0 var(--sea-deep); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--sea-deep); }
.field [aria-invalid="true"] { border-color: var(--error); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 2rem; cursor: pointer; }
.field__error { margin: .5rem 0 0; font-size: .86rem; color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { margin-bottom: 1.75rem; padding: 1rem 1.2rem; border-left: 2px solid currentColor; font-size: .97rem; }
.form-status[data-state="sent"] { background: var(--glow); color: var(--sea-deep); }
.form-status[data-state="error"] { background: var(--error-bg); color: var(--error); }
.form-status:focus { outline: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---- Inner pages ---------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2rem, 4vw, 3rem); }
.page-hero--compact { padding-bottom: 0; }
.page-hero__meta { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.page-404__hero { min-height: 70vh; display: flex; align-items: center; }
.page-404__hero .display-1 { margin-bottom: 1.5rem; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.25rem; padding: 0; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--sun-text); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--night); text-decoration: underline; }

.book-hero { padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 6.5rem); background: radial-gradient(55% 60% at 22% 55%, var(--glow) 0%, rgba(244,220,192,0) 70%), var(--ivory); }
.book-hero__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.book-hero__cover .cover { width: min(100%, 400px); }
.book-hero .display-1 { margin-bottom: 1.25rem; }
.book-hero__epigraph { margin: 0 0 2.4rem; padding-left: 1.4rem; border-left: 1px solid var(--sun); }
.book-hero__epigraph blockquote { margin: 0; }
.book-hero__epigraph p { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--night); }
.book-hero__epigraph figcaption { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sun-text); margin-top: .5rem; }
@media (max-width: 860px) {
  .book-hero__grid { grid-template-columns: 1fr; }
  .book-hero__cover .cover { width: 60%; max-width: 300px; }
}

.prose-section__grid { display: grid; grid-template-columns: 3fr 8fr; gap: 2rem clamp(3rem, 7vw, 7rem); }
.prose-section__label { margin: .6rem 0 0; align-self: start; }
.prose { max-width: 42rem; }
.prose p { font-size: 1.12rem; line-height: 1.85; color: var(--ink); }
.prose .dropcap::first-letter {
  float: left; font-family: var(--serif); font-size: 5.2rem; line-height: .82; padding: .35rem .7rem 0 0; color: var(--sea-deep);
}
.prose--legal h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--night); margin: 2.4rem 0 .8rem; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal p { font-size: 1.02rem; color: var(--muted); }
.prose--legal a { color: var(--night); text-decoration-color: var(--sun); text-underline-offset: .2em; }
@media (max-width: 860px) { .prose-section__grid { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(180deg, var(--slate) 0%, var(--night) 100%); color: var(--ivory); padding-block: clamp(4.5rem, 9vw, 7rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.cta-band .display-2 { color: var(--ivory); max-width: 30rem; }
.cta-band .display-2 em { color: var(--sun-soft); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { position: relative; background: var(--night); color: rgba(248, 241, 231, .74); font-size: .95rem; }
.site-footer__horizon { /* thin sunset line echoing the book cover */
  height: 4px; background: linear-gradient(90deg, var(--sea) 0%, var(--sun-soft) 35%, var(--sun) 55%, var(--sun-soft) 75%, var(--sea) 100%);
}
.site-footer a { color: rgba(248, 241, 231, .86); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--sun-soft); }

/* Book feature strip */
.site-footer__feature {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-light);
}
.site-footer__cover { width: 92px; aspect-ratio: 768 / 1182; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); border-radius: 1px 3px 3px 1px; overflow: hidden; }
.site-footer__cover img { width: 100%; height: 100%; object-fit: cover; }
.site-footer__eyebrow { margin: 0 0 .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sun); }
.site-footer__title { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--ivory); }
.site-footer__subtitle { margin: .3rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--sun-soft); }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.site-footer .btn--sun { color: var(--night); }
.site-footer .btn--sun:hover { color: var(--night); }
.btn--outline-light { --btn-fg: var(--ivory); --btn-bd: rgba(248, 241, 231, .4); }
.btn--outline-light:hover { --btn-bg: var(--ivory); --btn-fg: var(--night); --btn-bd: var(--ivory); }
.site-footer .btn--outline-light:hover { color: var(--night); }

/* Link columns */
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__brand .wordmark__sub { color: rgba(248, 241, 231, .6); }
.site-footer__tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: rgba(248, 241, 231, .82); margin: 1.4rem 0 0; max-width: 23rem; }
.site-footer__heading { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sun); margin: .3rem 0 1.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col ul { display: grid; gap: .75rem; }
.site-footer__col a { position: relative; word-break: break-word; }
.site-footer__col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--sun-soft);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.site-footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.social { display: flex; gap: .6rem; margin-top: 1.6rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-light); border-radius: 50%; }
.social svg { width: 1rem; height: 1rem; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--line-light);
  font-size: .82rem; color: rgba(248, 241, 231, .62);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 1.75rem; }
.site-footer__legal a { color: rgba(248, 241, 231, .72); }

@media (max-width: 900px) {
  .site-footer__feature { grid-template-columns: auto 1fr; }
  .site-footer__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__cover { width: 72px; }
  .site-footer__actions .btn { flex: 1 1 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 5.5rem; /* room for back-to-top */ }
}

/* ---- Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 40;
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--night); color: var(--sun-soft);
  border: 1px solid rgba(226, 164, 108, .45);
  box-shadow: 0 10px 24px -8px rgba(35, 34, 43, .45);
  transition: opacity .35s var(--ease), visibility .35s, transform .35s var(--ease), background-color .3s, color .3s;
}
.to-top svg { width: 1.25rem; height: 1.25rem; transition: transform .35s var(--ease); }
.to-top:hover { background: var(--sun); color: var(--night); border-color: var(--sun); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.nav-open .to-top { opacity: 0; visibility: hidden; }

/* ---- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .contact, .site-footer .social, .to-top, .site-footer__actions { display: none !important; }
  body { background: #fff; }
  .book-feature, .cta-band, .site-footer { background: #fff; color: #000; }
}
