:root {
  color-scheme: light;
  --ink: #1e2822;
  --muted: #646b62;
  --paper: #f5f0e5;
  --paper-deep: #e9dfca;
  --forest: #243b30;
  --forest-dark: #18271f;
  --gold: #c69242;
  --rust: #9b513b;
  --line: rgba(36, 59, 48, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 20;
  padding: .7rem 1rem; transform: translateY(-160%);
  background: #fff; color: var(--ink); border-radius: .25rem;
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(36, 59, 48, .12);
  background: rgba(245, 240, 229, .94); backdrop-filter: blur(12px);
}
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; letter-spacing: .015em; }
.brand-mark {
  display: grid; width: 39px; aspect-ratio: 1; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--forest);
  font-family: var(--serif); font-size: 1.25rem;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav-links a, .mobile-menu a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav-links a:hover, .mobile-menu a:hover { color: var(--rust); }
.nav-links .nav-buy { color: var(--forest); font-weight: 700; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; list-style: none; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .9rem; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > div { position: absolute; right: 0; top: calc(100% + .6rem); display: grid; gap: .25rem; min-width: 180px; padding: .6rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); box-shadow: 0 12px 28px rgba(24, 39, 31, .14); }
.mobile-menu a { padding: .55rem .7rem; }
.eyebrow { color: var(--rust); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.hero {
  position: relative; overflow: hidden; min-height: 620px; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: center; gap: 3rem;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0 -12vw 0 38%; z-index: -1;
  background: radial-gradient(ellipse at 62% 48%, rgba(198, 146, 66, .25), transparent 56%),
    radial-gradient(ellipse at 84% 10%, rgba(155, 81, 59, .12), transparent 42%);
}
.hero-copy { max-width: 640px; animation: rise .8s both; }
.hero h1 { max-width: 12ch; margin: .7rem 0 1.15rem; font-size: clamp(3rem, 6.3vw, 5.8rem); line-height: .98; }
.hero-copy > p { max-width: 54ch; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--forest);
  border-radius: 2rem; background: var(--forest); color: #fff; text-decoration: none;
  font: 700 .94rem var(--sans); transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); background: var(--forest-dark); box-shadow: 0 9px 18px rgba(24, 39, 31, .17); }
