:root {
  --shop: #1c1e20;
  --fence: #3a4044;
  --yellow: #e8c220;
  --enable: #2a8a4a;
  --ink: #ece8dc;
  --mute: #9aa0a4;
  --display: "Work Sans", "Noto Sans SC", sans-serif;
  --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: 70px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--shop);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); color: var(--yellow); }

.mesh {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 380px auto;
  mix-blend-mode: overlay;
}
.tape {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 45;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, #1c1e20 16px 28px);
  pointer-events: none;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 14px; z-index: 80; background: var(--yellow); color: var(--shop); padding: 8px; }

.cellbar {
  position: sticky;
  top: 6px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(28, 30, 32, 0.94);
  border-bottom: 2px solid var(--fence);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  font-weight: 400;
  letter-spacing: 0.14em;
}
.nav-toggle {
  display: none;
  background: var(--yellow);
  color: var(--shop);
  border: 0;
  padding: 8px 14px;
}
.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
}
.tag-links a { color: var(--mute); }
.tag-links a.is-active,
.tag-links a:hover { color: var(--ink); }
.tag-links .live {
  background: var(--yellow);
  color: var(--shop);
  padding: 6px 12px;
}

.hero { padding: 0; }
.hero > img {
  width: 100%;
  max-height: 40vh;
  min-height: 200px;
  object-fit: cover;
}
.hang {
  width: min(720px, calc(100% - 40px));
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: #26282c;
  border-left: 8px solid var(--yellow);
  padding: 18px 22px 20px;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin: 0 0 6px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 50px);
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  line-height: 1.08;
}
.lead { margin: 0 0 8px; }
.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin: 0 0 14px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-btn {
  display: inline-block;
  padding: 9px 16px;
  border: 2px solid var(--yellow);
  font-size: 15px;
}
.tag-btn.fill { background: var(--yellow); color: var(--shop); }
.tag-btn.ghost { background: transparent; color: var(--yellow); }

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0; }
.alt { background: #16181a; }
.vlabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin: 0 0 8px;
}
h2 { font-family: var(--display); font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 12px; }
.lede { color: var(--mute); max-width: 46em; margin: 0 0 24px; }
h3 { margin: 0 0 8px; font-size: 17px; color: var(--yellow); }

.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: #26282c;
  padding: 16px;
  border-top: 6px solid var(--yellow);
}
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 0.3em 0; }

.steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.steps li {
  background: #26282c;
  padding: 14px 16px;
  border-left: 4px solid var(--enable);
}
.steps span { font-family: var(--mono); color: var(--yellow); font-size: 12px; }
.steps p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
figure { margin: 0 0 24px; }
figure img { width: 100%; border: 2px solid var(--fence); }
figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }

.lids { display: flex; gap: 8px; margin-bottom: 14px; }
.hang-lid {
  padding: 14px 18px 18px;
  border: 0;
  background: var(--yellow);
  color: var(--shop);
  font-size: 16px;
  font-family: var(--display);
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.hang-lid.is-on { background: var(--enable); color: #fff; }
.hang-state {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: 0.06em;
}
#hang-out { margin: 0 0 18px; color: var(--mute); max-width: 38em; }
.cell-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #26282c;
  border: 2px dashed var(--yellow);
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--yellow);
}
#cell-read { margin: 0; }
.edge { color: var(--mute); padding-left: 1.2em; }
.edge li { margin: 0.4em 0; }
.foot {
  padding: 24px 28px 40px;
  border-top: 6px solid var(--yellow);
  color: var(--mute);
  font-size: 14px;
}

@media (max-width: 860px) {
  .cellbar { padding: 8px 12px; position: relative; top: 6px; }
  .nav-toggle { display: inline-block; }
  .tag-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1e20;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 12px;
  }
  .tag-links.open { display: flex; }
  .hero > img { min-height: 170px; max-height: 30vh; }
  .hang {
    width: calc(100% - 20px);
    margin: -24px auto 0;
    padding: 14px;
  }
  h1 { font-size: 32px; }
  .lead { font-size: 14px; }
  .wrap { width: calc(100% - 24px); padding: 36px 0; }
  .tri, .steps, .cell-row { grid-template-columns: 1fr; display: grid; }
  .cell-row { display: grid; }
  .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
