:root {
  --bg: #e3e2e0;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #d2d1ce;
  --accent: #c0202a;
  --accent-hover: #97161e;
  --dot: #9a9a98;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- Corner (bottom-left author label) -----------------------------------
   Mobile/tablet: absolute within .hero — scrolls away with the hero and
   never overlaps the info section below.
   Desktop (>=1024px): fixed — the info column is narrow + centred, so the
   pinned label stays clear of the text (Steidl-style layered scroll).      */
.corner {
  position: absolute;
  z-index: 20;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.corner--bl { bottom: 1.4rem; left: 1.5rem; }
.corner--bl p { margin: 0; }
.meta__author { color: var(--fg); }
@media (min-width: 1024px) {
  .corner { position: fixed; }
}

/* --- Hero: full-viewport book --------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.hero__stage {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center calc(50% + var(--py, 0px));
}

/* Side navigation arrows */
.navarrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 118, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 15;
}
.navarrow svg { width: 1.5rem; height: 1.5rem; }
.navarrow--prev { left: 1.2rem; }
.navarrow--next { right: 1.2rem; }
.navarrow:hover, .navarrow:focus-visible { background: rgba(80, 80, 78, 0.8); }

/* Centred hover actions: scroll-down + cart */
.hero__actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.25rem;
  z-index: 15;
}
.action {
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 118, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}
.action svg { width: 1.7rem; height: 1.7rem; }
.action:hover, .action:focus-visible { background: var(--accent); }

/* Reveal arrows + actions on hover (pointer devices only) */
@media (hover: hover) {
  .navarrow, .hero__actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  .hero:hover .navarrow,
  .hero:hover .hero__actions,
  .navarrow:focus-visible,
  .hero__actions:focus-within {
    opacity: 1;
    pointer-events: auto;
  }
}

.navarrow:focus-visible,
.action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav dots */
.dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  z-index: 15;
}
.dot {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot:hover { transform: scale(1.2); }
.dot[aria-current="true"] { background: var(--accent); }
.dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Info section (revealed on scroll) ----------------------------------- */
.info {
  background: #fff;
  padding: 5rem 1.5rem 5.5rem;
}
.info__inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.info__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
}
.info__quote p { margin: 0 0 1.1rem; }
.info__attr {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.info__specs {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}
.btn {
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: 0.95rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.info__buynote {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: #fff;
  padding: 0 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}
.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 640px) {
  .navarrow { width: 2.8rem; height: 2.8rem; }
  .navarrow--prev { left: 0.5rem; }
  .navarrow--next { right: 0.5rem; }
  .action { width: 3.4rem; height: 3.4rem; }
  .corner { font-size: 0.74rem; }
  .corner--bl { bottom: 3.2rem; left: 1rem; } /* sits above the dots row */
  .info { padding: 3.5rem 1.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* --- thanks.html --------------------------------------------------------- */
.thanks {
  max-width: 36rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.thanks__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}
.thanks__lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
}
.thanks__details { color: var(--muted); margin: 0 0 2.5rem; }
.thanks__back a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.thanks__back a:hover { border-color: var(--fg); }
