:root {
  --ink: #1c2930;
  --plum: #203640;
  --plum-2: #31515a;
  --cream: #e9eeec;
  --paper: #f8f7f2;
  --rust: #3f6b72;
  --gold: #b89a62;
  --sage: #637770;
  --line: rgba(28, 41, 48, 0.16);
  --shadow: 0 18px 48px rgba(20, 36, 43, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.62;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  padding: .7rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 231, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: auto;
  min-height: 78px;
  padding: .8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .92rem;
  font-weight: 650;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--rust); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: .55rem .8rem;
}
.external::after { content: " ↗"; font-size: .8em; }

.preview-ribbon {
  background: var(--gold);
  color: #263036;
  text-align: center;
  font-size: .8rem;
  font-weight: 750;
  padding: .45rem 1rem;
  letter-spacing: .04em;
}

.review-note {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: .75rem 1rem;
  border: 1px solid rgba(184,154,98,.5);
  border-radius: 10px;
  background: #f3ead7;
  color: #3e4548;
  font-size: .88rem;
}

.hero {
  min-height: 620px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 25%, rgba(184, 154, 98, .2), transparent 26%),
    radial-gradient(circle at 18% 75%, rgba(87, 126, 132, .28), transparent 30%),
    linear-gradient(135deg, #172a33 0%, #31515a 58%, #1d343d 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: repeating-linear-gradient(118deg, transparent 0 24px, rgba(255,255,255,.12) 25px 26px);
}
.hero-inner {
  max-width: 1050px;
  padding: 5.5rem 1.4rem 6.5rem;
  position: relative;
  text-align: center;
}
.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .77rem;
  font-weight: 800;
  color: var(--gold);
}
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.12;
}
h1 {
  margin: 0 auto 1.4rem;
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -.04em;
}
.hero h1 span { display: block; color: #d8c398; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.25rem); }
.lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.84);
}
.actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--rust);
  color: white;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,.42);
}
.button.dark { background: var(--plum); }
.button.outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.button[aria-disabled="true"] { opacity: .58; cursor: not-allowed; }

