:root {
  --ink: #15122b;
  --paper: #fff9e9;
  --hot-pink: #f236b8;
  --sun: #ffd83d;
  --teal: #1fc7b6;
  --orange: #ff7b33;
  --blue: #476dff;
  --lime: #c7ff3d;
  --muted: #5d5870;
  --white: #fffefa;
  --shadow: 0 18px 45px rgba(21, 18, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 18, 43, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 18, 43, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Atkinson Hyperlegible", "Trebuchet MS", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12px 12px, rgba(21, 18, 43, 0.12) 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.18;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--ink);
  background: rgba(255, 249, 233, 0.88);
  border-bottom: 4px solid var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-height: 44px;
  color: var(--ink);
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span:last-child {
  color: var(--hot-pink);
  text-shadow: 2px 2px 0 var(--sun);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  min-height: 44px;
  min-width: 76px;
  padding: 10px 14px;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--sun);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.view {
  min-height: 72vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 74px) 42px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(31, 199, 182, 0.92) 0%, rgba(255, 216, 61, 0.86) 46%, rgba(242, 54, 184, 0.88) 100%);
  border-bottom: 4px solid var(--ink);
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kicker::before {
  width: 12px;
  height: 12px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(4.5rem, 13vw, 11.5rem);
  line-height: 0.83;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 var(--paper);
}

.hero h1 span {
  display: block;
  color: var(--hot-pink);
  text-shadow: 7px 7px 0 var(--ink);
}

.hero-deck {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--paper);
}

.button.secondary {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary:hover {
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-stage {
  min-height: 560px;
}

.cover-stack {
  position: relative;
  min-height: 540px;
}

.feature-cover {
  position: absolute;
  left: 10%;
  top: 44px;
  width: min(52vw, 360px);
  border: 5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 22px 24px 0 rgba(21, 18, 43, 0.24), var(--shadow);
  transform: rotate(-4deg);
}

.mini-cover {
  position: absolute;
  width: 158px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(21, 18, 43, 0.25);
}

.mini-cover.one {
  right: 2%;
  top: 20px;
  transform: rotate(9deg);
}

.mini-cover.two {
  right: 12%;
  bottom: 48px;
  transform: rotate(-11deg);
}

.mini-cover.three {
  left: 0;
  bottom: 30px;
  transform: rotate(8deg);
}

.splat {
  position: absolute;
  right: 1%;
  top: 220px;
  display: grid;
  place-items: center;
  width: 252px;
  min-height: 152px;
  padding: 22px 26px;
  color: var(--ink);
  background: var(--lime);
  border: 4px solid var(--ink);
  border-radius: 52% 48% 50% 50% / 46% 52% 48% 54%;
  box-shadow: 8px 8px 0 var(--orange);
  font-family: "Chewy", "Comic Sans MS", cursive;
  font-size: 1.58rem;
  line-height: 0.92;
  text-align: center;
  text-wrap: balance;
  transform: rotate(8deg);
}

.ticker {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 4px solid var(--ink);
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 18px;
  animation: crawl 26s linear infinite;
}

.ticker span {
  color: var(--sun);
}

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 74px);
}

.section.alt {
  background: var(--white);
  border-block: 4px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--hot-pink);
  font-weight: 700;
  text-transform: uppercase;
}

.section h2,
.book-detail h1,
.about-page h1 {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.book-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.book-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 14px 14px 0 var(--ink);
}

.book-card figure {
  margin: 0;
  background: var(--teal);
  border-bottom: 4px solid var(--ink);
}

.book-card img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
}

.book-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.book-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.tagline {
  margin: 0;
  line-height: 1.45;
}

.featured {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.featured img,
.book-detail-cover img,
.about-photo img {
  border: 5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 14px 16px 0 var(--hot-pink);
}

.featured-copy {
  display: grid;
  gap: 18px;
}

.featured-copy h2 {
  color: var(--ink);
}

.featured-copy p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.6;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quote-strip p {
  margin: 0;
  min-height: 118px;
  padding: 18px;
  background: var(--sun);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--ink);
  font-family: "Chewy", "Comic Sans MS", cursive;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.books-page,
.about-page,
.book-detail {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 74px) clamp(62px, 8vw, 104px);
}

