/* Starlands — the palette is the game's UI kit (src/ui/kit.rs). */

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0a0c10;        /* the page under everything */
  --card: #12151a;      /* a card face */
  --rail: #0e1116;      /* rails and wells */
  --divider: #1c2026;
  --bevel-light: #2c3138;
  --bevel-dark: #07080b;
  --accent: #6f9fb0;    /* steel blue */
  --accent-light: #9dc0cd;
  --accent-dark: #3f5f6d;
  --accent-hover: #82aebe;
  --text: #cfd3d9;
  --text-dim: #7c8188;
  --text-faint: #545a62;
  --strong: #e8ebef;
  --you: #f2c25a;       /* gold */
  --good: #8dbf8a;
  --pill-bg: #131a1c;
  --pill-border: #2c3a3c;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); }
a:hover { color: var(--strong); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 16px;
}

.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* bevels — raised: light top/left; inset: dark top/left */
.raised { border: 2px solid; border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light); }
.inset  { border: 2px solid; border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark); }

/* ── header ─────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--divider); }
.site-header .wrap {
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--strong);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2em;
}
.brand img { width: 36px; height: 36px; }

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.pill .dot { width: 8px; height: 8px; background: var(--good); }
.pill .on { color: var(--good); font-weight: 600; }
.pill .sep { color: var(--text-faint); }
.pill .off { color: var(--text-dim); }

/* ── hero ───────────────────────────────────────────── */

.hero {
  padding-block: clamp(40px, 8vw, 104px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--strong);
}
.hero h1 em { font-style: normal; color: var(--you); }

.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 32em;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-color: var(--accent-light) var(--accent-dark) var(--accent-dark) var(--accent-light);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-secondary {
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}
.btn-secondary:hover { background: #181c22; color: var(--strong); }
.btn svg { width: 18px; height: 18px; }

.feed {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.feed-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}
.feed .shot { margin: 16px; aspect-ratio: 16 / 10; }
.feed dl { margin: 0; padding: 0 16px 12px; font-size: 12px; }
.feed dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.feed dl div:last-child { border-bottom: 0; }
.feed dt { color: var(--text-dim); }
.feed dd { margin: 0; color: var(--strong); text-align: right; }
.feed dd.zero { color: var(--good); font-weight: 600; }

/* ── key strip ──────────────────────────────────────── */

.keys { border-block: 1px solid var(--divider); background: var(--rail); }
.keys ul {
  list-style: none;
  margin: 0 auto;
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.keys kbd {
  font: inherit;
  color: var(--accent-light);
  padding: 2px 6px;
  border: 1px solid var(--bevel-light);
  margin-right: 6px;
}

/* ── screenshots ────────────────────────────────────── */

.screens {
  padding-block: 64px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.screens-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.screens-head h2 { margin: 0; }
.screens-head span:last-child { font-size: 12px; color: var(--text-faint); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery .wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

.shot {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--rail) 0 14px, var(--card) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption {
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ── footer ─────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--divider); margin-top: auto; }
.site-footer .wrap {
  padding-block: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}
