/* ============================================================
   RAW SIGNAL — systematic brutalism
   Grid: 12 columns, 3px borders, collapsed seams.
   Palette: #000 / #FFF / #FFED00 / #FF5A00. Nothing else.
   Type: Arial Black (display) / Courier New (meta) / Georgia (body).
   Motion: none. States change instantly, like a slammed door.
   ============================================================ */

:root {
  --ink: #000;
  --paper: #fff;
  --yellow: #FFED00;
  --orange: #FF5A00;
  --bw: 3px;               /* border width, everywhere */
  --bw-thin: 2px;
  --font-grot: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, ui-monospace, monospace;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --slam: 4px;             /* hover displacement */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* long grotesque words must never pierce the frame — hyphenate like a real broadsheet */
.page-head h1, .masthead h1, .article-head h1,
.card h2, .card h3, .thesis h2, .house, .sys-body h2, .foot-word {
  overflow-wrap: break-word;
  hyphens: auto;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.45;
}

::selection { background: var(--ink); color: var(--yellow); }

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

a { color: inherit; }

/* ------------------------------------------------------------
   KEYBOARD + FOCUS: loud, immediate, part of the aesthetic
   ------------------------------------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: var(--bw) solid var(--orange);
  outline-offset: 2px;
}
.invert-on-dark :focus-visible,
footer :focus-visible,
.nav-strip :focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 12px 18px;
  border: var(--bw) solid var(--yellow);
  text-transform: uppercase;
}
.skip-link:focus-visible { top: 0; }

/* ------------------------------------------------------------
   UTILITY STRIP (top-most)
   ------------------------------------------------------------ */
.utility-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-bottom: var(--bw) solid var(--ink);
}
.utility-strip .u-right { text-align: right; }

/* ------------------------------------------------------------
   MASTHEAD
   ------------------------------------------------------------ */
