:root {
  --ink: #0a1624;
  --ink-2: #162a3e;
  --paper: #f4f7f8;
  --white: #ffffff;
  --orange: #ff6b2c;
  --blue: #2f7df4;
  --line: #d8e0e6;
  --muted: #5a6875;
  --manual: #ff6b2c;
  --puzzle: #7357e8;
  --children: #168f83;
  --lifestyle: #b06b11;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 24%, rgba(47,125,244,.28), transparent 24rem),
    radial-gradient(circle at 96% 68%, rgba(255,107,44,.2), transparent 26rem),
    linear-gradient(155deg, #07111d 0%, #142a3d 48%, #081522 100%);
  background-attachment: fixed;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: rgba(10, 22, 36, .96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: #f5e9cc;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
}
.brand small {
  margin-top: -.24rem;
  color: #8fa3b6;
  font: 600 .62rem Inter, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.amazon-header {
  color: #d9e8f8;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 5rem;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(0,0,0,.32);
}
.intro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.25rem;
  overflow: hidden;
  margin: 0 calc(clamp(1rem, 4vw, 2rem) * -1);
  padding: clamp(3.25rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem);
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(47,125,244,.38), transparent 30%),
    linear-gradient(135deg, #0a1624 0%, #102c45 100%);
}
.intro::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border: 52px solid rgba(255,107,44,.14);
  border-radius: 50%;
}
.intro-text { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 .8rem; color: #ff9b70; font-size: .78rem; font-weight: 700; letter-spacing: .18em; }
h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .86;
  text-transform: uppercase;
}
h1 span { color: var(--orange); }
.intro-copy { position: relative; z-index: 1; max-width: 650px; margin: 1.65rem 0 0; color: #cfdae4; font-size: clamp(1rem, 2.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-actions a {
  padding: .72rem .95rem;
  color: white;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-actions a + a { color: #e9f1f8; background: transparent; border-color: #668097; }
.hero-actions a:hover, .hero-actions a:focus-visible { color: var(--ink); background: white; border-color: white; outline: none; }
.hero-covers {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 1rem 2.5rem;
}
.hero-cover {
  position: relative;
  display: block;
  width: clamp(112px, 27vw, 165px);
  overflow: hidden;
  background: #1a2d3f;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 5px;
  box-shadow: 0 24px 45px rgba(0,0,0,.42);
  transition: transform .2s ease;
}
.hero-cover img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero-cover-bike { z-index: 3; transform: rotate(-5deg) translateX(22px); }
.hero-cover-boat { z-index: 4; transform: translateY(-12px); }
.hero-cover-adventure { z-index: 2; transform: rotate(6deg) translateX(-22px); }
.hero-cover:hover, .hero-cover:focus-visible { z-index: 5; transform: translateY(-20px) scale(1.04); outline: none; }

.filters {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  margin: 0 calc(clamp(1rem, 4vw, 2rem) * -1) 1.4rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--paper);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: .72rem 1rem;
  color: var(--ink-2);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 .9rem Inter, sans-serif;
  cursor: pointer;
}
.filter:hover, .filter:focus-visible { border-color: var(--ink); outline: none; }
.filter.active { color: white; background: var(--ink); border-color: var(--ink); }

.catalog { display: grid; grid-template-columns: 1fr; align-items: start; gap: 1rem; }
.book-card {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(10,22,36,.055);
}
.book-card[hidden] { display: none; }
.featured { border-top: 5px solid var(--orange); }
.cover-frame {
  display: grid;
  min-height: 250px;
  margin: -1.25rem -1.25rem 1.2rem;
  padding: 1.05rem;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent),
    #132638;
  border-radius: 13px 13px 0 0;
}
.featured .cover-frame { border-radius: 9px 9px 0 0; }
.cover-frame img {
  display: block;
  width: auto;
  max-width: 78%;
  height: 225px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 13px 25px rgba(0,0,0,.35);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .65rem;
  color: white;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.category.manuals { background: var(--manual); }
.category.puzzles { background: var(--puzzle); }
.category.children { background: var(--children); }
.category.lifestyle { background: var(--lifestyle); }
.price { color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.book-card h2 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.book-card p { margin: .8rem 0 1.4rem; color: var(--muted); font-size: .92rem; }
.buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  margin-top: auto;
  padding: .72rem .9rem;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.buy:hover, .buy:focus-visible { background: var(--blue); border-color: var(--blue); outline: none; transform: translateY(-1px); }
.format-links { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: auto; }
.format-option { display: grid; align-content: end; gap: .35rem; }
.format-label { color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }
.format-links .buy { margin: 0; justify-content: center; }
.buy.secondary { color: var(--ink); background: white; border-color: #aebbc5; }
.buy.secondary:hover, .buy.secondary:focus-visible { color: white; background: var(--blue); border-color: var(--blue); }
.availability { margin: auto 0 .45rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.buy.coming-soon { justify-content: center; color: #5c6872; background: #e8edf1; border-color: #d1dae1; cursor: not-allowed; }

footer {
  padding: 2.5rem 1rem;
  color: #aebdca;
  text-align: center;
  background: var(--ink);
}
.footer-brand { color: white; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; }
footer p { margin: .35rem auto; }
.disclaimer { max-width: 620px; color: #718293; font-size: .72rem; }

@media (min-width: 680px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-card { padding: 1.5rem; }
  .cover-frame { margin: -1.5rem -1.5rem 1.25rem; }
  .amazon-header { font-size: .9rem; }
}
@media (min-width: 1020px) {
  .intro { grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured { grid-column: span 1; }
  .filters { position: sticky; top: 72px; z-index: 8; }
}
@media (max-width: 430px) {
  .hero-covers { min-height: 210px; padding-inline: .35rem; }
  .hero-cover { width: 116px; }
  .hero-cover-bike { transform: rotate(-5deg) translateX(16px); }
  .hero-cover-adventure { transform: rotate(6deg) translateX(-16px); }
}
@media (max-width: 1180px) {
  body { background: var(--paper); }
  main { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy { transition: none; }
}
