@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-latin-ext.6bc0f226a5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-latin.08949f728d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500-latin-ext.6bb06407c9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500-latin.01d2854474.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-ext.d160e20920.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin.e2291e842c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext.45683de03d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin.6e4f2958c3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ham.narekb.com. The look and the Morse frame are copied from the narekb repository (assets/site.css). */

:root {
  --ground: #f8f7f3;
  --ink: #141412;
  --muted: #5d5d57;
  --rule: #d6d4cc;
  --grid: #e8e6df;
  --grid-ground: #f3f2ed;
  --hover: #245140; /* bottle green, chosen 2026-09-25 from the accent lab (w570-accent-lab branch) */
  --error: #a3261b;
  --gutter: 80px;
  --serif: Newsreader, Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* Hovers share one short fade. A filled green box empties to a green outline; a link turns green. The bar
   is plain links, "Arcane R1" and "Contact" (chosen 2026-09-25 from the menus lab on w570-bar-lab2). */
a, button { transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--hover); }
:focus-visible { outline: 2px solid var(--hover); outline-offset: 3px; }
h1, h2, p, dl, dd { margin: 0; }

.ph { padding: 1px 6px; border-bottom: 2px dashed #b07a10; background: #f3e4c2; color: #6b4a00; }
/* A placeholder that is also a link (the Arcane R1 page's "under construction" line): it turns green like any link. */
.ph--link { text-decoration: none; }
.ph--link:hover { border-bottom-color: var(--hover); }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.k { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.k--ink { color: var(--ink); }
a.k { text-decoration: none; }
a.k:hover { color: var(--hover); }
.box { border: 1px solid var(--ink); }
.gridbg {
  background-color: var(--grid-ground);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--hover);
  background: var(--hover); color: var(--ground);
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.cta:hover { background: var(--ground); color: var(--hover); }

/* ---- chrome ---- */
.foot {
  margin: 0 var(--gutter); padding: 28px 0;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--rule);
  font: 400 11px var(--mono); letter-spacing: .06em; color: #8a8980;
}
.foot a { text-decoration: none; }

/* The video's play button, on the home figure and the Arcane R1 page alike (chosen 2026-09-24 from the lab on
   the w570-r1-lab branch: a 128px square of frosted ground in the middle). */
.playbox {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; padding: 0;
  border: 1px solid var(--ink); background: rgb(248 247 243 / .72); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.playbox svg { width: 36%; height: 36%; margin-left: 4%; }
.playbox path { fill: currentColor; }
.playbox:not([disabled]) { cursor: pointer; }
.playbox:not([disabled]):hover { border-color: var(--hover); color: var(--hover); }

.bar {
  position: sticky; top: 0; z-index: 10;
  height: 56px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ground); border-bottom: 1px solid var(--ink);
}
.bar__name { font-size: 22px; text-decoration: none; white-space: nowrap; }

.demo { margin: 0 var(--gutter); }
.demo__frame {
  position: relative; height: 760px; background: #1a1a18;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.demo__frame img { width: auto; height: 620px; }
.demo__tag { position: absolute; left: 20px; top: 16px; color: #cfcdc4; }
.demo__frame .play { position: absolute; left: 20px; bottom: 18px; }
/* Media that isn't built yet: a game in the dark frame, started from the frosted play box. BlockOut
   (assets/blockout.js) on a wide screen with a mouse, Tetris (assets/tetris.js) otherwise; the one that runs sets
   data-game. */
.unbuilt { display: flex; align-items: flex-start; gap: 32px; height: 620px; }
/* A finger held on the game (a hold, a slow swipe) is not a long-press: no text selection, no callout, no tap flash. */
.unbuilt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.unbuilt__well { position: relative; height: 100%; aspect-ratio: 1 / 1; }
.unbuilt[data-game="2d"] .unbuilt__well { aspect-ratio: 1 / 2; }
.unbuilt[data-game="2d"] .unbuilt__board { border: 1px solid #3a3a36; }
.unbuilt__board { display: block; width: 100%; height: 100%; touch-action: none; }
.unbuilt__side { display: flex; flex-direction: column; gap: 14px; width: 130px; }
.unbuilt__stat { display: flex; flex-direction: column; gap: 4px; }
.unbuilt__side .k { color: #8a8980; }
.unbuilt__score { color: #f8f7f3; font-size: 22px; }
.unbuilt__gauge { display: flex; flex-direction: column; gap: 2px; width: 22px; padding: 2px; border: 1px solid #3a3a36; }
.unbuilt__gauge span { height: 12px; background: #24241f; }
.unbuilt__keys { line-height: 1.9; }
.unbuilt__keys--touch { display: none; line-height: 1.9; }
.unbuilt:not([data-game="2d"]) .unbuilt__2d, .unbuilt:not([data-game="3d"]) .unbuilt__3d { display: none; }
.unbuilt--on .playbox { display: none; }
/* Tetris's pause button: a small frosted square like the play box, there only while a game runs. */
.unbuilt__pause {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #3a3a36; background: rgb(248 247 243 / .08); color: #f8f7f3; cursor: pointer;
}
.unbuilt--on[data-game="2d"] .unbuilt__pause { display: flex; }
.unbuilt__pause svg { width: 50%; height: 50%; }
.unbuilt__pause path { fill: currentColor; }
.unbuilt__pause .unbuilt__icon-play, .unbuilt--paused .unbuilt__pause .unbuilt__icon-pause { display: none; }
.unbuilt--paused .unbuilt__pause .unbuilt__icon-play { display: inline; }

.arcade__game { margin-bottom: 120px; }
.arcade__game[hidden] { display: none; }
/* The phone-first games (build.py game_frame()): a tall well like Tetris's or a square one, the same pause button. */
.unbuilt[data-shape="tall"] .unbuilt__well { aspect-ratio: 1 / 2; }
.unbuilt[data-shape="card"] .unbuilt__well { aspect-ratio: 4 / 5; }
.unbuilt[data-shape] .unbuilt__board { border: 1px solid #3a3a36; }
.unbuilt--on[data-shape] .unbuilt__pause { display: flex; }
/* Morse's speed: three small frosted buttons, the one in use filled. */
.unbuilt__speed { display: flex; flex-direction: column; gap: 6px; }
.unbuilt__speed button {
  min-height: 36px; padding: 0 12px; border: 1px solid #3a3a36; background: rgb(248 247 243 / .08); color: #cfcdc4;
  font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer;
}
.unbuilt__speed button[aria-pressed="true"] { background: #f8f7f3; border-color: #f8f7f3; color: #1a1a18; }
.unbuilt__gap {
  display: flex; flex-direction: column; gap: 6px; color: #cfcdc4;
  font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.unbuilt__gap output { color: #f8f7f3; }
.unbuilt__gap input { width: 100%; min-width: 120px; accent-color: #f8f7f3; }
.unbuilt__gap[hidden] { display: none; }
.unbuilt__speed--row { flex-direction: row; }
.unbuilt__speed--row button { flex: 1; padding: 0; text-align: center; }
.unbuilt__speed--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.unbuilt__speed--grid[hidden] { display: none; }
.unbuilt__more::after { content: " +"; }
.unbuilt__more[aria-expanded="true"]::after { content: " \2212"; }

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .bar { height: 52px; }
  .bar__name { font-size: 19px; }
  .playbox { width: 95px; height: 95px; }
  .demo__frame { height: auto; aspect-ratio: 4 / 5; }
  .demo__frame img { height: 78%; }
  .unbuilt { height: 80%; gap: 16px; margin-top: 6%; }
  .unbuilt .playbox { width: 88px; height: 88px; }
  .unbuilt__side { width: 84px; }
  .unbuilt__score { font-size: 18px; }
  .demo__caption { grid-template-columns: minmax(0, 1fr); }
  .demo__caption > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .foot { flex-wrap: wrap; }
  .arcade__game { margin-bottom: 72px; }
  .arcade__game .demo__frame:has([data-game="3d"], [data-shape="square"], [data-shape="card"]) { aspect-ratio: auto; padding: 52px 0 24px; }
  .unbuilt:is([data-game="3d"], [data-shape="square"], [data-shape="card"]) { flex-direction: column; align-items: center; width: 100%; height: auto; margin-top: 0; padding: 0 16px; gap: 12px; }
  .unbuilt:is([data-game="3d"], [data-shape="square"], [data-shape="card"]) .unbuilt__well { height: auto; width: 100%; }
  .unbuilt:is([data-game="3d"], [data-shape="square"], [data-shape="card"]) .unbuilt__side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 28px; width: 100%; }
  .unbuilt[data-game="3d"] .unbuilt__gauge { display: none; }
  .unbuilt__speed { flex-direction: row; flex-basis: 100%; }
  .unbuilt__speed button { flex: 1; min-height: 44px; text-align: center; }
  .unbuilt__gap { flex-basis: 100%; }
  .unbuilt__gap input { min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media (pointer: coarse) {
  .unbuilt__keys { display: none; }
  .unbuilt__keys--touch { display: block; }
}

/* Morse's full screen (the user, 2026-11-23: "a full screen mode for mobile"). The button sits by the pause button,
   only on a phone-sized or touch screen. Pressed, the game covers the page: the card as large as fits, the score,
   the pause and this button under it; the settings wait outside. assets/morse.js also asks the browser for its own
   full screen where it has one. */
.unbuilt__fs {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #3a3a36; background: rgb(248 247 243 / .08); color: #f8f7f3; cursor: pointer;
}
.unbuilt__fs svg { width: 50%; height: 50%; }
.unbuilt__fs path { fill: currentColor; }
.unbuilt__fs .unbuilt__icon-shrink, .unbuilt__fs[aria-pressed="true"] .unbuilt__icon-grow { display: none; }
.unbuilt__fs[aria-pressed="true"] .unbuilt__icon-shrink { display: inline; }
@media (max-width: 760px), (pointer: coarse) {
  .unbuilt__fs { display: flex; }
}
html.is-full, html.is-full body { overflow: hidden; }
.unbuilt.unbuilt--full {
  position: fixed; inset: 0; z-index: 50; width: auto; height: auto; margin: 0; background: #1a1a18;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
           max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  touch-action: none; overscroll-behavior: contain;
  --full-w: min(100%, calc((100vh - 150px) * .8));
}
@supports (height: 100dvh) {
  .unbuilt.unbuilt--full { --full-w: min(100%, calc((100dvh - 150px) * .8)); }
}
.unbuilt.unbuilt--full .unbuilt__well { flex: none; width: var(--full-w); height: auto; }
.unbuilt.unbuilt--full .unbuilt__side {
  flex: none; flex-direction: row; flex-wrap: nowrap; align-items: center; width: var(--full-w); column-gap: 28px;
}
.unbuilt.unbuilt--full .unbuilt__side > :not(.unbuilt__stat, .unbuilt__pause, .unbuilt__fs) { display: none; }
.unbuilt.unbuilt--full .unbuilt__fs { display: flex; margin-left: auto; }
