/* GLYDETO website design tokens. See DESIGN.md for roles and rules.
   Fonts: https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Oswald:wght@500;600&display=swap */

:root {
  color-scheme: dark;

  /* Surfaces */
  --night: #0B0E12;
  --platform: #0E1217;
  --card: #12161C;
  --tile: #1B2027;
  --pill: #1A2028;
  --pill-hover: #222A33;

  /* Text */
  --text: #F2F4F5;
  --text-2: #C9CED4;
  --text-3: #A3AAB2;
  --muted: #8E959D;

  /* Lines */
  --line: #1F262E;
  --line-section: #1C232B;
  --line-pill: #2C3640;
  --line-store: #5A636D;
  --line-store-hover: #8A939D;

  /* Accents */
  --green: #3DDC84;
  --green-hover: #7BEBAE;
  --green-ink: #062814;
  --yellow: #3DDC84; /* retired: one accent only, kept as an alias of green */
  --yellow-ink: #062814;
  --green-deep: #3DDC84;
  --green-deep-text: #062814;
  --cream: #0E1217;
  --cream-body: #C9CED4;

  /* Status (from the app) */
  --status-ok: #3DDC84;
  --status-late: #FFB021;
  --status-bad: #FF5C5C;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(30px, 5vw, 70px);
  --fs-cta: clamp(26px, 3.8vw, 52px);
  --fs-h2: clamp(26px, 3.3vw, 46px);
  --fs-logo: 20px;
  --fs-eyebrow: 15px;
  --fs-lede: clamp(18px, 1.6vw, 21px);
  --fs-body: 18px;
  --fs-title: 20px;
  --fs-nav: 16px;
  --fs-caption: 15px;
  --lh-body: 1.55;
  --lh-lede: 1.5;
  --lh-caption: 1.45;
  --measure: 640px;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 96px;
  --space-11: 120px;
  --content: 1180px;
  --content-nav: 1240px;

  /* Shape */
  --radius-tile: 0.09em;
  --radius-icon: 10px;
  --radius-input: 12px;
  --radius-store: 16px;
  --radius-frame: 18px;
  --radius-card: 24px;
  --radius-band: 40px;
  --radius-pill: 999px;

  /* Depth */
  --shadow-shot: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-shot-light: 0 20px 50px rgba(11, 14, 18, 0.18);
  --border-shot: 1px solid rgba(255, 255, 255, 0.08);
  --focus-ring: 0 0 0 3px var(--night), 0 0 0 5px var(--green);

  /* Motion */
  --ease-lift: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-lift: 500ms;
  --flip-tick: 55ms;
  --tap-min: 44px;
}

/* Split-flap tiles */
.sf-row { display: flex; flex-wrap: wrap; gap: 0.2em 0.34em; }
.sf-word { display: flex; gap: 0.07em; }
.sf {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 0.76em; height: 1.12em; border-radius: var(--radius-tile);
  background: var(--tile); color: var(--text);
  font-family: var(--font-display); font-weight: 600; line-height: 1; text-transform: uppercase;
  box-shadow: inset 0 -0.05em 0 rgba(0, 0, 0, 0.45), 0 0.04em 0.1em rgba(0, 0, 0, 0.35);
}
.sf::before { content: ''; position: absolute; inset: 0 0 50% 0; border-radius: var(--radius-tile) var(--radius-tile) 0 0; background: rgba(255, 255, 255, 0.05); }
.sf::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 0.035em; min-height: 1px; margin-top: -0.017em; background: rgba(0, 0, 0, 0.75); }
.sf.a { background: var(--text); color: var(--night); }
.sf.gb { background: var(--green); color: var(--green-ink); }
.sf.g { color: var(--green); }
.sf.y { color: var(--green); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
