/* anacreon.dev, the "Forum" look
   A republic's public forum that never fell and kept publishing: square
   inscribed capitals, interpuncts between words, Roman numerals for the
   sections, rules cut like a tablet's border. Notices are posted where anyone
   can read them. Travertine, ink, verdigris bronze; minium red is the seal and
   marks a decision made by a person and nothing else. */

@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #ebe3d3;        /* travertine */
  --surface: #f4eee2;      /* a posted sheet */
  --ink: #231e19;
  --muted: #6c6255;
  --rule: #c3b49b;
  --rule-strong: #8f7f66;
  --accent: #2e6a5c;       /* verdigris bronze */
  --accent-wash: #dbe5dc;
  --seal: #a2402a;         /* minium: a person's decision, only */
  --seal-wash: #f1ddd2;

  --inscribe: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  --step-3: clamp(1.7rem, 0.9rem + 3.4vw, 4rem);

  --gutter: clamp(16px, 4.5vw, 56px);
  --wide: 74rem;
  --measure: 36rem;
  --track: 0.12em;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171410;       /* basalt */
    --surface: #201b16;
    --ink: #ebe2d2;
    --muted: #a99c89;
    --rule: #3d352c;
    --rule-strong: #6b5e4c;
    --accent: #84c2b0;
    --accent-wash: #1d2b27;
    --seal: #e8876c;
    --seal-wash: #3a1f17;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.62 var(--body);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* Inscribed capitals: the voice of anything posted in public. */
.caps {
  font-family: var(--inscribe);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-variant-numeric: lining-nums;
}
.label {
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.latin { font-style: italic; text-transform: none; letter-spacing: 0.02em; }

/* ─── Masthead ─────────────────────────────────────────────── */
.mast { border-bottom: 3px double var(--rule-strong); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2rem; padding-block: 1.2rem 1rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; margin-right: auto; font-size: 1.05rem; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; align-self: center; }
.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 0; font-size: 0.78rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav a + a::before { content: "·"; color: var(--muted); padding-inline: 0.55em; }
.nav .signin { color: var(--accent); }

/* ─── Section heads: numeral, rule, name ───────────────────── */
.part { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.part:first-of-type { border-top: 0; }
.part-head {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.numeral {
  grid-row: span 3;
  font: 400 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--inscribe);
  letter-spacing: 0.04em;
  color: var(--accent);
  border-right: 1px solid var(--rule);
  padding-right: 1rem;
  text-align: right;
}
.part-head h2 { font-size: var(--step-2); line-height: 1.15; text-wrap: balance; }
.part-head p { color: var(--muted); max-width: var(--measure); }

/* ─── I · Exordium ─────────────────────────────────────────── */
.exordium .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
}
.dateline { display: block; margin-bottom: 1.6rem; }
.exordium h1 { font-size: var(--step-3); line-height: 1.08; font-weight: 600; }
.exordium h1 > span { display: block; }
.exordium h1 .after {
  margin-top: 0.5rem;
  font-size: 0.62em;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.lede { margin-top: 1.8rem; font-size: var(--step-1); line-height: 1.5; max-width: 33rem; }
.lede::first-letter { font-family: var(--inscribe); float: left; font-size: 3.4em; line-height: 0.85; padding: 0.06em 0.12em 0 0; color: var(--accent); }
.act { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; }
.button {
  display: inline-block;
  padding: 0.8rem 1.15rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 600 0.82rem/1 var(--inscribe);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.note { font-size: var(--step--1); color: var(--muted); max-width: 22rem; }

/* The tablet: a decision record posted in bronze. */
.tablet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  outline: 1px solid var(--rule);
  outline-offset: 5px;
  padding: 1.5rem 1.4rem 1.2rem;
  margin: 6px;
  font: 0.84rem/1.55 var(--mono);
}
.tablet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule); }
.tablet h2 { margin-top: 1rem; font: 600 1.2rem/1.3 var(--body); max-width: 24ch; }
.tablet dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1rem; margin-top: 1.1rem; }
.tablet dt { color: var(--muted); }
.tablet dd { min-width: 0; overflow-wrap: anywhere; }
.tablet .quote { font: italic 1rem/1.45 var(--body); }
.tablet .chain { margin-top: 1.1rem; padding-top: 0.7rem; border-top: 1px dashed var(--rule); color: var(--muted); font-size: 0.74rem; overflow-wrap: anywhere; }
.tablet .example { margin-top: 0.5rem; color: var(--muted); font: italic 0.8rem/1.4 var(--body); }

