:root {
  --ochre: #8a5a32;
  --shale: #5a5854;
  --sand: #c4a574;
  --bed: #2c2a28;
  --paper: #ece6d8;
  --ink: #1c1a18;
  --mute: #6a6458;
  --serif: "Spectral", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.dust {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 400px auto;
  mix-blend-mode: multiply;
}
.column {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 7;
  background: linear-gradient(var(--ochre), var(--shale), var(--sand), var(--bed));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 18px; top: 12px; z-index: 80; background: var(--ochre); color: #fff; padding: 8px; }
.bed {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 28px;
  background: rgba(236, 230, 216, 0.94);
  border-bottom: 8px solid var(--ochre);
}
.brand { font-family: var(--serif); font-size: 24px; white-space: nowrap; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.12em; }
.nav-toggle { display: none; background: var(--ochre); color: #fff; border: 0; padding: 7px 12px; }
.ps-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; align-items: center; }
.ps-links a { color: var(--mute); }
.ps-links a.is-active, .ps-links a:hover { color: var(--ochre); }
.ps-links .live { background: var(--bed); color: var(--sand); padding: 6px 12px; }
.hero > img { width: 100%; max-height: 38vh; min-height: 180px; object-fit: cover; }
.core-card {
  width: min(740px, calc(100% - 48px));
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 22px;
  border-left: 10px solid var(--ochre);
}
.kicker, .vlabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ochre); margin: 0 0 8px; }
h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); margin: 0 0 8px; white-space: nowrap; }
h2 { font-family: var(--serif); margin: 0 0 12px; }
.lead { margin: 0 0 8px; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.layer { background: #fff; padding: 14px; border-top: 10px solid var(--ochre); }
.layer:nth-child(2) { border-top-color: var(--shale); }
.layer:nth-child(3) { border-top-color: var(--sand); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ochre { display: inline-block; padding: 9px 16px; border: 1px solid var(--ochre); }
.ochre.fill { background: var(--ochre); color: #fff; }
.ochre.ghost { background: transparent; color: var(--ochre); }
.bed-wrap { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0; }
.alt { background: #e0d8c8; }
.lede { color: var(--mute); max-width: 46em; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sand); }
.steps span { font-family: var(--mono); color: var(--ochre); }
figure { margin: 24px 0; }
figure img { width: 100%; }
figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.core-board { background: #fff; padding: 16px; border: 1px dashed var(--ochre); }
.mono { font-family: var(--mono); font-size: 13px; margin: 0 0 6px; }
.core-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.core-btn { background: #fff; border: 1px solid var(--shale); padding: 10px 14px; }
.core-btn.is-on { background: var(--bed); color: var(--sand); }
.lock { font-family: var(--serif); font-size: 22px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.posts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.posts li { background: #fff; padding: 16px; }
.edge { color: var(--mute); padding-left: 1.2em; }
.foot { padding: 24px 28px; border-top: 8px solid var(--ochre); color: var(--mute); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .bed { flex-wrap: wrap; position: relative; padding: 8px 12px 8px 22px; }
  .ps-links { display: none; width: 100%; flex-direction: column; background: var(--paper); padding: 12px; }
  .ps-links.open { display: flex; }
  .pair, .posts, .beds { grid-template-columns: 1fr; }
  .hero > img { max-height: 26vh; min-height: 140px; }
  .core-card { width: calc(100% - 20px); margin: -24px auto 0; padding: 14px; }
  h1 { font-size: 30px; }
  .lead { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
