/* The Dove Journal: the reading room design system.
   Tokens mirror brand/tokens.css. Shape rule: paper is square, only the seal is round. */

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

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e3d6;
  --paper-card: #faf7f0;
  --ink: #1b2433;
  --ink-soft: #3c4654;
  --muted: #5c6470;
  --rule: #c9c1b0;
  --wax: #9b2c2c;
  --block: #1b2433;
  --on-block: #f3efe6;
  --on-block-muted: #aab1bd;
  --dove: #ffffff;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151e;
    --paper-deep: #151c28;
    --paper-card: #19212e;
    --ink: #ece7db;
    --ink-soft: #c6c2b8;
    --muted: #969ca6;
    --rule: #2d3646;
    --wax: #e0766b;
    --block: #1f2938;
    --on-block: #ece7db;
    --on-block-muted: #9aa2ae;
    --dove: #ece7db;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
i, em { font-style: italic; }
:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }

/* The mark is a mask so it takes the current ink in either scheme. */
.mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("/mark.svg") center / contain no-repeat;
  mask: url("/mark.svg") center / contain no-repeat;
  flex: none;
}

.wordmark { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.005em; white-space: nowrap; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .mark { font-size: 30px; }
.lockup--lg .mark { font-size: 40px; }
.lockup--lg .wordmark { font-size: 2rem; }

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.top__nav { display: flex; gap: clamp(16px, 2.6vw, 34px); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.top__nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); border-color: var(--ink); }

/* Type roles */
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.012em; padding-bottom: 0.08em; }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.125rem; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.link { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-underline-offset: 6px; text-decoration-thickness: 1px; color: var(--ink); }
.link:hover { color: var(--wax); }

/* Stamps: the only home of the wax accent. */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wax);
  border: 1px solid var(--wax);
  padding: 3px 8px 2px;
  line-height: 1.4;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.stamp--lg { font-size: 0.8rem; padding: 6px 12px 5px; border-width: 1.5px; box-shadow: inset 0 0 0 2px var(--paper-card), inset 0 0 0 3px var(--wax); }
.stamp--merged, .stamp--linked { color: var(--ink-soft); border-color: var(--ink-soft); transform: rotate(1.5deg); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: min(calc(100dvh - 69px), 820px);
  padding-block: clamp(40px, 6vh, 88px);
}
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 4.1rem); line-height: 1.1; letter-spacing: -0.018em; margin-top: 22px; padding-bottom: 0.06em; max-width: 18ch; text-wrap: balance; }
.hero__sub { margin-top: 24px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.hero__cta { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__figure { display: flex; justify-content: center; }

.seal { position: relative; width: min(100%, 440px); aspect-ratio: 1; color: var(--ink); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal__line { fill: none; stroke: currentColor; stroke-width: 1; }
.seal__text { font-family: var(--mono); font-size: 15.5px; letter-spacing: 0.2em; fill: currentColor; }
.seal__mark { position: absolute; inset: 22%; width: auto; height: auto; }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tint { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.section__head--center { justify-items: center; text-align: center; }
.section__head--row + .lede { margin-bottom: clamp(36px, 5vw, 56px); }

/* Ledger: the timeline spine */
.ledger { position: relative; border-top: 1px solid var(--ink); }
.ledger::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(132px + 20px); width: 1px; background: var(--rule); }
.entry {
  display: grid;
  grid-template-columns: 132px 41px minmax(0, 1fr) auto;
  align-items: start;
  padding-block: 26px;
}
.entry + .entry { border-top: 1px solid var(--rule); }
.entry__date { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding-top: 7px; }
.entry__tick { position: relative; z-index: 1; width: 9px; height: 9px; margin: 12px 0 0 16px; background: var(--paper); border: 1px solid var(--ink); transition: background 0.25s; }
.entry:hover .entry__tick { background: var(--ink); }
.entry__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.22; letter-spacing: -0.005em; }
.ticker { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; border: 1px solid var(--ink); padding: 2px 6px 1px; margin-right: 12px; vertical-align: 0.32em; }
.entry__meta { margin-top: 8px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--muted); }
.sep { margin-inline: 10px; color: var(--rule); }
.entry .stamp { margin: 8px 0 0 24px; }

/* The swarm: six desks, six cells */
.desks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.desk { position: relative; background: var(--paper); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; min-height: 300px; }
.desk--soc { grid-column: span 5; }
.desk--nws { grid-column: span 4; background: var(--paper-card); }
.desk--fil { grid-column: span 3; }
.desk--sty { grid-column: span 4; background: var(--paper-card); }
.desk--src { grid-column: span 3; }
.desk--arc { grid-column: span 5; background: var(--block); color: var(--on-block); }
.desk--jrn { grid-column: 1 / -1; min-height: 0; background: var(--paper-card); }
.desk--jrn .desk__job { max-width: 70ch; }
.desk__code { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--muted); }
.desk__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.15; margin-top: 10px; }
.desk__job { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; max-width: 38ch; }
.desk__io { margin-top: auto; padding-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; }
.desk__io dt { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.66rem; margin-bottom: 3px; }
.desk--arc .desk__code, .desk--arc .desk__io dt { color: var(--on-block-muted); }
.desk--arc .desk__job { color: var(--on-block); opacity: 1; }
.fig { margin-top: 24px; }
.fig--spine { display: flex; align-items: center; }
.fig--spine span { width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--paper-card); }
.fig--spine span + span { margin-left: 56px; position: relative; }
.fig--spine span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 57px; height: 1px; background: var(--ink); margin-right: 1px; }
.fig--mark { position: absolute; right: -18px; bottom: -22px; margin: 0; font-size: 190px; line-height: 0; color: var(--on-block); opacity: 0.09; pointer-events: none; }
.desk--arc { overflow: hidden; }
.desk--src .stamp--lg { box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--wax); }

