/* assets/css/site.css - morse-code.nl theme v1 (27-11-2026, "Seinpaneel")
   Night-blue radio panel with a warm amber signal lamp. Headings Unbounded (wide), body Mulish, dots and dashes
   Martian Mono; all three OFL, self-hosted, new to the portfolio. Dots and dashes are drawn as shapes (.dit/.dah),
   never as small type, so they stay readable on a phone. Bump ?v= in _partials/head-assets.html after a change. */

@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/unbounded-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/assets/fonts/mulish-latin-wght-normal.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: "Mulish"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/assets/fonts/mulish-latin-ext-wght-normal.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: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/assets/fonts/martian-mono-latin-wght-normal.woff2) format("woff2"); }

:root {
  --night: #0d1420;
  --panel: #152033;
  --panel-2: #1c2a42;
  --line: #2b3b57;
  --ink: #eef2f8;
  --ink-2: #b7c3d6;
  --muted: #8c9ab0;
  --amber: #ffb547;
  --amber-2: #ffd08a;
  --amber-deep: #c97a10;
  --green: #5fd39a;
  --red: #ff7a6b;
  --paper: #f7f3ea;
  --paper-ink: #1a2333;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--amber-2); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; margin-top: .2em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--night); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.ic { width: 1.05em; height: 1.05em; vertical-align: -.15em; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.source { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.kicker { display: inline-flex; gap: .45rem; align-items: center; font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }

/* header: a thin panel strip with a row of signal dots as the rule */
.site-header { background: var(--night); border-bottom: 1px solid var(--line); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px, var(--amber) 12px 30px, transparent 30px 42px); opacity: .55; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: .8rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: 34px; width: auto; display: block; }
.site-nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__link { display: block; padding: .45rem .75rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav__link:hover, .site-nav__item.is-current .site-nav__link { color: var(--night); background: var(--amber); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .4rem .8rem; font: 700 .9rem var(--body); align-items: center; gap: .4rem; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
@media (max-width: 52rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; padding: .5rem 0; }
}

/* hero + tool */
.hero { padding: 2.2rem 0 1rem; background:
  radial-gradient(60rem 26rem at 85% -10%, rgba(255,181,71,.13), transparent 60%),
  radial-gradient(40rem 20rem at -10% 10%, rgba(95,140,220,.12), transparent 60%); }
.hero__top { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.hero__top .lead { max-width: 40rem; }
.lamp { width: 6.5rem; height: 6.5rem; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 40% 35%, #3a3326, #1d1a14 70%); border: 6px solid #2a3448;
  box-shadow: inset 0 4px 14px rgba(0,0,0,.7), 0 0 0 1px #0a0f18; transition: background .03s, box-shadow .03s; }
.lamp::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: rgba(255,255,255,.06); filter: blur(4px); }
.lamp.is-on { background: radial-gradient(circle at 40% 35%, #fff6d8, var(--amber) 45%, var(--amber-deep) 100%);
  box-shadow: 0 0 30px 8px rgba(255,181,71,.55), 0 0 90px 20px rgba(255,181,71,.25), inset 0 -4px 10px rgba(0,0,0,.25); }
.lamp__label { display: block; text-align: center; font: 600 .7rem var(--mono); color: var(--muted); margin-top: .5rem; letter-spacing: .1em; }
html.is-flash body { background: #fff4dc; }

.tool { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 1rem; margin: 1.4rem 0 1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.tool__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { display: flex; justify-content: space-between; align-items: center; font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.field textarea { width: 100%; min-height: 9.5rem; resize: vertical; border-radius: var(--r); border: 1px solid var(--line); background: var(--night);
  color: var(--ink); padding: .9rem 1rem; font: 500 1.15rem/1.5 var(--body); }
.field textarea[data-field="code"] { font: 500 1.05rem/1.7 var(--mono); letter-spacing: .06em; color: var(--amber-2); }
.field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255,181,71,.25); }
.mini { background: none; border: 0; color: var(--muted); font: 700 .75rem var(--mono); cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; padding: .2rem; }
.mini:hover { color: var(--amber); }

.tape { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; min-height: 2.6rem; padding: .7rem .9rem; margin: .9rem 0 0;
  background: #0a1019; border-radius: var(--r); border: 1px dashed var(--line); }
.tape__sign { display: inline-flex; gap: 4px; align-items: center; padding: 4px; border-radius: 6px; transition: background .08s; }
.tape__sign.is-active { background: rgba(255,181,71,.18); }
.tape__gap { width: 1.2rem; height: 2px; background: var(--line); }
.dit, .dah { display: inline-block; height: 10px; border-radius: 5px; background: var(--amber); }
.dit { width: 10px; }
.dah { width: 30px; }
.tape__sign.is-active .dit, .tape__sign.is-active .dah { background: #fff1d1; box-shadow: 0 0 10px rgba(255,181,71,.8); }

.controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 800 .95rem var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--amber); color: var(--ink); }
.btn--go { background: var(--amber); border-color: var(--amber); color: #1b1203; }
.btn--go:hover { background: var(--amber-2); color: #1b1203; }
.btn--wide { width: 100%; }
.is-playing [data-act="play"] .ic-play, [data-act="play"] .ic-stop { display: none; }
.is-playing [data-act="play"] .ic-stop { display: inline; }
.btn__stop-label { display: none; }
.is-playing .btn__stop-label { display: inline; }
.is-playing .btn__play-label { display: none; }
.settings { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); align-items: center; }
.set { display: flex; align-items: center; gap: .55rem; font: 600 .85rem var(--body); color: var(--ink-2); }
.set output { font: 700 .8rem var(--mono); color: var(--amber-2); min-width: 2.6em; }
.set input[type="range"] { accent-color: var(--amber); width: 7.5rem; }
.set input[type="checkbox"] { accent-color: var(--amber); width: 1.1rem; height: 1.1rem; }
.tool__msg { margin: .8rem 0 0; color: var(--amber-2); font-weight: 700; font-size: .95rem; }
.examples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; align-items: center; font-size: .9rem; color: var(--muted); }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: .3rem .75rem; font: 700 .85rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--amber); color: var(--amber-2); }
.noscript { background: var(--panel-2); border-radius: var(--r); padding: .8rem 1rem; color: var(--ink-2); }

/* alphabet board: one key per sign, a click plays it */
.board { margin: 2.2rem 0; }
.board__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .55rem; list-style: none; padding: 0; margin: 1rem 0; }
.key { display: flex; align-items: center; gap: .7rem; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: .65rem .8rem; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.key:hover, .key.is-playing { border-color: var(--amber); background: var(--panel-2); }
.key__ch { font: 700 1.35rem/1 var(--display); min-width: 1.4em; }
.board__grid--wide { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.key__code { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.key__code .dit { width: 8px; height: 8px; }
.key__code .dah { width: 20px; height: 8px; }
.key__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.key.is-playing .dit, .key.is-playing .dah { background: #fff1d1; }
.board__note { color: var(--muted); font-size: .92rem; }

/* content */
.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; margin: 2.5rem 0; align-items: start; }
.section { margin: 2.5rem 0; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.card h3 { margin-top: 0; }
.card--amber { background: linear-gradient(160deg, #2a2112, var(--panel)); border-color: #5a4422; }
.callout { border-left: 4px solid var(--amber); background: var(--panel); padding: .9rem 1.1rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.2rem 0; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details[open] summary { color: var(--amber-2); }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.more { font-weight: 800; white-space: nowrap; }
.more::after { content: " \2192"; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data caption { text-align: left; padding: .7rem 1rem; color: var(--muted); font-size: .9rem; }
.data th, .data td { padding: .6rem 1rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data thead th { background: var(--panel-2); font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.data td.code, .code { font: 600 1rem var(--mono); color: var(--amber-2); letter-spacing: .12em; white-space: nowrap; }
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.page-top { padding: 1.6rem 0 .4rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; padding-bottom: 1rem; }
.aside { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.aside .card h3 { margin: .4rem 0; font-size: 1rem; }
.mini-tool textarea { width: 100%; min-height: 4.5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--night); color: var(--ink); padding: .6rem .7rem; font: 500 1rem var(--body); }
.mini-tool output { display: block; font: 600 .9rem/1.6 var(--mono); color: var(--amber-2); letter-spacing: .08em; word-break: break-word; min-height: 1.6em; margin: .5rem 0; }
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* trainer */
.trainer { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 1.2rem; margin: 1rem 0 2rem; }
.tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.tr-set { font: 700 1.05rem/1.6 var(--mono); color: var(--amber-2); letter-spacing: .12em; word-break: break-word; }
.tr-new { font: 700 1.3rem var(--mono); color: var(--ink); }
.tr-input { width: 100%; font: 700 1.6rem var(--mono); letter-spacing: .25em; text-transform: uppercase; background: var(--night); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); padding: .7rem 1rem; margin: 1rem 0 .6rem; }
.tr-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,181,71,.25); }
.tr-line { display: flex; flex-wrap: wrap; gap: .5rem; }
.tr-sign { display: inline-flex; flex-direction: column; align-items: center; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--line); min-width: 3rem; }
.tr-sign b { font: 700 1.3rem var(--display); }
.tr-sign small { font: 600 .75rem var(--mono); color: var(--muted); }
.tr-sign.is-ok { border-color: var(--green); }
.tr-sign.is-ok b { color: var(--green); }
.tr-sign.is-bad { border-color: var(--red); }
.tr-sign.is-bad b { color: var(--red); }
.tr-up { margin-top: .8rem; color: var(--green); font-weight: 800; }
.meter { height: 8px; background: var(--night); border-radius: 4px; overflow: hidden; margin: .5rem 0 .3rem; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transition: width .3s; }
.koch { font: 600 .95rem/2 var(--mono); letter-spacing: .14em; color: var(--ink-2); word-break: break-word; }

/* print page: what you see is the sheet */
.sheet-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: 1rem 0; }
.sheet-tools label { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; }
.sheet-tools input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--night); color: var(--ink); padding: .5rem .8rem; font: 600 1.05rem var(--body); }
.sheet { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 1.6rem; margin: 1rem 0 2rem; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.sheet h2 { margin: 0 0 .2rem; font-size: 1.5rem; color: var(--paper-ink); }
.sheet .source { color: #5b6478; }
.sheet .dit, .sheet .dah { background: var(--paper-ink); }
.poster { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem 1rem; margin: 1rem 0; }
.poster__item { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid #ddd5c4; }
.poster__item b { font: 700 1.2rem var(--display); min-width: 1.4em; }
.namecard { text-align: center; padding: 2rem 1rem; }
.namecard__code { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.4rem; margin: 1rem 0; }
.namecard__code .tape__sign { gap: 7px; }
.namecard__code .dit { width: 18px; height: 18px; border-radius: 9px; }
.namecard__code .dah { width: 54px; height: 18px; border-radius: 9px; }
.namecard__code .tape__gap { width: 2rem; background: transparent; }
.namecard__text { font: 700 1.4rem var(--display); letter-spacing: .3em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px dashed #b8ae99; border-left: 1px dashed #b8ae99; }
.flash { display: grid; grid-template-rows: 1fr 1fr; border-right: 1px dashed #b8ae99; border-bottom: 1px dashed #b8ae99; min-height: 7.5rem; }
.flash > span { display: flex; align-items: center; justify-content: center; }
.flash__front { font: 700 2rem var(--display); border-bottom: 1px dotted #cfc5b0; }
.flash__back .key__code .dit { width: 11px; height: 11px; }
.flash__back .key__code .dah { width: 32px; height: 11px; }

/* share + footer */
.share { margin: 2.5rem 0; }
.site-footer { margin-top: 3rem; background: #080d16; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.2rem 1rem 1rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer__logo { height: 30px; width: auto; margin-bottom: .8rem; }
.site-footer__head { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__small { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.site-footer__sos { font: 600 .8rem var(--mono); letter-spacing: .2em; color: var(--muted); }

@media (max-width: 52rem) {
  .tool__fields, .band, .grid--2, .grid--3, .layout, .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__top { grid-template-columns: 1fr; }
  .lamp-wrap { display: none; }
  .aside { position: static; }
  .poster, .cards { grid-template-columns: repeat(2, 1fr); }
  .set input[type="range"] { width: 6rem; }
}
@media (prefers-reduced-motion: reduce) { .lamp, .tape__sign, .meter span { transition: none; } }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .share, .no-print, .skip, .crumbs, .page-top, .sheet-tools, .disclosure, .prose-intro { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .sheet { box-shadow: none; padding: 0; margin: 0; border-radius: 0; background: #fff; }
  .sheet + .sheet { break-before: page; }
  .sheet .dit, .sheet .dah { background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet h2 { font-size: 22pt; }
  .poster { grid-template-columns: repeat(3, 1fr); gap: 0 8mm; }
  .poster__item { padding: 4.4mm 0; }
  .poster .key__code { flex-wrap: nowrap; }
  .poster__item b { font-size: 18pt; }
  .poster .dit { width: 11px; height: 11px; }
  .poster .dah { width: 32px; height: 11px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .flash { min-height: 36mm; }
  .namecard { min-height: 250mm; display: flex; flex-direction: column; justify-content: center; }
  .namecard__code .dit { width: 26px; height: 26px; border-radius: 13px; }
  .namecard__code .dah { width: 78px; height: 26px; border-radius: 13px; }
  .namecard__text { font-size: 26pt; }
  .flash { break-inside: avoid; }
  @page { size: A4; margin: 12mm; }
}
