/* The Regulatory Desk — local static. No webfonts, no analytics, no CDNs. */
:root {
  --paper: #e7eef3;
  --sheet: #f4f7fa;
  --ink: #1b2731;
  --mute: #4a5a68;
  --steel: #243544;
  --steel-2: #1a2834;
  --brass: #8a6c42;
  --brass-soft: #c4a36a;
  --rule: #c9d4de;
  --quote: #dce6ee;
  --focus: #8a6c42;
  --strip: 5.25rem;
  --measure: 38rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ui: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  display: grid;
  grid-template-columns: var(--strip) 1fr;
}

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brass); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: var(--strip);
  top: 0.5rem;
  z-index: 20;
  background: var(--sheet);
  padding: 0.4rem 0.7rem;
}

/* Binding strip — the one structural gesture */
.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--steel);
  color: var(--sheet);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0.45rem 1.5rem;
  text-decoration: none;
}

.spine:hover { color: var(--brass-soft); }

.spine-mark {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.18;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-align: center;
}

.spine-place {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.7;
  text-align: center;
}

.wrap {
  min-width: 0;
  padding: 2.4rem 7vw 4rem;
}

.sheet {
  max-width: calc(var(--measure) + 2rem);
}

.mast {
  margin: 0 0 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.mast h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.mast p {
  margin: 0;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 34rem;
}

.kicker {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  margin: 0 0 0.45rem;
}

h1 {
  font-weight: 400;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

h2 {
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}

h3 {
  font-weight: 400;
  font-size: 1.2rem;
  margin: 1.6rem 0 0.4rem;
}

.feature {
  margin: 0 0 2.6rem;
}

.feature h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--brass);
  display: inline-block;
  max-width: 100%;
}

.lede {
  font-size: 1.18rem;
  line-height: 1.5;
}

.meta {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0.35rem 0 1.1rem;
}

p { margin: 0 0 1rem; }

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li { margin: 0 0 0.25rem; }

.catalog {
  margin: 0 0 2.6rem;
}

.catalog-lead {
  color: var(--mute);
  margin: 0.35rem 0 0.4rem;
}

.desk {
  margin: 0;
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid var(--rule);
}

.desk h3 {
  margin: 0 0 0.15rem;
  font-size: 1.28rem;
}

.desk .when {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0 0 0.55rem;
}

.desk p { margin: 0 0 0.7rem; }

.desk .go {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.92rem;
}

.entries {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.entry {
  margin: 0;
  padding: 0.7rem 0 0.8rem;
  border-top: 1px solid var(--rule);
}

.entry:first-child { border-top: none; }

.entry h4 {
  font-size: 1.08rem;
  font-weight: 400;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.entry .when {
  margin: 0 0 0.35rem;
}

.entry .dek {
  margin: 0;
  color: var(--mute);
  font-size: 1.02rem;
}

.desk > .when { margin-bottom: 0.45rem; }

.note {
  background: var(--sheet);
  border-left: 3px solid var(--steel);
  padding: 1rem 1.15rem;
  margin: 0 0 2.4rem;
}

.note p:last-child { margin-bottom: 0; }

blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--quote);
  border-left: 3px solid var(--brass);
  font-size: 1.02rem;
}

blockquote p:last-child { margin-bottom: 0; }

.scope {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.98rem;
}

.posted {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.posted p { color: var(--mute); }

footer {
  margin-top: 2.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 0.8rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.back {
  font-family: var(--ui);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1.4rem;
}

@media (max-width: 720px) {
  body {
    grid-template-columns: 1fr;
  }
  .spine {
    position: relative;
    height: auto;
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.7rem 1rem;
  }
  .wrap { padding: 1.5rem 1.15rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { display: block; background: white; }
  .spine, .posted, .back { display: none; }
  .wrap { padding: 0; }
  a { text-decoration: none; color: inherit; }
}
