:root {
  --flour: #f7f1e4;
  --thread: #d8c9a4;
  --ink: #3a3428;
  --ice: #4a7c8a;
  --mute: #8a8070;
  --display: "Outfit", "Noto Sans SC", sans-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: 56px; }
body { margin: 0; color: var(--ink); background: var(--flour); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
.starch { pointer-events: none; position: fixed; inset: 0; z-index: 4; opacity: 0.14; background-image: url("images/texture.webp"); background-size: 360px auto; mix-blend-mode: multiply; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); background: #efe6d4; padding: 0.05em 0.35em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: #fff; padding: 8px; }
.line-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; min-height: 54px; background: rgba(247, 241, 228, 0.94); border-bottom: 1px solid var(--thread); }
.mark { font-family: var(--display); font-weight: 700; }
.mark small { display: block; font-family: var(--mono); font-size: 10px; color: var(--ice); letter-spacing: 0.14em; font-weight: 500; }
.line-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.line-links a.is-active { color: var(--ice); }
.line-links .live { background: var(--ink); color: var(--flour); padding: 6px 12px; font-weight: 700; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--ink); padding: 6px 12px; }
.hang { position: relative; }
.hang > img { width: 100%; height: 80vh; object-fit: cover; }
.hang::after { content: ""; position: absolute; inset: 0 auto 0 12%; width: 1px; background: repeating-linear-gradient(var(--thread), var(--thread) 18px, transparent 18px, transparent 28px); opacity: 0.7; pointer-events: none; }
.sheet { position: absolute; left: 8vw; bottom: 28px; width: min(500px, 88vw); background: rgba(247, 241, 228, 0.94); padding: 26px; border-left: 6px dashed var(--ice); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ice); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(28px, 4.4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
.quiet { color: var(--mute); }
.noodle-box { margin: 14px 0 10px; padding: 12px 14px; background: #fff; }
.noodle-box span { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.noodle-box strong { display: block; margin: 6px 0 4px; }
.noodle-box p { margin: 0; color: var(--mute); font-size: 14px; }
.noodle-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.noodle-btns button { background: #fff; border: 1px solid var(--thread); padding: 7px 12px; }
.noodle-btns button.on { background: var(--ice); color: #fff; border-color: var(--ice); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--ink); font-weight: 700; }
.btn.fill { background: var(--ink); color: var(--flour); }
.btn.ghost { background: transparent; }
.wrap { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.pale { background: #efe6d4; }
.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: #fff; padding: 16px; }
.tri .warn { outline: 1px solid var(--ice); }
.seq { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seq li { background: #fff; padding: 14px; border-top: 3px dashed var(--thread); }
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; border-top: 1px dashed var(--thread); display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .line-links { display: none; position: absolute; top: 54px; left: 0; right: 0; background: var(--flour); padding: 12px 16px; flex-direction: column; align-items: flex-start; }
  .line-links.open { display: flex; }
  .hang > img { height: 40vh; }
  .hang::after { display: none; }
  .sheet { position: relative; left: 0; bottom: 0; width: auto; }
  .tri, .io, .pair, .seq { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; }
}
