:root {
  --ivory: #f5f0e7;
  --ivory-deep: #ece4d8;
  --paper: #faf7f1;
  --espresso: #241a17;
  --storm: #4b6473;
  --storm-dark: #2e4654;
  --oxblood: #7a2633;
  --oxblood-dark: #5f1926;
  --taupe: #a99a8b;
  --rule: #cfc4b6;
  --white: #fffdf9;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Archivo Narrow", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--oxblood); color: var(--white); }

.home-shell { min-height: 100svh; border-bottom: 1px solid var(--rule); }
.interior-shell { min-height: 100svh; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 240, 231, .94);
}
.header-inner {
  width: min(100% - 64px, 1440px);
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark, .footer-mark {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark span { color: var(--oxblood); }
.desktop-nav { display: flex; align-items: center; gap: clamp(28px, 4.1vw, 68px); }
.desktop-nav a, .mobile-nav a {
  position: relative;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--oxblood);
  transition: right 200ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 95px);
  overflow: hidden;
  background: var(--ivory);
}
.hero-image {
  position: absolute;
  inset: 0 0 0 66%;
  background: url("../images/editorial-ivory-hero.png") center 38% / cover no-repeat;
  animation: image-in 900ms cubic-bezier(.2,.8,.2,1) both;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(46,70,84,.26), transparent 18%), linear-gradient(0deg, rgba(36,26,23,.08), transparent 36%);
}
.hero-scrim {
  position: absolute;
  left: calc(66% - 42px);
  top: 48%;
  width: 42px;
  height: 44%;
  background: var(--storm-dark);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(62%, 920px);
  min-height: calc(100svh - 95px);
  padding: clamp(76px, 10vh, 122px) clamp(42px, 6vw, 92px) 48px max(42px, calc((100vw - 1440px) / 2 + 38px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  animation: copy-in 700ms ease both;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--storm-dark);
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero h1, .page-hero h1, .book-detail h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .84;
}
.hero h1 { max-width: 900px; font-size: clamp(4.5rem, 8vw, 8.7rem); }
.hero h1::after {
  content: "";
  display: block;
  width: 118px;
  height: 3px;
  margin: 34px 0 24px;
  background: var(--oxblood);
}
.hero-copy > p:not(.eyebrow):not(.hero-meta) {
  max-width: 580px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  line-height: 1.4;
}
.hero-actions { display: flex; align-items: center; gap: 48px; margin: 38px 0 58px; }
.button {
  min-height: 56px;
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible { background: var(--oxblood-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(95,25,38,.18); }
.button-light { background: var(--ivory); border-color: var(--ivory); color: var(--espresso); }
.button-light:hover, .button-light:focus-visible { background: var(--white); }
.button-muted { background: transparent; color: var(--oxblood); cursor: default; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 180ms ease, gap 180ms ease;
}
.text-link:hover, .text-link:focus-visible { color: var(--oxblood); gap: 15px; }
.hero-meta {
  width: min(100%, 750px);
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--storm-dark);
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-meta span { margin: 0 8px; color: var(--oxblood); }

.section { width: min(100% - 64px, 1320px); margin: 0 auto; padding: 120px 0; }
.featured-section { padding-bottom: 136px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 58px; }
.section-heading h2, .series-teaser h2, .newsletter-callout h2, .reading-order h2, .work-in-progress h2, .contact-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .95;
}
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 62px 38px; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 74px 34px; }
.book-card { min-width: 0; }
.book-cover {
  --cover-accent: var(--oxblood);
  position: relative;
  aspect-ratio: 2 / 3.08;
  padding: 34px 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 30%),
    radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--cover-accent), white 12%), transparent 37%),
    linear-gradient(155deg, var(--cover-accent), #17151a 72%);
  color: var(--white);
  box-shadow: 0 24px 42px rgba(36,26,23,.14);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255,255,255,.28);
  pointer-events: none;
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 12px, rgba(255,255,255,.025) 13px 14px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.book-cover:hover, .book-cover:focus-visible { transform: translateY(-7px); box-shadow: 0 32px 52px rgba(36,26,23,.22); }
.book-cover strong {
  position: relative;
  z-index: 1;
  max-width: 90%;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 500;
  line-height: .92;
}
.cover-series, .cover-author { position: relative; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cover-author { align-self: flex-end; }
.book-card-copy { padding-top: 26px; }
.status { color: var(--storm-dark); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.book-card h3 { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(1.9rem, 2.8vw, 2.85rem); font-weight: 500; line-height: .95; }
.book-card h3 a:hover { color: var(--oxblood); }
.book-card p { margin: 0 0 20px; color: #5d514c; font-size: .98rem; }
.book-card .text-link { font-size: .74rem; }
.compact .book-cover strong { font-size: clamp(2.3rem, 3vw, 3.8rem); }

.series-teaser {
  position: relative;
  min-height: 640px;
  padding: clamp(90px, 9vw, 150px) max(42px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: .45fr 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  overflow: hidden;
  background: var(--storm-dark);
  color: var(--ivory);
}
.series-teaser::after { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; bottom: -320px; border: 1px solid rgba(245,240,231,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(245,240,231,.025), 0 0 0 160px rgba(245,240,231,.02); }
.series-teaser .eyebrow { color: #d9e1e5; }
.series-teaser > div:nth-child(2) > p:not(.eyebrow) { max-width: 560px; color: #d8d2cb; }
.series-teaser .button { margin-top: 28px; }
.series-number { color: rgba(245,240,231,.22); font-family: var(--font-display); font-size: 10rem; line-height: .72; }
.series-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(245,240,231,.26); }
.series-list li { padding: 19px 0; display: flex; gap: 22px; border-bottom: 1px solid rgba(245,240,231,.26); font-family: var(--font-display); font-size: 1.6rem; }
.series-list span { color: #b8c8d0; font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; }

.newsletter-callout { max-width: 920px; margin: 0 auto; padding: 140px 32px; text-align: center; }
.newsletter-callout .eyebrow { justify-content: center; }
.newsletter-callout h2 { margin-bottom: 36px; }

.page-hero {
  width: min(100% - 64px, 1320px);
  margin: 0 auto;
  padding: 130px 0 100px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { max-width: 1050px; font-size: clamp(4.5rem, 9vw, 9rem); }
.page-intro { max-width: 720px; margin: 34px 0 0 auto; padding-left: 32px; border-left: 2px solid var(--oxblood); font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.8rem); }

.series-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.series-step { position: relative; }
.step-number { display: block; margin-bottom: 16px; color: var(--oxblood); font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.path-line { position: absolute; top: 12px; left: 50px; right: -20px; height: 1px; background: var(--rule); }
.reading-order, .work-in-progress { padding: 110px max(32px, calc((100vw - 900px) / 2)); background: var(--paper); text-align: center; border-block: 1px solid var(--rule); }
.reading-order > p:not(.eyebrow), .work-in-progress > p:not(.eyebrow) { max-width: 680px; margin: 26px auto 34px; }
.work-in-progress blockquote { max-width: 900px; margin: 42px auto 30px; color: var(--storm-dark); font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 3.15rem); font-style: italic; line-height: 1.08; }
.coming-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 70px 32px; }

.about-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; align-items: start; }
.author-monogram {
  position: sticky;
  top: 32px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--rule);
  background: linear-gradient(145deg, var(--storm), var(--storm-dark));
  color: var(--ivory);
}
.author-monogram::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(245,240,231,.35); }
.author-monogram span { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 10rem); font-style: italic; letter-spacing: -.08em; }
.author-monogram small { z-index: 1; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.prose { max-width: 700px; }
.prose p { color: #514641; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.55; }
.prose .lead { margin-top: 0; color: var(--espresso); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.12; }
.prose-actions, .detail-actions { display: flex; align-items: center; gap: 38px; margin-top: 42px; }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.contact-stack { display: grid; gap: 32px; }
.contact-card { padding: clamp(32px, 5vw, 64px); border: 1px solid var(--rule); background: var(--paper); }
.primary-contact { min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--storm-dark); color: var(--ivory); }
.primary-contact .eyebrow { color: #c3d0d6; }
.primary-contact p:not(.eyebrow) { max-width: 530px; color: #e4ded7; }
.primary-contact .button { align-self: flex-start; margin-top: 24px; }
.contact-card h3 { margin: 0; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; }

.book-detail { min-height: calc(100svh - 95px); display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: clamp(60px, 9vw, 140px); align-items: center; }
.detail-cover { width: 100%; cursor: default; }
.detail-cover:hover { transform: none; }
.book-detail-copy { max-width: 720px; }
.book-detail h1 { font-size: clamp(5rem, 9vw, 9.5rem); }
.book-kicker { margin: 30px 0 18px; color: var(--oxblood); font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.6rem); font-style: italic; }
.book-detail-copy > p:not(.eyebrow):not(.book-kicker) { max-width: 630px; color: #5d514c; font-size: 1.05rem; }

.site-footer {
  padding: 64px max(32px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  border-top: 1px solid var(--rule);
  background: var(--ivory-deep);
}
.site-footer p { max-width: 490px; margin: 16px 0 0; color: #675b55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; align-items: start; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--oxblood); }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--rule); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 5px; }

@keyframes copy-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1100px) {
  .catalog-grid, .coming-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 34px; }
  .path-line { display: none; }
  .hero-image { left: 61%; }
  .hero-copy { width: 64%; }
  .series-teaser { grid-template-columns: .25fr 1fr; }
  .series-list { grid-column: 2; }
}

@media (max-width: 820px) {
  .header-inner { width: min(100% - 36px, 760px); height: 78px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { cursor: pointer; list-style: none; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: 42px; right: 0; min-width: 220px; padding: 16px; display: grid; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 40px rgba(36,26,23,.15); }
  .mobile-nav a { padding: 10px 8px; }
  .hero { min-height: auto; display: grid; }
  .hero-image { position: relative; inset: auto; order: 2; aspect-ratio: 4 / 4.4; background-position: center 30%; }
  .hero-scrim { display: none; }
  .hero-copy { width: 100%; min-height: auto; padding: 76px 26px 54px; }
  .hero h1 { font-size: clamp(4rem, 16vw, 7rem); }
  .hero-actions { flex-wrap: wrap; gap: 28px; margin-bottom: 42px; }
  .section, .page-hero { width: min(100% - 36px, 760px); padding: 82px 0; }
  .book-grid, .catalog-grid, .coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .book-card:last-child { grid-column: 1 / -1; width: calc(50% - 19px); }
  .series-teaser { padding: 86px 26px; grid-template-columns: 1fr; gap: 36px; }
  .series-number { font-size: 7rem; }
  .series-list { grid-column: 1; }
  .about-layout, .contact-layout, .book-detail { grid-template-columns: 1fr; }
  .author-monogram { position: relative; top: 0; width: min(100%, 500px); }
  .book-detail { padding-top: 70px; }
  .detail-cover { width: min(100%, 460px); margin: 0 auto; }
  .page-intro { margin-left: 0; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .wordmark { font-size: 1.55rem; }
  .book-grid, .catalog-grid, .coming-grid, .series-path { grid-template-columns: 1fr; }
  .featured-grid .book-card:last-child { grid-column: auto; width: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .hero h1, .page-hero h1, .book-detail h1 { font-size: clamp(3.75rem, 20vw, 5.4rem); }
  .hero-actions, .prose-actions, .detail-actions { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .series-number { font-size: 5.5rem; }
  .newsletter-callout { padding: 92px 22px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 12px; }
}

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