:root {
  color-scheme: light;
  --panel: #ebe5d9;
  --plate: #ddd5c6;
  --ink: #161514;
  --muted: #6b665e;
  --faint: #a39d92;
  --led: #ff5a1f;
  /* The LED orange darkened to 4.5:1 on --panel, for small text. */
  --led-ink: #b33c0c;
  --rule: 1.5px solid var(--ink);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--panel);
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--panel);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 56px);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0 10px;
  border-bottom: var(--rule);
}

.mark {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.langs {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 14px;
}

.langs a {
  padding: 10px 4px;
  color: var(--muted);
  text-decoration: none;
}

.langs a:hover,
.langs a[aria-current] {
  color: var(--ink);
}

.langs a[aria-current] {
  font-weight: 500;
}

.kicker,
.meta,
.panel b,
.panel span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kicker {
  color: var(--led-ink);
  font-size: 12px;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 9vh, 104px) 0 clamp(56px, 10vh, 112px);
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sub {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.45;
}

.status {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--panel);
  font-weight: 500;
  text-decoration: none;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--led);
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.sub,
.story p {
  text-wrap: pretty;
}

.note {
  text-wrap: balance;
}

.panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px 8px 20px;
  border: var(--rule);
  border-radius: 10px;
  background: var(--plate);
}

.channel {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.slot {
  position: relative;
  width: 4px;
  height: clamp(160px, 22vw, 240px);
  margin-bottom: 10px;
  border-radius: 2px;
  background: var(--ink);
}

/* The cap: its groove is the page colour, like the gap in the app's menu bar icon. */
.slot i {
  position: absolute;
  left: 50%;
  width: 44px;
  height: 22px;
  margin-left: -22px;
  border-radius: 4px;
  background: var(--ink);
}

.slot i::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 10px;
  height: 2px;
  background: var(--panel);
}

.panel b {
  font-size: 14px;
  font-weight: 500;
}

.panel span {
  color: var(--muted);
  font-size: 11px;
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 7vh, 72px) 0;
  border-top: var(--rule);
}

.story img {
  border: var(--rule);
  border-radius: 8px;
  background: var(--plate);
}

.story h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.story h2 + p {
  margin-top: 14px;
  max-width: 28em;
  color: var(--muted);
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  padding: 32px 0 40px;
  border-top: var(--rule);
}

.features strong {
  display: block;
  font-weight: 500;
}

.features span {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

footer {
  padding: 16px 0 28px;
  border-top: var(--rule);
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--ink);
}

@media (min-width: 760px) {
  .story:nth-of-type(even) img {
    order: 1;
  }
}

@media (max-width: 759px) {
  .hero,
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 36px 0 48px;
  }

  .status {
    margin-top: 24px;
  }

  .slot {
    height: 150px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
