/*
 * Koelony in-browser demo, styled after koelony.com: a ruled sheet in black and white, headings in a
 * Hong Kong rounded gothic, and red spent only where the logo spends it: the koel's eye, small status
 * dots, and the one primary button (load the model).
 *
 * Everything is same-origin (fonts, favicon, the inlined logo): the page is cross-origin isolated.
 */

/* Chiron GoRound TC (SIL OFL), subset by fonts/fetch-fonts.mjs to the characters set in it. */
@font-face {
  font-family: "Chiron GoRound TC";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/goround-latin-700.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+2212;
}
@font-face {
  font-family: "Chiron GoRound TC";
  font-weight: 900;
  font-display: swap;
  src: url("fonts/goround-latin-900.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+2212;
}
@font-face {
  font-family: "Chiron GoRound TC";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/goround-cjk-700.woff2") format("woff2");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2FFFF;
}
@font-face {
  font-family: "Chiron GoRound TC";
  font-weight: 900;
  font-display: swap;
  src: url("fonts/goround-cjk-900.woff2") format("woff2");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2FFFF;
}

:root {
  --paper: #fff;
  --ink: #000;
  --soft: #595959;
  --mid: #767676;
  --hair: #c9c9c9;
  --rule: #dcdcdc;
  --wash: #f2f2f2;
  --eye: #d0201a;
  --display:
    "Chiron GoRound TC", "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", system-ui, sans-serif;
  --text:
    system-ui, -apple-system, "Segoe UI", Roboto, "PingFang HK", "Noto Sans HK",
    "Microsoft JhengHei", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --staff-h: clamp(34px, 22px + 2.4vw, 52px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000;
    --ink: #fff;
    --soft: #b0b0b0;
    --mid: #8c8c8c;
    --hair: #404040;
    --rule: #2e2e2e;
    --wash: #141414;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  caret-color: var(--eye);
}
@media (max-width: 759px) {
  html {
    scroll-padding-top: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem / 1.8 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 0.16em;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}
h1,
h2 {
  font-weight: 900;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.5rem, 1.1rem + 6.4vw, 5.5rem);
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem);
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}
b {
  font-weight: 650;
}
code {
  font-size: 0.92em;
}
.wrap {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 12px;
}
.lede {
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
}
.fine,
.hint {
  max-width: 75ch;
  color: var(--soft);
  font-size: 0.875rem;
  line-height: 1.7;
}
.hint {
  margin-top: 12px;
}

/* Header: the logo, and the sections of this page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  display: block;
  width: auto;
  height: 32px;
}
.nav {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 6px;
  font-size: 0.9375rem;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}
@media (min-width: 760px) {
  .header-row {
    flex-wrap: nowrap;
    height: 64px;
    padding-block: 0;
  }
  .logo {
    height: 36px;
  }
  .nav {
    flex-basis: auto;
    justify-content: flex-start;
    gap: 26px;
    margin-left: auto;
    padding-top: 0;
  }
}

/* Buttons: full pills. Hover swaps figure and ground. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.35em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 1rem / 1.3 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.12s,
    color 0.12s,
    border-color 0.12s;
}
.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}
/* The one red thing bigger than a dot. White on this red is about 5.4:1, in both themes. */
.btn-solid {
  border-color: var(--eye);
  background: var(--eye);
  color: #fff;
}
.btn-solid:hover {
  border-color: color-mix(in srgb, var(--eye) 80%, #000);
  background: color-mix(in srgb, var(--eye) 80%, #000);
}
.btn-solid:active {
  border-color: color-mix(in srgb, var(--eye) 64%, #000);
  background: color-mix(in srgb, var(--eye) 64%, #000);
}
.btn:disabled,
.btn:disabled:hover {
  border-color: var(--hair);
  background: transparent;
  color: var(--mid);
  cursor: not-allowed;
}
.btn-small {
  padding: 0.35em 1em;
  font-size: 0.875rem;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.link-btn:hover {
  text-decoration-thickness: 0.16em;
}

/*
 * Sections hang off black rules, each the top line of a five-line staff, as on koelony.com. The
 * staff's other four lines sit in the top padding, never behind type.
 */
.section {
  --g: calc(var(--staff-h) / 4);
  position: relative;
  padding-block: calc(var(--staff-h) + clamp(28px, 4vw, 56px)) clamp(56px, 8vw, 112px);
  border-top: 2px solid var(--ink);
  background:
    linear-gradient(
      to bottom,
      transparent calc(var(--g) - 1px),
      var(--rule) 0 var(--g),
      transparent 0 calc(2 * var(--g) - 1px),
      var(--rule) 0 calc(2 * var(--g)),
      transparent 0 calc(3 * var(--g) - 1px),
      var(--rule) 0 calc(3 * var(--g)),
      transparent 0 calc(4 * var(--g) - 1px),
      var(--rule) 0 calc(4 * var(--g))
    )
    0 0 / 100% calc(4 * var(--g)) no-repeat;
}
@supports (width: round(down, 1.5px, 1px)) {
  .section {
    --g: round(down, calc(var(--staff-h) / 4), 1px);
  }
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-sub {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--soft);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  align-items: end;
  padding-block: clamp(48px, 8vw, 112px) clamp(48px, 6vw, 88px);
}
.hero-copy {
  display: grid;
  gap: 24px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

/* The sample: a line of model output written on a staff, the way koelony.com shows it. */
.board {
  margin: 0;
}
.board-label {
  color: var(--soft);
  font: 700 0.9375rem / 1.4 var(--display);
}
.board-staff {
  display: grid;
  gap: calc(var(--staff-h) / 4 - 1px);
  margin-top: 14px;
}
.board-staff i {
  height: 1px;
  background: var(--rule);
}
.board-staff i:first-child {
  height: 2px;
  background: var(--ink);
}
.board-text {
  min-height: 3em;
  margin-top: 18px;
  font: 700 clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem) / 1.5 var(--display);
}
.board-text.typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--eye);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.board-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  color: var(--soft);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.board-foot b {
  color: var(--ink);
}

/* Demo */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.notice.shake {
  animation: shake 0.45s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.notice-icon {
  flex: none;
  position: relative;
}
.notice-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eye);
}
.notice h3 {
  margin-bottom: 6px;
}
.notice p {
  font-size: 0.9375rem;
}
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 16px;
}

.studio {
  display: grid;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--hair);
  color: var(--mid);
  font: 700 0.9375rem / 1.3 var(--display);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.step[data-state="active"],
.step[data-state="done"] {
  border-color: var(--ink);
  color: var(--ink);
}
.step[data-state="active"] .step-n {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.step[data-state="done"] .step-n {
  font-size: 0;
}
.step[data-state="done"] .step-n::after {
  content: "✓";
  font-size: 0.875rem;
}
@media (max-width: 559px) {
  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.875rem;
  }
}

.panel {
  padding-block: 28px;
  border-bottom: 1px solid var(--hair);
  transition: opacity 0.25s;
}
.panel[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.panel > h3 {
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.badge,
.cap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: nowrap;
}
.badge.ok,
.cap.good {
  border-color: var(--ink);
  color: var(--ink);
}
.badge.busy,
.badge.err,
.cap.bad {
  border-color: var(--ink);
  color: var(--ink);
}
.badge.busy::before,
.badge.err::before,
.cap.bad::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eye);
}
.badge.busy::before {
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
.caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.load-row {
  display: grid;
  gap: 16px;
  align-items: end;
}
@media (min-width: 760px) {
  .load-row {
    grid-template-columns: 1fr 1fr auto;
  }
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--soft);
  font-size: 0.875rem;
}
.select {
  position: relative;
  display: block;
}
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 1rem / 1.4 var(--text);
  appearance: none;
  -webkit-appearance: none;
}
select:disabled {
  border-color: var(--hair);
  color: var(--mid);
}
.btn-load {
  min-height: 50px;
}
.progress {
  height: 6px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hair);
}
.bar {
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.2s;
}

