/* =====================================================
   CMNM — Claude Make No Mistakes
   Shared stylesheet — Pelican-tradition typography on cream paper.
   Set in Crimson Pro, Spectral, Jost & Courier Prime.
   ===================================================== */

:root {
  --bg:           #F0EDE7;   /* unbleached paper */
  --bg-deep:      #E5E0D4;   /* slightly aged */
  --rule:         #1A1A1A;
  --ink:          #1A1A1A;
  --ink-dim:      #6B6560;
  --ink-faint:    #9A938C;
  --gold:         #C4983A;
  --sage:         #6B8470;   /* sage green — the accent */
  --sage-deep:    #1F2D22;   /* forest — Swivel mark background */

  --display: "Crimson Pro", "Plantin", "Times New Roman", serif;
  --body:    "Spectral", "Iowan Old Style", Georgia, serif;
  --meta:    "Jost", "Futura", "Avenir Next", sans-serif;
  --mono:    "Courier Prime", "Courier New", ui-monospace, monospace;

  --measure: 40em;
  --margin:  clamp(20px, 6vw, 120px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}

/* Paper grain — Pelican paperback stock */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(80,60,30,0.028) 1px, transparent 1px),
    radial-gradient(rgba(80,60,30,0.020) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  z-index: 1;
}
main { position: relative; z-index: 2; }

/* =====================================================
   SIGIL — sage oval, cream mark. One treatment everywhere.
   ===================================================== */

.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--bg);
  user-select: none;
}
.sigil .swivel-mark {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--bg);
}
.sigil.sm {
  width: 30px;
  height: 22px;
  vertical-align: -0.4em;
  margin: 0 0.1em;
}
.sigil.sm .swivel-mark { width: 14px; height: 14px; }
.sigil.lg {
  width: 72px;
  height: 52px;
}
.sigil.lg .swivel-mark { width: 32px; height: 32px; }

/* =====================================================
   SITE NAV — sticky top strip, cream blur, no fuss.
   ===================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 237, 231, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #D9D2C5;
}
.site-nav .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px clamp(24px, 5vw, 60px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.site-nav .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .25s;
}
.site-nav .brand:hover { color: var(--sage); }
.site-nav .brand .dot {
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-block;
}
.site-nav .links {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.site-nav .links a {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .25s;
}
.site-nav .links a:hover,
.site-nav .links a.current { color: var(--ink); }
.site-nav .links a.current::after {
  content: "·";
  color: var(--sage);
  margin-left: 6px;
}
.site-nav .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color .35s ease;
  white-space: nowrap;
}
.site-nav .meta.reading { color: var(--sage); }

/* =====================================================
   COVER PANEL — Pelican-paperback structure.
   Banded: utility / title / visual / caption. Used by the
   homepage masthead, article covers, and the simpler about /
   colophon page heads.
   ===================================================== */

.cover {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 36px) clamp(24px, 5vw, 60px) clamp(24px, 5vh, 56px);
}

.band-util {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 16px;
}

.label-tr {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
  line-height: 1.55;
}
.label-tr .accent { color: var(--sage); }

.ink-rule {
  height: 1px;
  background: var(--ink);
  width: 100%;
}

.band-title {
  padding: clamp(28px, 5vh, 56px) 0 clamp(36px, 7vh, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.authorline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.15;
  color: var(--ink);
  margin: 6px 0 0;
  max-width: 22ch;
}
.subtitle {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.18;
  color: var(--sage);
  margin: 14px 0 0;
  max-width: 22ch;
}
.subtitle em { font-style: italic; font-weight: 400; }

/* The Goffman dot field */
.band-visual {
  padding: clamp(36px, 7vh, 80px) 0;
  display: flex;
  justify-content: center;
}
.dotfield {
  --cols: 13;
  --rows: 9;
  --dot: clamp(14px, 2.6vw, 28px);
  --gap: clamp(6px, 1.4vw, 16px);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--dot));
  grid-auto-rows: var(--dot);
  gap: var(--gap);
  justify-content: center;
}
.dotfield .d {
  width: var(--dot);
  height: var(--dot);
  background: var(--sage);
  border-radius: 50%;
}
.dotfield .x {
  width: var(--dot);
  height: var(--dot);
  background: var(--ink);
  border-radius: 0;
}

