/* ============================================================
   About — "The Gooseball Story" scrollytelling sketchbook.
   Page-specific layout only. Shared vocabulary (paper grain,
   frame--sketch, doodle-floater, ink-stamp, site-footer,
   marker buttons) lives in shared/style.css.
   ============================================================ */

/* Skip-link — about doesn't load home.css, so redeclare. */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-md);
  font-weight: 600;
  z-index: 100;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-3); }

/* Wordmark / logomark size variants used in nav + footer. */
.wordmark--sm { font-size: var(--t-xl); }
.logomark--sm svg { width: 28px; height: 28px; }

/* ----- Top nav ----- */
.about-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-5) 0;
}
.about-nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-muted);
  font-size: var(--t-sm);
  font-weight: 500;
}
.about-nav__back:hover { color: var(--accent); }
.about-nav__back-icon { display: inline-flex; }
.about-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

/* ============================================================
   Sketchbook pages — stacked, centered, generous vertical rhythm.
   ============================================================ */
.about {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-6) var(--s-5) var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.sketch-page {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  scroll-margin-top: var(--s-6);
}

/* Scroll reveal — pages drift up + fade in once, when observed. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
}
.reveal.reveal--in {
  opacity: 1;
  transform: none;
}

.sketch-head {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sketch-body {
  font-size: var(--t-lg);
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}
.sketch-body--center { text-align: center; align-self: center; }
.sketch-body em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-size: 1.3em;
  color: var(--accent);
  line-height: 1;
}
.sketch-body strong { color: var(--text); font-weight: 700; }

/* Per-section accent doodle (drawn by JS into the inner canvas). */
.sketch-page__doodle {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 12px rgba(255, 180, 84, 0.28));
}
.sketch-page__doodle canvas { width: 100%; height: 100%; }

/* ----- 1. Cover ----- */
.sketch-page--cover {
  align-items: center;
  text-align: center;
  gap: var(--s-5);
  padding-top: var(--s-6);
}
.cover-kicker {
  font-family: 'Caveat', cursive;
  font-size: var(--t-2xl);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.cover-title {
  font-size: clamp(2.6rem, 8vw, var(--t-display));
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cover-stage {
  width: min(320px, 80vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: rgba(22, 24, 36, 0.4);
  border-radius: var(--r-lg);
}
.cover-canvas { width: 86%; height: 86%; }
.cover-sub {
  font-size: var(--t-lg);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}
.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-soft);
  font-family: 'Caveat', cursive;
  font-size: var(--t-xl);
  margin-top: var(--s-3);
}
.scroll-hint__arrow {
  font-size: var(--t-2xl);
  animation: scroll-bob 1.8s var(--ease-out) infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ----- 3. Manifesto ----- */
.manifesto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--t-lg);
}
.manifesto-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  line-height: 1.5;
}
.manifesto-list__mark {
  color: var(--accent);
  font-size: var(--t-xl);
  line-height: 1.3;
  flex-shrink: 0;
}

/* ----- 4. Made in India ----- */
.sketch-page--india { align-items: center; text-align: center; }
.sketch-page--india .sketch-body { text-align: center; }

/* ----- Crew ----- */
.sketch-page--crew { align-items: center; text-align: center; }
.crew-grid {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-4);
}
.crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4);
  background: rgba(22, 24, 36, 0.45);
  border-radius: var(--r-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
.crew-card:hover { transform: translateY(-3px) rotate(-1deg); }
.crew-card__avatar {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 10px rgba(255, 180, 84, 0.25));
}
.crew-card__name {
  font-family: 'Caveat', cursive;
  font-size: var(--t-xl);
  color: var(--text);
  font-weight: 700;
}
.crew-card__title {
  font-size: var(--t-xs);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----- 7. Build with us ----- */
.sketch-page--build { align-items: center; text-align: center; }
.sketch-page--build .btn--marker { margin-top: var(--s-2); }

/* ----- 8. Doodle postcard ----- */
.sketch-page--postcard { align-items: center; text-align: center; }
.postcard {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 8 / 5;
  background: #fffaf0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}
.postcard__canvas { display: block; width: 100%; height: 100%; }
.postcard__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Caveat', cursive;
  font-size: var(--t-3xl);
  color: rgba(7, 8, 13, 0.18);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.postcard.is-dirty .postcard__hint { opacity: 0; }

.postcard-tools {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.postcard-swatches { display: inline-flex; gap: var(--s-2); }
.postcard-swatch {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.postcard-swatch:hover { transform: scale(1.12); }
.postcard-swatch.is-active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
  transform: scale(1.12);
}
.postcard-swatch:focus-visible { outline: none; box-shadow: var(--sh-glow); }

.postcard-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.postcard-status {
  min-height: 1.2em;
  font-size: var(--t-sm);
  color: var(--good);
}

/* ----- Easter eggs ----- */
.sketch-page--eggs { align-items: center; text-align: center; }
.egg-key {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 180, 84, 0.12);
  border: 1px dashed rgba(255, 180, 84, 0.4);
  border-radius: var(--r-sm);
  padding: 1px 8px;
  letter-spacing: 0.04em;
}
.egg-note { min-height: 1.1em; font-size: var(--t-sm); color: var(--text-soft); }
.egg-tease { margin-top: var(--s-2); }
.sketch-page--eggs .btn--marker { margin-top: var(--s-2); }

/* ============================================================
   Story-chapter flourish — each sketchbook page (after the cover)
   gets a hand-written "ch.N" margin marker so the page reads like a
   storybook. Pure CSS counter; no markup per section.
   ============================================================ */
.about { counter-reset: chapter; }
.sketch-page:not(.sketch-page--cover) { position: relative; }
.sketch-page:not(.sketch-page--cover)::before {
  counter-increment: chapter;
  content: "ch. " counter(chapter);
  position: absolute;
  top: -22px;
  left: 2px;
  font-family: 'Caveat', cursive;
  font-size: var(--t-lg);
  color: var(--text-soft);
  opacity: 0.7;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .about { gap: var(--s-7); padding: var(--s-5) var(--s-4) var(--s-7); }
  .sketch-head { font-size: var(--t-2xl); }
  .sketch-body { font-size: var(--t-base); }
  .about-nav { padding: var(--s-3) var(--s-4) 0; }
}

/* Reduced motion — drop the scroll reveals + bob (shared sheet handles
   the global animation kill; this guarantees content is visible). */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .scroll-hint__arrow { animation: none; }
}