/* The seal: minium, round, stamped. A person decided. */
.seal {
  position: absolute;
  top: -1.1rem;
  right: 1.1rem;
  width: 5.6rem;
  height: 5.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--seal);
  box-shadow: inset 0 0 0 4px var(--seal-wash), inset 0 0 0 5px var(--seal);
  background: var(--seal-wash);
  color: var(--seal);
  text-align: center;
  font: 600 0.6rem/1.25 var(--inscribe);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

/* ─── II · Narratio: three floors of decision ──────────────── */
.floors { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.floors li { padding: 1.4rem 1.4rem 0 0; border-right: 1px solid var(--rule); }
.floors li + li { padding-left: 1.4rem; }
.floors li:last-child { border-right: 0; }
/* Each floor sits lower than the last: more people, more weight. */
.floors li:nth-child(2) { margin-top: 2rem; }
.floors li:nth-child(3) { margin-top: 4rem; }
.floors .who { display: block; margin-bottom: 0.7rem; }
.floors h3 { font-size: 1.05rem; line-height: 1.25; margin-bottom: 0.6rem; }
.floors .human { border-top: 3px solid var(--seal); margin-top: calc(4rem - 2px); }
.floors .human h3 { color: var(--seal); }

/* ─── Further reading: a short index of the guide ──────────── */
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.reading h2 { font-size: var(--step-1); line-height: 1.3; }
.reading h2 + p { margin-top: 0.6rem; color: var(--muted); }
.index { list-style: none; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 0.85rem 0; color: var(--ink); text-decoration: none; }
.index a:hover b { color: var(--accent); text-decoration: underline; }
.index b { font-weight: 600; }
.index span { color: var(--muted); }

/* ─── III · Confirmatio: the register of what runs ─────────── */
.register { list-style: none; counter-reset: caput; columns: 2 26rem; column-gap: clamp(2rem, 5vw, 4.5rem); column-rule: 1px solid var(--rule); }
.register li { counter-increment: caput; break-inside: avoid; padding: 0 0 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.register h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.45rem; }
.register h3::before { content: counter(caput) "."; font: 400 0.95rem/1 var(--inscribe); color: var(--accent); letter-spacing: 0.05em; min-width: 2.6rem; }
.register p { max-width: var(--measure); }

/* Status, cut into the stone three ways. */
.state { display: inline-block; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 0.45rem 0.24rem; border: 1px solid currentColor; white-space: nowrap; }
.state.built { color: var(--accent); }
.state.building { color: var(--accent); border-style: dashed; }
.state.design { color: var(--muted); border-style: dotted; }

/* ─── IV · What's next: the order of business ──────────────── */
.order { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 3rem; }
.order li { counter-increment: step; padding: 1rem 1.2rem 0 0; border-top: 1px solid var(--rule-strong); }
.order li::before { content: counter(step); display: block; font: 400 1.4rem/1 var(--inscribe); color: var(--muted); margin-bottom: 0.7rem; }
.order h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.order .confirm { border-top: 3px solid var(--seal); }
.order .confirm::before, .order .confirm h3 { color: var(--seal); }
.motions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); }
.motions > div { border-left: 1px solid var(--rule); padding-left: 1.1rem; }
.motions h3 { font-size: 1rem; margin: 0.7rem 0 0.4rem; }

/* ─── V · Two ways in: the open forum and a house of one's own ─ */
.ways { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.way { border: 1px solid var(--rule-strong); padding: 1.5rem 1.4rem; background: var(--surface); }
.way.closed { background: transparent; border-style: dashed; margin-top: 3rem; }
.way .host { display: block; margin: 0.9rem 0 0.2rem; font: 500 0.82rem/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.way h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.way ul { margin-top: 0.9rem; padding-left: 1.1rem; }
.way li + li { margin-top: 0.4rem; }
.way .go { display: inline-block; margin-top: 1.1rem; font-weight: 600; }

/* ─── VI · Peroratio ───────────────────────────────────────── */
.peroratio .wrap > div { max-width: 44rem; margin-left: auto; }
.peroratio .wrap > div > p:first-child { font-size: var(--step-1); line-height: 1.5; }
.conditions { list-style: none; counter-reset: cond; margin: 1.5rem 0; border-top: 1px solid var(--ink); }
.conditions li { counter-increment: cond; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.conditions li::before { content: counter(cond) "."; font-family: var(--inscribe); color: var(--accent); }
.name-note { margin-top: 2rem; font-style: italic; color: var(--muted); }

/* ─── Colophon ─────────────────────────────────────────────── */
.colophon { border-top: 3px double var(--rule-strong); }
.colophon .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 0; padding-block: 1.5rem 2.5rem; font-size: 0.78rem; color: var(--muted); }
.colophon .wrap > * + *::before { content: "·"; padding-inline: 0.6em; }
.colophon a { color: var(--muted); }

/* ═══ Acta diurna: the What's coming page ═══════════════════ */
.acta-head { border-bottom: 2px solid var(--ink); }
.acta-head .wrap { padding-block: clamp(2rem, 5vw, 3.5rem) 1.3rem; text-align: center; }
.acta-title { font-size: clamp(2rem, 1.2rem + 4vw, 4.4rem); line-height: 1; letter-spacing: 0.16em; margin-right: -0.16em; }
.acta-sub { margin-top: 0.9rem; font-style: italic; color: var(--muted); }
.acta-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0; margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); }
.acta-strip > * + *::before { content: "·"; padding-inline: 0.7em; }
.crumbs a { color: var(--muted); }

