* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; cursor: pointer; }
button { background: transparent; border: 0; }
button, input, select { border-radius: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button:disabled { cursor: default; }
code, kbd, .eyebrow, .draft-label, .hero-figure figcaption {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.sr-only, .symbols { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-200%); padding: .6rem 1rem; background: var(--surface); }
.skip:focus { transform: none; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.eyebrow { font-size: .75rem; line-height: 1.4; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slash-text, .inline-example b { color: var(--accent); }
kbd { display: inline-grid; min-width: 1.4rem; height: 1.4rem; place-items: center; padding: 0 .25rem; border: 1px solid var(--line); font-size: .75rem; font-weight: 400; line-height: 1; color: var(--muted); background: var(--surface); }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner, .layout { max-width: 94rem; margin-inline: auto; padding-inline: clamp(1.25rem, 3.5vw, 3.5rem); }
.topbar-inner { height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-group, .header-tools, .wordmark, .theme-picker { display: flex; align-items: center; }
.brand-group { gap: .65rem; }
.wordmark { gap: .75rem; white-space: nowrap; font-size: 1.4rem; font-weight: 600; letter-spacing: -.075em; line-height: 1; }
.wordmark .slash-text { margin: 0 .06em; font-weight: 500; }
.brand-icon { position: relative; display: inline-block; width: 1.95rem; height: 1.95rem; background: #171717; border: 1px solid #353a34; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; top: 23%; left: 31%; width: 12%; height: 54%; transform: skewX(-24.75deg); background: var(--brand-green); }
.brand-icon::after { left: 57%; }
.header-tools { gap: 1.4rem; }
.home-link { font-size: .88rem; color: var(--muted); }
.home-link:hover, footer a:hover, .section-foot a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .23em; }
.theme-picker { border: 1px solid var(--line); padding: .15rem; gap: .1rem; width: max-content; }
.icon-button { display: inline-grid; width: 2.1rem; height: 2rem; padding: 0; place-items: center; color: var(--muted); }
.icon-button:hover { background: var(--hover); color: var(--text); }
.icon-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.browse-trigger { display: none; }
.layout { display: grid; grid-template-columns: clamp(11rem, 16vw, 14.5rem) minmax(0, 1fr); column-gap: clamp(1.75rem, 3.3vw, 3.6rem); }
.sidebar { position: sticky; top: 4.25rem; align-self: start; height: calc(100vh - 4.25rem); height: calc(100dvh - 4.25rem); min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 2.55rem 1.15rem 1.4rem 0; overflow-y: auto; }
.rail-heading { margin: .05rem 0 .85rem; }
.design-list { display: grid; gap: .3rem; }
.design-entry { display: flex; align-items: center; gap: .55rem; padding: .64rem .6rem; font-size: .9rem; font-weight: 600; }
.design-entry[aria-current="page"] { box-shadow: inset 2px 0 var(--accent); background: var(--accent-soft); }
.design-entry .icon { color: var(--accent); width: 1.05rem; height: 1.05rem; }
.design-entry kbd { margin-left: auto; min-width: 1.22rem; height: 1.22rem; border-color: var(--accent-border); background: var(--surface); color: var(--accent); }
.section-label { margin: 2.5rem 0 .7rem; }
.section-nav { display: flex; flex-direction: column; }
.section-nav a { display: flex; align-items: center; min-height: 2.32rem; padding: .38rem .55rem .38rem 0; gap: .65rem; color: var(--muted); font-size: .935rem; }
.section-nav a::before { content: ""; width: .35rem; height: .35rem; background: transparent; flex: none; }
.section-nav a[aria-current="location"] { color: var(--text); font-weight: 600; }
.section-nav a[aria-current="location"]::before { background: var(--accent); }
.section-nav a:hover { color: var(--accent); }
.shortcuts-trigger { display: flex; align-items: center; gap: .55rem; text-align: left; color: var(--muted); font-size: .89rem; }
.sidebar .shortcuts-trigger { margin-top: auto; padding: 1.05rem 0 0; border-top: 1px solid var(--line); }
.rail-main { padding-bottom: 2rem; }
.shortcuts-trigger kbd { margin-left: auto; }
.shortcuts-trigger:hover, .sample-key-action:hover { color: var(--accent); }
main { min-width: 0; padding: 2.4rem 0 0; }
main > section { scroll-margin-top: .4rem; }
.hero { display: grid; grid-template-columns: 1fr .94fr; isolation: isolate; position: relative; overflow: hidden; min-height: 17.2rem; background: #171717; border: 1px solid #343634; color: #eeeeea; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(1.65rem, 2.8vw, 3rem); padding-right: 0; }
h1 { font-size: clamp(3.3rem, 5.1vw, 5.15rem); font-weight: 500; line-height: .92; letter-spacing: -.078em; }
.hero-period { color: var(--brand-green); }
.hero-copy p { max-width: 21rem; margin-top: .95rem; color: #c5c5be; line-height: 1.45; }
.primary-action { display: inline-flex; width: fit-content; min-height: 2.55rem; align-items: center; justify-content: center; gap: .55rem; padding: .56rem .95rem; background: var(--brand-green); border: 1px solid #007500; color: #171717; font-size: .79rem; letter-spacing: .045em; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.primary-action:hover { background: #171717; color: var(--brand-green); border-color: var(--brand-green); }
.primary-action .icon { width: 1.02rem; height: 1.02rem; stroke-width: 1.9; }
.hero-action { margin-top: 1.15rem; border-color: var(--brand-green); }
.hero :focus-visible { outline-color: var(--brand-green); }
.hero-figure { position: relative; display: grid; align-content: center; min-width: 0; padding: .6rem 1.2rem .7rem 0; }
.hero-figure::before { content: ""; position: absolute; z-index: -1; inset: 0 -1px 0 -22%; background-image: linear-gradient(to right, #5360533c 1px, transparent 1px), linear-gradient(to bottom, #5360533c 1px, transparent 1px); background-size: 20px 20px; background-position: center center; mask-image: linear-gradient(to right, transparent, #000 35%); }
.draft { display: block; width: 100%; height: auto; max-height: 17.5rem; overflow: visible; }
.hero-figure figcaption { position: absolute; right: 1.1rem; bottom: .65rem; line-height: 1; font-size: .75rem; color: #b5b9b2; }
.hero-figure figcaption a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem; background: #171717; }
.hero-figure figcaption a:hover { color: var(--brand-green); }
.hero-figure figcaption .icon { width: .8rem; height: .8rem; }
.reference-section { margin-top: 2.6rem; }
.reference-section + .reference-section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
h2 { font-size: clamp(1.65rem, 2.3vw, 2.2rem); line-height: 1.12; letter-spacing: -.065em; font-weight: 600; }
.section-head p, .component-row p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: .38rem; }
.segment { display: inline-flex; align-items: center; align-self: end; padding: .15rem; border: 1px solid var(--line); gap: .12rem; flex: none; }
.segment button { padding: .32rem .65rem; font-size: .87rem; line-height: 1.4; color: var(--muted); }
.segment button:hover { color: var(--text); background: var(--hover); }
.segment button[aria-selected="true"] { color: var(--surface); background: var(--text); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.swatch, .static-swatch { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); position: relative; color: var(--text); }
.swatch:hover { border-color: var(--muted); }
.swatch-color, .static-swatch i { display: block; width: 100%; height: clamp(4.5rem, 6.3vw, 6.4rem); background: var(--swatch); border-bottom: 1px solid var(--line); }
.swatch-label { display: flex; align-items: center; padding: .85rem .85rem .84rem; width: 100%; gap: .4rem; }
.swatch-meta { display: grid; gap: .12rem; min-width: 0; }
.swatch-name { font-size: .94rem; font-weight: 600; line-height: 1.25; }
.swatch code, .static-swatch code { font-size: .76rem; color: var(--muted); letter-spacing: .025em; }
.swatch .icon { width: .9rem; height: .9rem; color: var(--muted); margin-left: auto; }
.swatch:is(:hover,:focus-visible) .icon { color: var(--accent); }
.weight-select { position: relative; white-space: nowrap; align-self: end; }
.weight-select select { appearance: none; width: 100%; padding: .41rem 2rem .41rem .75rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .875rem; line-height: 1.45; }
.weight-select .icon { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); width: .9rem; height: .9rem; }
.type-specimen { border: 1px solid var(--line); display: grid; grid-template-columns: minmax(7.6rem, 24%) minmax(0,1fr); min-height: 10.5rem; }
.type-glyph { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); background-color: var(--hover); color: var(--text); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 18px 18px; background-position: center center; }
.type-glyph span { font-size: clamp(3.75rem, 7.3vw, 7rem); line-height: .95; letter-spacing: -.09em; margin-left: -.08em; font-weight: var(--specimen-weight, 400); }
.specimen-details { display: grid; align-content: center; min-width: 0; padding: 1.35rem clamp(1rem, 2.5vw, 2.5rem); }
#type-sample { min-width: 0; width: 100%; margin: .42rem 0; padding: .05rem 0; border: 0; border-bottom: 1px dashed var(--line); background: transparent; font-size: clamp(1.7rem, 3.6vw, 3.45rem); letter-spacing: -.065em; line-height: 1.15; font-weight: var(--specimen-weight, 400); color: var(--text); }
#type-sample:is(:hover,:focus-visible) { border-color: var(--accent); }
.character-set { color: var(--muted); font-size: .95rem; font-weight: var(--specimen-weight, 400); overflow-wrap: anywhere; }
.section-foot { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; font-size: .875rem; color: var(--muted); margin-top: .65rem; }
.section-foot a, footer > a:last-child { text-decoration: underline; text-underline-offset: .2em; }
.component-list { border: 1px solid var(--line); }
.component-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(9rem, .7fr); gap: 1rem; align-items: center; padding: 1.15rem 1.35rem; }
.component-row + .component-row { border-top: 1px solid var(--line); }
h3, .convention-list dt { font-size: 1.05rem; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.component-row p { margin-top: .15rem; }
.component-demo { display: flex; justify-content: flex-start; align-items: center; }
.sample-key-action { display: inline-flex; justify-content: space-between; align-items: center; gap: .8rem; border: 1px solid var(--line); padding: .45rem .6rem; font-size: .9rem; }
.sample-key-action:hover { border-color: var(--accent-border); }
.convention-list { border-top: 1px solid var(--line); }
.convention-list > div { display: grid; grid-template-columns: minmax(8rem, 23%) 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.convention-list dd { color: var(--muted); }
.convention-list code, .inline-example { color: var(--text); }
.inline-example { white-space: nowrap; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); padding: 1.8rem 0 2.2rem; font-size: .88rem; }
.footer-brand { font-weight: 600; color: var(--text); }
dialog { padding: 1.4rem; width: min(25rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); background: var(--surface); color: var(--text); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / .55); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.dialog-head h2 { font-size: 1.45rem; }
.dialog-head .icon-button { flex: none; border: 1px solid var(--line); }
.key-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px solid var(--line); }
.key-list dd { white-space: nowrap; }
.key-list kbd + kbd { margin-left: .25rem; }
.shortcut-toggle { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .3rem; font-size: .9rem; }
.shortcut-toggle input { width: 1rem; height: 1rem; accent-color: var(--accent); }
#browse .section-label { margin-top: 1.5rem; }
#browse .section-nav a { min-height: 2.65rem; }
#browse .shortcuts-trigger { margin-top: 1rem; width: 100%; border-top: 1px solid var(--line); padding: .9rem 0 .2rem; }
#manual-value { display: block; width: 100%; margin-top: .7rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: .95rem/1.45 ui-monospace, monospace; }
#status { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 7; color: var(--surface); background: var(--text); width: max-content; max-width: calc(100% - 2rem); font-size: .9rem; }
#status:not(:empty) { padding: .6rem 1rem; }
.psychedelic .hero, .psychedelic .type-glyph { background: linear-gradient(115deg,#491d49,#225043,#223b65,#491d49); background-size: 240% 240%; animation: spectrum 16s linear infinite; }
.psychedelic .draft { animation: spectral-ink 16s linear infinite; }
.psychedelic body::after { content: ""; position: fixed; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(135deg,#f55bbb,#ffd66b,#65efa0,#63baff,#af79ff); mix-blend-mode: color; opacity: .36; background-size: 220% 220%; animation: spectrum 16s linear infinite; }
@keyframes spectrum { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 100%; } }
@keyframes spectral-ink { from { filter: hue-rotate(0); } to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .psychedelic .hero, .psychedelic .type-glyph, .psychedelic .draft, .psychedelic body::after { animation: none; }
}
@media (min-width: 90rem) { .hero { min-height: 20rem; } .draft { max-height: 18rem; } }
@media (max-width: 65rem) {
  .layout { grid-template-columns: 10.8rem minmax(0,1fr); column-gap: 1.4rem; }
  .sidebar { padding-right: .7rem; }
  .hero { grid-template-columns: 1fr .87fr; }
  .hero-figure { padding-right: .2rem; }
  .swatches { gap: .5rem; }
  .swatch-label { padding: .7rem .6rem; }
}
@media (max-width: 52rem) {
  .layout { display: block; }
  .sidebar { display: none; }
  .browse-trigger { display: grid; }
  main { padding-top: 1.25rem; }
  .topbar-inner, .layout { padding-inline: clamp(1rem, 3.4vw, 1.8rem); }
  .hero { min-height: 15.3rem; }
  .hero-copy { padding: 1.6rem 0 1.6rem 1.6rem; }
  .hero-figure { padding: .5rem .75rem .5rem 0; }
}
@media (max-width: 37rem) {
  html { scroll-padding-top: 4.2rem; }
  .topbar-inner { height: 3.5rem; gap: .4rem; }
  .brand-group { gap: .32rem; }
  .wordmark { font-size: 1.12rem; gap: .4rem; }
  .brand-icon { display: none; }
  .home-link { display: none; }
  .theme-picker .icon-button { width: 2.1rem; height: 2.1rem; }
  main { padding-top: 1rem; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr); min-height: 13.5rem; }
  .hero-copy { padding: 1.3rem 0 1.3rem 1.1rem; }
  h1 { font-size: clamp(2.7rem, 10.2vw, 3.65rem); }
  .hero-copy p { margin-top: .75rem; font-size: .95rem; }
  .hero-action { margin-top: .95rem; padding: .55rem .65rem; }
  .hero-figure { padding: 0; }
  .draft { position: absolute; top: 50%; left: 50%; width: 138%; max-width: 17rem; transform: translate(-50%, -51%); }
  .hero-figure figcaption { right: .35rem; bottom: .35rem; }
  .hero-figure figcaption a { font-size: .75rem; }
  .reference-section { margin-top: 1.75rem; }
  .reference-section + .reference-section { margin-top: 1.65rem; padding-top: 1.55rem; }
  .section-head { flex-wrap: wrap; gap: .65rem; margin-bottom: .85rem; }
  .section-head p { margin-top: .3rem; }
  .swatches { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .swatch-color { height: 4.5rem; }
  .swatch-label { padding: .65rem; }
  .type-specimen { grid-template-columns: minmax(4.6rem, 23%) minmax(0,1fr); min-height: 8.4rem; }
  .type-glyph span { font-size: clamp(2.75rem, 11vw, 4rem); }
  .specimen-details { padding: .9rem .75rem; }
  .character-set { font-size: .85rem; }
  .component-row { grid-template-columns: 1fr; gap: .75rem; padding: 1rem; }
  .convention-list > div { grid-template-columns: 1fr; gap: .2rem; padding: .8rem 0; }
  footer { padding-bottom: 1.4rem; }
}
@media (max-width: 23rem) {
  .topbar-inner, .layout { padding-inline: .7rem; }
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .68fr); }
  .hero-copy { padding-left: .85rem; }
  .hero-figure figcaption span { display: none; }
  .hero-figure figcaption a { min-width: 2rem; min-height: 2rem; justify-content: center; }
}
