:root {
  --paper: #F8F3E9;
  --card: #FFFFFF;
  --ink: #1A1A18;
  --muted: #4A4842;
  --link: #8E1528;
  --red: #D0020F;
  --on-red: #FFFFFF;
  --rule: #B3A08E;
  --edge: #9A7874;
  --open: #C0261D;
  --waiting: #A8740F;
  --resolved: #3E7D4F;
  color-scheme: light;
}
/* Dark is the app's 濃藍 scheme (DARK in App.kt): ground, card, primary,
   outlineVariant and the lifted outline, so the site and the phone match. */
:root[data-theme="dark"] {
  --paper: #0E1526;
  --card: #16203A;
  --ink: #F0E7D6;
  --muted: #C7C0B1;
  --link: #9EB0DC;
  --red: #9EB0DC;
  --on-red: #0E1526;
  --rule: #333F60;
  --edge: #4E5A7E;
  --cta-lip: #404B66;
  --open: #E8837A;
  --waiting: #E0B45A;
  --resolved: #8CC29A;
  --shot-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1526;
    --card: #16203A;
    --ink: #F0E7D6;
    --muted: #C7C0B1;
    --link: #9EB0DC;
    --red: #9EB0DC;
    --on-red: #0E1526;
    --rule: #333F60;
    --edge: #4E5A7E;
    --cta-lip: #404B66;
    --open: #E8837A;
    --waiting: #E0B45A;
    --resolved: #8CC29A;
    --shot-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/ui/manrope.ttf?v=a1132a84") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
/* A phone: no grey tap flash (the pressed states say it instead), and the text
   keeps its size when the phone turns (ADR-437). */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a.cta, .cta, .badge, .quiet, button { touch-action: manipulation; }
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 Manrope, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
a { color: var(--link); }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.skip:focus { transform: none; top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 48px;
}
.prose { max-width: 40rem; }
.providers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
/* Apple's script fills its holder, so the holder sets the size: Google's large button is 40 px tall. */
#appleid-signin { width: 210px; height: 40px; cursor: pointer; }
.prose h1 { margin-top: 36px; }

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.mark {
  display: block;
  width: 28px;
  height: 26px;
  flex: none;
  background: var(--ink);
  -webkit-mask: url("/mark.svg?v=ef8dfda4") center / contain no-repeat;
  mask: url("/mark.svg?v=ef8dfda4") center / contain no-repeat;
}
.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 18px;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--link); text-decoration: underline; } }
.nav a:active { color: var(--link); text-decoration: underline; }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.theme {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 36px;
}
.headline {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 12em;
}
h1 { font-size: 32px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; margin: 28px 0 12px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 500; margin: 28px 0 8px; }
.lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 36em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 24px;
}
.cta {
  display: inline-block;
  background: var(--red);
  color: var(--on-red);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) { .cta:hover { text-decoration: underline; color: var(--on-red); } }
.quiet {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .quiet:hover { text-decoration: underline; } }
.quiet:active { text-decoration: underline; }

.sample {
  display: block;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 18px 18px 20px;
  color: inherit;
  text-decoration: none;
}
.sample .field {
  margin: 0 0 16px;
  padding: 8px 10px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  font-size: 15px;
}
.sample .word {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
}
.sample .sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.points h2 { margin: 0 0 6px; font-size: 16px; }
.points p { margin: 0; color: var(--muted); }

