/* Shared look for danielkinsner.com: a control room, lit by whatever is on program. */

@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #3fb7ff;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #101216;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --line: #242931;
  --line-2: #333944;
  --text: #eceef1;
  --text-2: #a9afb9;
  --text-3: #727884;
  --pgm: #ff3b2f;
  --pvw: #1fd26a;
  --glow: #3fb7ff;
  --gut: clamp(16px, 3vw, 40px);
  --max: 1560px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
  transition: --glow .9s ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid var(--pvw); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 4px;
  font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */
.display {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.035em;
  line-height: .9;
  font-size: clamp(3rem, 8.2vw, 8.4rem);
}
.display--md { font-size: clamp(2.4rem, 5.4vw, 5.2rem); }
.h2 {
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -.03em;
  line-height: .95;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
}
.kicker, .lbl {
  font-stretch: 72%;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  color: var(--text-3);
}
.kicker { display: flex; align-items: center; gap: .6em; margin-bottom: 1.1rem; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pgm); box-shadow: 0 0 10px var(--pgm); }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: 12px var(--gut);
  background: rgb(11 12 14 / .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-dk {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 7px;
  background: var(--text); color: var(--bg);
  font-weight: 900; font-stretch: 112%; font-size: 15px; letter-spacing: -.04em;
  position: relative;
}
.mark-dk::after {
  content: ''; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pgm); box-shadow: 0 0 0 2px var(--bg);
}
.mark-name { font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; font-size: 15px; }
.bar-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.bar-nav a, .foot-nav a {
  text-decoration: none; color: var(--text-2);
  font-stretch: 80%; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  transition: color .15s;
}
.bar-nav a:hover, .foot-nav a:hover { color: var(--text); }
.bar-right { display: flex; align-items: center; gap: 16px; }
.tod { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); font-weight: 560; }
.tod-k { font-stretch: 72%; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-size: 11.5px; font-weight: 650; }
.onair {
  font-stretch: 72%; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; font-size: 11px;
  padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text-3);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.onair.is-lit { background: var(--pgm); border-color: var(--pgm); color: #fff; box-shadow: 0 0 16px -2px rgb(255 59 47 / .7); }

@media (max-width: 1020px) { .bar-nav { display: none; } .bar-right { margin-left: auto; } }
@media (max-width: 560px) { .tod, .mark-name { display: none; } }

/* Switcher keys and buttons */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 40px; padding: 0 14px;
  background: linear-gradient(#1e2229, #171a20);
  border: 1px solid var(--line-2); border-radius: 5px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 1px 0 rgb(0 0 0 / .5);
  color: var(--text-2); text-decoration: none; cursor: pointer;
  font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.key:hover:not(:disabled) { color: var(--text); border-color: #464d5a; }
.key:disabled { opacity: .42; cursor: default; }
.key[aria-pressed="true"] {
  color: #fff; border-color: var(--pgm);
  background: linear-gradient(#5a1914, #3a120f);
  box-shadow: 0 0 18px -4px rgb(255 59 47 / .8), inset 0 1px 0 rgb(255 255 255 / .12);
}
.key#k-sound[aria-pressed="true"], .key#reel-sound[aria-pressed="true"] {
  border-color: var(--pvw);
  background: linear-gradient(#0f4024, #0b2b19);
  box-shadow: 0 0 18px -4px rgb(31 210 106 / .75), inset 0 1px 0 rgb(255 255 255 / .12);
}
.key--cta { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  text-decoration: none; cursor: pointer;
  font-weight: 650; font-stretch: 100%; font-size: 15px; letter-spacing: -.005em;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: #4a5160; background: #222731; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; }

/* Under-monitor display: the label strip under every window */
.umd {
  display: grid; grid-template-columns: auto 1fr; column-gap: .55em; align-items: baseline;
  padding: 6px 8px 7px;
  background: #0d0f12; color: var(--text);
  font-stretch: 72%; font-weight: 680; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; line-height: 1.25;
  transition: background .12s, color .12s;
}
.umd-n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.umd-name, .umd-for { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umd-for { grid-column: 2; color: var(--text-3); font-weight: 560; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 34px 0 40px; margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 14px;
}
.foot .mark-dk { width: 32px; height: 32px; font-size: 13px; }
.foot-note a { color: var(--text-2); text-decoration: none; }
.foot-note a:hover { color: var(--text); }
.foot-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 640px) { .foot-nav { margin-left: 0; width: 100%; } }
