/* Eliza Marrow — Ice Night. Lake-night blue with the mitten red as the one warm note. */
@font-face { font-family: 'Cinzel'; src: url('fonts/cinzel.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/ebgaramond.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/ebgaramond-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #121a24;     /* background */
  --panel: #1b2633;     /* alternate bands */
  --line: #2a3747;
  --line-strong: #3c4d63;
  --frost: #e9eef3;     /* 15.0:1 on night, 13.1:1 on panel */
  --soft: #c9d4df;      /* 11.7:1 on night, 10.2:1 on panel */
  --muted: #a3b1c2;     /* 8.0:1 on night, 7.0:1 on panel */
  --red-text: #e8776c;  /* mitten red for text, 6.1:1 on night, 5.3:1 on panel */
  --red: #b83a30;       /* buttons; white on it 5.7:1 */
  --red-deep: #962c24;
  --blue: #547198;      /* cover lake blue, for glow only */
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--frost); font-family: var(--body); font-size: 20px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: #f4a39b; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--frost); color: var(--night); padding: 10px 16px; font-family: var(--display); font-weight: 600; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 20px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.28em; color: var(--frost); text-decoration: none; }
.wordmark:hover { color: var(--frost); }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--frost); text-decoration: none; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { border-bottom-color: var(--red-text); }
.nav a.nav-cta { color: var(--red-text); }

/* Type */
.eyebrow { margin: 0; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--red-text); }
.display { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.06; letter-spacing: 0.04em; text-wrap: balance; overflow-wrap: break-word; }
.display .red { color: var(--red-text); }
.d1 { font-size: clamp(40px, 6.2vw, 82px); }
.d2 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: 0.08em; }
.d3 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: 0.06em; line-height: 1.12; }
.lede { margin: 0; max-width: 30em; font-size: clamp(20px, 2.2vw, 22px); color: var(--soft); }
.hook { margin: 0; font-style: italic; font-size: clamp(21px, 2.3vw, 24px); line-height: 1.5; color: var(--frost); }
.prose { margin: 0; max-width: 36em; color: var(--soft); }
.small { font-size: 17px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-red { background: var(--red); color: #ffffff; }
.btn-red:hover { background: var(--red-deep); color: #ffffff; }
.btn-line { border-color: var(--line-strong); color: var(--frost); }
.btn-line:hover { border-color: var(--frost); color: var(--frost); }

/* Hero */
.hero { background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(84, 113, 152, 0.35), rgba(18, 26, 36, 0) 70%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(233, 238, 243, 0.06), rgba(18, 26, 36, 0) 70%),
    var(--night); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: clamp(32px, 5vw, 48px) clamp(64px, 9vw, 96px); }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 0 1 360px; min-width: 0; margin: 0 auto; }
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }

/* Sections */
.band { border-top: 1px solid var(--line); }
.band.panel { background: var(--panel); }
.band > .wrap { padding-block: clamp(64px, 9vw, 88px); }
.centered { max-width: 900px; display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 260px; min-width: 0; }
.split > :last-child { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.big { margin: 0; max-width: 34em; font-size: clamp(20px, 2.2vw, 22px); color: var(--soft); }

/* Book page */
.book .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: clamp(32px, 5vw, 48px) clamp(64px, 9vw, 88px); }
.book-cover { flex: 0 1 380px; width: 380px; max-width: 100%; }
.book-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tagline { margin: 0; padding-left: 18px; border-left: 2px solid var(--red); font-style: italic; color: var(--muted); }
.details { margin: 4px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; font-size: 17px; max-width: 32em; padding-top: 16px; border-top: 1px solid var(--line); }
.details dt { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.details dd { margin: 0; color: var(--soft); }

.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-block: clamp(56px, 8vw, 72px); }
.cta .cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-block: 0 clamp(56px, 8vw, 88px); }
.card { padding: 28px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.facts li { padding-left: 22px; position: relative; color: var(--soft); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--red-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; font-size: 16px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red-text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.lost { min-height: 45vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .wordmark { font-size: 20px; letter-spacing: 0.22em; }
  .nav { gap: 0 18px; font-size: 13px; }
  .hero-art { flex-basis: 260px; max-width: 260px; }
  .book-cover { flex-basis: 260px; width: 260px; margin: 0 auto; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