.books-intro,
.about-intro,
.book-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(240px, 0.36fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  margin-bottom: 44px;
}

.books-intro p,
.about-copy p,
.synopsis p {
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

.chaos-note {
  display: grid;
  place-items: center;
  min-height: 235px;
  margin: 0;
  padding: 24px;
  color: var(--paper);
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--teal);
  font-family: "Chewy", "Comic Sans MS", cursive;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
  transform: rotate(2deg);
}

.chaos-note span {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  color: var(--sun);
  font-family: "Anton", Impact, sans-serif;
  font-size: 6.8rem;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--hot-pink);
}

.book-detail-hero {
  align-items: start;
}

.book-detail-cover {
  position: sticky;
  top: 104px;
}

.book-detail-cover img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-copy h1 {
  max-width: 980px;
}

.detail-copy .tagline {
  max-width: 760px;
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.synopsis {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin-top: 32px;
  padding: 28px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--orange);
}

.synopsis h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.synopsis p {
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo::after {
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 150px;
  padding: 13px;
  content: "Zero Brendans";
  color: var(--ink);
  background: var(--lime);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--ink);
  font-family: "Chewy", "Comic Sans MS", cursive;
  font-size: 1.7rem;
  line-height: 0.92;
  text-align: center;
  transform: rotate(-7deg);
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 74px);
  color: var(--paper);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  max-width: 720px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sun);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .featured,
  .books-intro,
  .about-intro,
  .book-detail-hero,
  .about-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 500px;
  }

  .book-grid,
  .quote-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-detail-cover {
    position: static;
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .hero-stage,
  .cover-stack {
    min-height: 430px;
  }

  .feature-cover {
    left: 4%;
    width: min(78vw, 320px);
  }

  .mini-cover {
    width: 124px;
  }

  .mini-cover.one {
    right: 0;
    top: 12px;
  }

  .mini-cover.two {
    right: 6%;
    bottom: 18px;
  }

  .mini-cover.three {
    left: 1%;
    bottom: 10px;
  }

  .splat {
    right: 0;
    top: 230px;
    width: 198px;
    min-height: 126px;
    padding: 18px 20px;
    font-size: 1.22rem;
  }

  .book-grid,
  .quote-strip {
    grid-template-columns: 1fr;
  }

  .quote-strip p {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 0;
    padding: 12px 14px;
  }

  .brand {
    font-size: clamp(1.45rem, 10vw, 2.15rem);
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    min-height: 44px;
    padding: 10px 6px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 34px 14px 28px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 19vw, 5.2rem);
    text-shadow: 4px 4px 0 var(--paper);
  }

  .hero h1 span {
    text-shadow: 4px 4px 0 var(--ink);
  }

  .hero-deck {
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stage,
  .cover-stack {
    min-height: 390px;
  }

  .feature-cover {
    left: 0;
    top: 32px;
    width: min(82vw, 285px);
    box-shadow: 14px 16px 0 rgba(21, 18, 43, 0.24), var(--shadow);
  }

  .mini-cover {
    width: 102px;
    border-width: 3px;
  }

  .mini-cover.one {
    right: 0;
    top: 8px;
  }

  .mini-cover.two {
    right: 2%;
    bottom: 22px;
  }

  .mini-cover.three {
    left: 2%;
    bottom: 10px;
  }

  .splat {
    right: 0;
    top: 204px;
    width: 168px;
    min-height: 110px;
    padding: 16px 18px;
    border-width: 3px;
    font-size: 1.02rem;
    box-shadow: 6px 6px 0 var(--orange);
  }

  .section,
  .books-page,
  .about-page,
  .book-detail {
    padding-right: 14px;
    padding-left: 14px;
  }

  .book-card {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .chaos-note {
    min-height: 155px;
    padding: 16px;
    box-shadow: 7px 7px 0 var(--teal);
  }

  .chaos-note span {
    font-size: clamp(4.2rem, 22vw, 5.7rem);
    text-shadow: 3px 3px 0 var(--hot-pink);
  }

  .synopsis {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
