@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #1C1C1A;
  --muted: #55554E;
  --paper: #F7F4EC;
  --ground: #B8CFB0;
  --accent: #3D5A40;
  --rule: rgba(28, 28, 26, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.narrow { max-width: 720px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.ground { background: var(--ground); }

.eyebrow { margin: 0 0 16px; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.site-header .brand { font-size: 22px; letter-spacing: 0.02em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current="page"] { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 28px; border: 1px solid var(--ink); font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.link-italic { font-size: 19px; font-style: italic; }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; align-items: center; }
.split > .text { flex: 1 1 420px; min-width: 0; }

h1, h2 { font-weight: 400; }
h2.section { margin: 0 0 24px; font-size: 40px; }
p.body { margin: 0 0 20px; font-size: 21px; line-height: 1.65; }
p.body-sm { margin: 0 0 18px; font-size: 20px; line-height: 1.6; }
.meta { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Home hero */
.hero { align-items: flex-end; gap: 24px 64px; }
.hero .text { padding: 120px 0 128px; }
.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 84px); line-height: 1.02; }
.hero .subtitle { margin: 20px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-style: italic; line-height: 1.35; max-width: 30ch; }
.hero .lead { margin: 40px 0 0; font-size: 21px; line-height: 1.55; max-width: 34ch; }
.hero .actions { margin-top: 44px; }
.hero .art { flex: 0 1 380px; display: flex; justify-content: center; align-self: flex-end; }
.hero .art img { width: 100%; max-width: 380px; margin-bottom: -2px; }

.appeal { max-width: 760px; margin: 0 auto; padding: 120px 32px; text-align: center; }
.appeal .eyebrow { margin-bottom: 28px; }
.appeal blockquote { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.5; font-style: italic; }
.appeal .dash { width: 48px; height: 1px; background: var(--ink); margin: 40px auto 0; }

.teaser { padding-top: 112px; padding-bottom: 112px; gap: 56px 80px; }
.cover { box-shadow: 0 18px 40px rgba(28, 28, 26, 0.18); }
.teaser .cover { flex: 0 1 300px; width: 300px; }
.teaser .portrait { flex: 0 1 380px; width: 380px; }
.border-top { border-top: 1px solid var(--rule); }

/* Book page */
.book-hero { padding-top: 96px; padding-bottom: 96px; gap: 56px 88px; }
.book-hero .cover { flex: 0 1 340px; width: 340px; box-shadow: 0 22px 48px rgba(28, 28, 26, 0.22); }
.book-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; }
.book-hero .subtitle { margin: 18px 0 0; font-size: 26px; font-style: italic; line-height: 1.35; }
.book-hero .author { margin: 28px 0 0; font-size: 20px; }
.book-hero .actions { margin-top: 40px; }

.about { padding-top: 112px; padding-bottom: 40px; }
.about h2 { margin: 0 0 28px; font-size: 40px; }
.excerpt { padding-top: 72px; padding-bottom: 112px; }
.excerpt .eyebrow { margin-bottom: 32px; }
.excerpt p + p { text-indent: 1.4em; }
.dropcap::first-letter { float: left; font-size: 92px; line-height: 0.82; padding: 6px 10px 0 0; }

.order { display: flex; flex-wrap: wrap; gap: 48px 96px; padding-top: 96px; padding-bottom: 96px; }
.order > div { flex: 1 1 360px; min-width: 0; }
.order h2 { margin: 0 0 28px; font-size: 40px; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 24px; font-size: 19px; line-height: 1.5; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.order-box { background: var(--ground); padding: 40px; align-self: flex-start; }
.order-box h2 { margin: 0 0 16px; font-size: 32px; }
.order-box .price { margin: 0 0 8px; font-size: 34px; }
.order-box p.note { margin: 0 0 24px; font-size: 19px; line-height: 1.6; }

/* Author page */
.author-page { padding-top: 80px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 56px 96px; align-items: flex-start; }
.author-page .portrait { flex: 0 1 440px; width: 440px; }
.author-page .text { flex: 1 1 440px; min-width: 0; }
.author-page h1 { margin: 0 0 36px; font-size: clamp(44px, 6vw, 68px); line-height: 1.05; }
.author-page blockquote { margin: 20px 0 40px; padding: 0; font-size: 26px; font-style: italic; line-height: 1.45; }
.author-page a.more { font-size: 19px; }

/* Works page */
.works { max-width: 880px; margin: 0 auto; padding: 80px 32px 112px; }
.works h1 { margin: 0 0 56px; font-size: clamp(44px, 6vw, 68px); line-height: 1.05; }
.work { padding: 36px 0; border-top: 1px solid rgba(28, 28, 26, 0.2); }
.work:last-child { border-bottom: 1px solid rgba(28, 28, 26, 0.2); }
.work.with-cover { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.work.with-cover img { flex: 0 0 120px; width: 120px; }
.work.with-cover > div { flex: 1 1 360px; min-width: 0; }
.work h2 { margin: 0 0 10px; font-size: 30px; }
.work h2 a { text-decoration: none; }
.work .sub { margin: 0 0 14px; font-size: 19px; font-style: italic; }
.work p { margin: 0; font-size: 19px; line-height: 1.6; }

/* Legal pages */
.legal { padding-top: 80px; padding-bottom: 112px; }
.legal h1 { margin: 0 0 40px; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.legal h2 { margin: 40px 0 12px; font-size: 26px; }
.legal p { margin: 0 0 14px; font-size: 19px; line-height: 1.6; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; padding-top: 72px; padding-bottom: 56px; font-size: 17px; line-height: 1.6; }
.site-footer.border-top { border-top: 1px solid var(--rule); }
.site-footer p { margin: 0; }
.site-footer .eyebrow { margin: 0 0 6px; }
.site-footer .legal-links { display: flex; gap: 28px; align-items: flex-end; }

@media (max-width: 600px) {
  .wrap, .narrow, .works, .appeal { padding-left: 16px; padding-right: 16px; }
  .hero .text { padding: 64px 0 24px; }
  .appeal, .teaser { padding-top: 72px; padding-bottom: 72px; }
  .book-hero, .order { padding-top: 56px; padding-bottom: 56px; }
  .about { padding-top: 64px; }
  .excerpt { padding-bottom: 64px; }
  .order-box { padding: 28px 20px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}
.work:not(.with-cover) h2 { margin: 0; }
