/* Fish with Gerald: hand-drawn look to match the reels.
   White background on purpose (GERALD_BRAND.md section 10), so no dark theme. */

@font-face {
  font-family: "Architects Daughter";
  src: url("/fonts/ArchitectsDaughter-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --sky: #eef6fc;
  --water: #d6e9f7;
  --water-line: #4a90d6;
  --cap: #e85828;          /* CAP = (232, 88, 40). Never change it. */
  --cap-dark: #c4441a;
  --sun: #f2b632;
  --note: #fff6b8;
  --hand: "Architects Daughter", "Comic Sans MS", "Marker Felt", cursive;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 255px 15px 225px / 225px 15px 255px 15px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3, .kicker, .tagline, .btn, .brand, .sign-off, figcaption, .top nav a {
  font-family: var(--hand);
  font-weight: 400;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); text-align: center; }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

a { color: var(--cap-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 3px dashed var(--water-line);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

.cap { color: var(--cap); }
.underline {
  background-image: linear-gradient(transparent 78%, rgba(242, 182, 50, .55) 78%);
  padding: 0 .1em;
}

/* Sketchy hand-drawn border, like the reel panels */
.sketch {
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 1.25rem;
}
.brand img { border-radius: 50%; }
.top nav { display: flex; gap: 16px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.top nav a:hover { color: var(--cap); text-decoration: underline wavy; }

/* ---------- sections ---------- */
main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 16px;
}
.section-lede { text-align: center; color: var(--ink-soft); max-width: 36em; margin: 0 auto 2em; }
.kicker {
  color: var(--cap); font-size: 1.1rem; letter-spacing: .02em; margin-bottom: .25em;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.tagline { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .8em; }
.lede { color: var(--ink-soft); max-width: 32em; }
.hero-art { margin: 0; padding: 10px; transform: rotate(1.2deg); }
.hero-art img { border-radius: var(--wobble-2); }
.hero-art figcaption { text-align: center; padding-top: 8px; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--cap); color: #fff; }

/* ---------- perspective strip ---------- */
.perspective { background: transparent; }
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 32px);
}
.strip figure { margin: 0; padding: 8px; }
.strip img { border-radius: var(--wobble-2); }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }

/* ---------- beliefs ---------- */
.beliefs { background: var(--sky); max-width: none !important; border-top: 2.5px solid var(--water-line); border-bottom: 2.5px solid var(--water-line); }
.beliefs > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.belief-list {
  list-style: none; padding: 0; margin-top: 1.5em;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 18px;
  counter-reset: belief;
}
.belief-list li {
  flex: 1 1 200px;
  max-width: 300px;
  counter-increment: belief;
  padding: 22px 20px 16px;
  position: relative;
}
.belief-list li:nth-child(even) { border-radius: var(--wobble-2); }
.belief-list li::before {
  content: counter(belief);
  position: absolute; top: -18px; left: 16px;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--hand); font-size: 1.2rem; color: #fff;
  background: var(--cap); border: 2.5px solid var(--ink); border-radius: 50%;
}
.belief-list p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* ---------- series ---------- */
.series-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 1.5em;
}
.series-card { padding: 22px; text-align: center; }
.series-card:nth-child(odd) { border-radius: var(--wobble-2); }
.series-card img { width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%; }
.series-card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* ---------- checklist sticky note ---------- */
.checklist { display: flex; justify-content: center; }
.note {
  position: relative;
  max-width: 560px; width: 100%;
  background: var(--note);
  border: 2.5px solid var(--ink);
  padding: 34px 28px 28px;
  transform: rotate(-1deg);
  box-shadow: 6px 8px 0 rgba(0,0,0,.08);
  text-align: center;
}
.note::before {   /* strip of tape */
  content: ""; position: absolute; top: -14px; left: 50%;
  width: 110px; height: 26px; transform: translateX(-50%) rotate(2deg);
  background: rgba(200, 210, 220, .75); border: 1px solid rgba(0,0,0,.08);
}
.note h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.note .buttons { justify-content: center; }

/* ---------- footer ---------- */
.bottom {
  text-align: center;
  padding: 48px 16px 40px;
  background: var(--water);
  border-top: 2.5px solid var(--water-line);
}
.sign-off { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .4em; }
.bottom .small { color: var(--ink-soft); font-size: .95rem; margin: .3em 0; }
.bottom a { color: var(--ink); }

@media (min-width: 960px) {
  .belief-list li { flex-basis: 0; }   /* all five on one row */
}

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .strip { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.05rem; }
  .top nav { gap: 12px; }
  .buttons .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}
