/*
  Opisometer website, laid out like the layout-template design: a near-black canvas,
  or a pale paper in the light theme, ruled with faint vertical guidelines; thin
  uppercase Google Sans headlines; small monospaced index labels; hairline panels;
  and one warm bronze accent for what you can act on.

  Google Sans Flex comes from Google Fonts for the thin weights; Google Sans itself
  starts at 400. The theme follows the device until the switcher in the header picks
  one (theme.js). On the About page, gallery.js opens a screenshot larger.
*/

:root {
  --canvas: #111113;
  --panel: #161619;
  --card: #1c1c20;
  --text: #ffffff;
  --body: rgba(255, 255, 255, 0.78);
  --label: rgba(255, 255, 255, 0.88);
  --status: rgba(255, 255, 255, 0.6);
  --muted: rgba(255, 255, 255, 0.5);
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.18);
  --underline: rgba(255, 255, 255, 0.24);
  --accent: #c5a880;
  --accent-hover: #d8be99;
  --accent-muted: rgba(197, 168, 128, 0.14);
  --on-accent: #111113;
  --sans: "Google Sans Flex", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color-scheme: dark;
}

/* The light theme: the device asks for it, or the switcher chose it. The bronze is
   darker here so small labels stay readable on the paper. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas: #f6f6f7;
    --panel: #eeeeef;
    --card: #ffffff;
    --text: #121214;
    --body: rgba(18, 18, 20, 0.82);
    --label: rgba(18, 18, 20, 0.9);
    --status: rgba(18, 18, 20, 0.66);
    --muted: rgba(18, 18, 20, 0.6);
    --rule: rgba(0, 0, 0, 0.09);
    --rule-strong: rgba(0, 0, 0, 0.18);
    --underline: rgba(0, 0, 0, 0.24);
    --accent: #7f6243;
    --accent-hover: #6a5037;
    --accent-muted: rgba(127, 98, 67, 0.1);
    --on-accent: #ffffff;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --canvas: #f6f6f7;
  --panel: #eeeeef;
  --card: #ffffff;
  --text: #121214;
  --body: rgba(18, 18, 20, 0.82);
  --label: rgba(18, 18, 20, 0.9);
  --status: rgba(18, 18, 20, 0.66);
  --muted: rgba(18, 18, 20, 0.6);
  --rule: rgba(0, 0, 0, 0.09);
  --rule-strong: rgba(0, 0, 0, 0.18);
  --underline: rgba(0, 0, 0, 0.24);
  --accent: #7f6243;
  --accent-hover: #6a5037;
  --accent-muted: rgba(127, 98, 67, 0.1);
  --on-accent: #ffffff;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--body);
  font: 300 16px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

/* The vertical guidelines behind everything, down the whole page: quarters, or halves
   on a phone. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 768px) {
  body::before { background-size: 50% 100%; }
}

::selection { background: var(--accent); color: var(--on-accent); }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

strong { color: var(--text); font-weight: 500; }
kbd {
  padding: 1px 5px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

main.wrap { padding-top: 40px; }

.skip {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { top: 16px; color: var(--on-accent); }

/* Header: the wordmark, the four pages, the App Store, and the theme switcher. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); opacity: 0.9; }
.brand img { width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 22%; }

/* The wordmark, "opiso" with "meter" in bronze, in the header and the footer. */
.mark { color: var(--text); font-family: var(--sans); font-weight: 500; }
.mark em, .brand em { color: var(--accent); font-style: normal; font-weight: 300; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); }

/* The App Store pill. Until the app is listed it's a quiet outline; made a link to
   the listing, it fills with bronze. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
a.store { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
a.store:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--on-accent); }

.theme {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 -6px 0 -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.theme:hover { color: var(--text); }
.theme[hidden] { display: none; }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* The switcher shows where it goes: the sun in the dark theme, the moon in the light. */
.theme .moon { display: none; }
:root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme .sun { display: none; }
  :root:not([data-theme="dark"]) .theme .moon { display: block; }
}

@media (max-width: 900px) {
  .site-header .store { display: none; }
}

/* On a phone, the pages drop to a row of their own. */
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 14px 16px; min-height: 0; padding-top: 16px; padding-bottom: 14px; }
  .brand { order: 1; }
  .theme { order: 2; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
}

