:root {
  --spore: #c6b03a;
  --amber: #7a3f14;
  --paper: #f6ecd4;
  --burn: #4a2a16;
  --ink: #2b1d12;
  --mute: #8b7358;
  --display: "Literata", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 60px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
.spore {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.13;
  background-image: url("images/texture.webp");
  background-size: 280px auto;
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); background: #ead9b0; padding: 0.05em 0.35em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--spore); padding: 8px; }
.koji-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  min-height: 58px;
  background: #3d2a14;
  color: var(--paper);
}
.mark small { display: block; font-family: var(--mono); font-size: 10px; color: var(--spore); letter-spacing: 0.16em; }
.koji-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.koji-links a.is-active { color: var(--spore); }
.koji-links .live { background: var(--spore); color: #2b1d12; padding: 6px 12px; font-weight: 700; }
.nav-toggle { display: none; background: transparent; color: var(--spore); border: 1px solid var(--spore); padding: 6px 12px; }
.room { position: relative; }
.room > img { width: 100%; height: 86vh; object-fit: cover; }
.heatwall {
  position: absolute;
  right: 4vw;
  top: 12vh;
  height: 64vh;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  z-index: 2;
}
.heatwall i {
  width: 10px;
  background: linear-gradient(#f2e08a, #c56a22 60%, #5a220e);
  display: block;
}
.heatwall i:nth-child(1) { height: 42%; }
.heatwall i:nth-child(2) { height: 58%; }
.heatwall i:nth-child(3) { height: 71%; }
.heatwall i:nth-child(4) { height: 88%; }
.heatwall i:nth-child(5) { height: 64%; }
.heatwall i:nth-child(6) { height: 50%; }
.heatwall i:nth-child(7) { height: 77%; }
.heatwall i:nth-child(8) { height: 45%; }
.card {
  position: absolute;
  left: 5vw;
  bottom: 28px;
  width: min(520px, 90vw);
  background: rgba(246, 236, 212, 0.94);
  padding: 26px;
  border-top: 8px solid var(--spore);
}
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
.quiet { color: var(--mute); }
.koji-box { margin: 14px 0 10px; padding: 12px 14px; background: var(--burn); color: var(--paper); }
.koji-box span { font-family: var(--mono); font-size: 12px; color: var(--spore); }
.koji-box strong { display: block; margin: 6px 0 4px; }
.koji-box p { margin: 0; color: #d8c4a4; font-size: 14px; }
.koji-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.koji-btns button { background: #fff8e6; border: 1px solid #d2b57a; padding: 7px 12px; }
.koji-btns button.on { background: var(--amber); color: #fff8e6; border-color: var(--amber); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--amber); font-weight: 700; }
.btn.fill { background: var(--amber); color: var(--paper); }
.btn.ghost { background: transparent; }
.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.amber { background: #ead7b4; }
.tri, .io, .pair { display: grid; gap: 16px; }
.tri { grid-template-columns: repeat(3, 1fr); }
.io, .pair { grid-template-columns: 1fr 1fr; }
.tri article, .io article { background: #fff8e6; padding: 16px; border: 1px solid #e0c894; }
.tri .warn { border-color: #8a3a12; background: #f3d7b8; }
.seq { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seq li { background: #fff8e6; padding: 14px; border-left: 5px solid var(--spore); }
ul { margin: 0; padding-left: 1.1em; }
li + li { margin-top: 6px; }
figure { margin: 0; }
figcaption { color: var(--mute); font-size: 13px; margin-top: 8px; }
.bound { max-width: 720px; }
footer {
  padding: 24px 20px 48px;
  background: #3d2a14;
  color: #d8c4a4;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
footer .app-link { color: var(--spore); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .koji-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #3d2a14;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .koji-links.open { display: flex; }
  .room > img { height: 42vh; }
  .heatwall { display: none; }
  .card { position: relative; left: 0; bottom: 0; width: auto; }
  .tri, .io, .pair, .seq { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; }
}
