/* willds.live — black terminal, xerox grain, one amber, one red light */
:root {
  --bg: #0D0C0B;
  --screen: #0E0D0C;
  --fg: #E8E3D3;
  --dim: #9A9486;
  --line: #6A655B;
  --rule: #3A3731;
  --amber: #FFB000;
  --red: #E0462A;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --crt: "VT323", "Space Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg) url("grain.png") repeat; min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--fg); }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* status line */
.status { border-bottom: 1px solid var(--rule); font-family: var(--crt); font-size: 19px; color: var(--dim); }
.status .wrap { display: flex; flex-wrap: wrap; gap: 0 40px; justify-content: space-between; align-items: center; padding-block: 6px; }
.status-links { display: flex; flex-wrap: wrap; gap: 0 34px; }
.status-links a { color: var(--dim); text-decoration: none; padding: 8px 0; letter-spacing: 0.04em; }
.status-links a:hover { color: var(--amber); }
@media (max-width: 720px) {
  .status-links a { padding: 10px 0; }
}

main.wrap { display: flex; flex-direction: column; gap: 44px; padding-block: 18px 56px; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 16px; border-bottom: 3px dotted var(--fg); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 34px; height: auto; }
.brand span { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { padding: 10px; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.air { display: flex; align-items: center; gap: 10px; font-family: var(--crt); font-size: 22px; border: 1px solid var(--fg); padding: 3px 14px; }
.air .dot { color: var(--dim); }
.air.on { border-color: var(--red); }
.air.on .dot { color: var(--red); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* live screen */
.live { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.screen-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.screen { border: 3px double var(--line); background: var(--screen); }
.screen-bar { display: flex; justify-content: space-between; gap: 16px; font-family: var(--crt); font-size: 20px; color: var(--amber); padding: 6px 12px; border-bottom: 1px solid #2E2A26; }
.screen-body { aspect-ratio: 16 / 9; max-width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.screen-body picture { width: 100%; display: flex; justify-content: center; }
.screen-body img { width: min(34%, 320px); height: auto; }
.screen-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-family: var(--crt); font-size: 21px; }
.screen-foot .right { margin-left: auto; }
.btn { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; background: var(--fg); color: var(--bg); border: none; padding: 0 18px; font-family: var(--mono); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--amber); color: var(--bg); }

.chat-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.chat-col iframe { width: 100%; flex-grow: 1; min-height: 420px; border: 1px solid var(--line); background: var(--screen); }

/* terminal boxes */
.box { border: 1px solid var(--line); padding: 26px 0 8px; position: relative; }
.box > .label { position: absolute; top: -14px; left: 14px; background: var(--bg); padding: 0 8px; font-family: var(--crt); font-size: 24px; line-height: 1.1; }
.box > .label span { color: var(--dim); }
.box-pad { padding: 30px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.empty { padding: 10px 16px; color: var(--dim); }

/* lists: mixes, tracks, posts */
.list { overflow-x: auto; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px 96px auto; gap: 14px; align-items: center; padding: 6px 16px; border-top: 1px dashed var(--rule); }
.row.head { border-top: 0; padding-top: 0; font-family: var(--crt); font-size: 19px; color: var(--dim); }
.row .no { font-family: var(--crt); font-size: 26px; }
.row .title { font-weight: 700; }
.row .date { font-size: 13px; color: var(--dim); margin-left: 8px; font-weight: 400; }
.row .tags { font-size: 13px; }
.row .len { font-family: var(--crt); font-size: 21px; font-variant-numeric: tabular-nums; }
.row .acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row.playing { background: var(--fg); color: var(--bg); }
.row.playing .date { color: var(--bg); }
.row.playing a { color: var(--bg); }
.play { width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.play:hover { color: var(--amber); }
.row.playing .play:hover { color: var(--bg); background: var(--amber); }
.small-link { font-size: 13px; padding: 12px 4px; }
.player { padding: 10px 16px 14px; border-top: 1px dashed var(--rule); }
/* SoundCloud's widget is light; invert it so it sits on black */
.player iframe { width: 100%; height: 166px; border: 0; filter: invert(0.92) hue-rotate(180deg); }
.player .via { font-family: var(--crt); font-size: 18px; color: var(--dim); margin-top: 4px; }

@media (max-width: 720px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .row .tags, .row.head .h-tags, .row.head .h-len { display: none; }
  .row .len { display: none; }
  .row .date { display: block; margin-left: 0; }
}

.post-row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 10px 16px; border-top: 1px dashed var(--rule); text-decoration: none; }
.post-row:hover { background: var(--fg); color: var(--bg); }
.post-row .d { font-family: var(--crt); font-size: 20px; opacity: 0.75; }
.post-row .t { font-weight: 700; flex-grow: 1; }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.about .text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about .side { flex: 1 1 300px; min-width: 0; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; max-width: 62ch; }
.info { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 12px; padding: 0 18px; font-family: var(--crt); font-size: 22px; line-height: 1.35; }
.info dt { color: var(--dim); }
.info dd { margin: 0; }
.email { font-weight: 700; font-size: clamp(18px, 3vw, 30px); line-height: 1.2; word-break: break-all; text-decoration: none; }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px dashed var(--rule); text-decoration: none; font-weight: 700; }
.links a:hover { background: var(--fg); color: var(--bg); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }

/* blog */
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.blog-head h1 { font-size: clamp(36px, 5vw, 56px); }
.article { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.article .meta { font-family: var(--crt); font-size: 21px; color: var(--dim); }
.article h1 { font-size: clamp(30px, 4vw, 48px); }
.article p { font-size: 16px; }
.article blockquote { margin: 0; border-block: 1px solid var(--line); padding: 14px 0; font-family: var(--crt); font-size: 30px; line-height: 1.15; color: var(--amber); }

footer.foot { border-top: 3px dotted var(--fg); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 36px; align-items: baseline; font-family: var(--crt); font-size: 22px; }
footer.foot a { text-decoration: none; padding: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  .air.on .dot { animation: none; }
}
