/* Shared styling for Find My Booster's static content pages
   (/sets/, /sets/<release>/, /how-it-works/, /updates/...).
   Self-contained, no JS, no external requests. Mirrors the app's dark theme. */

:root {
  color-scheme: dark;
  --night: #090a09;
  --surface: #171914;
  --surface-high: #20221b;
  --ivory: #f5efe4;
  --parchment: #d9cfbe;
  --muted: #a69d91;
  --ember: #ff7a24;
  --ember-hot: #ffc15a;
  --forest-bright: #78bd78;
  --amethyst-soft: #bc78ea;
  --line: rgba(245, 239, 228, 0.13);
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, Georgia, "Times New Roman", serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ivory);
  background: var(--night);
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(137, 58, 183, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(204, 69, 17, 0.14), transparent 32rem),
    linear-gradient(160deg, #0b0c0a 0%, #10100d 46%, #080908 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

a { color: var(--ember-hot); text-decoration-color: rgba(255, 193, 90, 0.4); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ember-hot); }

.wrap { width: min(100% - 40px, 820px); margin: 0 auto; }

/* Header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.7);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ivory); text-decoration: none; }
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark i { width: 5px; height: 18px; border-radius: 2px; background: linear-gradient(var(--ember), var(--ember-deep, #a72f14)); }
.brand-mark i:nth-child(2) { background: linear-gradient(var(--forest-bright), #2f7652); }
.brand-mark i:nth-child(3) { background: linear-gradient(var(--amethyst-soft), #8d4cc5); }
.head-cta { font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--ember-hot); white-space: nowrap; }

/* Main */
main { padding: 40px 0 8px; }
.eyebrow { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 14px; font-family: var(--display-font); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h2 { margin: 38px 0 12px; font-family: var(--display-font); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { margin: 24px 0 8px; font-size: 1.05rem; }
p { margin: 0 0 14px; color: var(--parchment); }
.lede { font-size: 1.12rem; color: var(--ivory); max-width: 62ch; }
ul, ol { color: var(--parchment); padding-left: 1.25rem; }
li { margin: 6px 0; }
strong { color: var(--ivory); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.06); color: var(--ember-hot); }
th[scope="row"] { color: var(--muted); font-weight: 600; white-space: nowrap; }

.card {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32,34,27,0.6), rgba(16,17,13,0.6));
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.btn-primary { background: linear-gradient(120deg, var(--ember), var(--ember-hot)); color: #1a0c05; }
.btn-secondary { border: 1px solid var(--line); color: var(--ivory); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.94rem; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 0.85rem; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: rgba(255,255,255,0.03); color: var(--ivory); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--forest-bright); font-weight: 600; }
.no { color: var(--muted); }

/* Source list */
.sources { font-size: 0.92rem; }

/* Footer */
.site-foot { margin-top: 48px; border-top: 1px solid var(--line); background: rgba(9,10,9,0.7); }
.site-foot .wrap { padding: 26px 0 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
.foot-nav a { color: var(--ivory); font-weight: 600; text-decoration: none; }
.foot-nav a:hover { color: var(--ember-hot); }
.foot-note { margin: 0; font-size: 0.85rem; color: var(--muted); max-width: 70ch; }

@media (max-width: 520px) {
  main { padding-top: 28px; }
  .card { padding: 16px 16px; }
}