.section {
  padding: 5.5rem 1.4rem;
}
.section.paper { background: var(--paper); }
.section.dark { background: var(--plum); color: white; }
.wrap { max-width: 1120px; margin: auto; }
.section-heading {
  max-width: none;
  margin-bottom: 2.4rem;
}
.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0 0 .8rem;
  letter-spacing: -.025em;
}
.section-heading p { max-width: 820px; margin: 0; color: #56666b; font-size: 1.08rem; }
.dark .section-heading p { color: rgba(255,255,255,.7); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.series-card {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.series-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 8%, rgba(22,18,28,.88) 90%);
}
.series-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  right: -50px;
  top: -55px;
}
.series-card.ann { background: linear-gradient(145deg, #718783, #344d4e 60%, #1c2b2d); }
.series-card.lizzy { background: linear-gradient(145deg, #617985, #304f5d 60%, #1c3039); }
.series-card > * { position: relative; z-index: 1; }
.series-card .cover-fan {
  position: absolute;
  inset: 1.4rem 1.4rem auto auto;
  width: 46%;
  height: 38%;
  opacity: .72;
}
.cover-fan img {
  position: absolute;
  width: 42%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 14px 24px rgba(0,0,0,.28);
}
.cover-fan img:nth-child(1) { left: 0; top: 12%; transform: rotate(-8deg); }
.cover-fan img:nth-child(2) { left: 29%; top: 2%; transform: rotate(1deg); }
.cover-fan img:nth-child(3) { right: 0; top: 14%; transform: rotate(9deg); }
.series-card .number { color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.series-card h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .5rem 0 .75rem; }
.series-card p { max-width: 500px; color: rgba(255,255,255,.78); margin: 0; }
.series-card .linkline { margin-top: 1.4rem; color: white; font-weight: 750; }

.quote {
  max-width: 920px;
  margin: auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.25;
  margin: 0 0 1.4rem;
}
.quote cite { color: rgba(255,255,255,.68); font-style: normal; }

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: stretch;
}
.feature {
  background: #e1e7e3;
  border-radius: 22px;
  padding: 2rem;
  border: 1px solid var(--line);
}
.feature h3 { font-size: 2rem; margin: 0 0 .7rem; }
.feature p { color: #56666b; }
.feature-art {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 14px;
  margin-bottom: 1.25rem;
}
.serial-feature { overflow: hidden; }
.meta { font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--rust); }
.placeholder-note {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .65rem;
  border-radius: 5px;
  background: #ead9ae;
  color: #493f2b;
  font-size: .78rem;
  font-weight: 750;
}

.event-list { display: grid; gap: 1rem; }
.event-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.event-date { color: var(--rust); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.event-date span { display: block; color: #647276; font-size: .8rem; letter-spacing: .03em; }
.event-card h2, .event-card h3 { margin: 0 0 .35rem; }
.event-card p { margin: .35rem 0; color: #536369; }
.event-card.past { background: #e4eae7; }

.jump-list { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
.jump-list a { padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: white; font-weight: 700; font-size: .84rem; }
.spoiler-warning { border-left: 5px solid var(--gold); background: #f3ead7; padding: 1.2rem 1.35rem; border-radius: 0 12px 12px 0; }
.question-sections { display: grid; gap: 1rem; }
.question-set { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.question-set summary { cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.question-set[open] summary { border-bottom: 1px solid var(--line); background: #e3e9e6; }
.question-set ol { margin: 1.2rem 1.5rem 1.5rem 2.7rem; padding: 0; }
.question-set li { margin: 0 0 .85rem; }

.catalog-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.catalog { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .9rem; }
.catalog th, .catalog td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalog th { background: #dfe7e4; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.catalog tr:last-child td { border-bottom: 0; }
.catalog .catalog-note { display: block; color: #5b696e; font-size: .76rem; white-space: nowrap; }
.catalog-heading { margin-top: 3rem; }
.catalog-heading-first h2,
.catalog-heading h2 { font-size: clamp(2.2rem, 3.7vw, 3.55rem); }
.utility-copy { max-width: 820px; }
.utility-copy h2 { margin-top: 2.2rem; }
.social-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.social-links a { color: white; }

.quiz {
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.7rem; }
.quiz legend { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .8rem; }
.choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem;
  margin: .55rem 0;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--rust); background: #e4ecea; }
.quiz-result {
  display: none;
  margin-top: 1.4rem;
  border-left: 4px solid var(--rust);
  padding: .8rem 1rem;
  background: #e4ecea;
}
.quiz-result.show { display: block; }

.newsletter {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
}
.newsletter h2 { font-size: clamp(2.15rem, 4.2vw, 3.8rem); margin: 0; }
.newsletter-benefit {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}
.newsletter-benefit img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.newsletter-benefit p { margin: 0; color: rgba(255,255,255,.76); }
.newsletter-form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 1.4rem;
}
.field { display: grid; gap: .4rem; margin-bottom: .9rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .82rem; color: rgba(255,255,255,.65); }
.form-note a { color: white; }
.newsletter-embed [data-form] {
  --background-colour: transparent;
  --border-colour: transparent;
  --text-colour: white;
  --label-colour: white;
  --field-colour: white;
  --field-border-colour: rgba(255,255,255,.35);
  --button-colour: var(--teal);
  --button-text-colour: white;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.newsletter-embed [data-form] .inline-container,
.newsletter-embed [data-form] .form-container {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}
.newsletter-embed [data-form] .emailoctopus-form-wrapper { margin: 0 !important; }
.newsletter-embed [data-form] .main-form { display: grid !important; gap: .9rem !important; }
.newsletter-embed [data-form] input:not([type="submit"]) {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  min-height: 46px !important;
  padding: .8rem !important;
}
.newsletter-embed [data-form] input[type="submit"] {
  background: var(--teal) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: white !important;
  cursor: pointer !important;
  font: inherit !important;
  font-weight: 800 !important;
  min-height: 46px !important;
  padding: .75rem 1.1rem !important;
}
.newsletter-embed [data-form] .emailoctopus-error-message,
.newsletter-embed [data-form] .emailoctopus-success-message {
  color: white !important;
  text-align: left !important;
}

.page-hero {
  background: var(--plum);
  color: white;
  padding: 5rem 1.4rem 4.5rem;
}
.page-hero .wrap { max-width: 1000px; }
.page-hero h1 { text-align: left; margin-left: 0; font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero .lede { margin-left: 0; }
.events-page .page-hero .lede { max-width: none; }
.series-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.series-banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 33.333vw, 500px);
  object-fit: cover;
}
.breadcrumb { font-size: .85rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: white; }

.book-list { display: grid; gap: 1.2rem; }
.book {
  display: grid;
  grid-template-columns: minmax(310px, 40%) 1fr;
  gap: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}
.book-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: white;
}
.book-visual img { width: 100%; height: 100%; max-height: 390px; object-fit: contain; }
.book-visual.composite {
  grid-template-columns: minmax(0, 1fr) minmax(92px, .34fr);
  gap: .6rem;
  padding: .7rem;
}
.book-visual.composite .base-formats { min-width: 0; }
.book-visual.composite .audio-format {
  align-self: center;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(20,36,43,.22);
}
.book-visual.cover-only { padding: 1rem; background: #e6ece9; }
.book-visual.cover-only img { width: auto; max-width: 68%; filter: drop-shadow(12px 14px 14px rgba(20,36,43,.22)); }
.book-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .1rem 0 .25rem; }
.book-copy .order { color: var(--rust); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.book-copy p { color: #536369; }
.book-copy .book-hook { color: var(--ink); font-family: var(--serif); font-size: 1.16rem; line-height: 1.42; }
.book-copy .review { border-left: 3px solid var(--gold); padding-left: .8rem; font-style: italic; }
.book-copy .review span { display: block; font-style: normal; font-size: .82rem; font-weight: 700; margin-top: .25rem; }
.series-intro { background: #dfe7e4; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.intro-grid h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin: 0 0 1rem; }
.intro-grid blockquote { margin: 0; padding: 1.7rem; border-left: 4px solid var(--gold); background: rgba(255,255,255,.5); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.intro-grid cite { display: block; margin-top: 1rem; font-family: var(--sans); font-size: .8rem; font-style: normal; font-weight: 700; color: #536369; }
.text-link { color: var(--rust); font-weight: 750; text-underline-offset: .2em; }

.sensing-hero { padding: 5rem 1.4rem; background: linear-gradient(135deg, #e7ece9, #f8f7f2 58%); }
.sensing-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.sensing-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.sensing-copy h1 { margin: 0 0 1rem; font-size: clamp(3rem, 6vw, 5.4rem); }
.sensing-copy .lede { margin: 0 0 1rem; color: #45585e; font-family: var(--serif); font-size: 1.35rem; }
.sensing-copy .button { margin-top: .6rem; }
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.press-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.press-item h3 { margin: .35rem 0 .8rem; font-size: 1.45rem; }
.press-item p:last-child { margin-bottom: 0; color: #56666b; }
.edition-sample {
  margin-top: .9rem;
  color: #536369;
  font-size: .83rem;
  font-weight: 700;
}
.edition-sample::before { content: "Available formats: "; color: var(--ink); }
.edition-sample span {
  display: inline;
}
.edition-sample span:not(:last-child)::after { content: " · "; }
.book-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.book-description { margin: .9rem 0; color: #536369; }
.book-description summary {
  color: var(--rust);
  cursor: pointer;
  font-weight: 750;
  text-underline-offset: .2em;
}
.book-description[open] summary { margin-bottom: .55rem; }
.book-description p { margin: .65rem 0; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.story-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}
.story-item .month {
  color: var(--rust);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-item h3 { margin: .25rem 0 0; font-size: 1.3rem; }

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.contact-card h2 { margin-top: 0; font-size: 2rem; }
.author-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 1.5rem; }
.contact-form { padding: 1.5rem; border-radius: 18px; background: var(--plum); color: white; }
.required { color: #ff8078; font-weight: 900; }

.site-footer {
  background: #182a32;
  color: rgba(255,255,255,.72);
  padding: 3rem 1.4rem;
}
.footer-grid {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-grid strong { color: white; font-family: var(--serif); font-size: 1.2rem; }
.footer-brand { display: flex; gap: .85rem; align-items: center; }
.footer-logo {
  width: 42px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: .3rem;
  border-radius: 9px;
  background: var(--paper);
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: white; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .series-grid, .feature-grid, .newsletter, .contact-layout, .intro-grid, .story-grid, .sensing-grid, .press-grid { grid-template-columns: 1fr; }
  .sensing-hero { padding-top: 3rem; }
  .newsletter-benefit { grid-template-columns: 76px 1fr; }
  .newsletter-benefit img { width: 76px; }
  .hero { min-height: 560px; }
  .series-card { min-height: 480px; }
  .book { grid-template-columns: 1fr; }
  .book-visual { min-height: 0; }
  .event-card { grid-template-columns: 1fr; gap: .45rem; }
}

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