.masthead {
  border-bottom: var(--bw) solid var(--ink);
  padding: 18px 12px 12px;
  position: relative;
}
.masthead h1 {
  font-family: var(--font-grot);
  font-weight: 900;
  font-size: clamp(48px, 11.5vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead h1 .sig {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.06em;
}
.masthead .mast-sub {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}
.masthead .mast-sub .tag-est { background: var(--yellow); padding: 0 6px; border: var(--bw-thin) solid var(--ink); }

/* ------------------------------------------------------------
   NAV STRIP — black bar, underlined everything
   ------------------------------------------------------------ */
.nav-strip {
  background: var(--ink);
  border-bottom: var(--bw) solid var(--ink);
}
.nav-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.nav-strip li { flex: 1 1 auto; }
.nav-strip a {
  display: block;
  text-align: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: clamp(13px, 1.6vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  padding: 14px 10px;
  border-right: var(--bw-thin) solid var(--paper);
}
.nav-strip li:last-child a { border-right: none; }
.nav-strip a:hover {
  background: var(--yellow);
  color: var(--ink);
}
.nav-strip a[aria-current="page"] {
  background: var(--orange);
  color: var(--ink);
}
.nav-strip a[aria-current="page"]:hover { background: var(--yellow); }

/* ------------------------------------------------------------
   MARQUEE — scrolling headline ticker
   ------------------------------------------------------------ */
.marquee {
  background: var(--yellow);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-grot);
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 10px 0;
}
.marquee-track .sep { padding: 10px 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
}

/* ------------------------------------------------------------
   THE WALL — 12-col grid of slammed panels, collapsed seams
   ------------------------------------------------------------ */
.wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  /* absorb the collapsed-seam half-borders so outer borders land flush at the viewport edge */
  padding: 0 calc(var(--bw) / 2);
}
.panel {
  border: var(--bw) solid var(--ink);
  margin: calc(var(--bw) / -2);
  background: var(--paper);
  position: relative;
  min-width: 0;
}
/* spans */
.s12 { grid-column: span 12; }
.s9  { grid-column: span 9; }
.s8  { grid-column: span 8; }
.s7  { grid-column: span 7; }
.s6  { grid-column: span 6; }
.s5  { grid-column: span 5; }
.s4  { grid-column: span 4; }
.s3  { grid-column: span 3; }

/* ------------------------------------------------------------
   STORY CARDS
   ------------------------------------------------------------ */
.card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
}
a.card { text-decoration: none; }
.card .sticker {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--yellow);
  border: var(--bw-thin) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 2px 8px;
  margin-bottom: 14px;
  transform: rotate(-1.5deg);
}
.card .sticker.orange { background: var(--orange); transform: rotate(1.5deg); }
.card .sticker.black { background: var(--ink); color: var(--paper); }
.card h2, .card h3 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 12px;
}
.card h2 { font-size: clamp(28px, 3.4vw, 44px); }
.card h3 { font-size: clamp(20px, 2.2vw, 28px); }
.card .dek {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.card .byline {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-top: var(--bw-thin) solid var(--ink);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.card .read-cue {
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* HOVER SLAM — instant, no ease */
a.card:hover, a.card:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translate(calc(var(--slam) * -1), calc(var(--slam) * -1));
  box-shadow: var(--slam) var(--slam) 0 var(--orange);
  z-index: 5;
}
a.card:hover .byline, a.card:focus-visible .byline { border-top-color: var(--paper); }

/* LEAD CARD */
.card-lead { padding: 26px 26px 20px; }
.card-lead h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 0.88; }
.card-lead .dek { font-size: clamp(18px, 1.8vw, 23px); max-width: 56ch; }
.card-lead .sticker { font-size: 14px; padding: 4px 12px; }

/* ------------------------------------------------------------
   ACCENT / HOUSE PANELS (pure blocks inside the wall)
   ------------------------------------------------------------ */
.block-yellow { background: var(--yellow); }
.block-orange { background: var(--orange); }
.block-black  { background: var(--ink); color: var(--paper); }

.house {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(22px, 2.6vw, 34px);
  text-decoration: none;
}
.house .mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
a.house:hover, a.house:focus-visible {
  transform: translate(calc(var(--slam) * -1), calc(var(--slam) * -1));
  box-shadow: var(--slam) var(--slam) 0 var(--ink);
  z-index: 5;
}
a.house.block-black:hover { box-shadow: var(--slam) var(--slam) 0 var(--yellow); }

/* big arrow that slams sideways on hover */
.arr { display: inline-block; }
a:hover .arr, a:focus-visible .arr { transform: translateX(6px); }

/* ------------------------------------------------------------
   SECTION LABEL STRIPS
   ------------------------------------------------------------ */
.strip-label {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 8px 14px;
  border: var(--bw) solid var(--ink);
  margin: calc(var(--bw) / -2);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.strip-label .lit { background: var(--orange); color: var(--ink); padding: 0 6px; }

/* standalone variant (not inside .wall): collapse only the vertical seam, never the horizontal frame */
.strip-flush { margin: calc(var(--bw) * -1) 0 0; }

/* ------------------------------------------------------------
   GENERIC PAGE CHROME
   ------------------------------------------------------------ */
.page-head {
  border-bottom: var(--bw) solid var(--ink);
  padding: 34px 16px 26px;
}
.page-head .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--yellow);
  border: var(--bw-thin) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 2px 10px;
  transform: rotate(-1deg);
  margin-bottom: 16px;
}
.page-head h1 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.88;
  font-size: clamp(44px, 8vw, 110px);
}
.page-head .lede {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 23px);
  max-width: 62ch;
}
.page-head .lede a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-head .lede a:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------
   ARTICLE PAGE
   ------------------------------------------------------------ */
.crumbs {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: var(--bw) solid var(--ink);
  padding: 8px 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.crumbs a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.crumbs a:hover { background: var(--yellow); }

.article-head { border-bottom: var(--bw) solid var(--ink); padding: 30px 16px 24px; }
.article-head h1 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(38px, 7vw, 96px);
  max-width: 20ch;
}
.article-head .dek {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.35;
  max-width: 58ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
}
.article-meta > div {
  padding: 10px 14px;
  border-right: var(--bw) solid var(--ink);
  flex: 1 1 auto;
}
.article-meta > div:last-child { border-right: none; }
.article-meta .lbl { display: block; font-size: 10px; letter-spacing: 0.1em; opacity: 0.75; }
.article-meta a { text-decoration: underline; text-decoration-thickness: 2px; }
.article-meta a:hover { background: var(--yellow); }

/* visible column rules: rule | text | rule | margin */
.article-body {
  display: grid;
  grid-template-columns: minmax(14px, 1fr) minmax(0, 680px) minmax(14px, 1fr) minmax(200px, 260px);
  border-bottom: var(--bw) solid var(--ink);
}
.col-rule { border-right: var(--bw) solid var(--ink); }
.article-text { padding: 34px 28px 40px; }
.article-margin {
  border-left: var(--bw) solid var(--ink);
  padding: 34px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}