.button--quiet { background: transparent; color: var(--forest); }
.button--quiet:hover { background: rgba(36, 59, 48, .07); color: var(--forest); box-shadow: none; }
.hero-art { min-height: 460px; display: grid; place-items: center; position: relative; animation: rise .9s .08s both; }
.hero-art::before { content: ""; position: absolute; width: min(31vw, 370px); aspect-ratio: 1; border: 1px solid rgba(155, 81, 59, .25); border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; width: min(25vw, 300px); aspect-ratio: 1; border: 1px solid rgba(198, 146, 66, .35); border-radius: 50%; transform: translate(10px, 8px); }
.book-image { position: relative; z-index: 1; width: min(64%, 310px); height: auto; max-height: 500px; object-fit: contain; border-radius: 4px; box-shadow: 22px 28px 45px rgba(32, 30, 19, .34); transform: rotate(2deg); transition: transform .35s; }
.hero-art:hover .book-image { transform: rotate(0) translateY(-5px); }
.book-caption { position: absolute; z-index: 2; right: 2%; bottom: 5%; max-width: 175px; padding: .8rem 1rem; background: var(--forest); color: #fff; box-shadow: 0 10px 25px rgba(24,39,31,.18); font-family: var(--serif); font-size: .95rem; }
.chapter-line { display: flex; align-items: center; gap: 1rem; color: var(--rust); font-family: var(--serif); font-size: 1.14rem; }
.chapter-line::before, .chapter-line::after { content: ""; height: 1px; flex: 1; background: rgba(155,81,59,.3); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--dark { background: var(--forest); color: #f8f3e8; }
.section--dark .eyebrow, .section--dark .story-lead { color: #e5bc74; }
.section--dark .muted { color: rgba(248,243,232,.72); }
.section--dark .button--quiet { border-color: rgba(248,243,232,.72); color: #f8f3e8; }
.section--dark .button--quiet:hover { background: rgba(248,243,232,.1); color: #fff; }
.section-heading { max-width: 700px; margin: 0 0 2rem; font-size: clamp(2.2rem, 4.2vw, 3.65rem); line-height: 1.08; }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.story-lead { color: var(--rust); font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; }
.story-copy { max-width: 64ch; color: var(--muted); font-size: 1.07rem; }
.story-copy p:first-child { margin-top: 0; }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: rgba(248,243,232,.2); border: 1px solid rgba(248,243,232,.2); }
.fact { padding: 1.3rem; background: var(--forest); }
.fact b { display: block; color: #e5bc74; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.fact span { color: rgba(248,243,232,.75); font-size: .88rem; }
.author-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.portrait-frame { position: relative; max-width: 380px; margin-inline: auto; }
.portrait-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); }
.portrait-frame img { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1.06; object-fit: cover; }
.author-copy { max-width: 650px; color: var(--muted); }
.signature { margin-top: 1.5rem; color: var(--rust); font-family: var(--serif); font-size: 1.65rem; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); background: var(--paper-deep); }
.closing-cta h2 { max-width: 15ch; margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.65rem); line-height: 1.1; }
.site-footer { padding: 2.3rem 0; background: var(--forest-dark); color: rgba(248,243,232,.8); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #f8f3e8; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-note { margin: .35rem 0 0; color: rgba(248,243,232,.62); font-size: .86rem; }
.breadcrumbs { padding-top: 1rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--rust); }
.breadcrumbs a { color: inherit; text-underline-offset: 3px; }
.excerpt-panel { max-width: 820px; }
.excerpt-text { color: rgba(248,243,232,.86); font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.8; }
.section--dark .notice { color: rgba(248,243,232,.68); }
.book-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.book-hero-art { padding: 2rem; background: radial-gradient(ellipse at 50% 45%, rgba(198,146,66,.22), transparent 65%); }
.book-hero-art img { width: min(78%, 360px); height: auto; max-height: 590px; margin: auto; object-fit: contain; border-radius: 4px; box-shadow: 16px 24px 40px rgba(32,30,19,.3); }
.book-hero h1 { max-width: 13ch; margin: .65rem 0 1rem; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; }
.book-title-subtitle { display: block; margin-top: .8rem; color: var(--rust); font: italic 400 .4em/1.3 var(--serif); letter-spacing: 0; }
.book-hero p { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.buy-panel { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); background: rgba(255,255,255,.32); }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.store-link { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: .45rem; background: #fffaf0; text-decoration: none; font-weight: 700; transition: border .2s, transform .2s, background .2s; }
.store-link:hover { transform: translateY(-2px); border-color: var(--gold); background: #fff; }
.store-link span:last-child { color: var(--rust); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.spec { padding: 1.1rem; border-top: 1px solid var(--gold); }
.spec span { display: block; color: var(--muted); font-size: .82rem; }
.section--dark .spec span { color: rgba(248,243,232,.72); }
.spec b { font-family: var(--serif); font-size: 1.08rem; font-weight: 400; }
.notice { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.text-link { color: var(--rust); font-weight: 700; text-underline-offset: 3px; }
.book-about a[href^="mailto:"] { overflow-wrap: anywhere; }
.book-about { max-width: 750px; margin-inline: auto; text-align: center; }
.book-about p { color: var(--muted); font-size: 1.08rem; }
.store-mark { display: inline-block; margin-left: .45rem; color: var(--rust); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 1.5rem, 620px); }
  .nav-row { min-height: 66px; }
  .brand { font-size: .88rem; }
  .brand-mark { width: 34px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 1.3rem; padding-block: 3.5rem 4rem; }
  .hero h1 { max-width: 11ch; font-size: clamp(3rem, 14vw, 5rem); }
  .hero-art { min-height: 370px; }
  .hero-art::before { width: min(70vw, 330px); }
  .hero-art::after { width: min(57vw, 270px); }
  .book-image { width: min(59%, 260px); max-height: 390px; }
  .book-caption { right: 0; bottom: 2%; }
  .story-grid, .author-grid, .book-hero { grid-template-columns: 1fr; }
  .story-grid { gap: 1rem; }
  .story-lead { margin-bottom: .2rem; }
  .author-grid { gap: 2.5rem; }
  .portrait-frame { width: min(78%, 330px); }
  .closing-cta, .footer-row { align-items: flex-start; flex-direction: column; }
  .fact-row { grid-template-columns: 1fr; }
  .fact { padding: .95rem 1.1rem; }
  .book-hero { gap: 1rem; }
  .book-hero-art { padding: 1.2rem; }
  .book-hero-art img { width: min(67%, 300px); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .store-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; }
  .footer-links, .footer-social { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
