/* michi.ipv64.de — the landing page. Dark only, in media-trace's palette
   (trace.css), so the public pages read as one family. `--ok` is also the
   ground's palette; the kit's ink variables point at the page's text. */

:root {
  --bg: #0b0b0a; --surface: #0f0f0e; --raised: #121211; --hover: #151513;
  --line: #22221f; --line-2: #2a2a26; --line-3: #1a1a18; --key: #3a3935;
  --text: #ecebe6; --muted: #8f8d85; --dim: #3a3935;
  --ok: #7ee08a; --live: #6fc3ef; --warn: #f0b54a; --err: #f07a68;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ascii-ink: var(--dim); --ascii-ink-strong: var(--text);
  --ascii-success: var(--ok); --ascii-warning: var(--warn); --ascii-error: var(--err);
  color-scheme: dark;
}

html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--ok); text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ok); color: var(--bg); }

.page { min-height: 100vh; font-family: var(--sans); font-size: 14px; overflow-x: hidden; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* --- entrances: the console's power-on (console base.css `phosin`) --- */
@keyframes phosin {
  0% { opacity: 0; transform: translateY(4px); filter: brightness(2.4); }
  60% { opacity: 1; filter: brightness(1.5); }
  100% { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { [style*="phosin"] { animation: none !important; } }

/* A streamed text (stream.js `rollText`), as media-trace draws it: each
 * character rolls up through glyphs onto its letter. */
.sr-ch { position: relative; }
.sr-l { opacity: 0; }
.sr-win { position: absolute; left: -2px; right: -2px; top: calc(50% - var(--sr-lh) / 2); height: var(--sr-lh);
  overflow: hidden; pointer-events: none; }
.sr-strip { position: absolute; left: 0; right: 0; top: 0; }
.sr-strip > span { display: block; height: var(--sr-lh); text-align: center; color: var(--muted);
  font: 500 calc(var(--sr-fs) * .84) / var(--sr-lh) var(--mono); }
.sr-strip > .sr-end { font: inherit; line-height: var(--sr-lh); color: inherit; }
.sr-caret::after { content: ''; position: absolute; left: calc(100% + .18em); top: calc(50% - var(--sr-lh) * .3);
  width: max(2px, .5em); height: calc(var(--sr-lh) * .6); background: currentColor; pointer-events: none; }

/* --- hero --- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
/* media-trace's hero field (trace.css `.hero-field`): faded out towards the left. */
.ground { position: absolute; inset: 0; pointer-events: none; opacity: .34;
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 75%); mask-image: linear-gradient(to right, transparent 30%, #000 75%); }
.ground canvas { pointer-events: none; }
.hero-in { position: relative; padding-top: clamp(40px, 9vw, 96px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.mark { margin: 0; position: relative; width: 100%; height: clamp(64px, 16vw, 190px); display: flex; align-items: center;
  font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 9vw, 104px); letter-spacing: -.04em; line-height: 1; overflow: hidden; }
.mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lede { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 520px; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border: 1px solid var(--line-2);
  background: rgba(15, 15, 14, .85); font-family: var(--mono); font-size: 14px; }
.verdict.ok { border-color: #2c4a30; }
.verdict.warn { border-color: #5a4520; }
.verdict.err { border-color: #5c2f28; }
.verdict-text { color: var(--text); }
.verdict.err .verdict-text { color: var(--err); }
.verdict.warn .verdict-text { color: var(--warn); }
.verdict-at { margin-left: auto; color: var(--muted); font-size: 12px; }
.verdict-mark { flex: none; font-family: var(--mono); font-weight: 500; color: var(--ok); }
.verdict.warn .verdict-mark { color: var(--warn); }
.verdict.err .verdict-mark { color: var(--err); }
.verdict.wait .verdict-mark { color: var(--live); animation: markblink 1.2s steps(2, jump-none) infinite; }
@keyframes markblink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .verdict.wait .verdict-mark { animation: none; } }
.maint { display: flex; gap: 10px; padding: 12px 16px; border: 1px solid #5a4520; background: rgba(240, 181, 74, .06);
  font-family: var(--mono); font-size: 13px; color: var(--warn); line-height: 1.45; }
.maint-mark { flex: none; }

/* --- services --- */
.main { padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; flex: 1; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.mc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
a.card:hover { background: var(--hover); border-color: var(--line-2); }
a.card:focus-visible { outline: 1px solid var(--ok); outline-offset: 2px; }
.card.down { border-color: #4a2a25; }
.card.slow, .card.planned { border-color: #4a3a1c; }
.card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-go { margin-left: auto; color: var(--muted); font-family: var(--mono); }
a.card:hover .card-go { color: var(--ok); }
.card-blurb { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.card-host { font-family: var(--mono); font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card.down .meta-state { color: var(--err); }
.card.slow .meta-state, .card.planned .meta-state { color: var(--warn); }
.incident { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 10px; border-left: 2px solid var(--err);
  background: rgba(240, 122, 104, .06); font-family: var(--mono); font-size: 12px; line-height: 1.45; }
.incident.planned { border-left-color: var(--warn); background: rgba(240, 181, 74, .06); }
.incident.unplanned .incident-kind { color: var(--err); }
.incident.planned .incident-kind { color: var(--warn); }
.incident-what { color: var(--text); }
.incident-since { color: var(--muted); }
.warn-text { color: var(--warn); }
.dot { font-size: 10px; line-height: 1; color: var(--dim); flex: none; }
.dot.up { color: var(--ok); }
.dot.slow, .dot.planned { color: var(--warn); }
.dot.down { color: var(--err); }
.dot.wait { color: var(--live); }
.players { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.players b { color: var(--text); font-weight: 500; font-size: 14px; }
.motd { margin: 0; padding: 8px 10px; border-left: 2px solid var(--line-2); background: var(--raised); font-family: var(--mono); font-size: 12px;
  color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.addrs { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.addr { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--mono); font-size: 12px; }
.addr-label { width: 58px; flex: none; color: var(--muted); }
.addr-value { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; font-family: var(--mono); }
.addr-copy { flex: none; background: none; border: 1px solid var(--key); padding: 4px 8px; min-height: 32px; cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.addr-copy:hover, .addr-copy:focus-visible { color: var(--ok); border-color: var(--ok); outline: none; }

/* --- footer, toasts --- */
.foot { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line-3); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--raised); border: 1px solid #2f2f2b; padding: 10px 14px; font-family: var(--mono); font-size: 12px; display: flex; gap: 10px; max-width: calc(100vw - 32px); }
.toast-mark { color: var(--ok); }
.toast-text { overflow-wrap: anywhere; }

@media (max-width: 479px) {
  .verdict-at { margin-left: 0; width: 100%; }
  .addr-label { width: 52px; }
}