.band-cap {
  padding: 18px 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.cap-l {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 21px);
  color: var(--ink);
  max-width: 28em;
  line-height: 1.4;
}
.cap-r {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-align: right;
  line-height: 1.6;
  flex-shrink: 0;
}

/* =====================================================
   INDEX — list of articles, Pelican-index style.
   ===================================================== */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.index-section {
  margin-top: clamp(60px, 10vh, 120px);
}
.index-section.page {
  max-width: 880px;
  padding: 0 clamp(24px, 5vw, 60px);
}

.index-eyebrow {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 3em;
}
.index-eyebrow .sep {
  color: var(--sage);
  display: inline-block;
  margin: 0 0.7em;
  transform: translateY(-1px);
}

.index { list-style: none; padding: 0; margin: 0; }

.entry {
  padding: 2.4em 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 5.5em 1fr 7em;
  gap: 2.4em;
  align-items: baseline;
}
.entry:last-child { border-bottom: 1px solid var(--ink); }
.entry .issue {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding-top: 0.4em;
}
.entry .body { min-width: 0; }
.entry .title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
  color: var(--ink);
}
.entry .title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--sage), var(--sage));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size .35s ease, color .25s;
  padding-bottom: 2px;
}
.entry .title a:hover {
  color: var(--sage);
  background-size: 100% 1px;
}
.entry .hook {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--sage);
  line-height: 1.35;
  margin: 0;
  max-width: 38ch;
}
.entry .date {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
  padding-top: 0.7em;
}
.entry.coming .title a { pointer-events: none; }
.entry.coming .title { color: var(--ink-faint); }
.entry.coming .hook { color: var(--ink-faint); }
.entry.coming .date { color: var(--gold); }

/* =====================================================
   ARTICLE COVER PANEL
   ===================================================== */

.article-cover {
  margin: clamp(60px, 12vh, 140px) auto 0;
  width: 100%;
  max-width: 880px;
  padding: clamp(20px, 4vh, 36px) clamp(24px, 5vw, 60px);
}
/* When the article is the page's primary content (its own URL) it doesn't
   need the giant top margin. */
.article-cover.lead { margin-top: 0; }

.ac-band-util {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}
.ac-band-util .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.ac-band-util .num .small {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ac-band-util .date {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ac-band-title {
  padding: clamp(28px, 5vh, 56px) 0 clamp(28px, 5vh, 48px);
}
.article-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}
.article-deck {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--sage);
  line-height: 1.32;
  margin: 18px 0 0;
  max-width: 28ch;
}

/* Article visual: four labeled stations */
.ac-band-visual { padding: clamp(36px, 7vh, 64px) 0; }
.stations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 32px);
  align-items: end;
  position: relative;
  padding-top: 10px;
}
.stations::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 58px;
  height: 1px;
  background: var(--ink);
  z-index: 0;
}
.station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.station .o {
  width: clamp(36px, 5vw, 52px);
  height: clamp(36px, 5vw, 52px);
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}
.station.chosen .o {
  background: var(--sage);
  border-color: var(--sage);
  box-shadow:
    0 0 0 6px var(--bg),
    0 0 0 7px var(--sage);
}
.station .lbl {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.station.chosen .lbl { color: var(--sage); }
.station .sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-top: -8px;
  text-align: center;
}
.station.chosen .sub { color: var(--sage); }

/* =====================================================
   ARTICLE BODY (prose)
   ===================================================== */

.article-body { margin-top: clamp(40px, 8vh, 80px); }

.ornament {
  width: 100%;
  text-align: center;
  margin: 0 0 3em;
  color: var(--sage);
}
.ornament::before {
  content: "❦";
  font-family: var(--display);
  font-size: 18px;
}

