/* ──────────────────────────────────────────────────────────
   FIGURAPP — design system shared across pages
   ────────────────────────────────────────────────────────── */

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

:root {
  /* ink + paper */
  --ink:           #07090F;        /* deepest, near-black navy */
  --ink-2:         #0E1322;        /* surface */
  --ink-3:         #18203A;        /* elevated */
  --ink-line:      #232C4A;
  --paper:         #F2EAD0;        /* cream sticker paper */
  --paper-warm:    #F8F1DA;
  --bg-primary:    var(--ink);
  --bg-surface:    var(--ink-2);
  --bg-elevated:   var(--ink-3);

  /* accent — mint matches the app */
  --mint:          #34D2A1;
  --mint-bright:   #5AEFC1;
  --mint-soft:     rgba(52, 210, 161, 0.12);

  /* secondary accents */
  --blaze:         #FF6B47;        /* trade alert */
  --gold:          #F5C944;        /* medal */
  --blue-card:     #1B3FA8;        /* sticker header navy */

  /* text */
  --text-high:     #F4EDD8;        /* warm cream on ink */
  --text-mid:      #9098B2;
  --text-low:      #545B77;
  --accent-teal:   var(--mint);
  --accent-blue:   #3D8EF0;
  --accent-amber:  var(--gold);

  --radius-card:   18px;
  --radius-sticker: 14px;

  /* type */
  --font-display:  'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-serif:    'Instrument Serif', 'Times New Roman', serif;
  --font-body:     'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

/* Sticky nav offset for anchor jumps */
section[id], div[id] { scroll-margin-top: 90px; }

body {
  background: var(--ink);
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ── Selection ── */
::selection { background: var(--mint); color: var(--ink); }

/* ── Nav (base — index.html overrides) ── */
nav {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--ink-line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--text-high);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  line-height: 1;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(52, 210, 161, 0.35);
}
.logo:hover .logo-icon {
  box-shadow: 0 0 22px rgba(52, 210, 161, 0.55);
}
.logo::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--text-mid);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-high); text-decoration: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--ink-line);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: var(--text-low);
  font-size: 0.82rem;
  background: var(--ink);
  position: relative;
}
footer a { color: var(--text-mid); }
footer a:hover { color: var(--mint); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ── Reusable headings for non-index pages ── */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-high);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mint);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-high);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content p, .content li {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.content ul, .content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content a { color: var(--mint); }
.content .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.content .box {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--mint);
  padding: 1.1rem 1.3rem;
  border-radius: 8px;
  margin: 1.25rem 0;
}
.content .box.warn { border-left-color: var(--blaze); }
.content .box p { margin-bottom: 0; color: var(--text-high); }

/* ── Mobile ── */
@media (max-width: 767px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; font-size: 0.8rem; }
  .footer-links { gap: 1.25rem; }
  .content { padding: 3rem 1.25rem 4rem; }
}
