/* Tokens Not Included site. The palette is the colony page's own: the night ground #080b11, a raised panel
   #111a17 from its green floors, rule #26332d, text #e7e9e7, quiet #9aa79f, and one accent, the page's
   gold #ffd23f. Same layout as the Command Bridge site, so the two read as one family. */
:root {
  --ground: #080b11;
  --raised: #111a17;
  --rule: #26332d;
  --text: #e7e9e7;
  --quiet: #9aa79f;
  --gold: #ffd23f;
  --gold-deep: #3a3110;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --measure: 38rem;
  --wide: 72rem;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img, video { max-width: 100%; display: block; }
code { font: 0.9em var(--mono); color: var(--text); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* Top bar: the name and the links, nothing else. */
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.bar .name { font: 600 1.05rem var(--cond); letter-spacing: 0.01em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.mark { width: 0.85rem; height: 0.85rem; border-radius: 2px; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-deep); }
.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { color: var(--quiet); text-decoration: none; font-size: 0.95rem; }
.bar nav a:hover { color: var(--text); }

/* Hero: the claim on the left, the colony on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.hero h1 { font: 600 clamp(2.4rem, 4.6vw, 3.9rem)/1.04 var(--cond); letter-spacing: -0.015em; margin: 0 0 1.25rem; }
.hero p { color: var(--quiet); font-size: 1.15rem; margin: 0 0 1.75rem; max-width: 30rem; }
.hero figure { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-block; padding: 0.7rem 1.15rem; border-radius: 6px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid var(--rule); color: var(--text); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--ground); }
.btn.primary:hover { background: #ffe27a; color: var(--ground); }
.btn:hover { border-color: var(--quiet); color: var(--text); }
video { width: 100%; border-radius: 8px; border: 1px solid var(--rule); background: #000; }
figcaption { color: var(--quiet); font-size: 0.88rem; margin-top: 0.6rem; }

/* Coming soon, across the full width under the hero, where the Command Bridge site has its install line. */
.soon { grid-column: 1 / -1; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.25rem; }
.soon-title { font: 600 1.25rem/1.3 var(--cond); margin: 0 0 0.3rem; letter-spacing: 0; }
.hero .soon p { margin: 0; max-width: none; font-size: 1rem; }

section { padding: 4rem 0; border-top: 1px solid var(--rule); }
h2 { font: 600 clamp(1.7rem, 2.8vw, 2.3rem)/1.15 var(--cond); margin: 0 0 1rem; letter-spacing: -0.01em; }
.lede { color: var(--quiet); max-width: var(--measure); margin: 0 0 2.5rem; }

/* The colony: three steps, each with its clip. */
.step { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1.25rem; margin: 0 0 4rem; }
.step:last-child { margin-bottom: 0; }
.step .n { font: 600 1.4rem/1 var(--cond); color: var(--ground); background: var(--gold); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; margin-top: 0.2rem; }
.step h3 { font: 600 1.45rem/1.25 var(--cond); margin: 0.25rem 0 0.5rem; }
.step p { margin: 0 0 1.25rem; max-width: var(--measure); color: var(--quiet); }
.stage { grid-column: 2; }

/* Overlays: four clips, two by two. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
.grid figure { margin: 0; }
.grid strong { color: var(--text); font-weight: 600; }

/* What it is, in three plain facts. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.facts h3 { font: 600 1.15rem/1.3 var(--cond); margin: 0 0 0.4rem; }
.facts p { margin: 0; color: var(--quiet); font-size: 0.98rem; }

/* Writing: the posts it came out of, newest first. */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.posts a { text-decoration: none; color: var(--text); display: block; }
.posts img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 6px; border: 1px solid var(--rule); margin-bottom: 0.8rem; }
.posts strong { display: block; font: 600 1.05rem/1.3 var(--cond); margin-bottom: 0.3rem; }
.posts span { display: block; color: var(--quiet); font-size: 0.9rem; line-height: 1.5; }
.posts a:hover strong { color: var(--gold); }

.get-it { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.get-it p { margin: 0; color: var(--quiet); max-width: var(--measure); }

footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--quiet); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; }
  .facts, .posts, .grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step .n { margin-bottom: 0.75rem; }
  .stage { grid-column: 1; }
  .bar nav { gap: 0.9rem; }
  .bar nav a { font-size: 0.88rem; }
}
/* On a phone the header holds the name plus two links. */
@media (max-width: 520px) {
  .bar nav a[href="#writing"], .bar nav a[href="#overlays"] { display: none; }
}
