:root {
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #3d4a59;
  --line: #e3ddd2;
  --navy: #16325c;
  --navy-deep: #102544;
  --red: #8e1e24;
  --red-deep: #72181d;
  --green: #146c43;
  --green-soft: #e7f4ec;
  --blue-soft: #e8eef6;
  --focus: #146c43;
  --shadow: 0 18px 40px rgba(22, 50, 92, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(#16325c, #16325c) 0 0 / 100% 4px no-repeat,
    linear-gradient(#8e1e24, #8e1e24) 0 4px / 100% 3px no-repeat,
    linear-gradient(#146c43, #146c43) 0 7px / 100% 3px no-repeat,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 5;
}
.skip:focus { top: 0.8rem; color: white; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  max-width: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-text { display: block; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  display: block;
}
.brand-rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  background: var(--red);
  margin: 0.35rem 0 0.4rem;
}
.brand-meta { color: var(--green); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.lang-switch { margin: 0; font-size: 0.85rem; letter-spacing: 0.04em; }
.lang-switch a[aria-current="true"] { font-weight: 700; text-decoration: none; }
.nav a { text-decoration: none; font-size: 0.95rem; }
.nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-underline-offset: 0.25rem; }
main { padding-bottom: 3rem; }
.hero { padding: 3.2rem 0 1.4rem; max-width: 46rem; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.step strong { display: block; color: var(--navy); }
.step span { color: var(--muted); font-size: 0.95rem; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-bottom: 1rem;
}
.book-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}
.book-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.book-card img { width: 100%; background: white; border-bottom: 1px solid var(--line); }
.book-card-body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.book-card h2 { font-size: 1.45rem; margin: 0; }
.book-card p { margin: 0; color: var(--muted); flex: 1; }
.button, button {
  appearance: none;
  border: 0;
  background: var(--red);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--red-deep); color: white; }
button:disabled, .button[aria-disabled="true"] { background: #8d97a3; cursor: not-allowed; }
.book-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 2rem;
  padding-top: 2rem;
  align-items: start;
}
.cover-panel img { width: 100%; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.why { color: var(--muted); }
.author-page h1 { margin-bottom: 1rem; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.company-card { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.company-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88px;
  margin: 0 0 0.85rem;
  object-fit: contain;
  object-position: left center;
}
.company-card h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.company-card p { margin: 0.4rem 0; }
.kicker { color: var(--navy); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.4rem; }
.book-copy h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.finds { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem; }
.finds li { padding-left: 1rem; position: relative; }
.finds li::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--green); position: absolute; left: 0; top: 0.55rem; }
.note, .banner, .form-card, .thanks {
  border: 1px solid var(--line);
  background: var(--card);
}
.note { padding: 0.9rem 1rem; background: var(--blue-soft); color: var(--navy-deep); }
.banner { padding: 1rem 1.1rem; margin: 1rem 0; }
.banner.closed { background: #f8ecec; border-color: #e4c4c6; }
.banner.ready { background: var(--green-soft); border-color: #b7dfc8; }
.banner ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.form-card, .thanks { padding: 1.2rem; margin-top: 1.2rem; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field { margin-bottom: 0.9rem; }
input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9c2b6;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}
.help, .error { display: block; margin-top: 0.3rem; font-size: 0.92rem; }
.help { color: var(--muted); font-weight: 500; }
.error { color: var(--red); font-weight: 700; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.8rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; min-height: 0; }
.check label { font-weight: 500; }
.alert { border: 1px solid #e4c4c6; background: #f8ecec; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.alert ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer {
  background: #fff;
  color: var(--ink);
  border-top: 3px solid var(--navy);
  box-shadow: inset 0 3px 0 var(--red);
  padding: 0.85rem 0 0.7rem;
}
.footer-band {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(16rem, 1.5fr) minmax(11rem, 0.8fr);
  gap: 0.65rem 1.25rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--navy); min-width: 0; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; }
.footer-brand span span { display: block; color: var(--navy); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-mark { width: 32px; height: auto; max-width: 32px; max-height: 32px; object-fit: contain; flex: 0 0 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.85rem; }
.footer-nav a { color: var(--navy); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--red); }
.footer-meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.7rem; font-size: 0.78rem; color: var(--muted); }
.footer-meta a { color: var(--red); font-weight: 700; text-decoration: none; }
.footer-note { margin: 0.45rem auto 0; font-size: 0.75rem; color: var(--muted); }
.footer-cbc { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; width: min(var(--max), calc(100% - 2rem)); margin: 0.45rem auto 0; font-size: 0.78rem; }
.footer-cbc img { height: 28px; width: auto; }
.tiny { font-size: 0.92rem; max-width: 46rem; }
.thanks h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.download {
  background: var(--navy);
}
.download:hover { background: var(--navy-deep); color: white; }
.legal-gap { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.legal-gap li { margin: 0.25rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 900px) {
  .book-grid, .steps, .book-layout, .finds, .company-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: start; }
  .footer-band { grid-template-columns: 1fr; }
  .footer-meta { justify-content: flex-start; }
  .brand-mark { width: 48px; height: 48px; max-width: 48px; }
  .hero { padding-top: 2rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .book-card:hover, .book-card:focus-within { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(22, 50, 92, 0.12); }
  .cover-panel img { transition: transform 0.45s ease; }
  .cover-panel:hover img, .cover-panel:focus-within img { transform: scale(1.015); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.5s ease both; }
  .company-grid .reveal:nth-child(2) { animation-delay: 0.06s; }
  .company-grid .reveal:nth-child(3) { animation-delay: 0.12s; }
  .company-grid .reveal:nth-child(4) { animation-delay: 0.18s; }
  .book-copy > * { animation: rise 0.45s ease both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .book-card, .cover-panel img, .book-copy > * {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
