/* ============================================================
   IgnisLab shared stylesheet
   Warm, minimal, cozy. Dark amber-on-charcoal palette.
   Font: self-hosted Jersey 25 (a readable pixel face) used site-wide — wordmark,
   headings AND body. No external requests, works offline.
   ============================================================ */

/* Site font — self-hosted Jersey 25, free for commercial use (SIL Open Font
   License; see fonts/Jersey25-OFL.txt). Local file only -> no external request,
   GDPR-clean. Higher-resolution pixel face (readable at body size, unlike the
   earlier Bitcount dot font). Single master weight; the wide font-weight range
   below maps every requested weight to the one file so the browser never
   synthesizes a messy faux-bold. */
@font-face {
  font-family: "Jersey 25";
  src: url("fonts/Jersey25-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Display face — Jersey 10 Charted (same family, lowest-res + graph-paper pixel
   texture). Chunky and characterful at large size; used ONLY for the wordmark +
   big headings (too noisy for body). Same OFL license (fonts/Jersey10Charted-OFL.txt). */
@font-face {
  font-family: "Jersey 10 Charted";
  src: url("fonts/Jersey10Charted-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #16110d;   /* warm near-black */
  --bg-raised: #1e1712;   /* cards, panels */
  --line:      #32281f;   /* hairline borders */
  --text:      #eee3d3;   /* warm cream */
  --muted:     #a08e77;   /* secondary text */
  --amber:     #e8a34e;   /* accent */
  --amber-hi:  #f3bd72;   /* accent hover */
  --radius: 14px;
  /* Jersey 25 everywhere; generics are fallbacks only until the font loads. */
  --serif: "Jersey 25", Georgia, "Times New Roman", serif;
  --sans: "Jersey 25", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Jersey 10 Charted", "Jersey 25", Georgia, serif;  /* wordmark + hero/section headings */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(232, 163, 78, .3); }

/* ---------- header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 17, 13, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand .flame { color: var(--amber); }

.nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 22px;
}

.nav a.link:hover { color: var(--text); }

.nav a.link[aria-current="page"] {
  color: var(--amber);
}

/* ---------- language switch (EN / SV) ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 22px;
  font-size: 13px;
  letter-spacing: .08em;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="true"] {
  color: var(--amber);
  font-weight: 600;
}

.lang-switch span { color: var(--line); }

/* ---------- typography helpers ---------- */

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: .02em; }

h1 { font-size: clamp(34px, 5.5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 8px; }

p.lead { font-size: 19px; color: var(--muted); max-width: 34em; }

.muted { color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 84px 0; }

section + section { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 84px;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(232, 163, 78, .12), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead { margin: 20px 0 32px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--amber); color: #241708; }
.btn-primary:hover { background: var(--amber-hi); }

.btn-ghost { color: var(--amber); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); }

.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- photo placeholder (no photography yet) ---------- */

.placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 50% at 50% 62%, rgba(232, 163, 78, .16), transparent 70%),
    var(--bg-raised);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px;
}

.placeholder.small { min-height: 200px; }

.placeholder .glow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f7cd8a, var(--amber) 55%, rgba(232, 163, 78, 0) 75%);
  box-shadow: 0 0 42px 14px rgba(232, 163, 78, .28);
}

.placeholder figcaption {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card .placeholder { min-height: 190px; }

.badge {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--amber);
  background: rgba(232, 163, 78, .08);
}

.badge.soon { color: var(--muted); background: transparent; }

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px 32px;
  margin-top: 36px;
}

.feature h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; }
.feature h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 10px;
  vertical-align: 2px;
  box-shadow: 0 0 8px rgba(232, 163, 78, .5);
}
.feature p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

/* ---------- quote ---------- */

/* Jersey 25 has no italic master — keep everything upright so the browser
   never synthesizes a slanted pixel glyph. */
em, i, cite, blockquote { font-style: normal; }

blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--amber);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 30em;
}

/* ---------- two-column section body ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  margin-top: 12px;
}

.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); }
.prose p strong, .prose p em { color: var(--text); }

/* ---------- notice banner (support page) ---------- */

.notice {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: rgba(232, 163, 78, .07);
  border: 1px solid rgba(232, 163, 78, .35);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0;
  color: var(--text);
  font-size: 15.5px;
}

.notice .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(232, 163, 78, .5);
  position: relative;
  top: -1px;
}

/* ---------- numbered steps ---------- */

ol.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

ol.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--amber);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
}

ol.steps li strong { display: block; }
ol.steps li span { color: var(--muted); font-size: 15.5px; }

code {
  font-family: Consolas, Menlo, monospace;
  font-size: .9em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--amber-hi);
}

/* ---------- download rows ---------- */

.download {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.download + .download { margin-top: 14px; }

.download h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.download p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* ---------- FAQ ---------- */

details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
}

details + details { margin-top: 12px; }

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after { content: "+"; color: var(--amber); font-size: 20px; flex: none; }
details[open] summary::after { content: "\2212"; }

details p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

a { color: var(--amber-hi); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 64px 0; }
  .download { grid-template-columns: 1fr; }
  .nav a.link { margin-left: 16px; font-size: 14px; }
}