/* Home: a place behind the hero, the app itself in each section. */
body { overflow-x: clip; }
.hero-band {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
  background: var(--paper) url("/art/places/kyoto-w.webp?v=0ca6a45b") right 70% / cover no-repeat;
  border-bottom: 1px solid var(--rule);
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, color-mix(in srgb, var(--paper) 72%, transparent) 50%, color-mix(in srgb, var(--paper) 10%, transparent) 78%);
}
:root[data-theme="dark"] .hero-band { background-image: url("/art/places/kyoto-nw.webp?v=c68588eb"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-band { background-image: url("/art/places/kyoto-nw.webp?v=c68588eb"); }
}
.hero-band .hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  padding: 64px 0 72px;
}
.hero-band .headline { font-size: clamp(36px, 3vw + 18px, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.hero-band .lede { color: var(--ink); opacity: 0.86; }
.cta {
  font-weight: 700;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--cta-lip, #8E1528);
}
@media (hover: hover) and (pointer: fine) { .cta:hover { text-decoration: none; filter: brightness(1.06); } }
/* A press: the same 97% the study app gives its buttons (ADR-437). */
@media (prefers-reduced-motion: no-preference) {
  .cta, .badge { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
  .cta:active, .badge:active { transform: scale(0.97); transition-duration: 120ms; }
}
.shot { margin: 0; }
.shot img.dark-only { display: none; }
:root[data-theme="dark"] .shot img.light-only { display: none; }
:root[data-theme="dark"] .shot img.dark-only { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot img.light-only { display: none; }
  :root:not([data-theme="light"]) .shot img.dark-only { display: block; }
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--edge) 40%, transparent);
  box-shadow: var(--shot-shadow, 0 2px 4px rgba(40, 25, 10, 0.08), 0 24px 60px rgba(40, 25, 10, 0.22));
  background: var(--card);
}
/* A phone's screen, portrait: drawn at about a phone's width rather than the column's. */
.shot.phone img { max-width: 340px; margin: 0 auto; }
/* The course by level: kana, then N5 to N1, each a deeper dip of one Edo dye.
   A bar's height (--h, set per level in the markup) is 84 + 236 * sqrt(words / 4,275) px,
   so N1's four thousand words stand tallest without flattening kana. Indigo in the dark
   theme, safflower red in the light, whose last step is the light theme's own link red. */
.vat {
  margin: 0;
  --row: 320px;
  --d1: #F7E4E0; --d2: #F0C3BC; --d3: #E49189; --d4: #D5525A; --d5: #B81E2C; --d6: #8E1528;
  --pale-ink: #5A1A1F; --deep-ink: #FFF6F2;
}
:root[data-theme="dark"] .vat {
  --d1: #DCE8EC; --d2: #AFCBD8; --d3: #84A9C2; --d4: #5B83A6; --d5: #3A6089; --d6: #24406A;
  --pale-ink: #1A2A44; --deep-ink: #F3ECDD;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vat {
    --d1: #DCE8EC; --d2: #AFCBD8; --d3: #84A9C2; --d4: #5B83A6; --d5: #3A6089; --d6: #24406A;
    --pale-ink: #1A2A44; --deep-ink: #F3ECDD;
  }
}
.vat ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(var(--edge), var(--edge)) 0 var(--row) / 100% 1px no-repeat;
}
.vat li { display: grid; grid-template-rows: var(--row) auto; }
.vat-bar {
  align-self: end;
  height: var(--h);
  position: relative;
  border-radius: 4px 4px 0 0;
  background: var(--dye);
  color: var(--pale-ink);
}
.vat li:nth-child(1) { --dye: var(--d1); }
.vat li:nth-child(2) { --dye: var(--d2); }
.vat li:nth-child(3) { --dye: var(--d3); }
.vat li:nth-child(4) .vat-bar { --dye: var(--d4); color: var(--deep-ink); }
.vat li:nth-child(5) .vat-bar { --dye: var(--d5); color: var(--deep-ink); }
.vat li:nth-child(6) .vat-bar { --dye: var(--d6); color: var(--deep-ink); }
.vat-glyph {
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 42px;
  line-height: 1;
}
.surface .vat-label { margin: 0; padding-top: 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.vat-label b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.vat-label span { display: block; }
.surface.vat-section { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr); gap: 64px; }
@media (max-width: 800px) {
  .surface.vat-section { grid-template-columns: 1fr; gap: 32px; }
  .vat { --row: 192px; }
  .vat ol { gap: 6px; }
  .vat-bar { height: calc(var(--h) * 0.6); }
  .vat-glyph { left: 50%; transform: translateX(-50%); top: 10px; font-size: 26px; }
  .vat-label span + span { display: none; }
  .surface .vat-label { font-size: 12px; text-align: center; }
  .vat-label b { font-size: 14px; }
}
.surface {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.surface.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.surface.flip .surface-copy { order: 2; }
.surface h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.surface p { color: var(--muted); margin: 0 0 16px; font-size: 18px; }
.surface .kicker {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--edge) 45%, transparent);
  color: var(--red);
  font-size: 30px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
@media (max-width: 800px) {
  .hero-band .hero, .surface { grid-template-columns: 1fr; gap: 32px; }
  .surface.flip { grid-template-columns: 1fr; }
  .surface.flip .surface-copy { order: 0; }
  .hero-band::before { background: color-mix(in srgb, var(--paper) 80%, transparent); }
  .surface { padding: 48px 0; }
}

.offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.offer {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 16px 16px 18px;
}
.offer h2 { margin: 0 0 8px; font-size: 17px; }
.offer .amount {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  color: var(--link);
}
.offer p { margin: 0; color: var(--muted); font-size: 15px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.foot a { color: var(--muted); }
.foot .mail { margin-left: auto; }

.prose ul { padding-left: 1.2rem; }
.muted { color: var(--muted); }

.search {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}
.search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 12px;
}
.search button {
  font: inherit;
  font-weight: 500;
  color: var(--on-red);
  background: var(--red);
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.status { color: var(--muted); min-height: 1.5em; }
.hits { list-style: none; padding: 0; margin: 8px 0 0; }
.hits li { border-top: 1px solid var(--rule); }
.hits li:last-child { border-bottom: 1px solid var(--rule); }
.hits a { display: block; padding: 12px 0; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .hits a:hover .word { text-decoration: underline; } }
.hits a:active .word { text-decoration: underline; }
.hits .word { margin: 0; font-size: 22px; font-weight: 500; }
.reading, .hits .gloss, .sense .speech, .sense .ex { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.sense { margin: 0 0 18px; }
.sense .gloss { margin: 0; }
.sense .ex { margin: 6px 0 0; }

.faq { margin: 12px 0 0; }
.faq details {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.issues-none { color: var(--muted); }
.versions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
}
.versions div { padding: 10px 14px; border-left: 1px solid var(--rule); }
.versions div:first-child { border-left: 0; }
.versions dt { font-size: 14px; color: var(--muted); }
.versions dd { margin: 0; font-size: 14px; color: var(--muted); }
.versions dd.num { font-size: 20px; font-weight: 500; color: var(--ink); }
@media (max-width: 560px) {
  .versions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .versions div:nth-child(3) { border-left: 0; }
  .versions div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Each status has its own colour: a dot by the heading, a bar down each row. */
.status-open { --status: var(--open); }
.status-waiting { --status: var(--waiting); }
.status-resolved { --status: var(--resolved); }
.status h2 { display: flex; align-items: center; gap: 10px; }
.status h2::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}
.issue {
  border-top: 1px solid var(--rule);
  border-left: 3px solid var(--status, var(--rule));
  padding: 12px 0 12px 14px;
}
.issue:last-child { border-bottom: 1px solid var(--rule); }
.issue h3 { margin: 0; font-size: 17px; font-weight: 500; }
.issue p { margin: 4px 0 0; color: var(--muted); }
.issue .where {
  margin-top: 8px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.issue .where span {
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 0 7px;
  background: var(--card);
  color: var(--ink);
}

@media (max-width: 800px) {
  .hero, .points, .offers { grid-template-columns: 1fr 1fr; }
  .headline { font-size: 32px; }
  .foot .mail { margin-left: 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(1080px, calc(100% - 32px)); }
  .hero, .points, .offers { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .nav { margin-left: 0; justify-content: flex-start; }
}

/* Store badges: the familiar black two-line badge, each mark from /stores.svg. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  padding: 7px 16px 7px 12px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #A6A6A6;
  text-decoration: none;
  line-height: 1.1;
  text-align: left;
}
@media (hover: hover) and (pointer: fine) { .badge:hover { color: #fff; text-decoration: none; filter: brightness(1.25); } }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; }
.badge small { font-size: 11px; letter-spacing: 0.02em; }
.badge strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.badge[aria-disabled="true"] { cursor: default; }
@media (hover: hover) and (pointer: fine) { .badge[aria-disabled="true"]:hover { filter: none; } }
.badge[aria-disabled="true"]:active { transform: none; }
.ext-label { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.ext-label strong { color: var(--ink); font-weight: 600; }
.actions.ext { gap: 8px; margin-top: 10px; }
.actions.ext .badge { min-width: 0; padding: 5px 10px 5px 8px; gap: 6px; }
.actions.ext .badge svg { width: 18px; height: 18px; }
.actions.ext .badge small { font-size: 10px; }
.actions.ext .badge strong { font-size: 14px; }

/* Features: a long reference page, wider than prose for its grids and tables. */
.prose.wide { max-width: 60rem; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 28px 0 8px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--link); text-decoration: underline; } }
.toc a:active { color: var(--link); text-decoration: underline; }
.wide h2 { scroll-margin-top: 16px; }
.wide > h2, .feat h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 14px; display: flex; align-items: center; gap: 14px; }
.wide .k {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--edge) 45%, transparent);
  color: var(--red);
  font-size: 22px;
  font-weight: 400;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.feat li, .glance li { margin: 0 0 8px; }
