:root {
  --wall: #f4f0e6;
  --wood: #5a3c28;
  --civic: #4a5c64;
  --lamp: #e8b84a;
  --ink: #2a2420;
  --mute: #6a6458;
  --red: #b83a2c;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans 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: 72px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wall);
  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(--civic); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); color: var(--wood); }

.lime {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.12;
  background-image: url("images/texture.webp");
  background-size: 400px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--lamp); padding: 8px; }

.sill {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(244, 240, 230, 0.94);
  border-bottom: 8px solid var(--wood);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.brand .name { white-space: nowrap; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  font-weight: 400;
  letter-spacing: 0.14em;
}
.pane {
  width: 28px;
  height: 28px;
  border: 3px solid var(--wood);
  background: var(--lamp);
  box-shadow: inset 0 12px 0 var(--wood);
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: var(--lamp);
  color: var(--ink);
  border: 0;
  padding: 8px 14px;
}
.win-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
}
.win-links a { color: var(--mute); }
.win-links a.is-active,
.win-links a:hover { color: var(--wood); }
.win-links .live {
  background: var(--civic);
  color: #fff;
  padding: 6px 12px;
}

.hero { padding: 0; }
.hero > img {
  width: 100%;
  max-height: 40vh;
  min-height: 200px;
  object-fit: cover;
}
.sash {
  width: min(720px, calc(100% - 40px));
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: #fffaf2;
  border: 4px solid var(--wood);
  padding: 18px 22px 20px;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--civic);
  margin: 0 0 6px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 50px);
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  line-height: 1.12;
  color: var(--wood);
}
.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; }
.bell {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--wood);
  font-size: 15px;
}
.bell.fill { background: var(--lamp); color: var(--ink); }
.bell.ghost { background: transparent; color: var(--wood); }

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0; }
.alt { background: #e8e2d4; }
.vlabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--civic);
  margin: 0 0 8px;
}
h2 { font-family: var(--serif); 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; }

.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hole {
  background: #fffaf2;
  padding: 16px;
  border: 1px solid #d8d0c0;
  box-shadow: inset 0 10px 0 var(--wood);
}
.hole ul { margin: 0; padding-left: 1.1em; }
.hole li { margin: 0.3em 0; }

.path {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.path li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  background: #fffaf2;
  padding: 12px 16px;
  border-left: 6px solid var(--lamp);
}
.path span { font-family: var(--mono); font-size: 12px; color: var(--civic); }
.path h3 { grid-column: 2; }
.path p { grid-column: 2; margin: 0; color: var(--mute); font-size: 14px; }
figure { margin: 0 0 24px; }
figure img { width: 100%; border: 4px solid var(--wood); }
figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }

.lids { display: flex; gap: 8px; margin-bottom: 14px; }
.plaque-lid {
  min-width: 72px;
  padding: 12px 10px;
  border: 1px solid var(--wood);
  background: #fffaf2;
  font-family: var(--mono);
  font-size: 16px;
  box-shadow: 2px 2px 0 rgba(90, 60, 40, 0.2);
}
.plaque-lid.is-on { background: var(--lamp); }
.plaque-state {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--wood);
}
#plaque-out { margin: 0 0 18px; color: var(--mute); max-width: 38em; }
.app-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fffaf2;
  border: 1px dashed var(--civic);
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--civic);
}
#app-read { margin: 0; }
.edge { color: var(--mute); padding-left: 1.2em; }
.edge li { margin: 0.4em 0; }
.foot {
  padding: 24px 28px 40px;
  border-top: 8px solid var(--wood);
  color: var(--mute);
  font-size: 14px;
}

@media (max-width: 860px) {
  .sill { padding: 8px 12px; position: relative; }
  .nav-toggle { display: inline-block; }
  .win-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wall);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 12px;
    border-bottom: 8px solid var(--wood);
  }
  .win-links.open { display: flex; }
  .hero > img { min-height: 170px; max-height: 30vh; }
  .sash {
    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, .path li, .app-row { grid-template-columns: 1fr; display: grid; }
  .path h3, .path p { grid-column: 1; }
  .app-row { display: grid; }
  .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