.acta-lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.acta-lead h1 { font-size: var(--step-2); line-height: 1.15; font-weight: 600; margin-bottom: 1rem; }
.key { border-left: 1px solid var(--rule); padding-left: 1.3rem; font-size: var(--step--1); }
.key dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.7rem 0.9rem; align-items: baseline; margin-top: 0.8rem; }

.rubric { padding-block: 2.5rem 0.5rem; }
.rubric-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 1.4rem; }
.rubric-head h2 { font-size: 1rem; }
.rubric-head p { color: var(--muted); font-style: italic; font-size: var(--step--1); }
.notices { list-style: none; columns: 3 17rem; column-gap: 2rem; column-rule: 1px solid var(--rule); }
.notices li { break-inside: avoid; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px dotted var(--rule-strong); }
.notices h3 { font-size: 1rem; line-height: 1.3; margin: 0.45rem 0 0.25rem; }
.notices p { font-size: 0.95rem; line-height: 1.5; }
.notices .person h3 { color: var(--seal); }
.acta-foot { margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.acta-foot a { text-decoration: none; }
.acta-foot .label { display: block; }

/* ─── Narrow screens ───────────────────────────────────────── */
@media (max-width: 900px) {
  .exordium .wrap, .reading, .ways, .acta-lead { grid-template-columns: minmax(0, 1fr); }
  .tablet { margin-top: 2rem; }
  .floors { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .floors li, .floors li + li { padding: 1.2rem 0; margin-top: 0; border-right: 0; border-top: 1px solid var(--rule); }
  .floors li:nth-child(2) { margin-left: 1.5rem; }
  .floors li:nth-child(3), .floors .human { margin-left: 3rem; margin-top: 0; border-top: 3px solid var(--seal); }
  .order { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .motions { grid-template-columns: minmax(0, 1fr); }
  .way.closed { margin-top: 0; }
  .key { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
}
@media (max-width: 560px) {
  .part-head { grid-template-columns: minmax(0, 1fr); }
  .numeral { grid-row: auto; border-right: 0; padding-right: 0; text-align: left; font-size: 2.2rem; }
  .index a { grid-template-columns: minmax(0, 1fr); }
  .order { grid-template-columns: minmax(0, 1fr); }
  .floors li:nth-child(2) { margin-left: 0.75rem; }
  .floors li:nth-child(3), .floors .human { margin-left: 1.5rem; }
  .seal { width: 4.6rem; height: 4.6rem; font-size: 0.52rem; top: -1.4rem; right: 0.6rem; }
  .tablet h2 { padding-right: 3.5rem; }
  .nav { font-size: 0.72rem; }
  .acta-title { letter-spacing: 0.08em; margin-right: -0.08em; }
}

@media (prefers-reduced-motion: no-preference) {
  .seal { animation: stamp 0.45s cubic-bezier(.2,.9,.3,1.25) 0.5s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.5); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
}

/* ═══ Quiet variant: same bones, less stone ═════════════════ */
.quiet { --track: 0.06em; }
.quiet .latin, .quiet .lede::first-letter { all: unset; }
.quiet .latin { display: none; }
.quiet .exordium h1 { text-transform: none; letter-spacing: -0.01em; }
.quiet .numeral { font-size: 1.6rem; border-right: 0; text-align: left; }
.quiet .part-head { grid-template-columns: 3rem minmax(0, 1fr); }
.quiet .tablet { outline: 0; margin: 0; }
.quiet .seal { transform: none; box-shadow: none; animation: none; }
.quiet .floors li:nth-child(n) { margin-top: 0; }
.quiet .floors .human { margin-top: -2px; }
.quiet .mast, .quiet .colophon { border-width: 1px; border-style: solid; }
.quiet .register { column-rule: 0; }
.quiet .way.closed { margin-top: 0; }
.quiet .ways { align-items: stretch; }
@media (max-width: 560px) { .quiet .part-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .quiet .floors li:nth-child(n) { margin-left: 0; } }
.way .note { margin-top: 1rem; }
.rubric > .note { margin-top: -0.4rem; }

