/* Lumiose Online
   Layout: a sky band (day or night, following the visitor's light / dark setting) with the city skyline cut out of the
   page colour, then one short centred column: features, three join steps, the Discord. Headings in Bodoni italic, text in
   Hanken Grotesk, code in Fragment Mono. */

:root {
  /* day */
  --bg: #e9eef5;          /* the page, and the sunlit front row of buildings */
  --panel: #f7f9fc;
  --ink: #161f39;
  --ink-2: #4a5470;
  --rule: #cdd5e3;
  --code-bg: #dde4ee;
  --lamp: #95510a;        /* amber for text and lines on the page */
  --lamp-fill: #f1b453;   /* lamplight: buttons and highlights in both themes */
  --on-lamp: #24180a;
  --neon: #6643d1;
  --on-neon: #ffffff;
  --ok: #1b7d4c;
  --bad: #b22f3b;
  --veil: rgba(247, 249, 252, 0.78);

  --sky-top: #93b4de;
  --sky-mid: #bcd0ea;
  --sky-bottom: #e3eaf4;
  --hero-ink: #131b33;
  --hero-ink-2: #2a3554;
  --glow: rgba(241, 180, 83, 0);
  --mark-glass: #f4efe2;

  /* read by the skyline script */
  --scene: day;
  --bldg-far: #c5d1e3;
  --bldg-mid: #8797b5;
  --roof-mid: #75859f;
  --bldg-near: #e9eef5;
  --roof-near: #a3b0c6;
  --win: #a7b4cb;
  --win-shine: #f7f9fc;
  --win-off: #7b8aa8;
  --star: #fff7e6;
  --moon: #f7f1df;
  --sun: #fff8e6;

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: "Fragment Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --skyline-h: clamp(150px, 22vw, 250px);   /* keep in step with skylineHeight() in site.js */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1122;
    --panel: #141b33;
    --ink: #ebe8f5;
    --ink-2: #a5abc6;
    --rule: #262f4f;
    --code-bg: #1c2442;
    --lamp: #f4b95c;
    --lamp-fill: #f1b453;
    --on-lamp: #24180a;
    --neon: #b394ff;
    --on-neon: #140c2c;
    --ok: #4fd08f;
    --bad: #ff7d88;
    --veil: rgba(12, 17, 34, 0.66);
    --sky-top: #04060e;
    --sky-mid: #0c1130;
    --sky-bottom: #2b1e55;
    --hero-ink: #f1eef8;
    --hero-ink-2: #c0c4dc;
    --glow: rgba(241, 180, 83, 0.42);
    --mark-glass: #f1b453;
    --scene: night;
    --bldg-far: #1d2248;
    --bldg-mid: #131935;
    --roof-mid: #131935;
    --bldg-near: #0c1122;
    --roof-near: #0c1122;
    --win: #f4b95c;
    --win-shine: #b394ff;
    --win-off: #161d39;
    --star: #fff7e6;
    --moon: #f7f1df;
    --sun: #fff8e6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c1122;
  --panel: #141b33;
  --ink: #ebe8f5;
  --ink-2: #a5abc6;
  --rule: #262f4f;
  --code-bg: #1c2442;
  --lamp: #f4b95c;
  --lamp-fill: #f1b453;
  --on-lamp: #24180a;
  --neon: #b394ff;
  --on-neon: #140c2c;
  --ok: #4fd08f;
  --bad: #ff7d88;
  --veil: rgba(12, 17, 34, 0.66);
  --sky-top: #04060e;
  --sky-mid: #0c1130;
  --sky-bottom: #2b1e55;
  --hero-ink: #f1eef8;
  --hero-ink-2: #c0c4dc;
  --glow: rgba(241, 180, 83, 0.42);
  --mark-glass: #f1b453;
  --scene: night;
  --bldg-far: #1d2248;
  --bldg-mid: #131935;
  --roof-mid: #131935;
  --bldg-near: #0c1122;
  --roof-near: #0c1122;
  --win: #f4b95c;
  --win-shine: #b394ff;
  --win-off: #161d39;
  --star: #fff7e6;
  --moon: #f7f1df;
  --sun: #fff8e6;
  color-scheme: dark;
}

