:root {
  --tin: #b8bcc2;
  --melt: #d4782a;
  --zebra: #3ec8d8;
  --ink: #101214;
  --mute: #5a6068;
  --paper: #eceef0;
  --dark: #101214;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 56px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--melt); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); }
.tinfilm {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 360px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--zebra); padding: 8px; }
.bathbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: var(--dark);
  color: var(--tin);
  border-bottom: 4px solid var(--melt);
}
.brand { font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--zebra); letter-spacing: 0.16em; }
.nav-toggle { display: none; background: var(--melt); color: #1a0c04; border: 0; padding: 8px 12px; }
.bath-nav { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.bath-nav a { color: var(--tin); }
.bath-nav a.is-active, .bath-nav a:hover { color: var(--zebra); }
.bath-nav a.live { background: var(--melt); color: #1a0c04; padding: 6px 10px; }
.ribbon-hero { position: relative; background: var(--dark); }
.ribbon-hero img { width: 100%; height: 52vh; object-fit: cover; min-height: 280px; }
.overlay { padding: 28px 32px 36px; color: #e8eaee; max-width: 52rem; }
.kicker { font-family: var(--mono); letter-spacing: 0.18em; font-size: 11px; color: var(--zebra); margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); }
.tin-demo { margin: 16px 0; }
.kiln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--tin); }
.kiln button { border: 0; border-right: 1px solid var(--tin); background: #1a1e22; color: var(--tin); padding: 16px 8px; font-family: var(--mono); }
.kiln button:last-child { border-right: 0; }
.kiln button.on { background: var(--melt); color: #1a0c04; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; padding: 10px 14px; border: 1px solid currentColor; }
.btn.fill { background: var(--melt); color: #1a0c04; border-color: var(--melt); }
.stations {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--tin);
  color: var(--dark);
}
.stations span { padding: 8px 6px; border-right: 1px solid #9aa0a8; text-align: center; }
.band { border-top: 8px solid var(--tin); }
.band.melt { background: #e4d8cc; border-top-color: var(--melt); }
.w { width: min(1100px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.tri article, .io > div { background: #fff; padding: 16px; }
.tri ul, .io ul { margin: 0; padding-left: 1.1em; }
.quiet { color: var(--mute); max-width: 46em; }
figure { margin: 24px 0 0; }
figure img { width: 100%; max-height: 300px; object-fit: cover; }
figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
footer { padding: 18px 22px 36px; font-family: var(--mono); font-size: 12px; color: var(--mute); background: var(--dark); color: var(--tin); }
@media (max-width: 900px) {
  .tri, .io, .kiln, .stations { grid-template-columns: 1fr; }
  .stations span, .kiln button { border-right: 0; border-bottom: 1px solid #9aa0a8; }
  .nav-toggle { display: inline-block; }
  .bathbar { position: relative; }
  .bath-nav { display: none; position: absolute; right: 10px; top: 52px; flex-direction: column; background: var(--dark); padding: 10px; border: 1px solid var(--tin); }
  .bath-nav.open { display: flex; }
}
