/* Flokinn — Rowin's workbench
   Tokens first; everything below uses them. */
:root {
  --ground: #f4f0e6;     /* page background (cream) */
  --paper: #fbf8f1;      /* lighter cream band */
  --sand: #e9dfc8;       /* contact band */
  --spot-bg: #f8eede;    /* matches the spot illustrations' own background */
  --ink: #1f2a1e;        /* text, dark band, footer */
  --ink-2: #3a4035;      /* body text */
  --muted: #4f5546;      /* kickers, captions (6.8:1 on ground) */
  --accent: #52664d;     /* moss — CTAs, numbers, highlights */
  --link: #3f5239;
  --line: #d3c9b3;       /* section rules */
  --card-line: #ddd3bf;
  --on-ink: #f4f0e6;
  --on-ink-2: #e2dccb;
  --on-ink-muted: #c9c1ac;
  --wheat: #e4d1ad;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --gutter: 40px;
  --band-pad: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Skip link + draft band */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 16px; color: var(--on-ink); }
.draft { background: var(--ink); color: var(--wheat); font: 12px/1 var(--mono); letter-spacing: .12em; text-align: center; padding: 10px 16px; }

/* Shared type */
.kicker { display: flex; align-items: center; gap: 12px; font: 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--muted); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
h2 { font: 400 48px/1.05 var(--serif); letter-spacing: -.02em; }
h2 em { color: var(--accent); }
.lead { font: 300 28px/1.35 var(--serif); max-width: 32ch; text-wrap: pretty; }
.body-lg { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.body-xl { font-size: 20px; color: var(--ink-2); max-width: 44ch; }
.mono-note { font: 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.text-link { font-size: 16px; font-weight: 500; color: var(--ink); text-underline-offset: 5px; padding: 12px 0; }
.text-link.strong { font-weight: 600; align-self: flex-start; margin-top: 16px; }

/* Pills (buttons and button-like links) */
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; transition: background-color .2s ease, color .2s ease; }
.pill-accent { background: var(--accent); color: var(--on-ink); font-weight: 500; }
.pill-accent:hover { background: var(--ink); color: var(--on-ink); }
.pill-ink { background: var(--ink); color: var(--on-ink); }
.pill-ink:hover { background: var(--accent); color: var(--on-ink); }
.pill-cream { background: var(--on-ink); color: var(--ink); }
.pill-cream:hover { background: var(--wheat); }
.pill-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 500; }
.pill-outline:hover { background: var(--ink); color: var(--on-ink); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 500 30px/1 var(--serif); letter-spacing: -.02em; }
.brand-name .dot { color: var(--accent); }
.brand-by { font: 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.main-nav a:not(.pill) { text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink); padding: 10px 0; }
.main-nav a:not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: var(--band-pad); display: flex; flex-direction: column; gap: 48px; }
.hero-text { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 64px; }
.hero-title { flex: 1 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 6px; }
h1 { font: 300 clamp(48px, 5.8vw, 84px)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
h1 em { font-weight: 400; color: var(--accent); }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Desk + hotspots */
.desk { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.desk-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(31,42,30,.08), 0 32px 64px -36px rgba(31,42,30,.55); }
.desk-frame img { display: block; width: 100%; height: auto; }
.desk-tall { display: none; }
.hot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 10px; text-decoration: none; transition: box-shadow .2s ease, background-color .2s ease; }
.hot:hover, .hot:focus-visible { background-color: rgba(251,248,241,.14); box-shadow: inset 0 0 0 2px rgba(82,102,77,.6); outline: none; }
.chip { position: absolute; left: 0; top: -22px; white-space: nowrap; background: var(--ink); color: var(--on-ink); font: 14px/1 var(--mono); padding: 9px 14px; border-radius: 999px; transition: background-color .2s ease, transform .2s ease; }
.hot-right .chip { left: auto; right: 0; }
.hot:hover .chip, .hot:focus-visible .chip { background: var(--accent); transform: translateY(-2px); }