.feat li { color: var(--muted); }
.feat li strong { color: var(--ink); font-weight: 600; }
.glance { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.glance li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); margin: 0; }
.glance strong { color: var(--ink); font-weight: 600; }
.glimpse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.glimpse figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.scroll { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.matrix thead th { font-weight: 600; border-bottom: 1px solid var(--rule); }
.matrix tbody th { font-weight: 600; }
.matrix td { color: var(--muted); }
.platforms { table-layout: fixed; }
.platforms thead th, .platforms td { text-align: center; vertical-align: middle; padding-right: 6px; padding-left: 6px; }
.platforms th:first-child { text-align: left; vertical-align: middle; width: 30%; padding-left: 0; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.platforms .band th { position: static; }
.platforms .band span { position: sticky; left: 0; }
.platforms thead svg { display: block; width: 22px; height: 22px; margin: 0 auto 6px; color: var(--ink); }
.platforms .band th { text-align: left; padding: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.platforms small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; }
.platforms .say { font-size: 14px; }
.yes { --tick: #2E7D4F; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--tick); background: color-mix(in srgb, var(--tick) 18%, var(--paper)); vertical-align: middle; }
.yes svg { width: 15px; height: 15px; }
.no { color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 20px; line-height: 1; }
:root[data-theme="dark"] .yes { --tick: #8CC9A0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yes { --tick: #8CC9A0; } }
.key { margin-top: 10px; font-size: 14px; color: var(--muted); }
.key .yes { width: 20px; height: 20px; }
.key .yes svg { width: 12px; height: 12px; }
.wide code { font-size: 0.92em; background: var(--card); border: 1px solid color-mix(in srgb, var(--edge) 40%, transparent); border-radius: 5px; padding: 0 4px; }
/* Features: a section's list wraps around one picture of it, floated top
   right, then runs on under it at full width, so a long list leaves no empty
   column and nothing moves as the page scrolls. */
.split { display: flow-root; }
.split > figure { float: right; width: 44%; margin: 4px 0 16px 36px; }
.split > .shot.phone { width: 260px; }
.split > .shot.phone img { max-width: 260px; }
.split > ul { margin: 0; }
.split > figure figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
/* Under the list, one panel holds the section's settings, each a row of the
   same thing in its states, captured from the app. .small keeps a tiny crop
   (a word, a sample line) at its own size rather than stretched to a column. */
.variations { margin-top: 28px; padding: 24px; border-radius: 16px; background: color-mix(in srgb, var(--card) 55%, transparent); border: 1px solid color-mix(in srgb, var(--edge) 22%, transparent); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.vary { display: grid; gap: 12px 18px; align-items: start; }
.vary > * { min-width: 0; }
.vary.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vary.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vary.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Small crops sit at their own sizes, bottoms aligned, wrapping on a narrow screen. */
.vary.small { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.vary.small .vary-cap { flex: 0 0 100%; }
.vary .vary-cap { grid-column: 1 / -1; margin: 0 0 2px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.vary .vary-cap strong { display: block; color: var(--ink); font-weight: 600; }
.vary .shot img { box-shadow: 0 1px 2px rgba(40, 25, 10, 0.08), 0 6px 16px rgba(40, 25, 10, 0.10); }
/* Each small crop carries its own CSS width inline: width: auto here would draw it at the file's 2x pixel size. */
.vary.small .shot img { max-width: 100%; height: auto; }
.vary figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .split > figure, .split > .shot.phone { float: none; width: auto; margin: 0 0 16px; }
  .variations { padding: 16px; gap: 24px; }
  .vary.n2 { grid-template-columns: minmax(0, 1fr); }
  .vary.n3, .vary.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance, .glimpse { grid-template-columns: 1fr; }
  .matrix { min-width: 34rem; }
  .platforms { min-width: 38rem; }
}
.more { margin: 12px 0 0; }

/* Features: a picture enlarges on click (zoom.js). Fitted to the window
   first; a click on it there doubles it (zoom.js sets the width) to scroll. */
main figure.shot img { cursor: zoom-in; }
main figure.shot img:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
html.zoom-open { overflow: hidden; }
dialog.zoom { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
dialog.zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
dialog.zoom::backdrop { background: rgba(10, 12, 20, 0.94); }
.zoom-frame { max-width: 94vw; max-height: 84vh; overflow: auto; display: flex; border-radius: 10px; }
.zoom-frame img { display: block; margin: auto; max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; background: var(--card); cursor: zoom-in; }
dialog.zoom.actual .zoom-frame img { max-width: none; max-height: none; cursor: zoom-out; }
.zoom-caption { margin: 0; max-width: 90vw; text-align: center; font-size: 15px; color: #F0E7D6; }
.zoom-close { position: fixed; top: 16px; right: 16px; font: inherit; font-size: 15px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(240, 231, 214, 0.5); background: rgba(14, 21, 38, 0.7); color: #F0E7D6; cursor: pointer; }
.zoom-close:focus-visible { outline: 3px solid #F0E7D6; outline-offset: 2px; }
