:root {
  color-scheme: light;
  --navy: #173A56;
  --gold: #E9B44C;
  --cream: #FBF5E8;
  --ink: #1F2328;
  --rule: #c9bda5;
  --paper: #fffcf5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.site-header {
  border-top: 7px solid var(--navy);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: inset 0 3px var(--gold);
  padding: 1.5rem 0;
}
.header-inner, main, .footer-inner {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}
.header-inner a { display: inline-block; }
.site-header img { width: auto; height: 48px; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; margin: 1rem 0; }
h1, h2 {
  color: var(--navy);
  font-family: "Zilla Slab", Georgia, serif;
  line-height: 1.15;
}
h1 { margin: 0.5rem 0 1rem; font-size: clamp(2rem, 5vw, 3rem); overflow-wrap: break-word; }
h2 { font-size: 1.65rem; margin: 2rem 0 1rem; }
p { margin: 0 0 1.25rem; }
.book-layout { display: grid; gap: 2rem; align-items: start; padding: 1rem 0 3rem; }
.book-cover {
  width: min(100%, 360px);
  margin-inline: auto;
  border-radius: 3px;
  box-shadow: 2px 4px 8px rgb(31 35 40 / 16%);
}
.eyebrow { color: #A3352A; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.subtitle { font-size: 1.25rem; }
.buy-button, .coming-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-align: center;
}
.buy-button {
  color: var(--navy);
  background: var(--gold);
  border: 1px solid #b78831;
  border-radius: 2px;
  text-decoration: none;
}
.buy-button:hover { background: #dca538; text-decoration: underline; }
.purchase-note { margin-top: 0.75rem; }
.coming-label { border: 1px solid var(--rule); color: var(--navy); }
.details {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.details li + li { margin-top: 0.5rem; }
.related { border-top: 1px solid var(--rule); padding-bottom: 2rem; }
.related a { display: inline-flex; align-items: center; min-height: 48px; }
.site-footer {
  padding: 2rem 0;
  border-top: 3px double var(--navy);
  background: #efe6d4;
  color: var(--navy);
}
.site-footer img { width: 72px; height: 72px; margin-bottom: 1rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; }
.draft-notice { padding: 1rem; border: 2px solid var(--navy); background: var(--paper); }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: 1rem; background: var(--paper); z-index: 1; }
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 760px) {
  .site-header img { height: 64px; }
  .book-layout { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr); gap: 3rem; }
  .book-cover { margin: 0; }
}
