:root {
  --grease: #d8c8a0;
  --ivory: #f4f0e8;
  --water: #3a6a8c;
  --ink: #2a2418;
  --mute: #6a6458;
  --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: 64px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--water); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); }
.woolfilm {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.14;
  background-image: url("images/texture.webp");
  background-size: 300px auto;
  mix-blend-mode: multiply;
}
.wash {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 40;
  background: linear-gradient(90deg, #8a7a58, #c8b890, #f4f0e8, var(--water));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--water); color: #fff; padding: 8px; }
.scourbar {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--water);
  color: #fff;
}
.brand { font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--grease); letter-spacing: 0.12em; }
.nav-toggle { display: none; background: var(--grease); color: #2a2418; border: 0; padding: 8px 12px; }
.scour-nav { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.scour-nav a { color: #d8e4ee; }
.scour-nav a.is-active, .scour-nav a:hover { color: #fff; }
.scour-nav a.live { background: var(--ivory); color: var(--water); padding: 7px 12px; }
.grease { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.grease figure { margin: 0; }
.grease img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; }
.copy { padding: 36px 28px; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--water); margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
.scour-demo { margin: 16px 0; }
.troughs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.troughs button { border: 0; padding: 16px 8px; color: #2a2418; }
.troughs button:nth-child(1) { background: #8a7a58; color: #fff; }
.troughs button:nth-child(2) { background: #c8b890; }
.troughs button:nth-child(3) { background: var(--ivory); }
.troughs button.on { outline: 3px solid var(--water); outline-offset: -3px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; padding: 10px 14px; border: 1px solid currentColor; }
.btn.fill { background: var(--water); color: #fff; border-color: var(--water); }
.w { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.blue { background: #d4e0e8; }
.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: 280px; 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); }
@media (max-width: 900px) {
  .grease, .tri, .io, .troughs { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .scourbar { position: relative; top: 0; }
  .scour-nav { display: none; position: absolute; right: 10px; top: 56px; flex-direction: column; background: var(--water); padding: 10px; }
  .scour-nav.open { display: flex; }
}