/* Phone-only index */
.desk-index { display: none; padding-bottom: 72px; }
.desk-index a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.desk-index a:first-child { border-top: 1px solid var(--line); }
.desk-index span { font: 12px/1.4 var(--mono); color: var(--muted); }
.desk-index b { font: 400 22px/1.2 var(--serif); }

/* Bands + two-column split */
.band { border-top: 1px solid var(--line); }
.band-paper { background: var(--paper); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--on-ink); border-top: 0; }
.split { padding-block: var(--band-pad); display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split-head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* Spot illustrations */
.spot { width: var(--spot-w, 200px); max-width: 100%; background: var(--spot-bg); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.spot img { display: block; width: 100%; }

/* 01 cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; padding-top: 16px; }
.card { background: var(--ground); border: 1px solid var(--card-line); border-radius: 4px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.card .num { font: 12px/1 var(--mono); color: var(--accent); }
.card h3 { font: 500 24px/1.2 var(--serif); }
.card p { font-size: 16px; color: var(--ink-2); }

/* 02 thoughts */
.thoughts { list-style: none; margin: 0; padding: 0; }
.thoughts li { display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.thoughts li:last-child { border-bottom: 1px solid var(--line); }
.thought-num { flex: none; width: 56px; font: italic 400 40px/1 var(--serif); color: var(--accent); }
.thoughts li > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.thoughts h3 { font: 500 24px/1.25 var(--serif); }
.thoughts p { font-size: 17px; color: var(--ink-2); max-width: 56ch; }

/* 03 exercise (dark band) */
.band-ink .split { padding-block: 104px; gap: 40px 64px; }
.band-ink .kicker { color: var(--on-ink-muted); }
.band-ink .body-lg { color: #d9d2c0; max-width: 34ch; margin-top: 8px; }
.h2-xl { font-size: 56px; line-height: 1.02; }
.h2-xl em { color: var(--wheat); }
.badge { align-self: flex-start; margin-top: 8px; font: 11px/1 var(--mono); letter-spacing: .12em; color: var(--ink); background: var(--wheat); padding: 7px 10px; border-radius: 3px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps button { font: 500 15px/1 var(--sans); min-height: 44px; padding: 11px 18px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--on-ink-2); border: 1.5px solid #5a6a56; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.steps button:hover { border-color: var(--on-ink); color: var(--on-ink); }
.steps button[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.example { background: #2a3828; border: 1px solid #3d4d3a; border-radius: 6px; padding: 40px; min-height: 220px; display: flex; flex-direction: column; gap: 16px; }
.example-count { font: 12px/1 var(--mono); letter-spacing: .12em; color: var(--on-ink-muted); }
.example-title { font: 400 34px/1.15 var(--serif); color: var(--on-ink); }
.example-body { font-size: 19px; line-height: 1.6; color: var(--on-ink-2); max-width: 54ch; }
.example-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.aside { font: italic 400 22px/1.4 var(--serif); color: var(--wheat); max-width: 40ch; }
#next-step[hidden] { display: none; }

/* 05 contact */
.contact { padding-block: 112px 104px; display: flex; flex-direction: column; gap: 28px; }
.contact .spot { margin-bottom: 0; }
.email { align-self: flex-start; font: 300 clamp(40px, 7.5vw, 112px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 12px; overflow-wrap: anywhere; }
.email span { color: var(--accent); }
.contact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font: 12px/1.4 var(--mono); letter-spacing: .06em; }
.site-footer a { color: var(--wheat); text-underline-offset: 4px; }

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; --band-pad: 72px; }
  .desk-wide { display: none; }
  .desk-tall { display: block; }
  .desk-index { display: block; }
  .draft { letter-spacing: .06em; font-size: 11px; }
  .chip { top: -14px; font-size: 12px; padding: 7px 10px; }
  h2 { font-size: 38px; }
  .h2-xl { font-size: 44px; }
  .lead { font-size: 24px; }
  .example { padding: 28px 22px; }
  .example-title { font-size: 28px; }
  .thoughts li { gap: 18px; }
  .thought-num { width: 36px; font-size: 32px; }
}
