/* opus: the first draft's dark mood, with the OP-1 manual's details (thin numbers, keys drawn as
   keys, the OP-1 drawn with the keys a feature uses). One page. */
:root {
  --night: #0a0a0b;
  --bg: #111112;
  --surface: #18181a;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --line-2: #3a3a40;
  --ink: #ededf0;
  --ink-2: #b9b9bf;
  --muted: #7e7e86;
  --accent: #ff3d17;
  --e-blue: #3a8ee6;
  --e-green: #1fa25b;
  --e-white: #e6e6e6;
  --e-orange: #ff3d17;
  --radius: 12px;
  --wrap: 1180px;
  --sans: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ja: "Yu Gothic", "YuGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 300; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
b, strong { font-weight: 500; }
::selection { background: var(--accent); color: #fff; }
.nb { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 36px; } }

/* labels */
.eyebrow, .label, .tag, .st, .stat-label, .layer-count, .nav, .pill, .btn, .toc-n, .shift {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }

/* keys and encoders, after the manual's key pictures */
kbd {
  display: inline-block; min-width: 20px; height: 19px; padding: 0 5px; margin: 0 1px;
  font: 600 10px/19px var(--sans); letter-spacing: .03em; text-transform: uppercase; text-align: center;
  color: #2c2c2c; background: linear-gradient(#f0f0f0, #c4c4c4); border-radius: 4px;
  box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .85); vertical-align: 1px;
}
.enc { display: inline-block; position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; margin: 0 2px; vertical-align: -1px; }
.enc::after { content: ""; position: absolute; left: 50%; top: 2px; width: 1.4px; height: 4px; margin-left: -.7px; border-radius: 1px; background: rgba(0, 0, 0, .55); }
.enc-blue { background: var(--e-blue); }
.enc-green { background: var(--e-green); }
.enc-white { background: var(--e-white); }
.enc-orange { background: var(--e-orange); }
.knobs { display: inline-flex; gap: 6px; }
.knobs .enc { width: 13px; height: 13px; margin: 0; }

/* status chips */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; white-space: nowrap; color: var(--ink-2); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-device::before { background: var(--e-green); }
.st-built::before { background: var(--e-blue); }
.st-planned::before, .st-maybe::before { box-shadow: inset 0 0 0 1.5px var(--muted); }
.st-maybe { color: var(--muted); }
.st-rc::before { box-shadow: inset 0 0 0 2px var(--accent); }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 11, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 50px; height: 50px; color: var(--accent); }
.brand .wm { width: 100px; height: 35px; }
@media (max-width: 480px) { .brand { gap: 10px; } .brand .mark { width: 38px; height: 38px; } .brand .wm { width: 70px; height: 25px; } }
.nav { display: flex; gap: 22px; font-size: 12px; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav { align-items: center; }
.nav i { font-style: normal; color: var(--accent); margin-right: 6px; }
.nav .nav-patcher { padding: 5px 10px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); }
.nav .nav-patcher:hover, .nav .nav-patcher[aria-current] { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .nav a:not(.nav-patcher):nth-child(n+4) { display: none; } }
@media (max-width: 480px) { .nav { gap: 14px; font-size: 11px; } .nav a:not(.nav-patcher):nth-child(n+3) { display: none; } }
@media (max-width: 380px) { .nav a:not(.nav-patcher):nth-child(n+2) { display: none; } }

/* hero */
.hero { background: var(--night); overflow: hidden; }
.hero-inner { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 96px; } }
.hero h1 { font-size: clamp(42px, 6vw, 70px); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.hero h1 strong { display: inline-block; color: var(--accent); }
.lede { margin-top: 22px; max-width: 32em; font-size: 19px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { padding: 13px 20px; border: 1.5px solid; border-radius: 4px; font-size: 12.5px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--muted); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 11.5px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 23, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 61, 23, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.langs { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 30px; font: 300 12.5px/1.3 var(--cond); letter-spacing: .04em; text-transform: uppercase; color: #5f5f66; }
.langs [lang="ja"] { font: 300 11.5px/1.45 var(--ja); letter-spacing: .1em; }

.showcase { min-width: 0; }
.screen {
  padding: clamp(12px, 2.4vw, 22px); border-radius: 18px; background: #000;
  box-shadow: inset 0 0 0 1px #24242a, 0 0 0 6px #131316, 0 0 0 7px #26262c, 0 30px 80px rgba(0, 0, 0, .6);
}
.screen-glass { position: relative; aspect-ratio: 752 / 344; }
.screen-glass img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .18s ease-out; image-rendering: pixelated; }
.screen-glass img.on { opacity: 1; transition: opacity .3s ease-in .2s; }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 32px; margin-top: 22px; font-size: 14px; }
.specs > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.specs .label { font-size: 10.5px; color: var(--muted); }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }
.show-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.show-btn { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.show-btn:hover { border-color: var(--muted); color: var(--ink); }
.show-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.show-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer; }
.show-dot[aria-selected="true"] { background: var(--accent); }

/* stats */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 26px 0; }
.stat-num { font-size: 42px; font-weight: 200; line-height: 1; }
.stat-label { font-size: 10.5px; color: var(--muted); }

