/* ═══════════════════════════════════════════════════════════════════
   Fire Club Inc. design system.

   Grounded in measurement, not taste:
     A1 corpus, 312 landing heroes  - median radius 12px, shadows on 27%,
     accents are deep near-blacks with one hot colour.
     Chapter One  - 64px display at weight 400, warm off-white grounds.
     SavvyCal  - tagged hand-drawn AND serif, which is the proof that
     illustration and elegance are compatible.

   Elegance here is subtraction: a serif display at 400, hairlines
   instead of 3px keylines, no offset shadows, one accent instead of six.
   The drawings stay: they are the one playful element, framed quietly.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* grounds */
  --cream:   #FCF7ED;
  --cream-2: #F4EFE4;
  --paper:   #FFFFFF;
  --ink:     #1B1620;
  --ink-deep:#141019;

  /* type tones */
  --ink-2: rgba(27, 22, 32, 0.64);
  --ink-3: rgba(27, 22, 32, 0.62);
  --on-dark:   rgba(252, 247, 237, 0.74);
  --on-dark-2: rgba(252, 247, 237, 0.54);

  /* one accent survives */
  --accent: #7786FE;

  /* the drawings keep their own colours, used only inside illustration */
  --peri: #7786FE; --butter: #FDD648; --sage: #AFE1B7;
  --pink: #F882AC; --sky: #A8E6FD; --lemon: #FEEA3F;
  --peach: #FEA84D; --cobalt: #2E67BA;

  /* quiet panels behind each drawing */
  --tint-sky:  #EAF4FA;
  --tint-pink: #FBEEF2;
  --tint-sun:  #FAF3DF;

  /* line and surface: hairline, not keyline. No offset shadows. */
  --line: 1px;
  --hair: rgba(27, 22, 32, 0.14);
  --hair-dark: rgba(252, 247, 237, 0.18);
  --radius: 10px;
  --pop: none;
  --pop-sm: none;
  --pop-lg: none;

  /* type */
  --serif: "EB Garamond", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  var(--sans);

  --t-h1:   clamp(44px, 9vw, 84px);
  --t-h2:   clamp(34px, 5vw, 62px);
  --t-h3:   clamp(24px, 3vw, 28px);
  --t-lead: clamp(18px, 2vw, 21px);
  --t-body: 18px;
  --t-small: 14px;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 68px; --s7: 96px; --s8: 132px;

  --pad-y:  clamp(84px, 11vw, 150px);
  --gutter: clamp(24px, 6vw, 88px);
}

*, *::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-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the display is a serif at 400. That is where the elegance lives. */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h1 em, h2 em, h3 em, h1 i, h2 i, h3 i { font-style: italic; }

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--cream); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[id] { scroll-margin-top: var(--s4); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--cream);
  border-radius: 99px; padding: 12px 22px; z-index: 99;
}
.skip:focus { left: var(--s2); top: var(--s2); }

.wrap { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

section { position: relative; }

/* ── grounds ──────────────────────────────────────────────────────── */
.g-cream { background: var(--cream); }
.g-paper { background: var(--paper); }
.g-tint  { background: var(--cream-2); }
.g-ink   { background: var(--ink); color: var(--on-dark); }
.g-ink h1, .g-ink h2, .g-ink h3 { color: var(--cream); }

/* legacy ground names still used by the case studies */
.g-peri, .g-butter, .g-sage { background: var(--cream); }

/* ── type helpers ─────────────────────────────────────────────────── */
.eyebrow, .lab {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
.g-ink .eyebrow, .g-ink .lab { color: var(--on-dark-2); }
.lead { font-size: var(--t-lead); color: rgba(27, 22, 32, 0.88); }
.meta { font-size: var(--t-small); color: var(--ink-2); }

/* ── controls: a hairline pill, no fill, no shadow ────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 28px;
  border: 1px solid var(--ink); border-radius: 99px;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.g-ink .btn { border-color: var(--cream); color: var(--cream); }
.g-ink .btn:hover { background: var(--cream); color: var(--ink); }

.tlink {
  display: inline-flex; align-items: center; min-height: 46px;
  font-size: 16px; text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.tlink:hover { border-color: currentColor; }

.cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }

/* ── surfaces: hairline, small radius, no offset shadow ───────────── */
.shot, .sticker {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot > img, .shot > video, .shot > iframe { width: 100%; height: auto; display: block; border: 0; }
.shot-cap { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s2); }

/* ── header ───────────────────────────────────────────────────────── */
.site-head { background: var(--cream); padding: var(--s3) 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; min-height: 44px;
}
.wordmark img { width: 24px; height: 24px; }
.head-link { font-size: 14px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); display: inline-flex; align-items: center; min-height: 44px; }

.crumb { font-size: var(--t-small); color: var(--ink-2); display: flex; gap: var(--s1); flex-wrap: wrap; }
.crumb a { border-bottom: 1px solid var(--hair); display: inline-flex; align-items: center; min-height: 44px; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid var(--hair);
  font-size: var(--t-small); color: var(--ink-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--hair); text-decoration: none; }

/* ── motion: quiet, and off when asked ────────────────────────────── */
.rv, .rise { opacity: 0; transform: translateY(14px); }
.rv.in, .rise.in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rise { opacity: 1; transform: none; }
  .rv.in, .rise.in { transition: none; }
  .btn { transition: none; }
}
