@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --vim-nav-color-scheme: light;
  --paper: #f8f7ef;
  --ink: #22251f;
  --subtle: #53564c;
  --line: #b8b9aa;
  --accent: #bf4025;
  --plate: #e9eadc;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: #fff; background: #8b392a; }
.wrap { width: min(84rem, 100% - clamp(2.5rem, 10vw, 10rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; padding: .75rem 1rem; color: white; background: var(--ink); z-index: 3; }
.masthead { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 5.4rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); font-size: 1.67rem; font-weight: 730; letter-spacing: -.065em; text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 1.95rem; height: 1.9rem; }
.brand-mark i { position: absolute; left: 1px; width: 1.73rem; height: .73rem; transform: skewY(-17deg); background: var(--ink); border: 1.5px solid var(--ink); }
.brand-mark i:first-child { top: .17rem; background: #e56943; }
.brand-mark i:nth-child(2) { top: .68rem; height: .37rem; }
.brand-mark i:nth-child(3) { top: 1.18rem; height: .37rem; }
.masthead nav, .site-footer div { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.65rem); }
.masthead nav { font-size: .94rem; font-weight: 560; }
.masthead nav a, .site-footer a { text-decoration: none; }
.masthead nav a:hover, .site-footer a:hover { text-decoration: underline; }
.settings { display: inline-flex; align-items: center; gap: .47rem; border: 1px solid #8a8d7f; border-radius: .16rem; padding: .45rem .85rem; background: transparent; }
.settings:hover { background: #e9eadf; }
.keyboard-icon { font: 1.2rem/1 var(--mono); }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.11fr); align-items: center; gap: clamp(2rem, 4.3vw, 5rem); padding-block: clamp(3rem,5.2vw,5.15rem) clamp(3rem,5vw,4.75rem); }
.eyebrow { display: flex; gap: .65rem; align-items: center; margin: 0 0 1.25rem; text-transform: uppercase; font: 650 .77rem/1.4 var(--mono); letter-spacing: .097em; }
.eyebrow span { flex: 0 0 1.8rem; height: .2rem; background: var(--accent); }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0 0 1.55rem -.045em; font-size: clamp(5.6rem, 8.9vw, 9.45rem); line-height: .88; letter-spacing: -.045em; }
h1 em { font-weight: 400; color: var(--accent); }
.lede { max-width: 26rem; margin: 0; color: #43463c; font-size: clamp(1.05rem, 1.32vw, 1.23rem); line-height: 1.52; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.55rem; margin-top: 1.85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .67rem; min-height: 3rem; border: 1px solid currentColor; border-radius: .15rem; padding: .65rem 1.15rem; font-size: .98rem; font-weight: 620; text-decoration: none; }
.try { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.try:hover { background: #41483a; }
.try kbd { display: inline-flex; align-items: center; justify-content: center; width: 1.33rem; height: 1.36rem; border: 1px solid #979b8d; border-bottom-width: 2px; border-radius: 3px; font: 600 .88rem/1 var(--mono); }
.text-link { font-size: .95rem; font-weight: 580; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }
.intro { position: relative; }
.try-status { margin: .6rem 0 0; max-width: 34rem; font-size: .86rem; color: var(--subtle); line-height: 1.4; }
.try-status:empty { display: none; }
.study { min-width: 0; margin: 0; border: 1px solid #939784; }
.plate { aspect-ratio: 1.6; position: relative; overflow: hidden; background-color: var(--plate); background-image: radial-gradient(#6b73591f .85px, transparent .95px); background-size: 9px 9px; }
.plate canvas, .plate img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.registration { position: absolute; z-index: 1; width: .75rem; height: .75rem; color: #6f7764; pointer-events: none; }
.registration::before, .registration::after { content: ""; position: absolute; background: currentColor; }
.registration::before { width: 100%; height: 1px; top: 50%; }
.registration::after { height: 100%; width: 1px; left: 50%; }
.tl,.bl { left: .85rem; }
.tr,.br { right: .85rem; }
.tl,.tr { top: .85rem; }
.br,.bl { bottom: .85rem; }
.study figcaption { display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-height: 3.25rem; padding: .44rem 1.1rem; border-top: 1px solid #939784; }
.study-caption { display: flex; align-items: center; gap: .6rem; font: 500 .89rem var(--mono); }
.study-caption strong { font-size: 1.02rem; }
.slash, .footer-separator { color: #898d79; }
.study-select { display: flex; gap: .2rem; }
.study-select button { min-width: 2rem; min-height: 1.9rem; border: 1px solid transparent; background: transparent; border-radius: .12rem; padding: .17rem .32rem; font: 550 .91rem var(--mono); }
.study-select button:hover { border-color: var(--line); }
.study-select button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.key-section, .install-inner { display: grid; grid-template-columns: minmax(0,.79fr) minmax(0,1.21fr); gap: clamp(2rem, 7.3vw, 8.25rem); }
.key-section { padding-block: clamp(2.5rem,5vw,4.7rem) clamp(3rem,6vw,5.75rem); border-top: 1px solid var(--ink); }
.section-intro h2 { margin: 0; font-size: clamp(3.4rem,5.1vw,5.85rem); line-height: .98; letter-spacing: -.045em; }
.period { color: var(--accent); }
.section-intro p { margin: 1.05rem 0 0; max-width: 23.3rem; color: var(--subtle); font-size: 1.02rem; line-height: 1.6; }
b { font-weight: 625; }
.key-list { margin: 0; }
.key-row { display: grid; grid-template-columns: minmax(5.2rem, 24%) 1fr; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.key-row:first-child { padding-top: .15rem; }
.key-row dt { display: flex; align-items: center; gap: .36rem; }
.key-row kbd { display: inline-flex; justify-content: center; align-items: center; min-width: 2.05rem; height: 2.03rem; border: 1px solid #797e6e; border-bottom-width: 3px; border-radius: .22rem; padding-inline: .33rem; background: #eeeee2; font: 550 .96rem/1 var(--mono); }
.key-row dd { margin: 0; }
.key-row strong { display: block; font-size: 1.09rem; font-weight: 640; }
.key-row dd span { display: block; color: var(--subtle); margin-top: .15rem; font-size: .95rem; line-height: 1.47; }
.installation { color: var(--paper); background: #272c26; }
.install-inner { padding-block: clamp(3rem,6vw,6.25rem); }
.installation .period { color: #ff926c; }
.installation .section-intro p, .example p { color: #d0d3c5; }
.download { margin-top: 1.55rem; color: #242821; background: #f6f5e9; border-color: #f6f5e9; }
.download:hover { background: #dedfcc; }
.format { padding-left: .65rem; border-left: 1px solid #888c7b; font: .85rem var(--mono); }
.install-examples { min-width: 0; }
.install-tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid #69705f; }
.install-tabs button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .04rem .02rem .65rem; background: transparent; color: #d0d3c5; font-weight: 550; }
.install-tabs button[aria-selected="true"] { color: white; border-color: #ff926c; }
.example p { margin: 1.12rem 0 .6rem; line-height: 1.55; }
.example code, .code-line pre { font-family: var(--mono); }
.code-line { display: flex; align-items: center; gap: .5rem; justify-content: space-between; border: 1px solid #747b6c; padding: .8rem .85rem; background: #20251f; }
.code-line pre { margin: 0; overflow-x: auto; line-height: 1.6; font-size: .89rem; }
.code-line button { flex: none; border: 1px solid #777d70; border-radius: .15rem; color: #e4e8d9; background: transparent; font-size: .82rem; padding: .3rem .45rem; }
.code-line button:hover { background: #3c4338; }
.installation :focus-visible { outline-color: #ffab8d; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.6rem; color: #505348; font-size: .88rem; }
.footer-separator { margin-inline: .33rem; }
@media (min-width: 62rem) {
  .try-status { position: absolute; left: 0; top: 100%; }
}
@media (max-width: 56rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 1.8rem; }
  .eyebrow { font-size: .73rem; letter-spacing: .055em; gap: .45rem; }
  .eyebrow span { flex-basis: 1rem; }
  h1 { font-size: clamp(4.75rem, 10vw, 6.3rem); }
  .study figcaption { padding-inline: .65rem; }
  .key-section, .install-inner { grid-template-columns: .85fr 1.15fr; gap: 2.5rem; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { min-height: 4.2rem; flex-wrap: wrap; row-gap: .7rem; padding-block: .75rem; }
  .brand { font-size: 1.43rem; gap: .38rem; }
  .brand-mark { transform: scale(.82); transform-origin: left center; width: 1.6rem; }
  .masthead nav { flex-wrap: wrap; gap: .55rem .95rem; font-size: .88rem; }
  .settings { padding: .4rem .55rem; }
  .keyboard-icon { display: none; }
  .hero, .key-section, .install-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem; gap: 1.8rem; }
  h1 { font-size: clamp(5.25rem,18vw,7.2rem); }
  .eyebrow { margin-bottom: 1.1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .key-section, .install-inner { gap: 1.8rem; }
  .key-section { padding-block: 2.8rem; }
  .section-intro p { max-width: 30rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .key-row { grid-template-columns: 6.2rem 1fr; }
}
@media (max-width: 23rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .masthead nav { gap: .55rem; }
  .masthead nav a, .settings { font-size: .82rem; }
  .key-row { grid-template-columns: 5.35rem 1fr; }
  .code-line pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --vim-nav-color-scheme: dark;
    --paper: #222620;
    --ink: #f3f1e4;
    --subtle: #c5c7b9;
    --line: #626957;
    --accent: #ff9973;
    --plate: #d7d8c9;
  }
  .lede, .site-footer { color: var(--subtle); }
  .settings:hover { background: #373d31; }
  .try:hover { background: #d8ddc9; }
  .try kbd { border-color: #595f4f; }
  .key-row kbd { background: #353b30; border-color: #919783; }
  .installation { background: #171c17; color: #f3f1e4; }
}
@media print {
  .masthead nav, .hero-actions, .study-select, .try-status, .install-tabs, .code-line button { display: none; }
  .installation { color: black; background: white; }
  .installation .section-intro p, .example p { color: black; }
  .code-line { color: black; background: white; }
  .example[hidden] { display: block !important; }
  .key-row, .code-line, .study { break-inside: avoid; }
}
