/* Weave page. Colours are Weave's Minimal Dark theme. */
:root {
  --bg: #16171b;
  --grid: #26282e;
  --panel: #22242a;
  --border: #34373f;
  --screen: #1a1c21;
  --text: #e2e4e9;
  --dim: #808591;
  --label: #969ba6;
  --active: #82aaff;
  --audio: #f0aa5a;
  --control: #78a5ff;
  --pitch: #6ed296;
  --trigger: #e178c8;
  --fx: #c88cff;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  color: var(--text);
  font: 16px/1.6 var(--sans);
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; width: 100%; height: auto; }
code { font: 0.88em var(--mono); color: var(--audio); }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.6rem 16px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  font: 13px var(--mono);
}
.nav a { text-decoration: none; color: var(--label); }
.nav a:hover { color: var(--text); }
.nav .links { display: flex; gap: 1.2rem; overflow-x: auto; }
.brand { color: var(--text) !important; }

.hero, main > section, footer { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.hero { padding-top: 4.5rem; }
.mono { font: 12px var(--mono); color: var(--dim); letter-spacing: 0.04em; }
h1 { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0.6rem 0 1rem; }
.lede { max-width: 40rem; font-size: 1.15rem; color: var(--label); }
.hero-shot { margin-top: 2.5rem; }

main > section { padding-top: 5rem; }
h2 {
  font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.6rem;
}
/* a jack in front of every section title */
h2::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--audio);
}
#media h2::before { background: var(--control); }
#listen h2::before { background: var(--pitch); }
#guide h2::before { background: var(--trigger); }
#themes h2::before { background: var(--fx); }
#get h2::before { background: var(--label); }
h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.35rem; }
.sub { margin: 3rem 0 1rem; }
section > p { max-width: 44rem; margin-bottom: 1rem; color: var(--label); }
p { color: var(--label); }

/* panels look like Weave modules: flat face, thin border, coloured strip */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cols > div, .audio, .steps li, .keys dl, .ref {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem;
}
.cols > div { border-top: 3px solid var(--audio); }
.cols > div:nth-child(2) { border-top-color: var(--control); }
.cols > div:nth-child(3) { border-top-color: var(--pitch); }

.facts { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--border); }
.facts li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); color: var(--label); }
.facts b { display: inline-block; min-width: 13rem; color: var(--text); font-weight: 500; }

.shot { background: var(--screen); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.shot figcaption { font: 12px var(--mono); color: var(--dim); padding: 0.5rem 0.8rem; border-top: 1px solid var(--border); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }

.audio audio { width: 100%; margin-top: 0.8rem; }
.audio p { font-size: 0.95rem; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.steps li { counter-increment: s; }
.steps h3::before { content: counter(s) "  "; font: 13px var(--mono); color: var(--dim); white-space: pre; }
.steps p { font-size: 0.94rem; }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.keys dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.38rem 0; border-bottom: 1px solid var(--border); }
.keys dl div:last-child { border-bottom: 0; }
.keys dt { font: 13px var(--mono); color: var(--text); white-space: nowrap; }
.keys dd { color: var(--label); font-size: 0.93rem; text-align: right; }
.note { margin-top: 1rem; font-size: 0.92rem; color: var(--dim); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.thumbs figure { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--screen); }
.thumbs figcaption { font: 12px var(--mono); color: var(--dim); padding: 0.4rem 0.7rem; }

pre {
  margin: 1.4rem 0; padding: 1rem 1.1rem; overflow-x: auto;
  background: var(--screen); border: 1px solid var(--border); border-radius: 8px;
  font: 13px/1.7 var(--mono); color: var(--text);
}
pre code { color: inherit; font-size: inherit; }
pre .c { color: var(--dim); }

.ref summary { cursor: pointer; font-weight: 500; }
.ref table { width: 100%; margin-top: 0.8rem; border-collapse: collapse; font-size: 0.9rem; }
.ref th, .ref td { text-align: left; padding: 0.35rem 0.5rem 0.35rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.ref th { font: 12px var(--mono); color: var(--dim); }
.ref td:first-child { font: 13px var(--mono); color: var(--control); white-space: nowrap; }
.ref td:last-child { color: var(--label); }

.link { color: var(--active); }
footer { padding: 5rem 16px 2.5rem; font: 12px var(--mono); color: var(--dim); }
footer a { color: var(--label); }

@media (max-width: 640px) {
  .facts b { display: block; min-width: 0; }
  .ref td:first-child { white-space: normal; word-break: break-all; }
  .nav .brand { display: none; }
}
.thumbs img, .shot img, .shot video { aspect-ratio: 1100 / 720; object-fit: cover; }

#strange .cols > div:nth-child(4) { border-top-color: var(--fx); }
#strange .cols > div:nth-child(5) { border-top-color: var(--trigger); }
#strange .cols > div:nth-child(6) { border-top-color: var(--label); }
.soon { font-size: 1.4rem; font-weight: 500; color: var(--text) !important; margin-bottom: 0.6rem; }
.wide { margin-bottom: 14px; }
#media .grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