.prose p { margin: 0 0 1.35em; }
.prose > p + p { text-indent: 1.6em; }
.prose > p.opening,
.prose > p.declarative { text-indent: 0; }
.prose > p.opening::first-letter {
  font-family: var(--display);
  font-weight: 700;
  color: var(--sage);
  float: left;
  font-size: 4.6em;
  line-height: 0.86;
  margin: 0.04em 0.08em 0 -0.04em;
  padding-right: 0.04em;
}

/* Short, standalone declarative beats — no indent, slight emphasis. */
.prose > p.declarative {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15em;
  line-height: 1.3;
  color: var(--ink);
  margin: 2em 0;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 3em 0 1em;
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--meta);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 2.5em 0 0.8em;
}

.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.prose a:hover { color: var(--sage); }

.sec-rule {
  border: 0;
  width: 30%;
  height: 1px;
  background: var(--ink);
  margin: 3.5em auto;
}

.pullquote {
  margin: 3em 0 3em -0.4em;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 1px solid var(--sage);
  font-family: var(--body);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
}
.pullquote .mark-q {
  font-family: var(--display);
  font-weight: 700;
  color: var(--sage);
  font-style: normal;
}

.ghost {
  font-family: var(--mono);
  font-style: italic;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 2.4em 0;
  padding: 1.1em 1.4em;
  background: var(--bg-deep);
  max-width: 32em;
}
.ghost .l {
  display: block;
  font-family: var(--meta);
  font-style: normal;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-bottom: 0.5em;
}

.end {
  text-align: center;
  margin: 4em 0 0;
}

/* Continuation block at the end of an article — "Return to Index". */
.continuation {
  max-width: var(--measure);
  margin: 5em auto 0;
  padding: 0 var(--margin);
}
.continuation-inner {
  border-top: 1px solid var(--ink);
  padding-top: 1.8em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.continuation .back {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .25s;
}
.continuation .back:hover { color: var(--sage); }
.continuation .pub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-dim);
}
.continuation .pub .accent { color: var(--sage); font-style: normal; }

/* =====================================================
   FOOTER — back-cover style
   ===================================================== */

footer {
  max-width: 880px;
  margin: clamp(80px, 14vh, 160px) auto 0;
  padding: 0 clamp(24px, 5vw, 60px) 56px;
  position: relative;
  z-index: 2;
}
footer .fr-top {
  border-top: 1px solid var(--ink);
  height: 1px;
  margin-bottom: 28px;
}
footer .fr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
footer .col {
  font-family: var(--meta);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
footer .col .h {
  color: var(--ink);
  margin-bottom: 8px;
}
footer .col a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
  transition: color .2s;
}
footer .col a:hover { color: var(--sage); }
footer .swiv {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.4;
}
footer .swiv .gl { color: var(--sage); font-style: normal; }
footer .colophon {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-dim);
  line-height: 1.6;
}
footer .fr-bottom {
  border-top: 1px solid var(--ink);
  margin-top: 36px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 720px) {
  .site-nav .inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding: 12px 20px;
  }
  .site-nav .brand { grid-column: 1; grid-row: 1; font-size: 17px; }
  .site-nav .meta { grid-column: 2; grid-row: 1; font-size: 10.5px; }
  .site-nav .links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 4px;
    border-top: 1px solid #E5DFD2;
  }
  .site-nav .links a { font-size: 10px; letter-spacing: 0.18em; }

  body { font-size: 17px; }
  .label-tr { font-size: 10px; }
  .dotfield { --cols: 11; --rows: 7; --dot: 5.6vw; --gap: 2.4vw; }
  .band-cap { flex-direction: column; gap: 14px; }
  .cap-r { text-align: left; }
  .stations { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stations::before { display: none; }
  .entry {
    grid-template-columns: 1fr;
    gap: 0.5em;
    padding: 1.8em 0;
  }
  .entry .date { text-align: left; padding-top: 0; }
  .entry .issue { padding-top: 0; }
  .article-title { font-size: 42px; }
  .pullquote { font-size: 20px; }
  footer .fr-grid { grid-template-columns: 1fr; gap: 28px; }
  footer .fr-bottom { flex-direction: column; gap: 8px; }
}