/* Index labels: "02 // About Opisometer", in bronze with a short rule after. */
.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  color: var(--accent);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.tag::after {
  content: "";
  flex: none;
  width: 48px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* About: the hero. */

.hero {
  position: relative;
  padding: 16px 0 64px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) { .hero { padding-bottom: 96px; } }

/* The marker bar down the left of the hero, on wide screens. */
.hero-rail { display: none; }
@media (min-width: 1024px) {
  .hero-rail {
    position: absolute;
    top: 0;
    bottom: 64px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    padding: 24px 0;
    border-right: 1px solid var(--rule);
  }
  .hero-body { padding-left: 96px; }
}
.index-card {
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--mono);
  text-align: center;
}
.index-card b { display: block; color: var(--accent); font-size: 20px; font-weight: 300; line-height: 1.4; }
.index-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.vertical {
  padding: 32px 0;
  color: var(--status);
  font: 400 9px/1 var(--mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-rail .year { color: var(--muted); font: 400 10px/1 var(--mono); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--status);
  font: 400 11px/1.6 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.meta-row b { color: var(--accent); font-weight: 600; }
.meta-row .aside { color: var(--muted); }
@media (max-width: 639px) { .meta-row .aside { display: none; } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 48px; } }

.hero-copy > * { margin: 0; }
.hero-copy > * + * { margin-top: 24px; }

.hero-id { display: flex; align-items: center; gap: 16px; }
.hero-id img {
  width: 80px;
  height: 80px;
  border: 1px solid var(--rule);
  border-radius: 22%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}
@media (min-width: 640px) { .hero-id img { width: 96px; height: 96px; } }
.hero-id .store { padding: 6px 14px; font-size: 11px; font-weight: 500; }
.hero-id .platforms { margin: 6px 0 0; color: var(--muted); font: 400 11px/1.5 var(--mono); }

.display {
  color: var(--text);
  font-size: clamp(1.875rem, 1.05rem + 3.3vw, 3.75rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.display span { display: block; font-weight: 400; }

.hero .lede { max-width: 36rem; color: var(--body); font-size: 18px; line-height: 1.65; }
.hero .sub { max-width: 36rem; color: var(--status); font-size: 14px; line-height: 1.65; }
@media (max-width: 639px) { .hero .lede { font-size: 16px; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; padding-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { padding: 12px 20px; border-color: var(--rule-strong); color: var(--text); font-weight: 400; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* The hero picture, an iPad screenshot, with its place and total under it. */
.hero-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}
.hero-card img { display: block; width: 100%; height: auto; }
.hero-card figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
}
.hero-card .place { color: var(--accent); font: 400 10px/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.hero-card .title { color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.hero-card .figure { flex: none; font: 400 12px/1.5 var(--mono); text-align: right; }
.hero-card .figure b { display: block; color: var(--accent); font-weight: 600; }
.hero-card .figure span { color: var(--muted); font-size: 10px; }

/* Sections below the hero. */

.section { padding: 80px 0; border-bottom: 1px solid var(--rule); }
.section.end { padding-bottom: 0; border-bottom: 0; }

/* About Opisometer, in three columns. */
.about-grid { display: grid; gap: 32px; }
.about-grid > * + * { padding-top: 24px; border-top: 1px solid var(--rule); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 4fr 5fr 3fr; gap: 48px; }
  .about-grid > * + * { padding-top: 0; padding-left: 32px; border-top: 0; border-left: 1px solid var(--rule); }
}
.about-grid h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.about-grid h2 span { display: block; color: var(--accent); }
@media (max-width: 639px) { .about-grid h2 { font-size: 20px; } }
.about-grid p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; }
.about-grid .fine { padding-top: 8px; color: var(--status); font-size: 12px; }

.label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label.quiet { margin-bottom: 12px; color: var(--label); }

.capabilities { margin: 0; padding: 0; list-style: none; counter-reset: capability; }
.capabilities li {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  counter-increment: capability;
}
.capabilities li::before {
  content: counter(capability, decimal-leading-zero);
  flex: none;
  padding-top: 2px;
  color: var(--accent);
  font: 600 10px/1.6 var(--mono);
}

.visual { display: flex; flex-direction: column; justify-content: space-between; }
.tile { margin: 0 0 12px; padding: 4px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 8px;
}
.visual .note { margin: 0; color: var(--status); font: 400 11px/1.6 var(--mono); }
.visual .stamp {
  margin: 0;
  padding-top: 16px;
  color: var(--muted);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Screenshots: four across, two on a phone, a run for iPhone then one for iPad. */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.gallery-head .tag { margin-bottom: 8px; }
.gallery-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 639px) { .gallery-head h2 { font-size: 24px; } }
.gallery-head > p { margin: 0; color: var(--status); font: 400 12px/1.6 var(--mono); }

.device + .device { margin-top: 48px; }
.device-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.device-head h3 {
  margin: 0;
  color: var(--label);
  font: 400 13px/1.4 var(--sans);
  letter-spacing: 0.18em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .shots.phone { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 900px) { .shots.tablet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.shot:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--card); color: inherit; }
.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font: 400 10px/1.4 var(--mono);
}
.shot-head b { color: var(--accent); font-weight: 600; }
.shot-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}
.frame img { display: block; width: 100%; height: auto; transition: transform 0.2s ease; }
.frame::before, .frame::after { position: absolute; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.frame::before { content: ""; inset: 0; background: rgba(0, 0, 0, 0.4); }
.frame::after {
  content: "View larger \2197";
  top: 50%;
  left: 50%;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 9px/1.6 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.shot:hover .frame img { transform: scale(1.04); }
.shot:hover .frame::before, .shot:hover .frame::after { opacity: 1; }
.shot-caption { margin-top: 10px; color: var(--label); font-size: 12px; font-weight: 400; line-height: 1.4; transition: color 0.15s ease; }
.shot:hover .shot-caption { color: var(--text); }
.shot-sub { margin-top: 2px; color: var(--muted); font: 400 11px/1.45 var(--mono); }

/* A screenshot, larger, over the dimmed page. Dark in both themes. */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(320px, 100%);
  max-width: min(100%, 1000px);
  max-height: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: #151518;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font: 400 12px/1.5 var(--mono);
}
.lb-bar p { margin: 0; }
.lb-top { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.lb-bottom { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.lb-title { color: #c5a880; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.lb-count { margin-left: 8px; color: rgba(255, 255, 255, 0.55); font-size: 10px; }
.lb-close {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  cursor: pointer;
}
.lb-close:hover { border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }
.lb-figure {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: #000000;
}
.lb-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 74px);
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
}
.lb-nav {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  cursor: pointer;
}
.lb-nav:hover { color: #c5a880; }
.lb-sub { min-width: 0; color: rgba(255, 255, 255, 0.78); font-size: 11px; text-align: center; }

/* Platforms and languages, side by side. */
.split { display: grid; gap: 40px; }
.split > * + * { padding-top: 32px; border-top: 1px solid var(--rule); }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split > * + * { padding-top: 0; padding-left: 40px; border-top: 0; border-left: 1px solid var(--rule); }
}
.col-head {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--label);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* A list of panels with a line icon: platforms, and Support's requirements. */
.rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
  line-height: 1.5;
}
.rows svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rows strong { display: block; font-weight: 500; }
.rows small { display: block; color: var(--status); font-size: 12px; }

.languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.languages li { display: flex; align-items: center; gap: 12px; }
.languages .code {
  flex: none;
  min-width: 32px;
  padding: 3px 0;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 4px;
  background: var(--accent-muted);
  color: var(--accent);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
}
.languages .name { display: block; color: var(--label); font-size: 15px; line-height: 1.3; }
.languages .english { display: block; color: var(--muted); font-size: 11px; }
.split .note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--status);
  font-size: 12px;
  line-height: 1.7;
}

/* Support, Privacy and License: one centered column. */

.doc { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.doc .tag { margin-bottom: 16px; }
.doc h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 36px;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 639px) { .doc h1 { font-size: 30px; } }
.doc .kicker {
  margin: 0 0 32px;
  color: var(--status);
  font: 400 12px/1.6 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.callout {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
}
.callout p { margin: 0 0 12px; font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout .lede { color: var(--text); font-size: 18px; font-weight: 200; line-height: 1.5; }
.callout a { color: var(--accent); font-weight: 400; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 639px) { .callout .lede { font-size: 16px; } }
.doc h2 {
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.doc p, .doc li { margin: 0 0 14px; }
.doc ul { padding-left: 20px; }
.doc li::marker { color: var(--muted); }
.doc .rows { margin-bottom: 8px; padding-left: 0; }
.doc .rows li { margin: 0; }

/* License: the terrain credits, which are legal wording. */
.doc .credits { padding-left: 0; list-style: none; }
.doc .credits li { margin-bottom: 10px; color: var(--status); font-size: 14px; line-height: 1.5; }

/* Footer. */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 400 12px/1.5 var(--mono);
  text-align: center;
}
@media (min-width: 640px) { .site-footer { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .store-link { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .shot:hover .frame img { transform: none; }
}
