:root {
  color-scheme: dark;
  --paper: #100d16;
  --ink: #f5efff;
  --accent: #bd90ef;
  --line: #463750;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #cfafff; outline-offset: 4px; }
.skip { position: absolute; top: -5rem; background: #30263b; padding: 1rem; }
.skip:focus { top: 0; z-index: 1; }
.mast, .end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(5vw, calc((100vw - 1220px)/2)); }
.mast { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; text-decoration: none; }
.mast nav { display: flex; gap: clamp(.8rem, 3vw, 2.5rem); font-size: .86rem; }
.mast nav a { text-decoration: none; }
.mast nav a:hover, .wordmark:hover { color: var(--accent); }
.disk-hero { background: var(--paper); color: var(--ink); padding: clamp(2.5rem, 6vw, 6rem) max(5vw, calc((100vw - 1220px)/2)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.disk-label, .disk-map small, .tile small, .end span { font-family: var(--mono); }
.hero-copy .disk-label { color: var(--accent); font-size: .83rem; }
.disk-label span { padding: 0 .3rem; }
.disk h1 { font-size: clamp(3.4rem, 7.8vw, 6.2rem); line-height: 1.15; margin: .8rem 0 2rem; letter-spacing: -.045em; }
.display-name { margin-top: 2rem; font-size: 1.45rem; font-weight: 750; color: #c09aff; }
.hero-question { font-size: clamp(1.3rem,2.5vw,1.85rem); }
.sleeve { display: block; width: 100%; max-width: 550px; height: auto; justify-self: end; }
.feature-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem,5vw,5rem); }
.disk-lead { font-size: 1rem; line-height: 1.85; max-width: 32rem; color: #d2c5da; margin: 1.65rem 0; }
.disk-action { display: inline-flex; align-items: center; gap: 2rem; text-decoration: none; background: var(--accent); color: var(--paper); padding: .85rem 1.2rem; font-weight: 750; }
.disk-action:hover { background: #d9baff; }
.disk-map { padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--line); background: #201928; box-shadow: 7px 7px 0 #0b090f; }
.disk-map figcaption, .map-total { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.disk-map figcaption { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.disk-map figcaption small, .map-total span, .disk-map p { color: #d0bfd9; font-size: .78rem; }
.map-total { margin: 1.2rem 0; }
.map-total strong { font: 600 clamp(2.3rem, 4vw, 4rem)/1 var(--mono); letter-spacing: -.07em; }
.map-total small { font-size: .4em; }
.tiles { display: grid; grid-template-columns: 8fr 5fr 3fr; grid-template-rows: 1fr 1fr; gap: 3px; height: clamp(12rem, 19vw, 20rem); }
.tile { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(.35rem, 1vw, 1rem); color: #191120; }
.tile strong { font-size: clamp(.9rem, 1.4vw, 1.35rem); }
.tile small { margin-top: .25rem; font-size: .78rem; white-space: nowrap; }
.models { grid-row: span 2; background: repeating-linear-gradient(135deg, transparent 0 8px, #5e347526 8px 9px), var(--accent); }
.projects { grid-column: span 2; background: #a693bf; }
.caches { background: #d8c5e4; }
.other { background: #e8def2; }
.disk-map p { margin-top: .85rem; }
.disk section:not(.disk-hero) { max-width: 1220px; width: 90%; margin: auto; padding: clamp(2rem, 4vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.disk h2 { font-size: clamp(1.55rem, 2.7vw, 2.7rem); letter-spacing: -.045em; margin-bottom: 1.5rem; }
.disk-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.disk-grid article { border-top: 1px solid var(--line); padding-top: 1rem; }
.disk-grid h3 { margin-bottom: .5rem; }
.disk section:not(.disk-hero) p, .disk li { line-height: 1.85; }
.disk ol { padding-left: 1.5rem; margin-bottom: 0; }
.disk li { padding: .45rem; }
.disk code { overflow-wrap: anywhere; }
.disk-release { background: #22192c; border-left: 5px solid var(--accent); padding: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.disk-release h3 { font: 700 2.7rem var(--mono); letter-spacing: -.06em; }
.disk details { border-top: 1px solid var(--line); padding: 1rem 0; }
.disk summary { cursor: pointer; font-weight: 650; }
.disk details p { padding-top: .65rem; }
.end { background: var(--paper); color: var(--ink); font-size: .8rem; padding-block: 1.6rem; }
@media (max-width: 760px) {
  .disk-hero, .feature-layout { grid-template-columns: 1fr; }
  .disk-release { display: grid; }
  .mast { flex-wrap: wrap; }
  .disk-grid { gap: 1.4rem; }
}
.capture-link { display: block; }
.app-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.app-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding-top: .85rem; color: #d2c5da; line-height: 1.6; }
.app-preview figcaption a { color: var(--accent); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.preview-grid figcaption { font-size: .9rem; }
.preview-grid .preview-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .preview-grid { grid-template-columns: 1fr; } }

.disk pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #211a29; color: #eee3fa; }
.mast nav { flex-wrap: wrap; align-items: center; }
.release-links { display: grid; justify-items: start; gap: .65rem; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--accent); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 20; min-width: 11.5rem; margin: 0; padding: .4rem; list-style: none; background: #1c1524; border: 1px solid var(--line); box-shadow: 0 10px 28px #00000080; display: grid; gap: .15rem; }
.lang-menu a { display: block; padding: .4rem .65rem; white-space: nowrap; }
.lang-menu a:hover, .lang-menu a[aria-current="page"] { background: #2d2239; color: var(--accent); }
.kofi-wrap { margin-top: 1.15rem; }
.kofi { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 16px; border-radius: 7px; background: #72a4f2; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 1px 1px 0 rgba(0, 0, 0, .2); }
.kofi:hover { opacity: .85; color: #fff; }
.kofi img { animation: kofi-wiggle 3s infinite; }
@keyframes kofi-wiggle { 0%, 75% { transform: none; } 80% { transform: scale(1.1); } 84%, 92% { transform: rotate(-10deg) scale(1.1); } 88%, 96% { transform: rotate(10deg) scale(1.1); } 100% { transform: none; } }
.compare-lead { color: #d2c5da; margin-bottom: 1.25rem; max-width: 52rem; }
.compare-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #191321; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.compare-table th, .compare-table td { padding: .72rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: #231a2f; color: var(--ink); font-weight: 700; white-space: nowrap; }
.compare-table tbody th { font-weight: 600; color: #d8cbe2; white-space: nowrap; }
.compare-table th.col-self, .compare-table td.col-self { background: #261b34; border-left: 2px solid var(--accent); border-right: 1px solid var(--line); color: var(--ink); }
.compare-table thead th.col-self { background: #312245; color: #e4c9ff; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-note { margin-top: 1rem; font-size: .88rem; color: #c7b6d4; }
.compare-edges { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; }
.compare-edges li { --edge: #5ee6a0; padding: .9rem 1rem; border: 1px solid color-mix(in srgb, var(--edge) 45%, transparent); border-top: 4px solid var(--edge); background: color-mix(in srgb, var(--edge) 11%, #191321); }
.compare-edges li:nth-child(2) { --edge: #5cc8ff; }
.compare-edges li:nth-child(3) { --edge: #c99bff; }
.compare-edges li:nth-child(4) { --edge: #ffc55c; }
.compare-edges strong { display: block; color: var(--edge); font-size: 1rem; margin-bottom: .3rem; }
.compare-edges span { display: block; color: #f1eaf6; font-size: .88rem; line-height: 1.55; }
.compare-legend { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .82rem; color: #d2c5da; }
.compare-table .mark, .compare-legend .mark { display: inline-block; width: 1.35em; font-weight: 800; }
.tone-g .mark { color: #5ee6a0; }
.tone-p .mark { color: #ffc55c; }
.tone-x .mark { color: #8d7f9a; }
.compare-table td.tone-g:not(.col-self) { background: rgba(94, 230, 160, .07); }
.compare-table td.tone-p { background: rgba(255, 197, 92, .08); }
.compare-table td.tone-x { color: #9d8faa; }
.compare-table td.col-self.tone-g { background: #17332a; border-left-color: #5ee6a0; color: #eafff3; font-weight: 600; }
.compare-table tbody tr.row-edge th { color: #8ff0bd; box-shadow: inset 4px 0 0 #5ee6a0; }
.compare-table tbody tr.row-edge td.col-self { background: #1e4a39; color: #fff; font-weight: 700; }
.compare-foot { margin-top: .5rem; font-size: .78rem; color: #a797b4; }
