:root {
  --bg: #0b0c10;
  --bg2: #090a0d;
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.55);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke2: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.36);

  --accent: #ffcc66;
  --accent2: #7be7c3;
  --accent3: #8aa6ff;

  --radius: 18px;
  --radius-sm: 12px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --bg2: #ffffff;
    --text: rgba(15, 18, 26, 0.92);
    --muted: rgba(15, 18, 26, 0.7);
    --muted2: rgba(15, 18, 26, 0.58);
    --stroke: rgba(15, 18, 26, 0.12);
    --stroke2: rgba(15, 18, 26, 0.18);
    --card: rgba(15, 18, 26, 0.04);
    --card2: rgba(15, 18, 26, 0.06);
    --shadow: rgba(15, 18, 26, 0.16);

    --accent: #b85a00;
    --accent2: #007a5a;
    --accent3: #1d3cff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(138, 166, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(123, 231, 195, 0.18), transparent 55%),
    radial-gradient(900px 900px at 60% 120%, rgba(255, 204, 102, 0.18), transparent 60%), linear-gradient(var(--bg), var(--bg2));
  overflow-x: hidden;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.22;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  border-bottom: 1px solid var(--stroke);
}

main {
  padding-top: var(--site-header-height, 110px);
}

body[data-embed] .site-header,
body[data-embed] .site-footer { display: none; }

body[data-embed] main { padding-top: 0; }

body[data-embed] .hero-title { display: none; }

.embed-project-title { display: none; }

body[data-embed] .embed-project-title {
  display: block;
  margin: 0 0 20px;
  color: var(--accent);
  font-family: Georgia, "Noto Serif", serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.embed-copyright { display: none; }

body[data-embed] .embed-copyright {
  display: block;
  padding: 20px 24px 28px;
  color: var(--muted2);
  text-align: center;
  font-size: 12px;
}

.top-download-bar {
  border-top: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  background: color-mix(in srgb, var(--card) 34%, transparent);
}

.top-download-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 0 10px;
}

.top-download-label {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.top-download-link {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg2) 58%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.platform-store-link {
  gap: 7px;
}

.platform-store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.platform-store-link.android .platform-store-icon {
  color: #258b57;
}

.platform-store-link.windows .platform-store-icon {
  color: #0078d4;
}

.platform-store-link .platform-icon-cutout {
  fill: var(--bg2);
}

.top-download-inner > .ms-store-wrap {
  align-self: stretch;
}

.top-download-inner > .ms-store-wrap .top-download-link {
  height: 100%;
}

.top-download-link:hover {
  transform: translateY(-1px);
  border-color: var(--stroke2);
  background: color-mix(in srgb, var(--accent2) 18%, var(--card2));
}

.top-download-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--stroke);
}

.top-online-link {
  min-width: 122px;
  border-color: color-mix(in srgb, var(--accent2) 36%, var(--stroke));
  background: color-mix(in srgb, var(--accent2) 18%, var(--card2));
}

.top-online-link:hover {
  background: color-mix(in srgb, var(--accent2) 26%, var(--card2));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
}

.brand:hover {
  background: var(--card);
}

.brand-mark {
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--stroke);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted2) 50%),
    linear-gradient(135deg, var(--muted2) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px), 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1px;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke2);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 84%, transparent), color-mix(in srgb, var(--accent3) 22%, transparent));
  color: color-mix(in srgb, var(--text) 95%, white);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--stroke));
}

.btn-primary:hover {
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 92%, transparent), color-mix(in srgb, var(--accent3) 26%, transparent));
}

.btn-secondary {
  background: var(--card2);
}

.btn-ghost {
  background: transparent;
}

.hero {
  padding: 56px 0 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.official-note {
  color: var(--muted2);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-official-note {
  margin-top: 14px;
  display: grid;
  gap: 5px;
  max-width: 62ch;
  font-size: 13px;
}

.hero-title {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.6px;
  font-weight: 850;
}

.hero-mission {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 52ch;
  white-space: pre-line;
}

.hero-translation-langs {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
}

.hero-translation-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.device-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 74%, transparent);
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 74%, transparent);
}

.dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
}

.dot-r {
  background: color-mix(in srgb, #ff5f57 80%, transparent);
}

.dot-y {
  background: color-mix(in srgb, #ffbd2e 82%, transparent);
}

.dot-g {
  background: color-mix(in srgb, #28c840 78%, transparent);
}

.device-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.device-body {
  padding: 0;
  background: color-mix(in srgb, var(--bg2) 78%, transparent);
}

.app-schematic {
  --schema-bg: color-mix(in srgb, var(--bg2) 78%, #fff4ea);
  --schema-surface: color-mix(in srgb, var(--card2) 58%, #fff7f0);
  --schema-panel: color-mix(in srgb, var(--card) 62%, #f7dfcf);
  --schema-line: color-mix(in srgb, var(--text) 20%, transparent);
  --schema-rail: color-mix(in srgb, var(--accent) 16%, var(--card2));
  --schema-active: color-mix(in srgb, var(--accent) 28%, var(--card2));
  --schema-green: color-mix(in srgb, var(--accent2) 68%, var(--text));

  aspect-ratio: 1294 / 861;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 36px;
  overflow: hidden;
  background: var(--schema-bg);
  color: var(--text);
}

.schematic-tabs {
  display: grid;
  grid-template-columns: 72px repeat(2, minmax(84px, 1fr)) minmax(86px, 0.8fr);
  align-items: stretch;
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--schema-panel) 84%, transparent);
}

.schematic-tab,
.schematic-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid color-mix(in srgb, var(--stroke) 80%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.schematic-tab-active {
  background: color-mix(in srgb, var(--schema-bg) 88%, transparent);
}

.schematic-control {
  border-right: 0;
  color: var(--muted);
  font-size: 11px;
}

.schematic-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 52px 145px minmax(0, 1fr);
}

.schematic-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 10px 0;
  border-right: 1px solid var(--stroke);
  background: var(--schema-rail);
  font-size: 14px;
}

.schematic-rail span {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
}

.schematic-rail span:nth-child(2) {
  background: var(--schema-active);
  color: var(--text);
}

.schematic-panel {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--schema-panel) 64%, transparent);
}

.schematic-panel-title,
.schematic-eyebrow,
.schematic-pane-label,
.schematic-record-label {
  color: var(--muted2);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.schematic-panel-tabs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.schematic-panel-tabs span {
  min-width: 0;
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--schema-surface) 82%, transparent);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.schematic-tree {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.schematic-tree-row {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schematic-tree-row.strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.schematic-tree-row.indent {
  padding-left: 14px;
}

.schematic-tree-row.active {
  background: var(--schema-active);
  color: var(--text);
}

.schematic-reader {
  min-width: 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--schema-bg) 92%, transparent);
}

.schematic-reader-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.schematic-reader-title {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.schematic-status {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--stroke));
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.schematic-panes {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(94px, 0.65fr);
  gap: 10px;
}

.schematic-pane {
  min-width: 0;
  min-height: 154px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--schema-surface) 82%, transparent);
}

.active-pane {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent3) 70%, var(--schema-green));
}

.schematic-record {
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--schema-green);
}

.small-record {
  border-left-color: var(--accent3);
}

.schematic-record-label {
  margin: 6px 0 5px;
  text-transform: none;
}

.schematic-record-label.pali {
  color: var(--text);
}

.schematic-record-label.trans {
  color: var(--schema-green);
}

.schematic-record-label.edit {
  color: var(--accent3);
}

.schematic-line {
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--schema-line), transparent);
}

.schematic-mini-card {
  margin-top: 14px;
  padding: 9px;
  border-radius: 7px;
  border: 1px dashed var(--stroke2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.schematic-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--schema-panel) 84%, transparent);
  overflow: hidden;
}