/* The shelf: company volumes, scroll-snap */
.shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  padding: 14px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  border-bottom: 1px solid var(--ink);
  margin-inline: 0;
}
.volume {
  flex: none;
  scroll-snap-align: start;
  width: 168px;
  height: 264px;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-bottom-width: 6px;
  transition: transform 0.35s var(--ease);
}
.volume:nth-child(3n + 2) { background: var(--block); color: var(--on-block); border-color: var(--block); }
.volume:nth-child(3n) { background: var(--paper-deep); height: 244px; align-self: flex-end; }
.volume:hover { transform: translateY(-10px); }
.volume__no { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.volume__ticker { font-family: var(--display); font-size: 2.5rem; line-height: 1; margin-top: auto; }
.volume__co { font-family: var(--mono); font-size: 0.72rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid currentColor; }

/* Anatomy of an entry */
.card { max-width: 760px; margin-inline: auto; background: var(--paper-card); border: 1px solid var(--ink); padding: clamp(24px, 3.4vw, 44px); box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1px var(--rule); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.card__id { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; }
.card__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.16; margin-block: 24px 26px; }
.card__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.card__fields dt, .anatomy dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.card__fields dd { font-size: 1rem; }
.anatomy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); padding-top: 26px; }
.anatomy dt { color: var(--ink); margin-bottom: 10px; }
.anatomy dd { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }

/* Closing and footer */
.closing { padding-block: clamp(80px, 12vw, 168px); border-top: 1px solid var(--rule); text-align: center; }
.closing__line { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.12; letter-spacing: -0.015em; padding-bottom: 0.08em; margin-bottom: 40px; text-wrap: balance; }
.foot { background: var(--paper-deep); border-top: 1px solid var(--ink); padding-block: 56px 40px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.foot__note { margin-top: 14px; color: var(--ink-soft); max-width: 44ch; font-size: 0.98rem; }
.foot__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; justify-content: end; align-content: start; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.foot__nav a { text-decoration: none; color: var(--ink-soft); }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.foot__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); line-height: 1.7; }

/* Page headers */
.kit-hero { padding-block: clamp(56px, 8vw, 112px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--ink); }
.kit-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.018em; margin-top: 18px; padding-bottom: 0.06em; }
.kit-hero .lede { margin-top: 20px; }

