:root {
  --rice: #e8dfc8;
  --rice-2: #f4ecd8;
  --graphite: #6a645c;
  --ink: #2a2420;
  --mute: #7a7268;
  --lid: #8b2a28;
  --plan: #4a5c48;
  --display: "Source Serif 4", "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: 68px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--rice);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--lid); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.laid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.16;
  background-image: url("images/texture.webp");
  background-size: 320px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--graphite); color: var(--rice); padding: 8px; }
.lid {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: var(--graphite);
  color: var(--rice);
  border-top: 6px solid var(--lid);
}
.brand { font-family: var(--display); font-weight: 700; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c8c0b4;
  font-weight: 400;
}
.nav-toggle {
  display: none;
  background: var(--rice);
  color: var(--graphite);
  border: 0;
  padding: 6px 12px;
}
.tag-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.tag-links a { color: #c8c0b4; }
.tag-links a.is-active, .tag-links a:hover { color: var(--rice); }
.tag-links .live { background: var(--rice); color: var(--graphite); padding: 6px 12px; }
.box {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: calc(100vh - 56px);
}
.box figure { margin: 0; }
.box img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.rice { padding: 7vh 32px; background: var(--rice-2); }
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--lid);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.18; }
h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(22px, 2.8vw, 34px); }
.lead { max-width: 40em; color: #4a443c; }
.tag {
  margin: 20px 0;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid var(--graphite);
  max-width: 30em;
}
.tag.is-ok { border-color: var(--plan); box-shadow: inset 6px 0 0 var(--plan); }
.tag.is-plan { border-color: #8a7a48; box-shadow: inset 6px 0 0 #8a7a48; }
.n { font-family: var(--display); font-size: 52px; margin: 0 0 6px; letter-spacing: 0.04em; }
#abc-c {
  margin-top: 10px;
  background: var(--graphite);
  color: var(--rice);
  border: 0;
  padding: 8px 14px;
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid currentColor; font-size: 14px; }
.btn.graphite { background: var(--graphite); color: var(--rice); border-color: var(--graphite); }
.btn.line { color: var(--ink); }
.w { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.graphite { background: #3a3834; color: var(--rice); }
.graphite .kicker { color: #d4a090; }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tri article { background: #fffaf0; color: var(--ink); padding: 16px; }
.graphite .tri article { background: #2a2824; color: var(--rice); }
.tri ul, .io ul, #rules ol { margin: 0; padding-left: 1.1em; }
.steps { padding-left: 1.2em; max-width: 48em; }
.steps li { margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pair img { width: 100%; height: 240px; object-fit: cover; }
.pair figcaption { font-size: 13px; color: #c8c0b4; margin-top: 8px; }
#need, #abc, #rules { background: var(--rice); }
#rules ol {
  background: #fffaf0;
  padding: 16px 16px 16px 36px;
  border-left: 8px solid var(--graphite);
  max-width: 46em;
}
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: #2a2824; padding: 16px; }
.url { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
footer { padding: 20px 24px 40px; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .box, .tri, .pair, .io { grid-template-columns: 1fr; }
  .box img { min-height: 42vh; height: 42vh; }
  .nav-toggle { display: inline-block; }
  .lid { flex-wrap: wrap; }
  .tag-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #2a2824;
    padding: 12px;
  }
  .tag-links.open { display: flex; }
  .rice { padding: 28px 18px 36px; }
}
