/* Foundry Apps: one small stylesheet shared by every page. Dark forge palette; system fonts (fast, no third-party requests). */
:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --surface: #161311;
  --card: #1c1917;
  --line: #2e2825;
  --line-strong: #44403c;
  --text: #ece9e6;
  --muted: #b3aca6;
  --ember: #f97316;
  --ember-soft: #fb923c;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 64ch;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-soft); text-underline-offset: 3px; }
a:hover { color: #fdba74; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); color: var(--text); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
/* The ember square in the F mark glows faintly, as if still hot. */
.brand .mark { position: relative; display: block; width: 32px; height: 32px; }
.brand .mark::after { content: ""; position: absolute; left: 21px; top: 23px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 146, 60, 0.55), rgba(249, 115, 22, 0) 70%); pointer-events: none; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.site-nav a:hover { color: var(--text); }

/* Type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-soft); margin: 0 0 18px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 720; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 680; }
h3 { font-size: 24px; font-weight: 660; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; margin-top: 22px; }

/* Hero: the forge. Static CSS only: a warm iron tint, a heat bloom rising from below, a few sparks, and a molten edge. */
.forge { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 65% 85% at 78% 120%, rgba(249, 115, 22, 0.40), rgba(220, 38, 38, 0.16) 42%, transparent 72%),
    radial-gradient(ellipse 35% 45% at 80% 100%, rgba(253, 186, 116, 0.18), transparent 70%),
    linear-gradient(180deg, #0c0a09 0%, #140d0a 60%, #1a0f0a 100%); }
.forge::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 71% 62%, rgba(253, 186, 116, 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 76% 48%, rgba(251, 146, 60, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 56%, rgba(253, 186, 116, 0.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 38%, rgba(249, 115, 22, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 79% 30%, rgba(251, 146, 60, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 70%, rgba(253, 186, 116, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 78%, rgba(251, 146, 60, 0.6) 0 1px, transparent 2px); }
.forge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #7f1d1d 18%, #dc2626 40%, #f97316 62%, #fdba74 78%, #f97316 88%, transparent); }
.forge + section { border-top: 0; }
.molten { width: min(360px, 60%); height: 3px; margin-top: 26px; border-radius: 2px;
  background: linear-gradient(90deg, #fde68a, #fb923c 18%, #f97316 35%, #dc2626 62%, #7f1d1d 82%, rgba(127, 29, 29, 0));
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.45); }
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 88px); }
.hero .where { margin-top: 30px; font: 500 13px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.hero .where b { color: var(--text); font-weight: 500; }

/* Sections */
section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: var(--measure); }
.section-head p { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.product .plate { display: flex; align-items: center; gap: 18px; padding: 28px; border-bottom: 1px solid var(--line); }
.product.orbit .plate { background: #07090e; }
.product.fiends .plate { background: #07040b; }
.product .plate img.mark { width: 64px; height: 64px; }
.product .plate .name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.product.orbit .name { color: #f3f5f9; }
.product .plate .wordmark { width: 150px; }
.product .plate .tag { font: 500 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }
.product.orbit .tag { color: #61ddff; }
.product.fiends .tag { color: #b99bff; }
.product .plate { min-height: 121px; }
.product .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.product .body > p { color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; margin-top: 9px; }
.product.orbit .facts li::before { background: #ff932a; }
.product.fiends .facts li::before { background: #ff5a1f; }
.cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; font-weight: 600; text-decoration: none; border-radius: 10px; padding: 12px 18px; min-height: 44px; }
.product.orbit .cta { background: #ff932a; color: #140a02; }
.product.orbit .cta:hover { background: #ffa84f; color: #140a02; }
.product.fiends .cta { background: #8f5cf0; color: #0b0614; }
.product.fiends .cta:hover { background: #a57bf4; color: #0b0614; }
.soon { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 9px; margin-left: 6px; white-space: nowrap; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about .copy { display: grid; gap: 16px; max-width: var(--measure); }
.about .copy p { color: var(--muted); }
.ledger { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ledger div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.ledger div:first-child { border-top: 0; }
.ledger dt { font: 500 12px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ledger dd { margin: 0; }

/* Contact */
.contact p { color: var(--muted); max-width: var(--measure); }
.contact .mail { display: inline-block; margin-top: 18px; font-size: clamp(22px, 3vw, 30px); font-weight: 650; color: var(--text); text-decoration-color: var(--ember); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Legal pages */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal article { max-width: 72ch; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal .updated { font: 500 13px/1 var(--mono); color: var(--muted); margin: 16px 0 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #d6d1cc; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0 0; }
.legal .callout { border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; background: var(--surface); margin-bottom: 8px; }

/* 404 */
.notfound { padding-block: clamp(80px, 14vw, 160px); text-align: left; }
.notfound p { color: var(--muted); margin-top: 16px; }

@media (max-width: 820px) {
  .products, .about { grid-template-columns: 1fr; }
  /* Text runs full width here, so the sparks would sit on it: drop them, keep the bloom. */
  .forge::before { display: none; }
}
@media (max-width: 420px) {
  .site-nav { gap: 16px; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .product .plate { padding: 22px; }
  .product .body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
