@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.ttf"); font-weight: 400; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Bold.ttf"); font-weight: 700; font-display: block; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--primary); font: 400 14px/1.5 "IBM Plex Mono", monospace; }
/* As in the concept: the art on the left, the text column with the dot pattern on the right. The art box is sized by site.mjs: 70% of the width and the full height (landscape) or the full width and 70% of the height (portrait), rounded to whole cells. */
main { display: grid; grid-template-columns: auto minmax(0, 1fr); min-block-size: 100svh; }
/* The stage is exactly the box (70% of the width and the full height, or the full width and about 70% of the height); the text may overshoot it by part of a cell and is clipped there. `clip`, not `hidden`: focus must never scroll it. */
#stage { width: var(--stage-w); height: var(--stage-h); overflow: clip; align-self: start; justify-self: start; }
#art { margin: 0; white-space: pre; font: 700 var(--fs)/var(--lh) "IBM Plex Mono", monospace; cursor: pointer; }
#art .l { -webkit-text-stroke: 0.08em currentColor; }
.info { position: relative; min-inline-size: 0; }
.dots { position: absolute; inset: 0; background: var(--pattern); } /* Figma "Pattern dot light": 4px tile, 1px dots at (0,0) and (2,2) */
.content { position: relative; min-block-size: 100%; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
h1, p { margin: 0 0 1.5em; font: inherit; color: var(--primary); max-inline-size: 60ch; }
ul { list-style: none; margin: 0 0 1.5em; padding: 0; }
footer ul { margin-bottom: 0; }
a { color: var(--link); text-decoration: none; display: inline-block; min-block-size: 24px; }
a.github { color: var(--highlight); }
.off { color: var(--tertiary); display: inline-block; min-block-size: 24px; }
a:focus-visible, #art:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
footer p.copy { margin: 8px 0 0; color: var(--tertiary); }
/* Portrait or narrow: the art goes on top; the column follows. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  main { grid-template-columns: 1fr; }
}