.panel-input {
  border-bottom: 0;
}
.drop {
  padding: clamp(28px, 4vw, 44px) 20px 28px;
  border: 2px dashed var(--hair);
  border-radius: 20px;
  text-align: center;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.drop.over {
  border-style: solid;
  border-color: var(--ink);
  background: var(--wash);
}
.mic {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.mic .stop-ico {
  display: none;
}
.mic-ring {
  position: absolute;
  inset: -9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
}
.mic.rec .mic-ico {
  display: none;
}
.mic.rec .stop-ico {
  display: block;
}
.mic.rec .mic-ring {
  animation: ring 1.4s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
.mic-label {
  margin-top: 16px;
  font-weight: 650;
}
.rec-time {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.rec-time::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--eye);
  vertical-align: 0.1em;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
  margin: 18px auto;
  color: var(--soft);
  font-size: 0.8125rem;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.drop .hint {
  margin-inline: auto;
}
.tryline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.875rem;
}
.tryline span {
  color: var(--ink);
}

.panel-out {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.out {
  min-height: 2em;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.out.streaming::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--eye);
  animation: blink 1s steps(1) infinite;
}
.stats {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.nudge {
  display: grid;
  gap: 24px 48px;
  padding-block: 28px;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 760px) {
  .nudge {
    grid-template-columns: 1fr 1fr;
  }
}
.nudge-item h3 {
  margin-bottom: 6px;
  font-size: 1.125rem;
}
.nudge-item p {
  font-size: 0.9375rem;
}
.nudge-item a {
  margin-left: 0.5em;
  font-weight: 650;
}

.hist {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hist li {
  padding-block: 12px;
  border-top: 1px solid var(--hair);
}
.hist .meta {
  color: var(--soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
th {
  border-bottom: 2px solid var(--ink);
  font-weight: 650;
  white-space: nowrap;
}
td.diff {
  color: var(--eye);
  font-weight: 650;
}

/* Why Hong Kong Cantonese */
.compare-said {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 24px;
  font: 700 clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem) / 1.5 var(--display);
}
.compare-k {
  color: var(--soft);
  font-size: 0.9375rem;
}
.compare-grid {
  display: grid;
  gap: 0;
}
@media (min-width: 760px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cmp + .cmp {
    padding-left: 32px;
    border-left: 1px solid var(--hair);
  }
  .cmp:first-child {
    padding-right: 32px;
  }
}
.cmp {
  padding-block: 20px;
  border-top: 2px solid var(--ink);
}
.cmp-h {
  margin-bottom: 10px;
  font-size: 1rem;
}
.cmp-bad .cmp-h {
  color: var(--soft);
}
.cmp-text {
  font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) / 1.7 var(--display);
}
.cmp-bad .cmp-text {
  color: var(--soft);
}
.cmp-bad u {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.cmp-good mark {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}
.cmp-tags {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.875rem;
}
.compare-foot {
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.8125rem;
}
.pillars {
  display: grid;
  gap: 28px 48px;
  margin: clamp(40px, 6vw, 64px) 0 0;
}
@media (min-width: 760px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}
.pillar {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.pillar dt {
  font: 700 1.25rem / 1.35 var(--display);
}
.pillar dd {
  margin: 8px 0 0;
  max-width: 48ch;
  color: var(--soft);
  font-size: 0.9375rem;
}

/* Accuracy chart: 0.6B in grey, 1.7B in ink, CER as bar length. */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
}
.lg::before {
  content: "";
  width: 22px;
  height: 10px;
  border-radius: 999px;
}
.lg-06::before {
  background: var(--hair);
}
.lg-17::before {
  background: var(--ink);
}
.lg-note {
  color: var(--soft);
}
@media (min-width: 760px) {
  .lg-note {
    margin-left: auto;
  }
}
.crow {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 1fr 4.5rem;
  gap: 12px 20px;
  align-items: center;
  padding-block: 14px;
  border-top: 1px solid var(--hair);
}
.crow:first-child {
  border-top: 2px solid var(--ink);
}
.crow-name {
  font-weight: 650;
  line-height: 1.35;
}
.crow-name small {
  display: block;
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 400;
}
.bars {
  display: grid;
  gap: 5px;
}
.b {
  width: 0;
  height: 10px;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.b6 {
  background: var(--hair);
}
.b17 {
  background: var(--ink);
}
.crow-num {
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
.crow-num b {
  color: var(--ink);
}
.crow-delta {
  color: var(--ink);
}
@media (max-width: 559px) {
  .crow {
    grid-template-columns: 1fr 4.25rem;
  }
  .bars {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .crow-num {
    grid-row: 1;
    grid-column: 2;
  }
}
.chart-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  color: var(--soft);
  font-size: 0.8125rem;
}
.paths {
  display: grid;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 2px solid var(--ink);
}
.path {
  display: grid;
  gap: 2px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.path-k {
  color: var(--soft);
  font-size: 0.875rem;
}
.path-t {
  font: 700 1.25rem / 1.35 var(--display);
}
.path-d {
  color: var(--soft);
  font-size: 0.9375rem;
}
.path:hover .path-t {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
@media (min-width: 760px) {
  .path {
    grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: baseline;
  }
}

/* OraType */
.ora-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .ora-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
}
.ora-lede {
  max-width: 40em;
  margin-top: 20px;
}
.ora-you {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 650;
}
.ora-you::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eye);
}
.ora-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.ora-list li {
  padding-block: 9px;
  border-top: 1px solid var(--hair);
}
.ora-list li:last-child {
  border-bottom: 1px solid var(--hair);
}
.ora-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.ora-cta a:not(.btn) {
  font-weight: 650;
}
.ora-req {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.8125rem;
}

/* The Mac window: drawn in the page's own ink, no chrome colours. */
.mac {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}
.mac-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
}
.mac-bar i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.mac-bar span {
  margin-left: 8px;
}
.mac-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 18px 16px 16px;
}
.bubble {
  max-width: 80%;
  padding: 8px 13px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.bubble-in {
  align-self: flex-start;
  border: 1px solid var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.compose {
  min-height: 46px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
.pill {
  position: absolute;
  left: 50%;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transform: translateX(-50%);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.pill.off {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eye);
}
.pill-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.pill-wave i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: currentColor;
  animation: wave 1.1s ease-in-out infinite;
}
.pill-wave i:nth-child(2n) {
  animation-delay: 0.15s;
}
.pill-wave i:nth-child(3n) {
  animation-delay: 0.3s;
}
.pill-wave i:nth-child(5n) {
  animation-delay: 0.45s;
}
@keyframes wave {
  50% {
    height: 100%;
  }
}
.pill-lang {
  font: 700 0.875rem / 1 var(--display);
}

/* Models: a ruled list, one row per Hugging Face repo. */
.model-grid {
  display: grid;
  border-top: 2px solid var(--ink);
}
.mcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name size"
    "tag tag"
    "meta meta";
  gap: 2px 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.mname {
  grid-area: name;
  font: 700 1.25rem / 1.35 var(--display);
}
.mcard:hover .mname {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
.msize {
  grid-area: size;
  align-self: baseline;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mtag,
.mmeta {
  color: var(--soft);
  font-size: 0.875rem;
}
.mtag {
  grid-area: tag;
}
.mmeta {
  grid-area: meta;
}
.mtag:empty {
  display: none;
}
@media (min-width: 760px) {
  .mcard {
    grid-template-columns: 11rem 12rem 8rem minmax(0, 1fr);
    grid-template-areas: "name tag size meta";
    align-items: baseline;
  }
  .mtag:empty {
    display: block;
  }
}

/* FAQ */
.faq details {
  max-width: 75ch;
  border-top: 1px solid var(--hair);
}
.faq details:first-of-type {
  border-top: 2px solid var(--ink);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--hair);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font: 700 1.25rem / 1.2 var(--display);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding-bottom: 18px;
  color: var(--soft);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  padding-bottom: 64px;
}
.footer-grid {
  display: grid;
  gap: 32px 64px;
}
.footer-about .logo {
  height: 40px;
}
.footer-about p {
  max-width: 40ch;
  margin-top: 16px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
  align-content: start;
}
@media (max-width: 479px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
.footer-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  margin: 0;
  padding: 0;
  color: var(--soft);
  font-size: 0.8125rem;
  list-style: none;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
  .footer-fine {
    grid-column: 1 / -1;
  }
}
