/* Interference — shared stylesheet
   Catalogue archetype: white field, rubricated red, misregistered plates. */

:root {
  --field: #ffffff;
  --ink: #141110;
  --rubric: #c1362b;
  --oxblood: #6e1a16;
  --ghost: #e4deda;
  --mute: #6b6360;
  --register: 3px;
  --measure: 62ch;
  --rule: 1px solid var(--ghost);
  --step: clamp(3rem, 7vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.62;
  font-synthesis-weight: none;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--ghost);
  transition: border-color .18s ease, color .18s ease;
}

a:hover { color: var(--rubric); border-bottom-color: var(--rubric); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--field);
  padding: .75rem 1.25rem;
  border: 0;
  z-index: 20;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  color: var(--field);
}

/* ---------- structure ---------- */

.sheet {
  width: min(100% - 2.5rem, 1160px);
  margin-inline: auto;
}

.spread {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.spread + .spread { margin-top: var(--step); }

.margin-note {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.55;
  padding-top: .55rem;
  border-top: 2px solid var(--rubric);
}

.margin-note span { display: block; color: var(--ink); }

section { padding-block: var(--step); }

section + section { border-top: var(--rule); }

/* ---------- masthead ---------- */

.masthead {
  padding-block: 1.6rem;
  border-bottom: 2px solid var(--ink);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  position: relative;
  isolation: isolate;
}

.wordmark::before {
  content: attr(data-echo);
  position: absolute;
  inset: 0;
  color: var(--rubric);
  transform: translate(var(--register), calc(var(--register) * -1));
  z-index: -1;
  opacity: .85;
}

.wordmark:hover { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .06em;
}

.nav a { color: var(--mute); border-bottom: 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rubric); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 8rem) var(--step); }

.hero-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 12.2vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  isolation: isolate;
  word-break: break-word;
}

.hero-mark::before {
  content: attr(data-echo);
  position: absolute;
  inset: 0;
  color: var(--rubric);
  z-index: -1;
  transform: translate(0, 0);
  animation: settle 1.1s cubic-bezier(.2, .8, .3, 1) .15s forwards;
}

@keyframes settle {
  to { transform: translate(calc(var(--register) * 3), calc(var(--register) * -2.4)); }
}

.hero-line {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  max-width: 48ch;
  margin: 2.2rem 0 0;
  color: var(--ink);
}

.hero-meta {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 2.4rem;
  padding-top: .7rem;
  border-top: 2px solid var(--rubric);
  max-width: 34rem;
}

/* ---------- typography ---------- */

h2 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 1.4rem;
}

h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .01em;
  margin: 0 0 .5rem;
}

p { max-width: var(--measure); margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.18rem;
  max-width: 54ch;
}

/* ---------- plates ---------- */

.plate {
  margin: 0;
  border-top: 2px solid var(--ink);
  padding-top: 1.4rem;
}

.plate + .plate { margin-top: var(--step); }

.plate-figure {
  background: var(--field);
  border: var(--rule);
  padding: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 1.6rem;
}

.plate-figure svg { width: 100%; }

.plate-index {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rubric);
  margin-bottom: .6rem;
}

.plate-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.85rem);
  line-height: 1.12;
  margin: 0 0 .8rem;
}

.plate-title a { color: var(--ink); border-bottom: 0; }
.plate-title a:hover { color: var(--rubric); }

.plate-caption {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .78rem;
  color: var(--mute);
  line-height: 1.55;
  max-width: 46ch;
  margin-top: 1rem;
}

/* svg internals */
.trace-ink { fill: none; stroke: var(--ink); stroke-width: 2; }
.trace-red { fill: none; stroke: var(--rubric); stroke-width: 2; }
.grid-line { stroke: var(--ghost); stroke-width: 1; }
.plate-label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  fill: var(--mute);
}
.plate-label--red { fill: var(--rubric); }
.node-ink { fill: var(--ink); }
.node-red { fill: var(--rubric); }
.node-open { fill: var(--field); stroke: var(--ink); stroke-width: 1.5; }

/* ---------- lists ---------- */

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2.2rem;
}

.principles li { max-width: var(--measure); }

.principles .num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--rubric);
  display: block;
  margin-bottom: .4rem;
}

.negations {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 58ch;
}

.negations li {
  padding: .85rem 0 .85rem 2.2rem;
  border-bottom: var(--rule);
  position: relative;
}

.negations li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--rubric);
  font-weight: 500;
}

.faq { margin: 0; max-width: var(--measure); }
.faq dt {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin-top: 2rem;
  padding-top: .9rem;
  border-top: var(--rule);
}
.faq dt:first-of-type { margin-top: 0; }
.faq dd { margin: .55rem 0 0; }

.plain { max-width: var(--measure); }
.plain h3 { margin-top: 2.4rem; }
.plain ul { max-width: var(--measure); padding-left: 1.15rem; }
.plain li { margin-bottom: .5rem; }

/* ---------- article body ---------- */

.article-head { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }

.article-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: .8rem 0 1.2rem;
  max-width: 20ch;
}

.article-body { padding-block: var(--step); }
.article-body h2 { margin-top: 2.8rem; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.article-body h2:first-child { margin-top: 0; }

.refs {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--mute);
  max-width: 60ch;
  padding-top: 1rem;
  border-top: 2px solid var(--rubric);
  list-style: none;
  margin: 2.6rem 0 0;
  padding-left: 0;
}

.refs li { margin-bottom: .6rem; }

/* ---------- support + footer ---------- */

.support {
  border: 2px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 46rem;
}

.support .addr {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 1rem;
  display: inline-block;
  margin-top: .4rem;
}

.site-foot {
  border-top: 2px solid var(--ink);
  padding-block: 2.5rem 3.5rem;
  font-size: .88rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.foot-grid a { color: var(--mute); border-bottom: 0; }
.foot-grid a:hover { color: var(--rubric); }

.foot-note { color: var(--mute); max-width: 60ch; font-size: .82rem; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(4rem, 12vw, 9rem); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .spread { grid-template-columns: minmax(0, 1fr); }
  .margin-note { border-top-width: 2px; }
  :root { --register: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark::before {
    animation: none;
    transform: translate(calc(var(--register) * 3), calc(var(--register) * -2.4));
  }
  * { transition-duration: .01ms !important; }
}

@media print {
  .nav, .site-foot { display: none; }
  body { color: #000; }
}