.schematic-toolbar span {
  min-width: 0;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  background: color-mix(in srgb, var(--schema-surface) 60%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.schematic-w-58 {
  width: 58%;
}

.schematic-w-66 {
  width: 66%;
}

.schematic-w-78 {
  width: 78%;
}

.schematic-w-82 {
  width: 82%;
}

.schematic-w-84 {
  width: 84%;
}

.schematic-w-88 {
  width: 88%;
}

.schematic-w-94 {
  width: 94%;
}

.trust-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  padding: 12px;
}

.trust-k {
  font-weight: 850;
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.trust-v {
  margin-top: 6px;
  font-weight: 750;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 58px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 60%, transparent), transparent);
  border-top: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
  font-weight: 850;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 16px 16px 18px;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--shadow) 60%, transparent);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke2);
  background: color-mix(in srgb, var(--card2) 70%, transparent);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--accent2) 16%, var(--card));
  font-weight: 900;
}

.card-title {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.1px;
}

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

.download-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.download-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.online-maintainer {
  margin-top: 8px;
  margin-bottom: 0;
}

.online-cta {
  margin-top: 14px;
}

.store-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ms-store-wrap {
  display: inline-flex;
}

.ms-store-wrap[hidden] {
  display: none !important;
}

.data-help-p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.data-help-p:first-of-type {
  margin-top: 10px;
}

.data-help-links {
  margin: 6px 0 0;
}

.download-card .data-help-documents {
  margin-top: 10px;
}

.text-link {
  color: var(--accent3);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent);
}

.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}

.download-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 18px;
}

.download-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.1px;
}

.steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* Platforms card removed (merged into Quick start). */

.muted {
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

.contributors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.contributor-item {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 14px 16px;
}

.contributor-name {
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.1px;
}

.contributor-item .contributor-role {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.support-feedback-links {
  margin-top: 0;
}

.support-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 72ch;
}

.support-links li {
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 10px;
}

.qa {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 14px 16px;
}

.qa summary {
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.1px;
}

.qa p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
}

