/* Tokens, fonts, toggle and breakpoints are copied from the main site's src/styles.css on purpose:
   each site is self-contained and ships on its own. */
:root {
  --bg: #0c0b10;
  --panel: #13121a;
  --line: #1c1a24;
  --text: #e6e4ec;
  --muted: #9a97a6;
  --faint: #6f6c7c;
  --dim: #4a4758;
  --accent: oklch(78% 0.12 300);
  --input-border: #221f2c;
  --ph1: #17161f;
  --ph2: #131219;
  --ph-border: #2a2735;
  --shadow: none;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f5f8;
  --panel: #ffffff;
  --line: #e3e1ea;
  --text: #16151c;
  --muted: #5f5c6c;
  --faint: #8a879a;
  --dim: #a8a5b4;
  --accent: oklch(50% 0.16 300);
  --input-border: #dcdae4;
  --ph1: #f1f0f5;
  --ph2: #f7f6fa;
  --ph-border: #d3d0de;
  --shadow: 0 1px 2px rgba(22, 21, 28, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

button { font: inherit; cursor: pointer; }

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 56px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  transition: color .2s, border-color .2s;
}
.theme-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.theme-toggle:hover { color: var(--text); border-color: var(--faint); }

.page > main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}

.app-icon { display: block; width: 112px; height: 112px; }

.kicker {
  margin: 0 0 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.hero h1 { font-size: 56px; }

.subtitle {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: color .2s, border-color .2s;
}
.btn:hover { border-color: var(--faint); }

/* The primary button keeps a transparent border so both buttons are the same height.
   The colour is set again on hover because a:hover would turn the label light on the light accent. */
.btn-primary { border-color: transparent; background: var(--text); color: var(--bg); }
.btn-primary:hover { border-color: transparent; background: var(--accent); color: var(--bg); }

.meta {
  margin: 24px 0 0;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.window {
  position: relative;
  /* All screenshots are 1920x1020 windows; the frame keeps that ratio so nothing is cropped. */
  aspect-ratio: 1920 / 1020;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.window > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.views figure { margin: 0; }

.views figcaption {
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.label {
  margin: 0 0 24px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.status p {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.status .more { display: inline-block; margin-top: 16px; font-size: 14px; }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 48px 0 56px;
}

.copyright { font-size: 12px; color: var(--dim); }

.links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  min-height: 100vh;
  padding: 48px;
}


@media (max-width: 1240px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .page { padding: 0 24px; }
  h1 { font-size: 30px; }
  .page > main { gap: 48px; margin-top: 48px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: 40px; }
  .app-icon { order: -1; width: 88px; height: 88px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .views { grid-template-columns: minmax(0, 1fr); }
  .not-found { padding: 28px 24px 32px; }
}

/* Release notes */
.bar-start { display: flex; align-items: center; gap: 24px; min-width: 0; }

.crumbs { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.page > main.release { gap: 40px; margin-top: 56px; }

.release-head h1 { font-size: 56px; }

.release-summary {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.release-head .actions { margin-top: 28px; }

.highlights .label { margin-bottom: 12px; }

.highlights ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas: "body toc";
  gap: 48px;
  align-items: start;
}
.release-layout.no-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }

.release-body { grid-area: body; min-width: 0; }

/* The list comes first in the HTML so that it sits above the body on a narrow screen. */
.toc { grid-area: toc; position: sticky; top: 24px; max-width: 220px; }
.toc .label { margin-bottom: 12px; }
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.toc a:hover { color: var(--text); }

.release-body h2 {
  margin: 48px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 24px;
  text-wrap: pretty;
}
.release-body h3 {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  scroll-margin-top: 24px;
}
.release-body > :first-child { margin-top: 0; }

.release-body p,
.release-body ul,
.release-body ol {
  max-width: 680px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.release-body ul,
.release-body ol { padding-left: 22px; }
.release-body li + li { margin-top: 6px; }
.release-body strong { font-weight: 500; color: var(--text); }

.release-body code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}
.release-body pre {
  max-width: 680px;
  margin: 16px 0 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.release-body pre code { padding: 0; border: 0; background: none; line-height: 1.6; }

.release-body p a,
.release-body li a {
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.release-body p a:hover,
.release-body li a:hover { text-decoration-color: var(--text); }

.release-body .media { margin: 24px 0; }
.media .window { aspect-ratio: auto; }
.media img,
.media video { display: block; width: 100%; height: auto; }
.media figcaption {
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.release-card { display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.release-card:hover { border-color: var(--faint); }
.release-card-meta { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--faint); }
.release-card-version { color: var(--accent); }
.release-card-summary { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.release-card-more { margin-top: 4px; font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .page > main.release { gap: 32px; margin-top: 40px; }
  .release-head h1 { font-size: 40px; }
  .release-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "body"; gap: 32px; }
  .release-layout.no-toc { grid-template-areas: "body"; }
  .toc { position: static; max-width: none; }
}

@media (max-width: 600px) {
  /* Logo and toggle share the first row; the path moves to a row of its own under them. */
  .bar { flex-wrap: wrap; gap: 12px; }
  .bar-start { display: contents; }
  .bar .theme-toggle { order: 1; }
  .crumbs { order: 2; flex-basis: 100%; }
}
