:root {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bone: #f3efe5;
  --paper: #fbf8f1;
  --ink: #161714;
  --soft-ink: #55564f;
  --copper: #a9532b;
  --sage: #5a685b;
  --line: rgba(22, 23, 20, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bone); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: .75rem; left: .75rem; transform: translateY(-150%); z-index: 200; background: var(--ink); color: #fff; padding: .75rem 1rem; transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 96px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(243, 239, 229, .9); backdrop-filter: blur(16px); position: relative; z-index: 20; }
.site-logo { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; }
.site-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-logo--footer { width: 86px; height: 86px; }
.site-header nav { display: flex; align-items: center; gap: clamp(1.3rem, 3vw, 3.5rem); }
.site-header nav a { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; position: relative; }
.site-header nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -.4rem; border-bottom: 1px solid currentColor; transition: right 220ms ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a.is-active::after { right: 0; }
.nav-cta { border: 1px solid var(--ink); padding: .72rem .9rem; transition: 180ms ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--bone); background: var(--ink); }

.eyebrow { margin: 0 0 1.6rem; color: var(--copper); font-size: .7rem; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
h1, h2, blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; line-height: .94; }
h1 { max-width: 12ch; font-size: clamp(4.4rem, 7.8vw, 8.8rem); }
h1 em, h2 em { color: var(--copper); font-weight: 400; }
.hero-intro { max-width: 620px; margin: 2.2rem 0 0; color: var(--soft-ink); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.75; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.button { min-height: 54px; padding: .95rem 1.2rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--ink { color: var(--bone); background: var(--ink); }
.button--ink:hover, .button--ink:focus-visible { background: var(--copper); }
.button--light { color: var(--ink); background: var(--bone); }
.button--outline { border: 1px solid currentColor; }
.text-link, .closing-link { width: fit-content; border-bottom: 1px solid currentColor; padding: .35rem 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.writing-hero { min-height: calc(100svh - 96px); display: grid; grid-template-columns: 1.03fr .97fr; overflow: hidden; }
.writing-hero__copy { padding: clamp(5rem, 9vw, 9.5rem) 4.5vw 4rem; display: flex; flex-direction: column; justify-content: center; }
.book-stack { min-height: 650px; position: relative; background: var(--sage); isolation: isolate; overflow: hidden; }
.book-stack__halo { position: absolute; inset: 11% 12% auto auto; width: 68%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; }
.stacked-book { position: absolute; width: min(35%, 280px); aspect-ratio: .66; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; transition: transform 300ms ease; background: #ddd; }
.stacked-book img, .book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.stacked-book--1 { left: 13%; top: 15%; transform: rotate(-8deg); z-index: 1; }
.stacked-book--2 { left: 35%; top: 19%; transform: rotate(5deg); z-index: 2; }
.stacked-book--3 { left: 28%; top: 30%; transform: rotate(-1deg); z-index: 3; }
.stacked-book:hover, .stacked-book:focus-visible { transform: rotate(0) translateY(-12px); z-index: 5; outline: 3px solid var(--bone); outline-offset: 5px; }
.book-stack__note { position: absolute; right: 4%; bottom: 7%; z-index: 6; width: 175px; margin: 0; padding: 1rem; background: var(--paper); box-shadow: 0 10px 40px rgba(0, 0, 0, .17); }
.book-stack__note span { display: block; color: var(--copper); font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; }
.book-stack__note strong { display: block; margin-top: .45rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.cover-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12% 8% 9%; color: #fff; background: linear-gradient(180deg, rgba(10, 10, 8, .04), rgba(10, 10, 8, .06) 56%, rgba(10, 10, 8, .72)); text-align: center; }
.cover-overlay strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 2rem); font-weight: 400; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .38); }
.cover-overlay small { margin-top: 1.3rem; font-size: .48rem; letter-spacing: .25em; text-transform: uppercase; }

.books-section { padding: clamp(6rem, 11vw, 11rem) 4.5vw; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6vw; align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2, .closing h2 { font-size: clamp(3.8rem, 7vw, 8rem); }
.section-heading > p { max-width: 500px; margin: 0 0 .5rem; color: #65665f; font-size: .95rem; line-height: 1.8; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.3vw, 2.6rem); align-items: start; }
.book-card { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.book-card__cover { display: block; width: 100%; aspect-ratio: .69; position: relative; overflow: hidden; background: #ddd; box-shadow: 0 22px 50px rgba(28, 27, 23, .15); }
.book-card__cover img { transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.book-card__cover:hover img { transform: scale(1.035); }
.book-card__copy { padding: 1.7rem .3rem 0; }
.book-number, .book-kind { color: var(--copper); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.book-card h3 { margin: .7rem 0 .45rem; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.book-card__copy > p:not(.book-kind) { min-height: 6em; margin: 1.1rem 0 1.3rem; color: var(--soft-ink); font-size: .92rem; line-height: 1.75; }

.author-section { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 760px; color: var(--paper); background: var(--ink); }
.author-portrait { min-height: 650px; overflow: hidden; }
.author-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.75) contrast(1.03); }
.author-copy { padding: clamp(5rem, 9vw, 10rem) 8vw; display: flex; flex-direction: column; justify-content: center; }
.author-copy h2 { max-width: 11ch; font-size: clamp(3.2rem, 6vw, 7rem); }
.author-lead { margin: 2.2rem 0 1rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.38; }
.author-copy > p:not(.eyebrow):not(.author-lead) { max-width: 610px; color: #c7c4ba; font-size: .95rem; line-height: 1.85; }
.author-copy .button { margin-top: 1.5rem; }
.review-feature { padding: clamp(6rem, 11vw, 11rem) max(6vw, calc((100vw - 1200px) / 2)); text-align: center; }
.review-feature blockquote { max-width: 1050px; margin: 0 auto 2.2rem; font-size: clamp(3rem, 6.2vw, 7.3rem); }
.review-feature .text-link { display: inline-block; }

/* Book detail pages */
.detail-hero { min-height: calc(100svh - 96px); display: grid; grid-template-columns: 1.04fr .96fr; }
.detail-hero__copy { padding: clamp(5rem, 8vw, 9rem) 4.5vw 4rem; display: flex; flex-direction: column; justify-content: center; }
.detail-hero__copy h1 { max-width: 10ch; font-size: clamp(4rem, 7vw, 8rem); }
.detail-hero__copy .book-kind { margin-top: 1rem; }
.detail-hero__visual { min-height: 690px; display: grid; place-items: center; padding: clamp(3rem, 7vw, 7rem); position: relative; overflow: hidden; background: var(--detail-color, var(--sage)); }
.detail-hero__visual::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; }
.detail-cover { width: min(68%, 430px); aspect-ratio: .67; position: relative; z-index: 1; box-shadow: 0 38px 75px rgba(0, 0, 0, .35); overflow: hidden; background: #ddd; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-overlay strong { font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
.detail-meta { margin: 3rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 600px; }
.detail-meta dt { margin-bottom: .35rem; color: #76776f; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.detail-meta dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.detail-nav { padding: 1.2rem 4.5vw; display: flex; justify-content: space-between; gap: 2rem; border-block: 1px solid var(--line); background: var(--paper); }
.detail-nav a { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.detail-intro { padding: clamp(6rem, 10vw, 10rem) 4.5vw; display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; background: var(--paper); }
.detail-intro h2, .themes-section h2, .reviews-section h2, .press-section h2 { font-size: clamp(3.4rem, 6.5vw, 7.5rem); }
.prose { max-width: 760px; }
.prose .lead { margin-top: 0; font-family: var(--font-display); font-size: clamp(1.55rem, 2.4vw, 2.5rem); line-height: 1.35; }
.prose p:not(.lead) { color: var(--soft-ink); font-size: 1rem; line-height: 1.9; }
.prose .button { margin-top: 1.2rem; }
.themes-section { padding: clamp(6rem, 10vw, 10rem) 4.5vw; color: var(--paper); background: var(--ink); }
.themes-section .eyebrow { color: #d79a7c; }
.themes-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .22); }
.theme-item { min-height: 230px; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.theme-item:nth-child(3n+2), .theme-item:nth-child(3n+3) { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .22); }
.theme-item span { color: #d79a7c; font-size: .6rem; letter-spacing: .14em; }
.theme-item h3 { margin: 2.5rem 0 .8rem; font-family: var(--font-display); font-size: clamp(1.7rem, 2.5vw, 2.7rem); font-weight: 400; }
.theme-item p { margin: 0; color: #b6b5ae; font-size: .88rem; line-height: 1.7; }
.reviews-section { padding: clamp(6rem, 10vw, 10rem) 4.5vw; background: var(--bone); }
.reviews-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.review-card { min-height: 370px; padding: clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--paper); }
.review-card blockquote { font-size: clamp(2rem, 3.5vw, 4rem); line-height: 1.02; }
.review-card h3 { margin: 1rem 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.review-card--note p:not(.book-number) { max-width: 520px; color: var(--soft-ink); font-size: 1rem; line-height: 1.8; }
.review-card cite { margin-top: 3rem; font-style: normal; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.review-card cite a { border-bottom: 1px solid currentColor; }
.press-section { padding: clamp(6rem, 10vw, 10rem) 4.5vw; display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: end; color: var(--paper); background: var(--sage); }
.press-section p:not(.eyebrow) { max-width: 540px; color: rgba(251, 248, 241, .76); line-height: 1.8; }
.press-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.press-section .button--light { background: var(--paper); }

.closing { padding: clamp(6rem, 11vw, 11rem) 4.5vw; color: var(--paper); background: var(--copper); text-align: center; }
.closing .eyebrow { color: var(--bone); }
.closing h2 { margin: 0 auto; }
.closing h2 em { color: var(--ink); }
.closing p:not(.eyebrow) { max-width: 560px; margin: 2rem auto; color: rgba(251, 248, 241, .82); line-height: 1.8; }
.closing-link { display: inline-block; }
footer { min-height: 300px; padding: 4rem 4.5vw 2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 4vw; align-items: start; color: var(--paper); background: var(--ink); }
.footer-statement { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 1.7rem 0; }
.footer-statement > p { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 2rem); }
.footer-pages { display: flex; gap: 2rem; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.copyright { margin: 2.2rem 0 0; color: #888a82; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }

.reveal { opacity: 0; animation: rise 720ms cubic-bezier(.2, .75, .25, 1) forwards; }
.reveal--one { animation-delay: 80ms; }
.reveal--two { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .writing-hero, .detail-hero { grid-template-columns: 1fr; }
  .writing-hero__copy, .detail-hero__copy { min-height: 650px; }
  .book-stack { min-height: 690px; }
  .section-heading { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 5rem; }
  .book-card { display: grid; grid-template-columns: minmax(220px, .7fr) 1fr; gap: 2rem; }
  .book-card__copy { align-self: center; }
  .author-section { grid-template-columns: 1fr; }
  .detail-intro { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-item:nth-child(3n+2), .theme-item:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .theme-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .22); }
  .press-section { grid-template-columns: 1fr; align-items: start; }
  footer { grid-template-columns: auto 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 82px; padding: 0 1rem; }
  .site-logo { width: 60px; height: 60px; }
  .site-header nav { gap: 1rem; }
  .site-header nav a { font-size: .58rem; }
  .site-header nav a:first-child { display: none; }
  .nav-cta { padding: .6rem .7rem; }
  .writing-hero__copy, .detail-hero__copy { min-height: 620px; padding: 4.5rem 1.2rem; }
  h1, .detail-hero__copy h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .book-stack { min-height: 560px; }
  .stacked-book { width: 43%; }
  .stacked-book--1 { left: 7%; }
  .stacked-book--2 { left: 45%; }
  .stacked-book--3 { left: 28%; top: 31%; }
  .book-stack__note { right: 1rem; bottom: 1rem; }
  .books-section, .detail-intro, .themes-section, .reviews-section, .press-section { padding-inline: 1.2rem; }
  .section-heading h2, .closing h2, .detail-intro h2, .themes-section h2, .reviews-section h2, .press-section h2 { font-size: 3.4rem; }
  .book-card { display: block; }
  .book-card__copy > p:not(.book-kind) { min-height: 0; }
  .author-copy { padding: 5rem 1.2rem; }
  .review-feature { padding-inline: 1.2rem; }
  .review-feature blockquote { font-size: 2.8rem; }
  .detail-hero__visual { min-height: 600px; padding: 3rem 1.2rem; }
  .detail-cover { width: min(78%, 360px); }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-nav { padding-inline: 1.2rem; }
  .themes-grid, .reviews-grid { grid-template-columns: 1fr; }
  .theme-item, .theme-item:nth-child(even) { min-height: 190px; padding: 1.7rem 0; border-left: 0; }
  .review-card { min-height: 300px; }
  .closing { padding-inline: 1.2rem; }
  footer { min-height: 250px; padding-inline: 1.2rem; grid-template-columns: 1fr; }
  .footer-statement { display: block; }
  .footer-pages { margin-top: 1.4rem; }
}
