/* My Puzzle Books — site styles */
:root {
  --paper: #FFFCF5;
  --band: #F5EDDF;
  --ink: #1F1A17;
  --ink-2: #4A423C;
  --muted: #6B6158;
  --line: #E8DECB;
  --line-2: #E3D8C5;
  --dash: #CDBFA8;
  --accent: #1E4E79;
  --accent-dark: #163B5C;
  --accent-tint: #E6EDF4;
  --cta: #F2B33D;
  --footer: #1F1A17;
  --footer-text: #E8DECB;
  --footer-muted: #B8AD9C;

  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Zilla Slab', Georgia, serif;
  --font-label: Oswald, 'Arial Narrow', sans-serif;
  --font-cover: 'Alfa Slab One', Georgia, serif;

  --wrap: 1200px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.kicker {
  font-family: var(--font-label);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.kicker.quiet { color: var(--muted); letter-spacing: 0.14em; }
.label { font-family: var(--font-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.07; }
h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
p { margin: 0; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 34em; }
.body-2 { color: var(--ink-2); max-width: 40em; }
.note { font-size: 15px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 4px;
  font-family: var(--font-label); font-size: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-cta { background: var(--cta); color: var(--ink); font-weight: 600; }
.btn-cta:hover { background: #E0A12C; color: var(--ink); }
.btn-small { min-height: 48px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-label); font-size: 22px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--font-label); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 4px; background: var(--accent); color: #fff; }
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand-name { font-size: 20px; }
  .site-nav { gap: 0 14px; font-size: 14px; letter-spacing: 0.04em; }
  .site-nav .nav-about { display: none; }
  .site-nav .nav-cta { padding: 0 12px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.fan { position: relative; width: 100%; max-width: 460px; height: clamp(300px, 34vw, 430px); }
.fan-item { position: absolute; width: clamp(150px, 16vw, 210px); }
.fan-item.left { left: 0; top: 12%; transform: rotate(-8deg); }
.fan-item.right { right: 0; top: 14%; transform: rotate(7deg); }
.fan-item.centre { left: 50%; top: 0; width: clamp(180px, 19vw, 250px); transform: translateX(-50%); z-index: 1; }

/* Feature strip */
.strip { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-family: var(--font-label); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.strip li { display: flex; align-items: center; gap: 10px; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.range { display: flex; flex-direction: column; gap: 28px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.range-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.range-intro { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Covers */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 24px; align-items: start; }
.books.bottom { align-items: end; }
@media (max-width: 420px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.book { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.book:hover { color: var(--ink); }
.book:hover .cover, .book:hover .cover-img { transform: translateY(-3px); }
.book-text { display: flex; flex-direction: column; gap: 2px; }
.book-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.book-sub { font-size: 14px; color: var(--muted); }
.book.travel .cover, .book.travel .cover-img { width: 74%; }

.cover, .cover-img {
  width: 100%; aspect-ratio: 210 / 297; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(31,26,23,0.12), 0 14px 28px -16px rgba(31,26,23,0.55);
  transition: transform 0.15s ease;
}
.cover-img { object-fit: cover; background: var(--band); }
.cover.travel, .cover-img.travel { aspect-ratio: 2 / 3; }
.cover { position: relative; overflow: hidden; background: var(--c, #1E4E79); color: #fff; container-type: inline-size; }
.cover-frame { position: absolute; inset: 6%; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 2px; }
.cover-body { position: absolute; inset: 11%; display: flex; flex-direction: column; justify-content: space-between; }
.cover-kicker { font-family: var(--font-label); font-size: 5.6cqw; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.cover-main { display: flex; flex-direction: column; gap: 3cqw; }
.cover-brand { font-family: var(--font-cover); font-size: 18cqw; line-height: 1; }
.cover-title { font-family: var(--font-label); font-size: 7.6cqw; font-weight: 600; line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase; }
.cover-author { font-family: var(--font-label); font-size: 4.8cqw; letter-spacing: 0.18em; text-transform: uppercase; }

.more-tile { aspect-ratio: 210 / 297; border: 2px dashed var(--dash); border-radius: 3px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; color: var(--ink-2); }

/* Gift tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.tile-title { font-family: var(--font-label); font-size: 19px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.tile-text { font-size: 15px; color: var(--ink-2); }

/* Signup */
.signup { background: var(--accent); color: #fff; }
.signup .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.signup-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.signup .kicker { color: #fff; }
.signup h2 { font-size: clamp(34px, 4.4vw, 54px); }
.signup .lede { color: #fff; font-size: 19px; max-width: 32em; }
.signup a { color: #fff; }
.signup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 4px; }
.signup-form label { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-label); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.signup-form input[type="email"] { min-height: 54px; padding: 0 16px; border: 0; border-radius: 4px; font: 18px var(--font-body); color: var(--ink); background: #fff; width: 100%; }
.signup-form .btn { min-height: 54px; }
.signup-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.signup-form .cf-turnstile { flex-basis: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { min-height: 1.5em; font-weight: 600; }
.form-message.error { color: #FFE2A8; }
.signup-small { font-size: 15px; }
.signup.compact .wrap { align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-top: 56px; padding-bottom: 56px; }
.signup.compact .signup-text { flex-basis: 420px; gap: 12px; }

.puzzle-card { margin: 0; width: 100%; max-width: 360px; padding: 22px; border-radius: 6px; background: #fff; color: var(--ink); transform: rotate(2deg); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55); display: flex; flex-direction: column; gap: 14px; }
.puzzle-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.puzzle-card .card-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.1; }
.ws-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.ws-grid span { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-family: var(--font-label); font-size: 18px; }
.ws-grid .hit { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.ws-words { font-family: var(--font-label); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 40px; }
.about-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-side { flex: 1 1 320px; min-width: 0; align-self: flex-start; padding: 26px; border-radius: var(--radius); background: var(--band); display: flex; flex-direction: column; gap: 12px; }
.about-side h3 { font-family: var(--font-label); font-size: 20px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Gift page */
.crumbs { padding-top: 20px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.gift-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 36px; padding-bottom: 64px; }
.gift-art { flex: 0 1 340px; min-width: 0; margin: 0 auto; display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.gift-art .cover, .gift-art .cover-img { transform: rotate(-2deg); box-shadow: 0 1px 1px rgba(31,26,23,0.12), 0 28px 50px -22px rgba(31,26,23,0.7); }
.gift-art.many { flex-basis: 460px; }
.gift-art.many > * { flex: 1 1 0; min-width: 0; }
.gift-art.many > *:nth-child(2) .cover, .gift-art.many > *:nth-child(2) .cover-img { transform: rotate(1.5deg); }
.gift-art .travel .cover, .gift-art .travel .cover-img { width: 100%; }
.gift-art .travel { flex: 0.74 1 0; }
.gift-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gift-text h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-size: 15px; font-weight: 600; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
.btn[aria-disabled="true"] { border-color: var(--dash); color: var(--muted); cursor: default; }
@media (max-width: 560px) {
  .buy-row .btn { width: 100%; justify-content: center; text-align: center; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-2); }
.fact-n { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.fact-label { font-family: var(--font-label); font-size: 18px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.fact-note { font-size: 15px; color: var(--ink-2); }
.pull { max-width: 40em; margin-top: 28px; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.35; }

/* Prose pages */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 28px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-text); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-family: var(--font-label); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-nav a { color: var(--footer-text); text-decoration: none; padding: 12px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-small { padding-top: 20px; border-top: 1px solid #3A332D; font-size: 14px; color: var(--footer-muted); display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover, .cover-img { transition: none; }
}
