:root {
  --navy: #12213B;
  --navy-deep: #0B1628;
  --ink: #1B2432;
  --steel: #5A6779;
  --line: #D6DBE3;
  --light: #F2F4F7;
  --white: #FFFFFF;
  --gold: #E0A23A;
  --gold-dark: #B8811F;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 680px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; margin: 0 0 .6em; color: inherit; letter-spacing: .005em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .35em; }
p { margin: 0 0 1.1em; }
p.lede { font-size: 1.2rem; }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--white); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #DCE3EE; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--gold); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 3rem; align-items: center; }
.hero img { width: 100%; box-shadow: 0 24px 40px rgba(0,0,0,.45); }
.hero h1 { font-size: clamp(3.6rem, 9vw, 7rem); margin: 0 0 .25em; }
.hero .sub { font-size: 1.3rem; color: #DCE3EE; max-width: 34ch; margin-bottom: 1.6rem; }
.hero .book-title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--gold); margin-bottom: .6rem; letter-spacing: .02em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem .9rem; align-items: center; }
.actions .note { flex-basis: 100%; color: #B7C2D2; font-size: .95rem; margin: .25rem 0 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; padding: .7rem 1.4rem; border-radius: 4px; text-decoration: none; border: 2px solid var(--gold); background: var(--gold); color: var(--ink); cursor: pointer; line-height: 1.1; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--gold); }
.light .btn-ghost { color: var(--navy); border-color: var(--navy); }
.light .btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-small { font-size: 1rem; padding: .45rem .9rem; }

/* Sections */
.section { padding: 3.75rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.dark { background: var(--navy-deep); color: #E6EBF2; border: 0; }
.section.dark h2 { color: var(--white); }
.section.dark a { color: var(--gold); }
.section.dark a.btn { color: var(--ink); }
.section.dark a.btn:hover { color: var(--white); }

/* Reader block */
.reader { font-size: 1.35rem; line-height: 1.45; font-weight: 400; max-width: 36ch; }

/* Chapters */
.chapters { columns: 3; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; counter-reset: ch; }
.chapters li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.chapters li::before { counter-increment: ch; content: counter(ch); font-family: var(--font-head); font-weight: 700; color: var(--steel); display: inline-block; width: 2.1rem; }

/* Formats */
.formats { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.formats li { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.formats .name { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; grid-column: 1; grid-row: 1; }
.formats .detail { color: var(--steel); grid-column: 1; grid-row: 2; margin: 0; }
.formats .price { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
.formats .price a { text-decoration: none; }
.formats .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--steel); }

/* Author */
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pull { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; line-height: 1.15; color: var(--navy); margin: 0; max-width: 24ch; }

/* Simple pages */
.page-head { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.contact-form { display: grid; gap: .9rem; max-width: 520px; }
.contact-form label { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: .25rem; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #A9B3C1; border-radius: 4px; background: var(--white); }
.contact-form textarea { min-height: 9rem; }

/* Footer */
.site-footer { background: var(--navy); color: #B7C2D2; padding: 2.25rem 0; font-size: .95rem; }
.site-footer a { color: #DCE3EE; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: .6rem 0 1rem; }
.foot-brand { color: var(--white); margin-bottom: .3rem; }
.foot-copy { margin: 0; font-size: .85rem; }

/* Cookie notice */
.cookie { position: fixed; left: 1rem; bottom: 1rem; max-width: 22rem; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.18); padding: .9rem 1rem; border-radius: 6px; z-index: 50; font-size: .95rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 .6rem; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie .btn-ghost { color: var(--navy); border-color: var(--navy); }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero img { max-width: 260px; }
  .chapters { columns: 2; }
  .author-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .chapters { columns: 1; }
  .brand { font-size: 1.05rem; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: 1rem; }
  .hero img { margin: 0 auto; }
  .btn { width: 100%; text-align: center; }
  .formats li { grid-template-columns: 1fr; }
  .formats .price { grid-column: 1; grid-row: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
