:root {
  --paper: #f6f3ee;
  --ink: #1a1a1a;
  --mute: #5c5852;
  --c1: #f3ead2;
  --c2: #e8b48a;
  --c3: #e07050;
  --c4: #c02030;
  --c5: #2a8a7a;
  --c6: #1a5a8c;
  --c7: #1a3a5c;
  --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: 72px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--c4); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); }
.weave {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 320px auto;
  mix-blend-mode: multiply;
}
.chips { display: grid; grid-template-columns: repeat(7, 1fr); height: 14px; position: sticky; top: 0; z-index: 40; }
.chips i { display: block; }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }
.c4 { background: var(--c4); } .c5 { background: var(--c5); } .c6 { background: var(--c6); } .c7 { background: var(--c7); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 20px; z-index: 80; background: #fff; padding: 8px; }
.vatbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid #ddd8d0;
}
.brand { font-weight: 900; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.14em; }
.nav-toggle { display: none; background: var(--c7); color: #fff; border: 0; padding: 8px 12px; }
.vat-nav { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.vat-nav a { color: var(--mute); }
.vat-nav a.is-active, .vat-nav a:hover { color: var(--c4); }
.vat-nav a.live { background: var(--c7); color: #fff; padding: 7px 12px; }
.gallery { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.copy { padding: 48px 36px; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--c4); margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.12; font-weight: 900; }
h1 { font-size: clamp(28px, 4vw, 46px); }
.dye-demo { margin: 16px 0; padding: 14px; background: #fff; box-shadow: 0 0 0 1px #e6e0d6; }
.swatch-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btns button { border: 0; padding: 8px 12px; background: var(--c1); }
.swatch-btns button:nth-child(2) { background: var(--c4); color: #fff; }
.swatch-btns button:nth-child(3) { background: var(--c6); color: #fff; }
.swatch-btns button.on { outline: 3px solid #111; outline-offset: 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; padding: 10px 14px; border: 1px solid currentColor; }
.btn.fill { background: var(--c4); color: #fff; border-color: var(--c4); }
.w { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.grey { background: #ece8e1; }
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.bento .wide { grid-column: 1 / -1; }
#value .bento { grid-template-columns: repeat(4, 1fr); }
.bento article, .io > div { background: #fff; padding: 16px; }
.bento 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) {
  .gallery, .bento, .io, #value .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .nav-toggle { display: inline-block; }
  .vatbar { position: relative; top: 0; }
  .vat-nav { display: none; position: absolute; right: 10px; top: 56px; flex-direction: column; background: var(--paper); padding: 10px; border: 1px solid #ddd; }
  .vat-nav.open { display: flex; }
}
