/* laflama.app — tokens */
:root {
  --paper: #fafaf8;
  --ink: #1c1917;
  --stone: #6f6a64;
  --line: #e7e3dd;
  --flama-1: #ff5a2d;
  --flama-2: #ffb13d;
  --flame: linear-gradient(120deg, var(--flama-1), var(--flama-2));
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--flama-1); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--flama-1); }
a:focus-visible { outline: 3px solid var(--flama-2); outline-offset: 2px; border-radius: 2px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 28px 24px 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.wordmark:hover { color: var(--ink); }
.spark { width: 16px; height: 20px; flex: none; }
.top nav { display: flex; gap: 18px; font-size: 14.5px; }
.top nav a { text-decoration: none; color: var(--stone); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Index hero */
.hero {
  max-width: 720px; margin: 0 auto; padding: 96px 24px 64px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 20px;
}
.hero h1 .lit {
  background: var(--flame);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lede { font-size: 20px; color: var(--stone); max-width: 34ch; margin: 0 0 36px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; background: #fff;
}
.status .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--flame);
}

/* Contact block */
.contact {
  max-width: 720px; margin: 0 auto; padding: 0 24px 96px;
}
.contact h2, .legal-links h2 {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--stone);
  margin: 0 0 12px;
}
.contact .card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 22px 24px;
}
.contact .card p { margin: 0 0 6px; }
.contact .card p:last-child { margin: 0; }

/* Article pages */
.doc {
  max-width: 720px; margin: 0 auto; padding: 56px 24px 96px;
}
.doc-header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 36px; }
.doc-header h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.03em; line-height: 1.1;
  margin: 0 0 10px;
}
.doc-header .meta { color: var(--stone); font-size: 14.5px; }
.doc h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.doc h2::before {
  content: ""; display: block; width: 34px; height: 4px;
  background: var(--flame); border-radius: 2px; margin-bottom: 10px;
}
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 16px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.doc th { font-family: var(--display); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--stone); }
.doc .placeholder { background: #fff3cd; border-radius: 4px; padding: 0 4px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  max-width: 720px; margin: 0 auto; padding: 28px 24px 48px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 14px; color: var(--stone);
}
footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { flex: 1; }

@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .top nav { gap: 14px; }
}
