
/* Layout: a quiet publisher's page; cream paper sections alternating with one night-blue band, built like the book itself. */
:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d4;
  --ink: #2b2722;
  --ink-soft: #5a5047;
  --night: #22424b;
  --night-deep: #1a3239;
  --cream: #f3ead8;
  --cream-soft: #cfc3aa;
  --amber: #a5672a;
  --amber-light: #d9944a;
  --rule: #d8ccb6;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 84px; }
.eyebrow { font-family: var(--body); font-size: 13px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(34px, 5vw, 48px); }
h3 { font-size: 28px; }
p { margin: 0; }
.rule { width: 40px; height: 1px; background: var(--amber); border: 0; margin: 0; }

/* header */
header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.mark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.mark span:first-child { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.3px; }
.mark span:last-child { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ink-soft); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
nav a:hover { color: var(--amber); }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(60px, 9vw, 96px); letter-spacing: 0.5px; }
.subtitle { font-style: italic; font-size: 22px; color: var(--ink-soft); }
.opening { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.3; max-width: 22em; }
.pitch { max-width: 34em; color: var(--ink-soft); }
.formats { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; color: var(--ink-soft); }
.formats strong { display: block; font-weight: 500; color: var(--ink); font-size: 18px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 2px; font-family: var(--body); font-size: 17px; text-decoration: none; border: 1px solid var(--night); }
.btn.primary { background: var(--night); color: var(--cream); }
.btn.primary[aria-disabled="true"] { cursor: default; }
.btn.ghost { color: var(--night); background: transparent; }
.btn.ghost:hover { background: var(--paper-deep); color: var(--night); }
.note { font-size: 15px; color: var(--ink-soft); font-style: italic; }
.cover { box-shadow: 0 30px 50px -28px rgba(26, 50, 57, 0.55), 0 2px 6px rgba(26, 50, 57, 0.18); border-radius: 2px 4px 4px 2px; }
.hero figure { margin: 0; max-width: 420px; justify-self: center; width: 100%; }

/* inside */
.inside { background: var(--paper-deep); }
.inside-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 40em; }
.spreads { display: flex; flex-direction: column; gap: 40px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); box-shadow: 0 18px 36px -24px rgba(43, 39, 34, 0.45); max-width: 860px; }
.spread:nth-child(2) { margin-left: auto; }
.spread img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.page { padding: 13% 12% 9% 13%; display: flex; flex-direction: column; gap: 22px; min-width: 0; box-shadow: inset 18px 0 22px -18px rgba(60, 40, 20, 0.28); }
.page .line { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.28; }
.page .story { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.page .folio { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: #8c8174; font-variant-numeric: tabular-nums; }

/* series */
.series { background: var(--night); color: var(--cream); }
.series h2, .series h3 { color: var(--cream); }
.series .eyebrow { color: var(--cream-soft); }
.series-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.series-head p { color: var(--cream-soft); max-width: 32em; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.book { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.book .num { font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--cream-soft); }
.book p { color: var(--cream-soft); font-size: 16px; line-height: 1.55; }
.book .tease { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--cream); }
.status { align-self: flex-start; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--cream-soft); color: var(--cream); }
.status.out { background: var(--amber-light); border-color: var(--amber-light); color: var(--night-deep); }
.placeholder { aspect-ratio: 2 / 3; background: var(--night-deep); border: 1px solid rgba(243, 234, 216, 0.18); display: flex; flex-direction: column; justify-content: space-between; padding: 12% 11%; box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.6); }
.placeholder .ph-series { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--cream-soft); }
.placeholder .ph-title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.02; color: var(--cream); }
.placeholder .ph-foot { display: flex; flex-direction: column; gap: 10px; }
.placeholder .ph-foot hr { width: 32px; height: 1px; background: var(--amber-light); border: 0; margin: 0; }
.placeholder .ph-author { font-size: 14px; color: var(--cream-soft); }
.more { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(243, 234, 216, 0.18); color: var(--cream-soft); font-style: italic; }

/* walt */
.walt .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.walt figure { margin: 0; }
.walt figure img { box-shadow: 0 24px 40px -26px rgba(43, 39, 34, 0.5); }
.walt-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.walt-text p { max-width: 34em; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; font-size: 16px; }
.facts li { border-top: 1px solid var(--rule); padding-top: 10px; color: var(--ink-soft); }
.facts b { display: block; font-weight: 500; color: var(--ink); font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 2px; }

/* author */
.author { border-top: 1px solid var(--rule); }
.author .wrap { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.author p { color: var(--ink-soft); }

footer { background: var(--night-deep); color: var(--cream-soft); font-size: 15px; }
footer .wrap { padding-block: 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .fmark { font-family: var(--display); font-size: 20px; color: var(--cream); }

@media (max-width: 820px) {
  section { padding-block: 60px; }
  .hero .wrap, .walt .wrap, .series-head { grid-template-columns: 1fr; gap: 40px; }
  .hero figure { order: -1; max-width: 300px; }
  .shelf { grid-template-columns: 1fr; gap: 48px; }
  .book { max-width: 360px; }
  .spread { grid-template-columns: 1fr; }
  .spread img { aspect-ratio: 4 / 5; }
  .page { box-shadow: none; padding: 28px 24px; }
  .walt figure { max-width: 340px; }
  nav ul { gap: 18px; }
}
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* multi-page additions */
nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--amber); }
.hero.series-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; max-width: 620px; justify-self: center; width: 100%; }
.covers a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink-soft); font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; }
.covers a:nth-child(even) { transform: translateY(-28px); }
.book a.title-link { color: inherit; text-decoration: none; }
.book a.title-link:hover h3 { color: var(--amber-light); }
.book .more-link { color: var(--amber-light); font-size: 16px; }
.book .more-link:hover { color: var(--cream); }
.next-book { border-top: 1px solid var(--rule); }
.next-book .wrap { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 760px; }
.next-book .wrap > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.crumb { font-size: 15px; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }
@media (max-width: 820px) {
  .hero.series-hero .wrap { grid-template-columns: 1fr; }
  .covers { order: -1; max-width: 400px; }
  .next-book .wrap { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
}

/* Look-inside pictures sit inside a thin cream border, as in the printed books */
.spread img { box-sizing: border-box; padding: 4.17% 8.33% 4.17% 4.17%; background: var(--paper); box-shadow: inset -18px 0 22px -18px rgba(60, 40, 20, 0.22); }
@media (max-width: 820px) { .spread img { aspect-ratio: 2 / 3; padding: 4.17%; box-shadow: none; } }
.formats > div { display: flex; flex-direction: column; gap: 4px; }
.formats .btn { margin-top: 10px; align-self: flex-start; }
.formats { gap: 22px 40px; }
.formats .spec { display: block; }
.formats .btn { display: flex; width: max-content; }
@media (max-width: 820px) { .covers { grid-template-columns: repeat(2, 1fr); } }