.footer-inner {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer-left {
  min-width: 0;
}

.footer-title {
  font-weight: 950;
}

.footer-sub {
  color: var(--muted2);
  font-size: 13px;
}

.footer-official-note {
  margin-top: 5px;
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  color: var(--muted);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footer-link:hover {
  color: var(--text);
  border-color: var(--stroke);
  background: var(--card);
}

.footer-bottom {
  padding: 0 0 18px;
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.license-copy {
  max-width: 920px;
  line-height: 1.7;
}

.license-block {
  margin: 0;
  white-space: pre-line;
}

.license-block + .license-block {
  margin-top: 18px;
}

.screenshots-carousel {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.screenshots-nav {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.screenshots-viewport {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  box-shadow: 0 16px 48px var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.screenshots-viewport:focus {
  outline: none;
}

.screenshots-viewport:focus-visible {
  outline: 2px solid var(--accent3);
  outline-offset: 3px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.timeline-year {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  box-shadow: 0 16px 48px var(--shadow);
  padding: 18px;
}

.timeline-year-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--stroke);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-date {
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
}

.timeline-tag {
  width: 96px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent2) 38%, var(--stroke));
  background: color-mix(in srgb, var(--accent2) 10%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.timeline-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

.screenshots-track {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: flex;
  gap: 18px;
}

.screenshots-item {
  scroll-snap-align: center;
  flex: 0 0 min(760px, calc(100vw - 140px));
}

.screenshots-figure {
  margin: 0;
}

.screenshot-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.screenshot-open:focus {
  outline: none;
}

.screenshot-open:focus-visible {
  outline: 2px solid var(--accent3);
  outline-offset: 3px;
}

.screenshot-open:hover {
  border-color: var(--stroke2);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.screenshots-caption {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.screenshot-lightbox {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(96vw, 1040px);
  width: 100%;
  background: transparent;
  color: var(--text);
}

.screenshot-lightbox::backdrop {
  background: color-mix(in srgb, var(--bg) 55%, #000);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.screenshot-lightbox-panel {
  position: relative;
  padding: 52px 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  box-shadow: 0 30px 90px var(--shadow);
}

.screenshot-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.screenshot-lightbox-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--card);
}

@media (max-width: 1280px) {
  .nav {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-carousel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screenshots-nav {
    display: none;
  }

  .screenshots-item {
    flex-basis: calc(100vw - 64px);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .download-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .app-schematic {
    aspect-ratio: auto;
    min-height: 360px;
    grid-template-rows: 32px minmax(0, 1fr) 38px;
  }

  .schematic-tabs {
    grid-template-columns: 52px minmax(72px, 1fr) minmax(62px, 0.8fr) 76px;
  }

  .schematic-tab,
  .schematic-control {
    padding: 0 5px;
    font-size: 10px;
  }

  .schematic-workspace {
    grid-template-columns: 38px 92px minmax(0, 1fr);
  }

  .schematic-rail {
    gap: 7px;
    font-size: 12px;
  }

  .schematic-panel,
  .schematic-reader {
    padding: 8px;
  }

  .schematic-panel-tabs {
    grid-template-columns: 1fr;
  }

  .schematic-tree-row {
    padding: 5px;
    font-size: 10px;
  }

  .schematic-reader-title {
    font-size: 15px;
  }

  .schematic-panes {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .schematic-pane {
    min-height: 0;
    padding: 8px;
  }

  .secondary-pane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 7px;
    align-items: center;
  }

  .schematic-mini-card {
    margin-top: 0;
    padding: 7px;
  }

  .schematic-toolbar {
    overflow-x: auto;
  }

  .schematic-toolbar span {
    flex: 0 0 auto;
  }

  .top-download-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-download-label,
  .top-download-divider {
    display: none;
  }

  .top-download-link {
    width: 100%;
    min-width: 0;
  }

  .top-download-inner > .ms-store-wrap {
    width: 100%;
  }

  .top-online-link {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  #githubLink {
    display: none;
  }

  .timeline-year {
    padding: 14px;
  }

  .timeline-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .timeline-tag {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
  }

  .timeline-text {
    grid-column: 1 / -1;
  }
}

/* Match the reader's quiet, content-first visual system. */
:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --bg2: #ffffff;
  --text: #1e2925;
  --muted: #65716c;
  --muted2: #7c8782;
  --stroke: #d5ddda;
  --stroke2: #b9c6c1;
  --card: #ffffff;
  --card2: #edf1ef;
  --shadow: rgba(26, 43, 36, 0.12);
  --accent: #126b50;
  --accent2: #126b50;
  --accent3: #126b50;
  --accent-soft: #d9eee6;
  --accent-contrast: #ffffff;
  --radius: 8px;
  --radius-sm: 6px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171b19;
  --bg2: #202623;
  --text: #edf3f0;
  --muted: #a7b3ae;
  --muted2: #8e9b95;
  --stroke: #3d4843;
  --stroke2: #53615b;
  --card: #202623;
  --card2: #282f2c;
  --shadow: rgba(0, 0, 0, 0.32);
  --accent: #60c69d;
  --accent2: #60c69d;
  --accent3: #60c69d;
  --accent-soft: #244a3d;
  --accent-contrast: #10221b;
}

[hidden] {
  display: none !important;
}

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

.bg-noise {
  display: none;
}

.container {
  width: min(1080px, calc(100% - 40px));
}

.site-header {
  background: color-mix(in srgb, var(--bg2) 96%, transparent);
  border-color: var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 58px;
  gap: 14px;
  padding: 8px 0;
}

.header-inner > .nav { display: none; }

.header-inner > .top-download-bar {
  flex: 0 1 auto;
  border: 0;
  background: transparent;
}

.header-inner > .top-download-bar .top-download-inner {
  padding: 0;
}

@media (max-width: 1280px) {
  .header-inner > .top-download-bar { margin-inline-start: auto; }
}

@media (max-width: 700px) {
  .header-inner { gap: 8px; }
  .header-inner > .top-download-bar .top-download-label,
  .header-inner > .top-download-bar .top-download-divider,
  .header-inner > .top-download-bar .top-online-link { display: none; }
  .header-inner > .top-download-bar .top-download-link { min-width: 0; padding-inline: 8px; }
  .header-inner > .top-download-bar .top-download-link span { display: none; }
  .header-inner > .top-download-bar .platform-store-icon { width: 17px; height: 17px; }
}

.brand {
  gap: 9px;
  padding: 2px 0;
  border-radius: 6px;
  color: var(--accent);
}

.brand:hover {
  background: transparent;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  box-shadow: none;
}

.nav {
  gap: 3px;
}

.nav-link {
  padding: 8px 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover {
  background: var(--card2);
  border-color: transparent;
}

.nav-link-featured {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-select {
  min-height: 36px;
  padding-block: 7px;
  border-color: var(--stroke);
  border-radius: 5px;
  background-color: var(--card2);
}

.btn,
.top-download-link,
.footer-link {
  border-radius: 5px;
}

.btn {
  min-height: 38px;
  padding: 9px 13px;
}

.btn:hover,
.top-download-link:hover {
  transform: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.btn-secondary,
.btn-ghost {
  background: var(--bg2);
}

.top-download-bar {
  border-color: var(--stroke);
  background: var(--card2);
}

.top-download-inner {
  padding: 8px 0;
}

.top-download-link {
  border-color: var(--stroke);
  background: var(--bg2);
  font-weight: 700;
}

.top-download-link:hover,
.top-online-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.top-online-link {
  border-color: var(--stroke);
  background: var(--bg2);
}

.hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--stroke);
  background: var(--bg2);
}

body[data-page="project"] .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero-inner {
  gap: 34px;
}

.kicker {
  padding: 6px 9px;
  border-color: transparent;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.hero-title,
.section-title,
.timeline-year-title {
  font-family: Georgia, "Noto Serif", serif;
}

.hero-title {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.3px;
  font-weight: 700;
}

body[data-page="project"] .hero-title {
  color: var(--accent);
}

.hero-mission,
.hero-translation-langs,
.hero-translation-note {
  color: var(--muted);
  line-height: 1.72;
}

body[data-page="project"] .hero-mission,
body[data-page="project"] .hero-translation-langs,
body[data-page="project"] .hero-translation-note {
  max-width: none;
}

body[data-page="project"] #timeline .section-subtitle {
  max-width: none;
}

.badge {
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--card2);
  font-size: 12px;
}

.device-card,
.screenshots-viewport,
.timeline-year {
  box-shadow: 0 12px 30px var(--shadow);
}

.app-schematic {
  --schema-bg: var(--bg);
  --schema-surface: var(--bg2);
  --schema-panel: var(--card2);
  --schema-line: color-mix(in srgb, var(--text) 20%, transparent);
  --schema-rail: var(--bg2);
  --schema-active: var(--accent-soft);
  --schema-green: var(--accent);
}

.device-card,
.timeline-year,
.screenshots-viewport,
.download-card,
.card,
.contributor-item,
.qa,
.screenshot-lightbox-panel {
  border-color: var(--stroke);
  background: var(--bg2);
}

.device-card,
.timeline-year,
.screenshots-viewport,
.download-card,
.card,
.contributor-item,
.qa {
  border-radius: 7px;
}

.trust-item {
  border-radius: 6px;
  background: var(--bg2);
}

.section {
  padding: 48px 0;
}

.section-alt {
  border-color: var(--stroke);
  background: var(--card2);
}

.section-title {
  color: var(--text);
  font-weight: 700;
}

.cards {
  gap: 10px;
}

.card {
  padding: 15px;
  box-shadow: none;
}

.card:hover {
  transform: none;
  border-color: var(--accent);
  background: var(--bg2);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.text-link {
  color: var(--accent);
}

.download-layout {
  max-width: 900px;
  grid-template-columns: 1fr;
}

.download-card {
  padding: 17px;
}

.timeline {
  gap: 14px;
}

.timeline-year {
  box-shadow: none;
}

.timeline-tag {
  border-radius: 4px;
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.screenshots-viewport {
  box-shadow: none;
}

.site-footer {
  border-color: var(--stroke);
  background: var(--bg2);
}

.footer-link:hover {
  background: var(--card2);
}

@media (max-width: 520px) {
  .container {
    width: min(1080px, calc(100% - 28px));
  }

  .header-inner {
    min-height: 54px;
  }

  .hero {
    padding: 30px 0 26px;
  }

  .section {
    padding: 38px 0;
  }
}