/* contents */
.contents { padding: 64px 0 24px; }
.toc { list-style: none; padding: 0; columns: 3 240px; column-gap: 40px; }
.toc-ch { break-inside: avoid; margin-bottom: 24px; }
.toc a { display: flex; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.toc a:hover { color: var(--ink); }
.toc-ch > a { color: var(--ink); font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.toc-n { flex: none; width: 3.4em; padding-top: 2px; font-size: 11px; color: var(--muted); }
.toc-ch > a .toc-n { color: var(--accent); }
.toc ol { list-style: none; padding: 0; }

/* chapters */
.chapter { padding: 96px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .chapter { padding: 120px 0; } }
.chapter.alt { background: var(--surface); }
.chead { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: start; margin-bottom: 48px; max-width: 900px; }
.cnum { font: 200 clamp(64px, 8.4vw, 112px)/.78 var(--sans); color: var(--line-2); letter-spacing: -.04em; }
@media (max-width: 560px) { .chead { grid-template-columns: 1fr; } .cnum { margin-bottom: 18px; } }
.chead h2 { font-size: clamp(30px, 3.6vw, 42px); }
.lead { margin-top: 18px; max-width: 38em; color: var(--ink-2); }
h3.sub { display: flex; gap: 12px; margin-bottom: 16px; font-size: 18px; font-weight: 400; }
h3.sub span { font: 400 12px/1.9 var(--mono); color: var(--muted); }

/* the OP-1 drawing */
.op1 { display: block; width: 100%; height: auto; }
.op1 .body { fill: none; stroke: #8a8a90; stroke-width: .7; }
.op1 .cell { fill: none; stroke: #36363c; stroke-width: .45; }
.op1 .k { fill: none; stroke: #8e8e95; stroke-width: .55; }
.op1 .k.on { fill: var(--accent); stroke: var(--accent); }
.op1 .dotg { fill: #6f6f76; }
.op1 .scr { fill: #000; stroke: #5d5d63; stroke-width: .45; }
.op1 .enc-k { stroke: none; }
.op1 .enc-k.on { stroke: #fff; stroke-width: 1.1; }
.op1 .enc-mark { stroke: rgba(0, 0, 0, .55); stroke-width: 1; stroke-linecap: round; }
.op1 .lead { stroke: #6f6f76; stroke-width: .5; }
.op1 .badge { fill: var(--accent); }
.op1 .badge-n { fill: #fff; font: 500 4.6px var(--sans); text-anchor: middle; }

/* 1: glance */
.glance { display: grid; gap: 56px; }
@media (min-width: 980px) { .glance { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.stack { display: flex; flex-direction: column; gap: 8px; }
.layer {
  display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 14px;
  padding: 18px 20px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--surface-2);
  text-decoration: none; transition: transform .15s, border-color .15s;
}
a.layer:hover { transform: translateX(4px); border-color: var(--muted); }
.layer-name { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.layer-desc { color: var(--ink-2); font-size: 15px; }
.layer-count { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.layer-opus1 { border-color: var(--accent); }
.layer-opus1 .layer-name { color: var(--accent); }
.layer-core { background: var(--ink); border-color: var(--ink); color: var(--night); }
.layer-core .layer-desc { color: #3a3a40; }
.layer-core .layer-count { color: #5a5a60; }
.layer-base { border-color: transparent; background: transparent; padding-top: 8px; padding-bottom: 8px; }
.layer-base .layer-name, .layer-base .layer-desc { color: var(--muted); }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr auto; gap: 4px 12px; } .layer-desc { grid-column: 1 / -1; grid-row: 2; } }
.device-big { margin-bottom: 22px; }
.callouts { list-style: none; padding: 0; counter-reset: c; display: flex; flex-direction: column; gap: 10px; }
.callouts li { counter-increment: c; position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.callouts li::before { content: counter(c); position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 500 10.5px/1 var(--sans); }
.callouts.plain li::before { background: none; border: 1px solid var(--muted); color: var(--ink); }
.callouts b { color: var(--ink); margin-right: 6px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chapter.alt .card { background: var(--bg); }
.card-shot { padding: 14px; background: #000; border-bottom: 1px solid var(--line); }
.card-shot img { width: 100%; aspect-ratio: 752 / 344; image-rendering: pixelated; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-size: 10.5px; color: var(--muted); }
.tag b { color: var(--accent); font-weight: 500; margin-right: 10px; }
.card h3 { font-size: 25px; font-weight: 400; }
.card-text { font-size: 15.5px; color: var(--ink-2); }
.controls { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.controls li { display: flex; align-items: baseline; gap: 10px; }
.controls .enc { margin: 0; transform: translateY(1px); }
.controls .shift { padding: 0 4px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 9.5px; line-height: 15px; color: var(--muted); }
.note { padding-left: 10px; border-left: 2px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.how { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.how .label { font-size: 10px; }
.how-keys { line-height: 2; }
.mini { flex: none; width: 150px; }

/* 4: framework */
.frame { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .frame { grid-template-columns: 1fr 1fr; gap: 72px; } }
.diagram svg { display: block; width: 100%; max-width: 500px; height: auto; overflow: visible; }
.diagram .face, .diagram .side { stroke: #a0a0a6; stroke-width: 1.1; stroke-linejoin: round; }
.diagram .face { fill: var(--bg); }
.diagram .side { fill: #26262a; }
.diagram .core .face { fill: var(--ink); stroke: var(--ink); }
.diagram .core .side { fill: #8c8c92; stroke: var(--ink); }
.diagram .core .grid { stroke: #a6a6ac; stroke-width: 1; fill: none; }
.diagram .yours .face { fill: var(--accent); stroke: var(--accent); }
.diagram .yours .side { fill: #a5280f; stroke: var(--accent); }
.diagram .lead-lines path { stroke: var(--muted); stroke-width: 1; fill: none; }
.diagram .lead-lines circle { fill: var(--muted); }
.diagram .nums text { font: 400 15px var(--sans); fill: var(--ink); }
.trio { display: grid; gap: 0 28px; margin-top: 36px; }
.trio > div { padding: 18px 0 8px; border-top: 1px solid var(--line-2); }
.trio h3.sub { margin-bottom: 6px; }
.trio p { font-size: 15px; color: var(--ink-2); }

/* 5: status */
.status-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .status-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.legend { display: flex; flex-direction: column; gap: 16px; }
.legend > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; }
.legend dd { color: var(--ink-2); font-size: 15px; }
@media (max-width: 560px) { .legend > div { grid-template-columns: 1fr; gap: 4px; } }
.release-box { padding: 24px 26px; border: 1.5px solid var(--accent); border-radius: var(--radius); }
.release-box ol { list-style: none; padding: 0; counter-reset: r; }
.release-box li { counter-increment: r; position: relative; padding: 8px 0 8px 36px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.release-box li:last-child { border-bottom: 0; }
.release-box a:not(.btn), .more a, .callouts a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
code { font: 400 .92em var(--mono); color: var(--ink); }
.more { margin-top: 18px; font-size: 14.5px; }

/* the current version (5.2, the patcher, the changelog) */
.vbig { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 18px; font-size: 30px; font-weight: 300; line-height: 1.1; }
.vfacts { display: flex; flex-direction: column; gap: 12px; }
.vfacts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.vfacts dt { font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vfacts dd { font-size: 15px; color: var(--ink-2); min-width: 0; }
.vfacts .hash, .hash { font: 400 12px/1.6 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 480px) { .vfacts div { grid-template-columns: 1fr; gap: 2px; } }
.vactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.release-box li::before { content: "0" counter(r); position: absolute; left: 0; top: 9px; font: 400 11px/2 var(--mono); color: var(--accent); }

/* footer */
.foot { padding: 48px 0 56px; background: var(--night); border-top: 1px solid var(--line); color: var(--muted); }
.foot-inner { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-inner { grid-template-columns: auto 1fr; align-items: center; gap: 64px; } }
.foot-brand { display: flex; align-items: center; gap: 20px; }
.foot-mark { width: 76px; height: 76px; color: var(--accent); }
.foot-brand div { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.foot-brand .wm { width: 103px; height: 36px; }
.foot-brand span { font-size: 13px; color: var(--muted); }
.foot-text { display: flex; flex-direction: column; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-legal { max-width: 52em; font-size: 13.5px; }

/* changelog page (it borrows .pt-head from patcher.css's look) */
.cl-head { padding: 64px 0 48px; background: var(--night); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .cl-head { padding: 88px 0 56px; } }
.cl-head h1 { font-size: clamp(36px, 5vw, 56px); }
.cl-main { padding: 48px 0 96px; }
.cl-table { width: 100%; max-width: 640px; border-collapse: collapse; margin-bottom: 56px; font-size: 15px; }
.cl-table th { padding: 8px 12px 8px 0; text-align: left; font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cl-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cl-table a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cl-version { display: grid; gap: 28px 56px; padding: 40px 0; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .cl-version { grid-template-columns: 340px 1fr; } }
.cl-num { font: 200 clamp(64px, 8vw, 96px)/.9 var(--sans); letter-spacing: -.03em; margin-bottom: 12px; }
.cl-side .vfacts { margin-top: 22px; }
.cl-summary { font-size: 17px; color: var(--ink); }
.cl-h3 { margin: 26px 0 10px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cl-items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cl-items li { padding-left: 16px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.cl-items li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--muted); }
.cl-items b { color: var(--ink); font-weight: 500; }
.cl-dev { padding-top: 40px; border-top: 1px solid var(--line-2); max-width: 820px; }
.cl-h2 { font-size: 24px; margin-bottom: 14px; }
.cl-dev p { font-size: 15px; color: var(--ink-2); }

/* 5.3-5.5: moving in and out */
.trio.moving { margin-top: 56px; }
@media (min-width: 900px) { .trio.moving { grid-template-columns: repeat(3, 1fr); } }
.lead-link { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot-note { font-size: 14px; color: var(--ink-2); }
.foot-note a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