/* Archive pages */
.section--flush { padding-top: clamp(36px, 5vw, 64px); }
.section--entry { padding-top: clamp(40px, 6vw, 80px); }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: clamp(48px, 6vw, 80px) 0 20px; scroll-margin-top: 96px; }
.entry__title a { text-decoration: none; }
.entry__title a:not(.ticker):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a.ticker:hover { background: var(--ink); color: var(--paper); }
.stamps { display: flex; gap: 10px; margin: 8px 0 0 24px; align-items: flex-start; }
.entry .stamps .stamp { margin: 0; }
.more { margin-top: 32px; }
.empty { padding: 56px 0; font-family: var(--display); font-size: 1.6rem; color: var(--ink-soft); border-top: 1px solid var(--ink); }
.fine { margin-top: 28px; font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; color: var(--muted); max-width: 72ch; }
.mono { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 56px); }
.figures > div { background: var(--paper); padding: 18px 20px; }
.figures dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.figures dd { font-family: var(--display); font-size: 1.9rem; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.threads { border-top: 1px solid var(--ink); }
.threads a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.threads a:hover .threads__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.threads__title { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.threads__meta { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); text-align: right; }
.card--entry { max-width: 860px; }
.card__summary { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); margin: -8px 0 30px; max-width: 62ch; }
.card__fields a, .plain a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__said { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.card__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card__said blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--ink); font-style: italic; color: var(--ink-soft); }
.plain li { padding-block: 5px; }
.thread-nav { max-width: 860px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.thread-nav a { text-decoration: none; font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.thread-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.thread-nav .mono { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.thread-nav__next { text-align: right; }
.log { border-top: 1px solid var(--ink); font-size: 0.98rem; }
.log__row { display: grid; grid-template-columns: 84px 56px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.log__desk { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; }
.log__row--warn { color: var(--ink-soft); }
.log__row--warn .log__desk, .log__row--error .log__desk { color: var(--wax); }

/* $DOVE */
.token-strip { border-block: 1px solid var(--ink); background: var(--paper-card); }
.token-strip__row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 22px; flex-wrap: wrap; }
.token-strip__name { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.token-strip__name a { text-decoration: none; }
.token-strip__blurb { color: var(--ink-soft); flex: 1 1 280px; }
.ca-pill { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; transition: background 0.2s, color 0.2s; }
button.ca-pill:hover { background: var(--ink); color: var(--paper); }
.ca-pill__label { font-weight: 500; letter-spacing: 0.14em; }
.ca-pill__hint { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }
button.ca-pill:hover .ca-pill__hint { color: inherit; }
.ca-pill--tba { cursor: default; border-style: dashed; color: var(--muted); }
.token-card { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.token-card__note { font-size: 0.95rem; color: var(--muted); max-width: 52ch; }
.register { border-top: 1px solid var(--ink); margin-top: 24px; }
.register li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.register .mono { color: var(--ink); font-size: 0.82rem; }

.burn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-block: 8px 18px; }
.burn__cell { background: var(--paper-card); padding: clamp(22px, 2.6vw, 36px); min-width: 0; }
.burn__cell--ink { background: var(--block); color: var(--on-block); }
.burn__label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.burn__cell--ink .burn__label, .burn__cell--ink .burn__sub { color: var(--on-block-muted); }
.burn__figure { font-family: var(--display); font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.1; letter-spacing: -0.015em; margin-top: 10px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.burn__sub { font-family: var(--mono); font-size: 0.76rem; line-height: 1.6; color: var(--muted); margin-top: 10px; }
[data-live] { font-variant-numeric: tabular-nums; }
.burn__figure small { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.burn__cell--ink .burn__figure small { color: var(--on-block-muted); }
.anatomy--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.figures { margin-top: clamp(28px, 4vw, 48px); }
.token-strip__blurb a { text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.register a.mono { text-underline-offset: 4px; }

/* Journals: the marketplace */
.tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--rule); color: var(--ink-soft); padding: 3px 7px 2px; margin-right: 10px; vertical-align: 0.2em; white-space: nowrap; }
.jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.jcard { background: var(--paper-card); border: 1px solid var(--rule); display: flex; }
.jcard__link { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 30px); text-decoration: none; width: 100%; transition: background 0.25s; }
.jcard__link:hover { background: var(--paper); }
.jcard__link:hover .jcard__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.jcard__top { display: flex; align-items: center; }
.jcard__price { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; }
.jcard__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.16; }
.jcard__dek { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.jcard__meta { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: var(--muted); }
.jcard__meta .mono { font-size: inherit; }

.jr { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vw, 88px); align-items: start; }
.jr__main { min-width: 0; max-width: 760px; }
.jr__chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.jr__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -0.016em; margin-top: 18px; padding-bottom: 0.06em; text-wrap: balance; }
.jr__by { margin-top: 18px; font-family: var(--mono); font-size: 0.76rem; line-height: 1.8; color: var(--muted); }
.jr__by .mono { font-size: inherit; }
.jr__dek { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--ink); font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink); }
.jr__body { margin-top: 32px; font-size: 1.14rem; line-height: 1.72; }
.jr__body p { margin-top: 1.05em; max-width: 66ch; }
.jr__h { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.18; margin-top: 1.9em; }
.jr__h:first-child { margin-top: 0; }
.cite a { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-decoration: none; color: var(--wax); padding: 0 2px; }
.cite a:hover { text-decoration: underline; }
.jr__locked { position: relative; display: grid; gap: 16px; padding-block: 6px 40px; -webkit-mask-image: linear-gradient(#000 20%, transparent 96%); mask-image: linear-gradient(#000 20%, transparent 96%); }
.jr__locked span { height: 15px; background: var(--rule); filter: blur(3px); }
.jr__locked span:nth-child(3n) { width: 86%; } .jr__locked span:nth-child(4n) { width: 94%; } .jr__locked span:nth-child(7) { width: 60%; }
.jr__evidence { margin-top: clamp(48px, 6vw, 80px); padding-top: 8px; border-top: 1px solid var(--ink); }
.jr__evidence .h3 { margin-top: 28px; }
.cites { margin-top: 26px; }
.cites li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.cites li:target { background: var(--paper-card); }
.cites__n { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; color: var(--wax); padding-top: 5px; }
.cites a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cites li > div > a { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; text-decoration: none; }
.cites li > div > a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cites .mono { margin-top: 4px; }
.jr__side { position: sticky; top: 92px; display: grid; gap: 14px; }
.unlock { border: 1px solid var(--ink); background: var(--paper-card); padding: 24px; box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule); }
.unlock[hidden], .side-card[hidden], .vote[hidden] { display: none; }
.unlock__price { font-family: var(--display); font-size: 3rem; line-height: 1; }
.unlock__price small, .side-card__figure small, .figures small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }
.unlock__line { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
.unlock__split { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.unlock__split dt, .side-card__label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.unlock__split dd { font-size: 0.95rem; margin-top: 2px; }
.unlock__btn { width: 100%; justify-content: center; margin-top: 20px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.unlock__status { margin-top: 12px; font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: var(--muted); min-height: 1.2em; }
.unlock__status.is-bad { color: var(--wax); }
.side-card { border: 1px solid var(--rule); padding: 18px 20px; }
.side-card__figure { font-family: var(--display); font-size: 2.1rem; line-height: 1.15; margin-top: 4px; }
.side-card__text { margin-top: 8px; font-size: 0.93rem; line-height: 1.55; color: var(--ink-soft); }
.side-card__text a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.vote { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vote select, .field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper-card); border: 1px solid var(--ink); padding: 10px 12px; border-radius: 0; width: 100%; }
.vote select { width: auto; font-family: var(--mono); font-size: 0.74rem; padding: 6px 8px; }
.chooser { border: 1px solid var(--ink); background: var(--paper-card); color: var(--ink); padding: 26px; display: grid; gap: 12px; min-width: min(90vw, 340px); }
.chooser::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.chooser .btn { justify-content: center; }

.composer__form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.composer__form[hidden], .composer__gate[hidden] { display: none; }
.composer__gate { display: grid; gap: 18px; justify-items: start; padding-block: 24px; }
.composer__main { display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.field em { font-style: normal; letter-spacing: 0.02em; text-transform: none; }
.field small { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.field textarea { resize: vertical; line-height: 1.6; }
.field textarea[name="body"] { font-family: var(--text); font-size: 1.05rem; min-height: 420px; }
.field-row { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr; gap: 16px; }
.composer__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.composer__actions .unlock__status { margin: 0; }
.composer__report { border: 1px solid var(--ink); background: var(--paper-card); padding: 22px 24px; }
.composer__report .btn { margin-top: 18px; }
.composer__side { position: sticky; top: 92px; border: 1px solid var(--rule); padding: 18px; max-height: calc(100dvh - 120px); overflow: auto; }
.picker { margin-top: 12px; }
.picker li + li { border-top: 1px solid var(--rule); }
.picker button { all: unset; display: block; width: 100%; padding: 10px 0; cursor: pointer; font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.picker button:hover { color: var(--wax); }
.picker .mono { display: block; margin-bottom: 3px; }

.how { padding-block: 0 clamp(40px, 6vw, 80px); }
.how .anatomy { margin-top: 0; }
.how dt { font-size: 0.74rem; }
.how dd a, .kit-hero .lede a, .callout a { text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.how dd a { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.section--journals { padding-block: 0 clamp(56px, 7vw, 96px); }
.callout { border: 1px dashed var(--rule); padding: 18px 20px; color: var(--ink-soft); font-size: 1rem; max-width: 78ch; }
.cited-in { max-width: 860px; margin: 36px auto 0; }
.cited-in .card__label { margin-bottom: 12px; }

/* Header wallet and the dashboard */
.wallet { position: relative; flex: none; }
.wallet__btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.wallet__btn:hover { background: transparent; color: var(--ink); }
.wallet__btn--on { background: transparent; color: var(--ink); text-transform: none; letter-spacing: 0.02em; }
.wallet__btn--on:hover { background: var(--ink); color: var(--paper); }
.wallet__dot { width: 7px; height: 7px; background: #2e7d4f; }
.wallet__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--paper-card); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule); z-index: 30; display: grid; }
.wallet__menu[hidden] { display: none; }
.wallet__menu a, .wallet__menu button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 16px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.wallet__menu a:hover, .wallet__menu button:hover { background: var(--ink); color: var(--paper); }
.wallet__menu button { border-top: 1px solid var(--rule); color: var(--muted); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dash-head .lede a { text-underline-offset: 4px; }
.pubs { border-top: 1px solid var(--ink); }
.pubs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pubs__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pubs__title { display: block; margin-top: 8px; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; text-decoration: none; }
.pubs__title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pubs__nums { display: flex; gap: 28px; text-align: right; }
.pubs__nums dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pubs__nums dd { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.badge { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px 2px; border: 1px solid var(--rule); color: var(--ink-soft); }
.badge--live { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge--approved { border-color: #2e7d4f; color: #2e7d4f; }
.badge--revise, .badge--rejected { border-color: var(--wax); color: var(--wax); }
.empty a { text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* The reading room simulation */
.sim { border: 1px solid var(--ink); background: var(--paper-card); margin-bottom: clamp(28px, 4vw, 48px); }
.sim__stage { overflow-x: auto; scrollbar-width: thin; }
.sim__svg { display: block; width: 100%; min-width: 860px; height: auto; color: var(--ink); }
.sim__svg line, .sim__svg rect, .sim__svg path { stroke: var(--ink); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.sim__svg .sim__paper { fill: var(--paper-card); }
.sim__svg .sim__fill { fill: var(--ink); stroke: none; }
.sim__svg .sim__top { stroke-width: 2.4; }
.sim__svg .sim__route { stroke: var(--rule); stroke-dasharray: 3 7; }
.sim__svg text { font-family: var(--mono); fill: var(--ink); stroke: none; }
.sim__code { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; }
.sim__name { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted) !important; }
.sim__desk { opacity: 0.42; transition: opacity 0.35s var(--ease); }
.sim__desk.is-active, .sim__desk.is-hit { opacity: 1; }
.sim__svg .sim__tag { fill: transparent; transition: fill 0.25s; }
.sim__desk.is-active .sim__tag { fill: var(--ink); }
.sim__desk.is-active .sim__code { fill: var(--paper-card); }
.sim__eye, .sim__arm, .sim__line { transform-box: fill-box; }
.sim__eye { transform-origin: center; animation: sim-blink 4.6s infinite; }
.sim__desk:nth-of-type(2n) .sim__eye { animation-delay: 1.7s; }
.sim__arm { transform-origin: 0 0; }
.sim__line { transform-origin: left center; }
.sim__desk.is-active .sim__arm { animation: sim-tap 0.26s steps(2, end) infinite; }
.sim__desk.is-active .sim__line { animation: sim-type 1.5s steps(8, end) infinite; }
.sim__desk.is-active .sim__line:nth-of-type(2n) { animation-delay: 0.4s; }
.sim__desk.is-hit .sim__tag { animation: sim-hit 0.9s var(--ease); }
.sim__desk.is-shake .sim__bot { animation: sim-shake 0.45s; transform-box: fill-box; transform-origin: center bottom; }
.sim__dove { offset-anchor: 0 0; }
.sim__wings { transform-box: fill-box; transform-origin: center; animation: sim-flap 0.22s ease-in-out infinite alternate; }
/* Doves are white. On paper they carry a thin ink outline; after dark they are solid ivory. */
/* Set on <use>: the drawn copy inherits from it, and selectors do not reach inside the copy.
   Stroke width is in the mark's own 1048-unit space, about 1px on screen, painted under the fill. */
.sim__dove use { fill: var(--dove); stroke: var(--ink); stroke-width: 48; stroke-linejoin: round; paint-order: stroke; }
.sim__svg .sim__note { fill: var(--paper-card); stroke-width: 1.2; }
.sim__svg .sim__spine { fill: var(--paper-deep); animation: sim-shelve 0.5s var(--ease) both; }
.sim__svg .sim__spine--ink { fill: var(--ink); }
.sim__stampat { opacity: 0; }
.sim__svg .sim__stampat rect { stroke: var(--wax); stroke-width: 1.8; }
.sim__svg .sim__stampat text { fill: var(--wax); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; }
.sim.is-paused .sim__svg * { animation-play-state: paused !important; }
.sim__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-top: 1px solid var(--ink); background: var(--paper); }
.sim__caption { display: flex; align-items: baseline; gap: 14px; min-width: 0; font-size: 1rem; line-height: 1.45; }
.sim__who { flex: none; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; background: var(--ink); color: var(--paper); padding: 3px 8px 2px; }
.sim__who.is-warn { background: transparent; color: var(--wax); box-shadow: inset 0 0 0 1px var(--wax); }
.sim__ctl { display: flex; align-items: center; gap: 14px; flex: none; }
.sim__btn { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 6px 12px; cursor: pointer; }
.sim__btn:hover { background: var(--ink); color: var(--paper); }
@keyframes sim-flap { from { transform: scaleY(1.08); } to { transform: scaleY(0.78); } }
@keyframes sim-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes sim-tap { from { transform: rotate(0deg); } to { transform: rotate(-9deg); } }
@keyframes sim-type { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }
@keyframes sim-hit { 0% { fill: var(--ink); } 100% { fill: transparent; } }
@keyframes sim-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes sim-shelve { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Motion: entries settle in, the seal is pressed. Hidden states apply only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal="press"] { transform: scale(1.12) rotate(-5deg); transition-duration: 0.9s; }
  .js [data-reveal="press"].in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .volume, .btn { transition: none; }
}

/* Collapse */
@media (max-width: 1023px) {
  .top__nav a:nth-child(n + 4) { display: none; }
  .jr, .composer__form { grid-template-columns: minmax(0, 1fr); }
  .jr__side, .composer__side { position: static; max-height: none; }
  .jr__side { order: -1; }
  .desk--soc, .desk--nws, .desk--fil, .desk--sty, .desk--src, .desk--arc { grid-column: span 6; }
  .desk--jrn { grid-column: 1 / -1; }
  .desk { min-height: 260px; }
  .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .top__nav a:nth-child(n + 2) { display: none; }
  .wallet__btn { height: 34px; padding: 0 11px; font-size: 0.68rem; }
  .pubs li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pubs__nums { text-align: left; }
  .top__nav { gap: 14px; font-size: 0.72rem; }
  .top__row { gap: 12px; }
  .lockup:not(.lockup--lg) { gap: 8px; }
  .lockup:not(.lockup--lg) .mark { font-size: 26px; }
  .lockup:not(.lockup--lg) .wordmark { font-size: 1.3rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 40px 56px; }
  .hero__figure { order: -1; justify-content: flex-start; }
  .seal { width: 190px; }
  .seal__text { font-size: 17px; }
  .ledger::before { display: none; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .entry__tick { display: none; }
  .entry__date { padding-top: 0; }
  .entry .stamp { margin: 6px 0 0; justify-self: start; }
  .stamps { margin: 6px 0 0; }
  .threads a { flex-direction: column; gap: 4px; }
  .threads__meta { text-align: left; }
  .thread-nav { grid-template-columns: minmax(0, 1fr); }
  .thread-nav__next { text-align: left; }
  .log__row { grid-template-columns: 70px 44px minmax(0, 1fr); gap: 8px; }
  .register li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .burn, .anatomy--three { grid-template-columns: minmax(0, 1fr); }
  .sim__bar { flex-direction: column; align-items: stretch; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .sim__ctl { justify-content: space-between; }
  .entry__meta { line-height: 1.8; }
  .desk--soc, .desk--nws, .desk--fil, .desk--sty, .desk--src, .desk--arc { grid-column: 1 / -1; }
  .desk { min-height: 0; }
  .card { box-shadow: 5px 5px 0 var(--paper-deep), 5px 5px 0 1px var(--rule); }
  .card__fields, .anatomy { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__nav { justify-content: start; }
}