.article-margin .m-block { margin-bottom: 22px; }
.article-margin .m-title {
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.article-margin ul { list-style: none; }
.article-margin li { margin-bottom: 6px; }
.article-margin a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-margin a:hover { background: var(--yellow); }

/* article typography — raw surface, disciplined measure */
.article-text p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  max-width: 62ch;
  margin-bottom: 1.35em;
}
.article-text p:first-of-type::first-letter {
  font-family: var(--font-grot);
  font-weight: 900;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 6px 12px 0 0;
}
.article-text h2 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 0.95;
  margin: 1.4em 0 0.6em;
  padding-top: 0.5em;
  border-top: var(--bw) solid var(--ink);
}
.article-text a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-text a:hover { background: var(--ink); color: var(--paper); }
.pull-quote {
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  margin: 2em 0;
  padding: 0.8em 0;
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(26px, 3.6vw, 44px);
}
.pull-quote .pq-attr {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
}
sup.fn {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.65em;
}
sup.fn a {
  text-decoration: none;
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 0 3px;
}
sup.fn a:hover { background: var(--ink); color: var(--yellow); }

/* footnotes */
.footnotes {
  border-top: var(--bw) solid var(--ink);
  margin-top: 2.5em;
  padding-top: 1.2em;
}
.footnotes h2 {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
}
.footnotes ol { list-style: none; counter-reset: fn; margin-top: 1em; }
.footnotes li {
  counter-increment: fn;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0.9em;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footnotes li::before {
  content: counter(fn, decimal-leading-zero);
  background: var(--ink);
  color: var(--paper);
  font-weight: bold;
  padding: 1px 7px;
  flex-shrink: 0;
}
.footnotes li:target { background: var(--yellow); }
.footnotes .fn-back { text-decoration: underline; margin-left: 6px; }
.footnotes .fn-back:hover { background: var(--ink); color: var(--paper); }

/* sticker tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 16px;
  border-bottom: var(--bw) solid var(--ink);
}
.tag {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--yellow);
  border: var(--bw-thin) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 4px 12px;
  transform: rotate(-2deg);
}
.tag:nth-child(2n) { transform: rotate(1.5deg); background: var(--paper); }
.tag:nth-child(3n) { background: var(--orange); transform: rotate(-1deg); }
.tag:hover, .tag:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--orange);
}

/* prev / next */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--bw) solid var(--ink); }
.pn-nav a {
  display: block;
  padding: 22px 18px;
  text-decoration: none;
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.pn-nav a:first-child { border-right: var(--bw) solid var(--ink); }
.pn-nav .pn-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.pn-nav a:hover, .pn-nav a:focus-visible { background: var(--ink); color: var(--yellow); }

/* ------------------------------------------------------------
   ARCHIVE — dense filterable table
   ------------------------------------------------------------ */
.archive-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  border-bottom: var(--bw) solid var(--ink);
}
.archive-controls .ctl {
  border-right: var(--bw) solid var(--ink);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.archive-controls .ctl:last-child { border-right: none; justify-content: flex-end; }
.archive-controls label {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.archive-controls input,
.archive-controls select {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
  padding: 8px 10px;
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.archive-controls select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 11px) 55%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.archive-controls input:hover, .archive-controls select:hover { background: var(--yellow); }
.archive-controls input:focus-visible, .archive-controls select:focus-visible { background: var(--yellow); }
.btn {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: var(--bw) solid var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover, .btn:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }

.count-line {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--yellow);
}

.table-wrap { overflow-x: auto; border-bottom: var(--bw) solid var(--ink); }
table.archive {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
}
table.archive th {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border: var(--bw-thin) solid var(--ink);
  white-space: nowrap;
}
table.archive td {
  border: var(--bw-thin) solid var(--ink);
  padding: 9px 12px;
  vertical-align: top;
  text-transform: uppercase;
  font-weight: bold;
}
table.archive td.sec { white-space: nowrap; }
table.archive td.sec span {
  background: var(--yellow);
  border: var(--bw-thin) solid var(--ink);
  padding: 1px 7px;
  font-size: 12px;
}
table.archive td.sec span.o { background: var(--orange); }
table.archive td.title-cell { font-family: var(--font-sans); font-weight: 900; text-transform: uppercase; font-size: 15px; }
table.archive td.title-cell a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
table.archive tbody tr:hover { background: var(--ink); color: var(--paper); }
table.archive tbody tr:hover td.sec span { color: var(--ink); }
table.archive tr.row-hidden { display: none; }
table.archive tr.void-row td {
  text-align: center;
  font-family: var(--font-grot);
  font-size: 22px;
  padding: 40px 12px;
  background: var(--orange);
}

/* ------------------------------------------------------------
   AUTHORS — photocopied portrait cards
   ------------------------------------------------------------ */
.author-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--bw) solid var(--ink);
}
.author-card {
  border-right: var(--bw) solid var(--ink);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.author-card:nth-child(3n) { border-right: none; }
.author-card:nth-child(n+4) { border-top: var(--bw) solid var(--ink); }
.photo-frame {
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
}
.author-card:nth-child(odd) .photo-frame { transform: rotate(-1.2deg); }
.author-card:nth-child(even) .photo-frame { transform: rotate(1.1deg); }
/* the photocopy treatment: brutal contrast + halftone screen + grain */
.photo-frame .portrait { filter: grayscale(1) contrast(1.65) brightness(1.05); }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 0.8px, transparent 0.9px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.28;
  pointer-events: none;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
/* tape strip */
.photo-frame .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 90px;
  height: 24px;
  margin-left: -45px;
  background: var(--yellow);
  border: var(--bw-thin) solid var(--ink);
  transform: rotate(-3deg);
  z-index: 2;
}
.author-card h2 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.author-card .role {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  align-self: flex-start;
  padding: 2px 8px;
}
.author-card .bio {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.45;
}
.author-card .a-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-top: var(--bw-thin) solid var(--ink);
  padding-top: 10px;
  margin-top: auto;
}
.author-card .a-link {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.author-card .a-link:hover { background: var(--ink); color: var(--yellow); }

/* ------------------------------------------------------------
   NEWSLETTER — aggressive system dialog on graph paper
   ------------------------------------------------------------ */
.dialog-page {
  min-height: 70vh;
  padding: 60px 16px 80px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(0,0,0,0.18) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(0,0,0,0.18) 31px 32px),
    var(--paper);
  border-bottom: var(--bw) solid var(--ink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.sys-dialog {
  width: min(640px, 100%);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}
.sys-titlebar {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
}
.sys-titlebar .sys-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: var(--bw-thin) solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  font-weight: bold;
}
.sys-titlebar .sys-close:hover, .sys-titlebar .sys-close:focus-visible { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.sys-body { padding: 26px 24px 28px; }
.sys-body h2 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 14px;
}
.sys-body p { font-family: var(--font-serif); font-size: 17px; margin-bottom: 14px; }
.sys-body p strong { font-family: var(--font-mono); font-size: 0.9em; text-transform: uppercase; }
.sys-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.sys-form label.f-label {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sys-form input[type="email"] {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 17px;
  padding: 12px 14px;
  border: var(--bw) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  width: 100%;
}
.sys-form input[type="email"]:hover { background: var(--yellow); }
.sys-form input[type="email"][aria-invalid="true"] { border-color: var(--orange); background: #fff; box-shadow: 4px 4px 0 var(--orange); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}
.consent input[type="checkbox"]:hover { background: var(--yellow); }
.consent input[type="checkbox"]:checked { background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper); }
.consent label { font-family: var(--font-mono); font-weight: bold; font-size: 13px; text-transform: uppercase; cursor: pointer; }
.sys-error {
  display: none;
  background: var(--orange);
  border: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  padding: 10px 14px;
}
.sys-error.show { display: block; }
.sys-fine {
  font-family: var(--font-mono);
  font-size: 11px !important;
  text-transform: uppercase;
  font-weight: bold;
  border-top: var(--bw-thin) solid var(--ink);
  padding-top: 12px;
  margin-top: 6px;
}
.sys-success { display: none; text-align: left; }
.sys-success.show { display: block; }
.sys-success .big-ok {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.9;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 12px 16px;
  display: inline-block;
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   ABOUT / MANIFESTO
   ------------------------------------------------------------ */
.thesis { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: var(--bw) solid var(--ink); }
.thesis .num {
  font-family: var(--font-grot);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 8px;
  border-right: var(--bw) solid var(--ink);
}
.thesis:nth-child(even) .num { background: var(--orange); color: var(--ink); }
.thesis .body { padding: 24px 22px 28px; }
.thesis h2 {
  font-family: var(--font-grot);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(24px, 3.4vw, 44px);
  margin-bottom: 12px;
}
.thesis p { font-family: var(--font-serif); font-size: 18px; line-height: 1.5; max-width: 64ch; margin-bottom: 0.9em; }
.thesis p a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.thesis p a:hover { background: var(--ink); color: var(--paper); }

.colophon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--bw) solid var(--ink);
}
.colophon .col {
  border-right: var(--bw) solid var(--ink);
  padding: 20px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}
.colophon .col:last-child { border-right: none; }
.colophon .col .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  margin-bottom: 10px;
}
.swatch { display: inline-block; width: 16px; height: 16px; border: var(--bw-thin) solid var(--ink); vertical-align: -2px; margin-right: 4px; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer { background: var(--ink); color: var(--paper); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}
.foot-grid > div { padding: 30px 22px; border-right: var(--bw-thin) solid var(--paper); }
.foot-grid > div:last-child { border-right: none; }
.foot-word {
  font-family: var(--font-grot);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--ink);
  -webkit-text-stroke: 2px var(--paper);
  text-stroke: 2px var(--paper);
}
.foot-grid h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.foot-grid a:hover { background: var(--yellow); color: var(--ink); }
.foot-grid .foot-note { font-family: var(--font-mono); font-size: 12px; font-weight: bold; text-transform: uppercase; margin-top: 18px; line-height: 1.6; }
.foot-legal {
  border-top: var(--bw-thin) solid var(--paper);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   RESPONSIVE — the wall stacks into an equally punchy column
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .s3, .s4 { grid-column: span 6; }
  .s5, .s7, .s8, .s9 { grid-column: span 12; }
  .card-lead h2 { font-size: clamp(38px, 8vw, 72px); }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .author-card:nth-child(3n) { border-right: var(--bw) solid var(--ink); }
  .author-card:nth-child(2n) { border-right: none; }
  .author-card:nth-child(n+3) { border-top: var(--bw) solid var(--ink); }
  .archive-controls { grid-template-columns: 1fr 1fr; }
  .archive-controls .ctl { border-bottom: var(--bw) solid var(--ink); }
  .archive-controls .ctl:nth-child(2n) { border-right: none; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .colophon .col:nth-child(2n) { border-right: none; }
  .colophon .col:nth-child(n+3) { border-top: var(--bw) solid var(--ink); }
  .article-body { grid-template-columns: 18px minmax(0, 1fr) 18px; }
  .article-margin { grid-column: 1 / -1; border-left: none; border-top: var(--bw) solid var(--ink); display: flex; gap: 26px; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; border-bottom: var(--bw-thin) solid var(--paper); }
}

@media (max-width: 640px) {
  .s3, .s4, .s6 { grid-column: span 12; }
  .masthead h1 { white-space: normal; }
  .nav-strip a { border-right: none; border-bottom: var(--bw-thin) solid var(--paper); }
  .nav-strip li { flex: 1 1 50%; }
  .article-body { grid-template-columns: 12px minmax(0, 1fr) 12px; }
  .article-text { padding: 26px 18px 32px; }
  .article-text p { font-size: 18px; }
  .pn-nav { grid-template-columns: 1fr; }
  .pn-nav a:first-child { border-right: none; border-bottom: var(--bw) solid var(--ink); }
  .author-grid { grid-template-columns: 1fr; }
  .author-card { border-right: none !important; border-top: var(--bw) solid var(--ink); }
  .author-card:first-child { border-top: none; }
  .archive-controls { grid-template-columns: 1fr; }
  .archive-controls .ctl { border-right: none; }
  .thesis { grid-template-columns: 74px minmax(0, 1fr); }
  .colophon { grid-template-columns: 1fr; }
  .colophon .col { border-right: none; border-top: var(--bw) solid var(--ink); }
  .colophon .col:first-child { border-top: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div { border-right: none; border-bottom: var(--bw-thin) solid var(--paper); }
  .foot-grid > div:last-child { border-bottom: none; }
  .article-meta > div { border-right: none; border-bottom: var(--bw-thin) solid var(--ink); flex: 1 1 100%; }
  .article-meta > div:last-child { border-bottom: none; }
  .sys-dialog { box-shadow: 8px 8px 0 var(--ink); }
}
