/* woyta.dev: a page wired up like a circuit. Black, white and grey, square corners, no animation.
   The wiring itself is drawn by src/board/draw.ts into .wiring. */
:root {
  --bg: #0b0b0c; --ink: #ececec; --text: #c4c4c9; --muted: #a2a2a8; --line: #77777d; --faint: #4c4c52;
  --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
::selection { background: var(--ink); color: var(--bg); }

.board { position: relative; width: min(100% - 40px, 720px); margin-inline: auto; }
.wiring { display: none; position: absolute; left: 0; top: 0; pointer-events: none; }
.skip { position: absolute; left: 0; top: -60px; padding: 8px 12px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 8px; z-index: 2; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; font-family: var(--mono); }
.logo { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.top nav { display: flex; }
.top nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.column { display: flex; flex-direction: column; gap: 16px; padding-block: 12px 40px; }
.panel { display: block; position: relative; background: var(--bg); border: 1px solid var(--line); padding: 22px 24px; }
.panel:hover, .panel:focus-within, a.panel:focus-visible { border-color: #fff; }
.meta { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.kicker { margin-bottom: 12px; font: 400 14px var(--mono); color: var(--muted); }
.intro h1 { max-width: 15ch; font-size: clamp(36px, 7vw, 46px); letter-spacing: -0.03em; }
.lead { max-width: 62ch; margin-top: 16px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 20px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; text-decoration: none; }
.btn:hover { border-color: #fff; }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--solid:hover { background: #fff; color: var(--bg); }

.now { font-family: var(--mono); }
.now__label { margin-bottom: 14px; font: 400 12px var(--mono); letter-spacing: 0; color: var(--muted); }
.now dl { display: grid; gap: 7px; font-size: 14px; line-height: 1.35; }
.now dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.now dt { color: var(--muted); }

.group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.group-head h2 { font-size: 26px; }
.group-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }
.page-head { margin-bottom: 8px; }
.page-head h1 { font-size: 38px; letter-spacing: -0.03em; }
.page-head .lead a { color: var(--ink); }

.card__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.card h2, .card h3 { font-size: 20px; letter-spacing: -0.01em; }
.card p { margin-top: 10px; font-size: 15px; color: var(--text); }
.card__details { display: grid; gap: 4px; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text); }
.card__details li { position: relative; padding-left: 16px; }
.card__details li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { padding: 3px 7px; border: 1px solid var(--faint); font: 400 12px/1.3 var(--mono); color: var(--muted); }
.card__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; font-size: 14px; font-weight: 500; }
.card__links a { display: inline-flex; align-items: center; min-height: 44px; }

.row { display: grid; gap: 3px; padding-block: 14px; text-decoration: none; }
.row__title { font-size: 18px; font-weight: 500; }
.row__summary { font-size: 14px; color: var(--text); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font: 400 13px var(--mono); color: var(--muted); }
.pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

.post h1 { margin-top: 10px; font-size: 38px; letter-spacing: -0.03em; }
.prose { max-width: 62ch; margin-top: 24px; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 32px; font-size: 22px; color: var(--ink); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: square; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); }
.prose code { font: 400 .88em var(--mono); border: 1px solid var(--faint); padding: 1px 5px; color: var(--ink); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font: 400 13px var(--mono); color: var(--muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* the wiring needs the right-hand margin */
@media (min-width: 1260px) {
  .board { width: 1200px; min-height: 860px; }
  .wiring { display: block; }
  .top { position: relative; z-index: 1; width: 720px; height: 184px; align-items: flex-start; padding-top: 36px; }
  .top nav a { width: 100px; height: 72px; padding: 0 0 36px; }
  .top nav a[aria-current="page"] { text-decoration: none; color: #fff; }
  .column, .foot { position: relative; z-index: 1; width: 720px; }
  .column { padding-top: 12px; }
}
.wiring path { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.wiring .wire, .wiring .net path { stroke: var(--line); stroke-width: 1px; }
.wiring .net.is-on path { stroke: #fff; }
.wiring .net.is-hover path { stroke: #fff; stroke-width: 3px; }
.wiring .sym { stroke: #b4b4ba; stroke-width: 1px; }
.wiring .act { stroke: #b4b4ba; stroke-width: 1px; stroke-dasharray: 3 3; stroke-linecap: butt; }
.wiring .solid { fill: var(--ink); stroke: none; }
.wiring text { font: 400 11px var(--mono); fill: var(--muted); }
.wiring .on { fill: var(--ink); }
.wiring .ref { font-size: 13px; fill: var(--ink); }
