@font-face {
  font-family: Nunito;
  src: url("fonts/nunito-latin-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #171819;
  --text: #f7eee4;
  --muted: #bcafa3;
  --panel: #202123;
  --border: #3b3532;
  --orange: #ff7417;
  --ink: #27180e;
  --warm: #32251e;
  --green: #91d4a4;
  --red: #ffa597;
  --cream: #ffedcc;
  font: 600 15px/1.5 Nunito, ui-rounded, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--orange); text-underline-offset: .22em; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { opacity: .45; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
code { overflow-wrap: anywhere; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; z-index: 10; top: 10px; left: 10px; transform: translateY(-200%); background: var(--panel); padding: 9px 14px; }
.skip-link:focus { transform: none; }
.shell { width: min(1120px, calc(100% - 60px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.masthead { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-logo { position: relative; display: block; flex: none; width: 112px; aspect-ratio: 1.85; overflow: hidden; }
.brand-logo img { display: block; position: absolute; width: 113%; height: auto; inset: -11.5% auto auto -9.75%; }
.brand-label { border-left: 1px solid var(--border); padding: 5px 0 5px 10px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a { padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--orange); border-color: var(--border); background: var(--panel); }
.page-main { flex: 1 0 auto; padding-block: 24px 32px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding-block: 12px; font-size: 12px; color: var(--muted); }
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: var(--orange); }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.17fr) minmax(0,.83fr); align-items: center; gap: 18px; min-height: 225px; padding: 23px 29px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(115deg, var(--panel) 42%, var(--warm)); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero h1 { margin: 8px 0 10px; font-size: clamp(35px, 5.4vw, 62px); line-height: .99; font-weight: 950; letter-spacing: -.055em; }
.hero em { color: var(--orange); font-style: normal; }
.hero p { max-width: 44ch; color: var(--muted); }
.voice-art { position: relative; min-width: 0; height: 158px; display: grid; align-content: center; justify-items: center; gap: 12px; align-self: center; }
.voice-orbit { position: absolute; width: 185px; height: 111px; border: 1px dashed #ff741778; border-radius: 50%; top: 14px; left: 50%; transform: translateX(-50%) rotate(-14deg); background: radial-gradient(ellipse, #ff741735, transparent 70%); }
.wave { position: relative; display: flex; gap: clamp(3px, .8vw, 7px); justify-content: center; align-items: center; height: 68px; color: var(--orange); }
.wave b { display: block; width: clamp(3px, .65vw, 6px); height: 12px; background: currentColor; border-radius: 20px; }
.wave b:nth-child(3n) { height: 32px; }
.wave b:nth-child(4n) { height: 45px; }
.wave b:nth-child(5), .wave b:nth-child(8), .wave b:nth-child(11) { height: 66px; }
.wave b:nth-child(2n) { opacity: .54; }
.art-caption { position: relative; display: inline-flex; align-items: center; gap: 7px; background: var(--cream); color: #432719; font-weight: 900; padding: 6px 10px; border-radius: 9px; transform: rotate(-6deg); white-space: nowrap; }

.catalog { margin-top: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head .eyebrow { margin-bottom: 4px; }
h2 { font-size: 25px; font-weight: 950; letter-spacing: -.035em; line-height: 1.19; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 900; }
h4 { font-size: 16px; font-weight: 900; }
.page-title { padding-block: 10px 5px; }
.page-title h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; font-weight: 950; letter-spacing: -.038em; }
.page-title p { margin-top: 7px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: 24px; padding: 4px 8px; color: var(--muted); background: var(--panel); font-size: 12px; line-height: 1.2; }
.chip.recommended { color: var(--orange); background: var(--warm); }
.filters { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr); gap: 9px; margin-bottom: 9px; }
.field { display: grid; min-width: 0; gap: 3px; }
.field > span:first-child { font-size: 13px; font-weight: 800; color: var(--muted); }
.field :is(input,select) { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); padding: 7px 9px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; top: 12px; left: 10px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 34px; }
.list { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.list-note { padding: 14px; color: var(--muted); }
.result-row, .request-row { display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 55px; background: transparent; border: 0; text-align: left; padding: 7px 11px; }
.result-row + .result-row, .request-row + .request-row, .version-option + .version-option { border-top: 1px solid var(--border); }
.result-row:hover, .version-option:hover { background: var(--warm); }
.result-row:focus-visible { outline-offset: -3px; }
.row-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--warm); color: var(--orange); }
.wave-icon::before { content: ""; width: 20px; height: 20px; background: currentColor; mask: url("images/wave-mark.svg") center / contain no-repeat; }
.strong-label { display: block; font-weight: 900; overflow-wrap: anywhere; }
.row-subtitle, .small-note { display: block; color: var(--muted); font-size: 13px; }
.row-tail { display: inline-flex; align-items: center; gap: 9px; color: var(--orange); }
.row-arrow { font-size: 22px; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; min-width: 0; }
.paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; max-width: 100%; padding: 7px 13px; border: 1px solid transparent; border-radius: 23px; font-weight: 900; line-height: 1.15; text-align: center; text-decoration: none; }
.button.primary { color: var(--ink); background: var(--orange); }
.button.primary:hover { background: #ff9347; }
.button.secondary { color: var(--text); background: var(--panel); border-color: var(--border); }
.button.secondary:hover:not(:disabled) { border-color: var(--orange); }
.paging .button { min-height: 35px; }
.text-button { display: inline-flex; gap: 6px; align-items: center; width: fit-content; padding: 4px 0; border: 0; background: transparent; color: var(--orange); font-weight: 800; }
.text-link { font-weight: 800; }

.word-detail { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: start; gap: 14px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.word-detail > :is(.text-button,.detail-heading) { grid-column: 1/-1; }
.detail-heading { display: flex; gap: 10px; align-items: center; }
.detail-heading .row-icon { width: 43px; height: 43px; }
.detail-heading p { color: var(--muted); }
.version-section, .install-panel { display: grid; gap: 6px; }
.install-panel { border-left: 1px solid var(--border); padding-left: 14px; }
.versions { max-height: 285px; overflow-y: auto; }
.version-option { min-height: 49px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; cursor: pointer; }
.version-option input { accent-color: var(--orange); margin: 0 3px 0 0; }
.version-option:has(:checked) { background: var(--warm); }
.version-option .chip { font-size: 11px; }
#install-url { font: 12px/1.4 ui-monospace, monospace; }

.tracker-head { align-items: center; margin-top: 15px; }
.requests-note { margin-top: 12px; }
.request-row { min-height: 60px; }
.request-phrase { color: var(--text); text-decoration: none; }
.request-phrase:hover { text-decoration: underline; }
.request-tail { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px 8px; }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; min-height: 30px; padding: 4px 8px; border: 1px solid transparent; border-radius: 20px; font-size: 12px; font-weight: 900; line-height: 1.1; text-decoration: none; }
.status.queued, .status.closed { background: var(--bg); border-color: var(--border); color: var(--muted); }
.status.progress { background: var(--warm); color: var(--orange); }
.status.available { color: var(--green); background: #2c3830; }
.status.attention { color: var(--red); background: #3d2d2b; }

.trainer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.trainer-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.trainer-card .row-icon { width: 42px; height: 42px; }
.trainer-card p { flex: 1; color: var(--muted); margin-bottom: 6px; }
.guide-cta { display: grid; gap: 7px; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 15px; }
.guide-cta p, .guide p { color: var(--muted); }
.guide { display: grid; gap: 8px; margin: 13px 0; }
.guide details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.guide summary { font-weight: 900; }
.guide summary .chip { margin-left: 5px; }
.guide p { margin: 8px 0 0 16px; overflow-wrap: anywhere; }

@media (max-width: 660px) {
  .shell { width: calc(100% - 34px); }
  .hero { padding: 17px; }
  .word-detail { grid-template-columns: minmax(0,1fr); }
  .install-panel { border-left: 0; border-top: 1px solid var(--border); padding: 12px 0 0; }
  .versions { max-height: 225px; }
}
@media (max-width: 480px) {
  .masthead { gap: 8px; padding-block: 9px; }
  .brand-logo { width: 102px; }
  .site-nav { width: 100%; display: flex; justify-content: space-between; gap: 3px; }
  .site-nav a { padding-inline: 5px; font-size: 12px; }
  .page-main { padding-top: 14px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 5px; }
  .voice-art { height: 66px; grid-template-columns: 1fr auto; gap: 5px; justify-items: start; }
  .voice-orbit { display: none; }
  .wave { height: 56px; }
  .wave b:nth-child(n) { max-height: 46px; }
  .art-caption { font-size: 12px; transform: none; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .search-field { grid-column: 1/-1; }
  .trainer-grid { grid-template-columns: minmax(0,1fr); }
  .result-row, .request-row { gap: 6px; padding-inline: 7px; }
  .row-tail .chip, .request-tail .status-symbol { display: none; }
  .version-option { grid-template-columns: auto minmax(0,1fr); }
  .version-option > .chip { grid-column: 2; }
}
@media (pointer: coarse) {
  .site-nav a, .button, .field :is(input,select) { min-height: 44px; }
  .site-nav a { display: inline-flex; align-items: center; }
  .field :is(input,select) { font-size: 16px; }
}
