/* tweeto.dev: one page, no scripts, no trackers. JetBrains Mono (OFL) is self-hosted. */
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --bg: #FFFFFF; --fg: #0A0A0A; --muted: #7A7A7A; --rule: #E2E2E2; --dot: #D4D4D4; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; color: var(--fg); }
/* Dot grid, like plotting paper. */
body { background: var(--bg) radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 24px 24px fixed;
       font: 15px/1.7 "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; min-height: 100vh;
       display: flex; flex-direction: column; padding: 0 16px; -webkit-font-smoothing: antialiased; }
main, footer, .bar > * { width: 100%; max-width: 720px; }
main, footer { margin: 0 auto; }
main { padding: 14vh 0 48px; flex: 1; }
p { margin: 0; }
.muted { color: var(--muted); }
a { color: var(--fg); text-decoration: none; }
a:hover, a:focus-visible { background: var(--fg); color: var(--bg); }
:focus-visible { outline: none; }

.bar { position: sticky; top: 0; z-index: 1; margin: 0 -16px; padding: 0 16px; background: var(--bg);
       border-bottom: 1px solid var(--fg); display: flex; justify-content: space-between; gap: 16px;
       font-size: 13px; line-height: 40px; }
.bar > span { font-weight: 700; }
.bar nav { display: flex; justify-content: flex-end; gap: 20px; }
@media (min-width: 752px) { .bar { padding: 0 calc((100vw - 720px) / 2); } .bar > * { width: auto; } }

h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
h1::after { content: ""; display: inline-block; width: .55em; height: .95em; margin-left: 4px; vertical-align: -.1em;
            background: var(--fg); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { h1::after { animation: none; } }

h2 { font-size: 15px; font-weight: 400; color: var(--muted); margin: 72px 0 12px; }
h2::before { content: "~/"; }

.game { border: 1px solid var(--fg); background: var(--bg); }
.game-bar { display: flex; justify-content: space-between; padding: 0 12px; line-height: 32px; font-size: 13px;
            border-bottom: 1px solid var(--fg); }
.game-bar em, dd em { font-style: normal; color: var(--muted); }
.game-bar em::before { content: "["; } .game-bar em::after { content: "]"; }
.game-art { display: block; padding: clamp(28px, 7vw, 56px) clamp(20px, 6vw, 48px); }
.game-art:hover, .game-art:focus-visible { background: var(--bg); }
.game-art img { display: block; width: 100%; height: auto; transition: opacity .15s; }
.game-art:hover img { opacity: .7; }
.game-body { padding: 20px; border-top: 1px solid var(--fg); }
.tagline { font-weight: 700; margin-bottom: 8px; }
.game-body > p:not(.tagline) { color: #3A3A3A; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; margin: 20px 0 0; padding-top: 12px;
     border-top: 1px solid var(--rule); font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; }

.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); background: var(--bg); }
.rows li { display: flex; flex-wrap: wrap; gap: 0 24px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.rows time { color: var(--muted); }
.rows .inline { gap: 0 20px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 24px 0 32px; font-size: 13px; }
footer a { color: var(--muted); }
footer a:hover, footer a:focus-visible { color: var(--bg); }
footer .links { display: flex; gap: 0 20px; }
@media (max-width: 560px) { .rows time + span { flex-basis: 100%; } }