/* ---- base ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--lamp); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
code {
  font-family: var(--f-mono);
  font-size: 0.86em;
  padding: 0.08em 0.36em;
  border-radius: 4px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  z-index: 20;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--lamp-fill);
  color: var(--on-lamp);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--hero-ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  padding-bottom: var(--skyline-h);
}
.skyline {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.mark-glass { fill: var(--mark-glass); stroke: var(--hero-ink); stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--glow)); }
.mark-iron { fill: none; stroke: var(--hero-ink); stroke-width: 1.6; stroke-linecap: round; }
.brand-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.brand-name small,
.foot-brand small {
  font: 600 0.7rem/1 var(--f-body);
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-left: 0.3em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--hero-ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.hero-copy {
  max-width: 45rem;
  padding-block: clamp(28px, 7vw, 84px) 28px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--hero-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wordmark { margin: 0; font-weight: 400; line-height: 1; }
.wm-1 {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.5rem, 12.5vw, 7.75rem);
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-shadow: 0 0 30px var(--glow), 0 0 3px var(--glow);
}
.wm-2 {
  display: block;
  margin-top: 0.75em;
  padding-left: 0.25em;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.52em;
  text-transform: uppercase;
}
.lede {
  max-width: 35rem;
  margin: 26px 0 0;
  color: var(--hero-ink-2);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.5;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary { background: var(--lamp-fill); color: var(--on-lamp); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(241, 180, 83, 0.3); }
.btn-ghost { border-color: currentColor; color: var(--hero-ink); }
.btn-ghost:hover { background: var(--veil); }
.btn-soon {
  border: 1.5px dashed var(--ink-2);
  color: var(--ink-2);
  cursor: not-allowed;
  user-select: none;
}
.hero .btn-soon { border-color: var(--hero-ink-2); color: var(--hero-ink-2); }

/* status pill (hero) */
.status-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 26px 0 0;
  padding: 8px 16px 8px 13px;
  border-radius: 20px;
  background: var(--veil);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}
.pill-phase { color: var(--ink-2); }
.pill-phase:empty { display: none; }
.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-2);
}
[data-state="live"] .dot,
[data-state="sample"] .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 208, 143, 0.25); }
[data-state="stale"] .dot { background: var(--bad); }
.chip-sample {
  display: none;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--neon);
  color: var(--on-neon);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[data-state="sample"] .chip-sample { display: inline-block; }

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

.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-band { background: var(--panel); }
.sec-head {
  display: grid;
  gap: 10px;
  max-width: 46rem;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.sec-head p { margin: 0; color: var(--ink-2); }
h2 {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
}

/* features */
.ico {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--lamp);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-lg { width: 40px; height: 40px; stroke-width: 1.4; }
.feat-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}
.feat-top h3 {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.12;
}
.feat-top p { max-width: 48rem; margin: 10px 0 0; color: var(--ink-2); }
.feats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 680px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feat {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
}
.feat .ico { grid-row: span 2; margin-top: 1px; }
.feat h3 { margin: 0 0 3px; font-size: 1.06rem; font-weight: 700; line-height: 1.35; }
.feat p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* join */
.steps3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps3 li {
  position: relative;
  padding-top: 46px;
  color: var(--ink-2);
  counter-increment: step;
}
.steps3 li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--lamp);
  border-radius: 50%;
  color: var(--lamp);
  font-weight: 700;
  line-height: 29px;
  text-align: center;
}
.steps3 b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.06rem; }
.soon { font-style: italic; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-dl { padding: 9px 20px; font-size: 0.95rem; }
.btn-line { border-color: var(--lamp); color: var(--ink); }
.btn-line:hover { background: var(--veil); }
.dl-meta { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--ink-2); }

.server-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(32px, 5vw, 48px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}
@media (min-width: 760px) {
  .server-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.server-card > div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 16px 20px; }
.server-card > div + div { border-top: 1px solid var(--rule); }
@media (min-width: 760px) {
  .server-card > div + div { border-top: 0; border-left: 1px solid var(--rule); }
}
.lbl {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.val {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sub { color: var(--ink-2); font-size: 0.9rem; }
.rules-line { max-width: 52rem; margin: 22px 0 0; color: var(--ink-2); }
.rules-line b { color: var(--ink); }

/* install guide (Eden and Switch) and the controls */
.sub-h {
  margin: clamp(40px, 6vw, 60px) 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.1;
}
.install-line { max-width: 52rem; margin: 10px 0 0; color: var(--ink-2); }
.install-line b { color: var(--ink); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 18px 0 8px; }
@media (min-width: 760px) {
  .install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.install-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 20px 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}
.install-card h4 { margin: 0; color: var(--ink); font-size: 1.12rem; }
.install-card .btn { justify-self: start; }
.install-card ol { display: grid; gap: 6px; margin: 0; padding-left: 1.3em; color: var(--ink-2); }
.controls-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 32px;
  max-width: 60rem;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .controls-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.controls-list li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: baseline; gap: 4px 12px; }
.keys { color: var(--ink); font-weight: 600; }
kbd {
  font-family: var(--f-mono);
  font-size: 0.82em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
}

/* discord */
.discord-band { display: grid; gap: 22px 48px; align-items: center; }
@media (min-width: 820px) {
  .discord-band { grid-template-columns: minmax(0, 1fr) auto; }
}
.discord-band p { max-width: 40rem; margin: 12px 0 0; color: var(--ink-2); }

/* footer */
.foot {
  padding-block: 44px 60px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.foot-inner { display: grid; gap: 14px; }
.foot p { margin: 0; }
.foot-brand {
  color: var(--ink);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
}
.legal { max-width: 46rem; }
