/* ==========================================================================
   site.css — shared stylesheet for the baseball.scribblybooks.com static
   content pages (public/<slug>/index.html).

   Implements the cards-funnel design tokens (the `.psf-` system in
   src/cards-funnel/styles.css) so the content hub and the funnel read as one
   product: Anton display / DM Sans body / Caveat Brush accents, brand blue
   #2E47F0, navy #0B1E4F, cream surfaces, pill CTAs. Fonts load via the same
   Google Fonts URL from each page's <head>. No JavaScript anywhere.
   ========================================================================== */

:root {
  --brand: #2E47F0;
  --brand-deep: #1E32C4;
  --brand-ink: #0B1340;
  --red: #D8232A;
  --red-deep: #B01219;
  --navy: #0B1E4F;
  --gold: #E8B833;
  --cream: #F7F2E8;
  --cream-2: #EFE7D5;
  --paper: #FAF6EC;
  --ink: #15171F;
  --ink-2: #2A2D38;
  --muted: #6B6E7B;
  --line: #E2DBC9;
  --radius: 14px;
  --radius-lg: 22px;
  --f-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --f-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --f-script: "Caveat Brush", "Caveat", cursive;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 16px -8px rgba(11, 19, 64, .18);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 32px -14px rgba(11, 19, 64, .28);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 56px -20px rgba(11, 19, 64, .38);
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-sans);
}
::selection { background: var(--brand); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  color: var(--navy);
  margin: 0 0 20px;
}
h1 { font-size: clamp(42px, 6.5vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 0; }
h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
h4 { font-family: var(--f-sans); font-weight: 700; font-size: 17px; color: var(--navy); margin: 0 0 8px; }

.script { font-family: var(--f-script); font-size: clamp(24px, 5vw, 36px); line-height: 1.15; color: var(--red); text-transform: none; }
.lede { font-size: 19px; line-height: 1.55; max-width: 620px; }
.sub { font-size: 17px; color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.fine { font-size: 13px; color: var(--muted); }

/* ---- layout -------------------------------------------------------------- */
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 880px; }
.section { padding-block: 100px; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .sub { color: rgba(255, 255, 255, .7); }
.section--navy a { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--split { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

/* ---- eyebrow + diamond ---------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--red);
  transform: rotate(45deg); flex: none;
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 15px/1.1 var(--f-sans); text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px rgba(46, 71, 240, .55);
}
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--red {
  background: var(--red); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px rgba(216, 35, 42, .55);
}
.btn--red:hover { background: var(--red-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(11, 19, 64, .18); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.on-dark .btn--ghost, .section--navy .btn--ghost, .hero .btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.cta-fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.hero .cta-fine, .section--navy .cta-fine { color: rgba(255, 255, 255, .65); }

/* ---- header ---------------------------------------------------------------- */
.topstrip {
  background: var(--brand); color: #fff; text-align: center;
  font: 500 13px/1.3 var(--f-sans); padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 19, 64, .06);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 28px; width: auto; }
.brand-lockup {
  font-family: var(--f-display); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy);
  border-left: 1.5px solid var(--navy); padding-left: 10px; line-height: 1.4;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; }
.site-nav a {
  font: 500 14px/1.2 var(--f-sans); color: var(--ink-2);
  text-decoration: none; white-space: nowrap; padding: 6px 0;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.header-row .btn { flex: none; }

/* ---- breadcrumbs ----------------------------------------------------------- */
.crumbs { font-size: 13px; margin-bottom: 20px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { margin: 0 6px; }

/* ---- hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #061238 100%);
  color: rgba(255, 255, 255, .82);
  padding: 72px 0 100px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15;
  background: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px);
  background-size: 10px 10px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13em; }
.hero .lede { color: rgba(255, 255, 255, .78); }

/* ---- cards / tiles ----------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 32px;
}
.card h3 { margin-top: 0; }
.tile-num {
  font-family: var(--f-display); font-size: 56px; line-height: 1;
  color: var(--red); display: block; margin-bottom: 10px;
}
.polaroid {
  background: #fff; padding: 10px 10px 16px; border-radius: 8px;
  box-shadow: var(--shadow-md); transform: rotate(-2deg);
}
.polaroid--right { transform: rotate(2deg); }
.polaroid img { border-radius: 4px; }
.polaroid figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; text-align: center; }

/* ---- tables -------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; font: 600 14px/1.4 var(--f-sans); color: var(--muted); padding: 14px 16px 0; }
th {
  font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy); text-align: left; padding: 14px 16px;
  border-bottom: 2px solid var(--line); background: var(--paper); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.price { font-family: var(--f-display); font-size: 22px; color: var(--navy); white-space: nowrap; }

/* ---- FAQ (no-JS accordions) ------------------------------------------------------ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font: 600 17px/1.4 var(--f-sans); color: var(--navy);
  padding: 18px 36px 18px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--f-display); color: var(--red);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 20px; max-width: 720px; }

/* ---- checklist -------------------------------------------------------------------- */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  border: 2px solid var(--navy); border-radius: 4px; background: #fff;
}

/* ---- misc -------------------------------------------------------------------------- */
.badge {
  display: inline-block; background: var(--cream-2); border-radius: 999px;
  padding: 6px 14px; font: 600 13px/1.3 var(--f-sans); color: var(--ink-2); margin: 0 8px 8px 0;
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.imgrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

/* ---- footer --------------------------------------------------------------------------- */
.site-footer { background: var(--brand-ink); color: rgba(255, 255, 255, .78); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-head { font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); margin: 0 0 14px; }
.site-footer nav a { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14px; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn { margin-top: 8px; }
.footer-fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-fine p { font-size: 12.5px; color: rgba(255, 255, 255, .55); max-width: 760px; }

.footer-blurb { font-size: 14px; max-width: 320px; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; margin-bottom: 28px; }
.step-num { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--red); }
.step h3 { margin-top: 4px; }
@media (max-width: 480px) { .step { grid-template-columns: 48px 1fr; gap: 14px; } .step-num { font-size: 40px; } }

/* ---- responsive ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding-block: 56px; }
  .hero { padding: 40px 0 56px; }
  .wrap { padding: 0 16px; }
  .grid--2, .grid--3, .imgrow { grid-template-columns: 1fr; }
  .btn { min-height: 44px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .site-nav { gap: 16px; }
  h1 { font-size: clamp(36px, 11vw, 56px); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-row .btn { display: none; }
}

/* ---- print (team worksheet / planning checklist) -------------------------------------------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .topstrip, .site-header, .site-footer, .no-print, .hero .btn, .crumbs { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
  .hero::after { display: none; }
  .hero h1, h2, h3 { color: #000; }
  .section { padding-block: 16pt; }
  .table-wrap { overflow: visible; border: 0; box-shadow: none; }
  table { font-size: 10pt; }
  th, td { border: 1pt solid #000 !important; padding: 6pt 8pt; }
  th { background: #eee; }
  a { color: #000; text-decoration: none; }
  .print-block { break-inside: avoid; }
}

/* Timeline list (team + gifts pages) */
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { padding: 14px 0 14px 26px; position: relative; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }

/* LP-parity pass: sample galleries, press strip, downloads, emoji headers */
.emoji-h { display: block; font-size: 28px; line-height: 1; margin-bottom: 10px; }
.gallery-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.gallery-row .polaroid { margin: 0; max-width: none; }
.gallery-row .polaroid:nth-child(odd) { transform: rotate(-2deg); }
.gallery-row .polaroid:nth-child(even) { transform: rotate(1.6deg); }
.press-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px; }
.press-strip { display: flex; gap: 38px; row-gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.press-strip img { height: 24px; width: auto; opacity: .8; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.float-tag { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(11,19,64,.35); transform: rotate(2.5deg); }
@media (max-width: 900px) { .gallery-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-row { grid-template-columns: repeat(2, 1fr); } .press-strip { gap: 22px; } .press-strip img { height: 18px; } }
