:root {
  --oat: #f3ead8;
  --lotus: #e8d4c4;
  --yolk: #e2c56a;
  --ink: #3a322c;
  --mute: #7a6e64;
  --work: #6a7a84;
  --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(--oat); font-family: var(--sans); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--work); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); }
.papergrain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.18;
  background-image: url("images/texture.webp");
  background-size: 340px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--yolk); padding: 8px; }
.nestbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(243, 234, 216, 0.94);
  border-bottom: 1px dashed #d4c4b4;
}
.brand { font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.12em; }
.nav-toggle { display: none; background: var(--work); color: #fff; border: 0; padding: 8px 12px; border-radius: 999px; }
.nest-nav { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.nest-nav a { color: var(--mute); }
.nest-nav a.is-active, .nest-nav a:hover { color: var(--ink); }
.nest-nav a.live { background: var(--lotus); color: var(--ink); padding: 7px 14px; border-radius: 999px; }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; }
.page {
  background: #fff;
  padding: 36px 28px;
  border-radius: 18px;
  box-shadow: 8px 12px 0 rgba(212, 180, 140, 0.35);
  transform: rotate(-0.6deg);
}
.page.photo { padding: 0; overflow: hidden; transform: rotate(1.1deg); }
.page.photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.kicker { font-family: var(--mono); letter-spacing: 0.14em; font-size: 11px; color: var(--work); margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
.nest-demo { margin: 16px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { border: 0; background: var(--lotus); padding: 8px 14px; border-radius: 999px; }
.tabs button.on { background: var(--yolk); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid currentColor; }
.btn.fill { background: var(--work); color: #fff; border-color: var(--work); }
.w { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.oat { background: var(--lotus); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.tri article, .io > div { background: #fff; padding: 16px; border-radius: 14px; }
.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; border-radius: 14px; }
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) {
  .pages, .tri, .io { grid-template-columns: 1fr; }
  .page, .page.photo { transform: none; }
  .nav-toggle { display: inline-block; }
  .nestbar { position: relative; }
  .nest-nav { display: none; position: absolute; right: 10px; top: 56px; flex-direction: column; background: var(--oat); padding: 10px; border-radius: 12px; }
  .nest-nav.open { display: flex; }
}
