/* The teaser on sp404mods.com until the launch (teaser/README.md). One screen: the Klangfeld
   test card (docs/brand/), the announcement, the Klangfeld mark. Barlow 400 and 700, the
   Klangfeld colours on dark. No inline styles: the CSP allows none. */

@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ground: #1d1f21;  /* Klangfeld ink, here the page */
  --text: #e3e5e3;    /* Klangfeld paper, here the text */
  --small: #9a9d9f;   /* small print on dark */
  --black: #131313;   /* the test card */
  --light: #f1f2f1;   /* light on black */
  --accent: #ff7a5c;  /* hover and focus, as on SP404mods */
}

html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--text); font-family: Barlow, system-ui, sans-serif; font-size: 18px; line-height: 1.4; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tz { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; max-width: 1060px; margin: 0 auto; padding: 44px 44px 32px; box-sizing: border-box; }
.tz-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }

/* The test card, rows 68 / 9 / 23 (docs/brand/Klangfeld huisstijl.md). 3:1 instead of the
   blog's 4:1, so the screen in the label fits inside the bars. */
.tz-card { position: relative; aspect-ratio: 3 / 1; display: grid; grid-template-rows: 68% 9% 23%; background: var(--black); }
.tz-bars, .tz-mid { display: grid; grid-template-columns: repeat(7, 1fr); }
.tz-low { display: grid; grid-template-columns: 5fr 5fr 5fr 5fr 1fr 1fr 1fr 5fr; }
.tz-bars span:nth-child(1) { background: #c0c0c0; }
.tz-bars span:nth-child(2) { background: #c0c000; }
.tz-bars span:nth-child(3) { background: #00c0c0; }
.tz-bars span:nth-child(4) { background: #00c000; }
.tz-bars span:nth-child(5) { background: #c000c0; }
.tz-bars span:nth-child(6) { background: #c00000; }
.tz-bars span:nth-child(7) { background: #0000c0; }
.tz-mid span:nth-child(odd) { background: var(--black); }
.tz-mid span:nth-child(1) { background: #0000c0; }
.tz-mid span:nth-child(3) { background: #c000c0; }
.tz-mid span:nth-child(5) { background: #00c0c0; }
.tz-mid span:nth-child(7) { background: #c0c0c0; }
.tz-low span { background: var(--black); }
.tz-low span:nth-child(1) { background: #00214c; }
.tz-low span:nth-child(2) { background: #ffffff; }
.tz-low span:nth-child(3) { background: #32006a; }
.tz-low span:nth-child(5) { background: #090909; }
.tz-low span:nth-child(7) { background: #1d1d1d; }
/* The label: the SP's screen, where DOOM OS boots but never locks (doom-os-signal.gif, drawn
   by teaser/signal.py; a still for reduced motion), Klangfeld Labs and the reference under
   it. The screen is 128 x 64 pixels: keep it at a whole multiple. */
.tz-label { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 12px 12px 10px; background: var(--black); color: var(--light); white-space: nowrap; }
.tz-screen, .tz-screen img { display: block; }
.tz-screen img { width: 256px; height: 128px; image-rendering: pixelated; }
.tz-ref { display: flex; gap: 12px; margin-top: 10px; font-size: 11.5px; letter-spacing: 0.08em; color: rgba(241, 242, 241, 0.72); }
.tz-ref span:first-child { font-weight: 700; color: var(--light); }

h1 { margin: 40px 0 0; font-size: 44px; font-weight: 700; line-height: 1.1; }
.tz-soon { margin: 10px 0 0; font-size: 28px; line-height: 1.2; }

.tz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 64px; font-size: 15px; color: var(--small); }
.tz-foot p { margin: 0; }
.tz-links { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; }
.tz-links a { text-decoration: none; }
.tz-sep { font-weight: 400; color: var(--small); }
.tz-kf { display: flex; align-items: center; gap: 14px; }
.tz-kf img { display: block; }

@media (max-width: 600px) {
  .tz { padding: 20px 20px 24px; }
  .tz-card { aspect-ratio: 1 / 1; }
  .tz-label { padding: 10px 10px 8px; }
  .tz-ref { gap: 8px; margin-top: 8px; font-size: 10px; }
  h1 { margin-top: 28px; font-size: 36px; }
  .tz-soon { font-size: 22px; }
}

/* Narrow phones: the screen at its own size, so the label stays inside the bars. */
@media (max-width: 359px) { .tz-screen img { width: 128px; height: 64px; } }
