@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-600.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  --paper: #f3ecdf;
  --paper-2: #fffaf3;
  --ink: #1c1915;
  --ink-soft: #3c362f;
  --muted: #5c5348;
  --line: #e3d5c0;
  --coral: #e85d2c;
  --coral-deep: #b83b12;
  --teal: #0f766e;
  --gold: #c98912;
  --navy: #172033;
  --navy-2: #243049;
  --shadow: 4px 4px 0 var(--ink);
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(28, 25, 21, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 21, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--coral-deep);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.6rem 0.9rem;
  z-index: 20;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 236, 223, 0.94);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 72px;
  padding: 0.6rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo svg {
  width: 36px;
  height: 36px;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.15rem;
}

.nav a:hover {
  color: var(--coral-deep);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.2rem) 0 1.5rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.2rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 11ch;
}

.lede {
  font-size: 1.18rem;
  max-width: 38rem;
  margin: 1rem 0 0;
}

.promise {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  max-width: 38rem;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #b83b12;
  color: #fffaf3;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  color: #fffaf3;
}

.btn.secondary {
  background: var(--paper-2);
  color: var(--ink);
}

.btn.secondary:hover {
  color: var(--ink);
}

.btn.small {
  min-height: 44px;
  font-size: 0.95rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.fan {
  position: relative;
  min-height: 420px;
}

.fan img {
  position: absolute;
  width: 196px;
  height: 270px;
  object-fit: contain;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 6px;
}

.fan img:nth-child(1) {
  left: 0;
  top: 48px;
  transform: rotate(-8deg);
}

.fan img:nth-child(2) {
  left: 138px;
  top: 8px;
  transform: rotate(2deg);
  z-index: 2;
}

.fan img:nth-child(3) {
  left: 262px;
  top: 62px;
  transform: rotate(8deg);
}

.section {
  padding: clamp(2rem, 4vw, 3.4rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.section-lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.featured-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--coral);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card[data-audience="adults"] {
  border-left-color: var(--navy);
}

.cover-wrap {
  position: relative;
  aspect-ratio: 3 / 3.7;
  display: grid;
  place-items: center;
  padding: 0.85rem 0.85rem 0.2rem;
  background:
    linear-gradient(180deg, rgba(232, 93, 44, 0.08), transparent 40%),
    #efe6d6;
}

.card[data-audience="adults"] .cover-wrap {
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.12), transparent 42%),
    #e7dfd2;
}

.cover-wrap img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(28, 25, 21, 0.18));
}

.badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1.05rem;
  flex: 1;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.pill {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
}

.pill.kids {
  background: #ffe2d4;
}

.pill.adults {
  background: #d9e3f5;
}

.card h3 {
  font-size: 1.28rem;
  line-height: 1.15;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub {
  margin: 0;
  font-weight: 700;
  color: var(--ink-soft);
}

.blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  background: var(--paper);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.series,
.by {
  margin: 0;
  font-size: 0.9rem;
}

.series {
  color: var(--muted);
}

.by {
  font-weight: 700;
}

.cta {
  margin: 0.35rem 0 0;
}

.soon-line {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.filter-group p {
  margin: 0 0.25rem 0 0;
  font-weight: 700;
}

.chip {
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-2);
}

.count {
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.empty,
.error {
  margin: 0;
  padding: 1rem;
  border: 2px dashed var(--ink);
  border-radius: 14px;
  background: var(--paper-2);
}

.why {
  background: var(--navy);
  color: #f6f1e8;
  border-block: 2px solid var(--ink);
}

.why h2,
.why .section-lead {
  color: #f6f1e8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.step {
  background: var(--navy-2);
  border: 2px solid #f6f1e8;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 4px 4px 0 #0b101a;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: #efe6d8;
}

.guarantee {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f6f1e8;
  color: var(--ink);
  font-weight: 700;
}

.try-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.sheet {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.15rem 1.3rem;
  background-image: linear-gradient(to right, #f3b7b0 0 12px, transparent 12px);
  overflow-x: auto;
}

#featured-section,
#books,
#how,
#try,
#social {
  scroll-margin-top: 92px;
}

.nonogram {
  width: max-content;
  max-width: 100%;
  margin: 0.4rem auto 0.8rem;
  border-collapse: separate;
  border-spacing: 6px;
}

.nonogram th,
.nonogram td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.clue {
  min-width: 2.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.05;
  color: var(--ink);
}

.clue.col {
  vertical-align: bottom;
  padding-bottom: 0.2rem;
}

.cell {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.cell[data-state="1"] {
  background: var(--ink);
}

.cell[data-state="2"] {
  background:
    linear-gradient(135deg, transparent 46%, var(--muted) 46% 54%, transparent 54%),
    #fff;
}

.cell.wrong {
  outline: 3px solid var(--coral);
  outline-offset: 1px;
}

.puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.hint,
.pdf-note {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 0.3rem;
}

.swatch.fill {
  background: var(--ink);
}

.swatch.mark {
  background:
    linear-gradient(135deg, transparent 44%, var(--muted) 44% 56%, transparent 56%),
    #fff;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.social-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.social-card strong {
  font-family: var(--display);
  font-size: 1.45rem;
}

.social-card span {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  background: var(--ink);
  color: #f6f1e8;
  padding: 2rem 0 1.4rem;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 1.2rem;
}

.footer-brand {
  margin: 0 0 0.45rem;
  color: #f6f1e8;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.site-footer a {
  color: #f6c7b4;
}

.site-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.site-footer p,
.site-footer ul {
  margin: 0.2rem 0;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.disclaimer {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(246, 241, 232, 0.25);
  color: #e7dccb;
  font-size: 0.92rem;
}

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

@media (max-width: 980px) {
  .hero,
  .try-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .book-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .fan {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .fan img {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 0;
    padding: 0.4rem 0 0.45rem;
    gap: 0.25rem 0.75rem;
  }

  .nav {
    gap: 0.15rem 0.7rem;
    font-size: 0.95rem;
  }

  h1 {
    max-width: none;
  }

  .featured-grid,
  .book-grid,
  .steps,
  .social-row {
    grid-template-columns: 1fr;
  }

  .cell {
    width: 46px;
    height: 46px;
  }

  .nonogram {
    border-spacing: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .social-card:hover,
  .fan img {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero,
  #featured-section,
  #books,
  #how,
  #social,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .sheet {
    box-shadow: none;
    border: none;
    background: #fff;
  }

  .cell {
    box-shadow: none;
  }
}
