/* ============================================================
   People Business Magazine — preliminary launch
   Black #0A0A0A ground · Paper #F4F1EA type · tricolour as accent only
   IM Fell DW Pica (17c letterpress) · Cardo (Aldine book) ·
   Special Elite + Courier Prime (typewriter)
   ============================================================ */

:root {
  --black: #0A0A0A;
  --paper: #F4F1EA;
  --paper-dim: rgba(244, 241, 234, 0.62);
  --paper-mid: rgba(244, 241, 234, 0.74);
  --rule: rgba(244, 241, 234, 0.18);
  --red: #C8102E;
  --gold: #FCD116;
  --inset-gold: #E8C547;   /* the overheard register — matches the typeset pages */
  --green: #009A44;
  --serif: "Cardo", "Iowan Old Style", Georgia, serif;
  --serif-display: "IM Fell DW Pica", "Cardo", Georgia, serif;
  --sans: "Cardo", Georgia, serif;
  --sans-x: "Special Elite", "Courier Prime", Courier, monospace;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --type: "Special Elite", "Courier Prime", Courier, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: var(--black); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  position: relative;
  min-height: 100svh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  column-gap: 3rem;
}

.hero-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  /* sits above the veil so frame one always carries the masthead;
     pointer-events off so brushing still reaches the canvas beneath */
  position: relative;
  z-index: 6;
  pointer-events: none;
}

.masthead {
  font-family: var(--type);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

.hero-title {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-title h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(4.25rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin-bottom: 1.75rem;
}

.hero-dek {
  max-width: 34em;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--paper-mid);
  margin-bottom: 2.25rem;
}

.hero-read {
  display: inline-block;
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(244, 241, 234, 0.32);
  padding: 0.75em 1.4em;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.hero-read:hover,
.hero-read:focus-visible {
  border-color: var(--paper);
  background: rgba(244, 241, 234, 0.05);
}

.hero-figure {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 44vw);
  max-width: 560px;
}

.hero-figure img { width: 100%; }

.accession {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--paper-dim);
  padding-top: 0.75rem;
}

/* ---- Veil (canvas overlay) ---- */

#veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: crosshair;
  touch-action: none;
}

#veil.done { display: none; }

#veil-skip {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 6;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: none;
  border: 1px solid var(--rule);
  padding: 0.65em 1.3em;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, opacity 400ms ease;
}

#veil-skip:hover,
#veil-skip:focus-visible {
  color: var(--paper);
  border-color: var(--paper-dim);
}

#veil-skip.done { opacity: 0; pointer-events: none; }

/* ============ INDEX ============ */

.index {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* mono eyebrow that hands the hero off to the browse layer */
.index-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
  padding-bottom: 2.5rem;
}

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.index-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: 0;
}

.index-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  max-width: 44em;
}

.index-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  counter-reset: entry;
}

.index-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.5rem;
  align-items: start;
  padding: 2.5rem 3rem 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  counter-increment: entry;
  cursor: pointer;
}

.index-list li:has(.entry-thumb) {
  grid-template-columns: minmax(0, 1fr) clamp(180px, 30%, 320px);
  column-gap: 2rem;
}

/* the running record number the archive implies */
.index-list li::after {
  content: counter(entry, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 2.6rem;
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

/* a single-colour hairline marks the record on hover — one editorial mark, not a rainbow sweep */
.index-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--paper);
  transition: width 350ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.index-list li:hover::before,
.index-list li:active::before { width: 6rem; }

.acc {
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

.entry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.entry-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--paper-dim);
}

.entry-dek {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--paper-mid);
}

/* index entries are links; the whole row is the target */
.index-list a {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.index-list li:focus-within::before { width: 6rem; }

.index-list a:focus-visible { outline: none; }

.index-list li:has(a:focus-visible) {
  outline: 1px solid var(--gold);
  outline-offset: 0.75rem;
}

.index-list li:hover .entry-title,
.index-list li:focus-within .entry-title { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.entry-title { transition: color 200ms ease; }

/* ── index thumbnails — faded, painted preview from inside the article ── */

.entry-thumb {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.entry-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.82) brightness(0.78) saturate(0.6);
  opacity: 0.55;
  transition: filter 0.5s ease, opacity 0.5s ease;
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5) 25%, black 55%);
          mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5) 25%, black 55%);
}

.index-list li:hover .entry-thumb img {
  filter: contrast(0.92) brightness(0.88) saturate(0.85);
  opacity: 0.78;
}

/* ============ ARTICLE ============ */

.article-nav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 10;
}

.article-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.article-nav .masthead {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
}

.article-nav .back {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 200ms ease;
}

.article-nav .back:hover,
.article-nav .back:focus-visible { color: var(--paper); }

.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 2rem 5rem;
}

.article-head { padding-bottom: 2.5rem; }

.article-head .accession {
  padding-top: 0;
  padding-bottom: 1.75rem;
  display: block;
}

.article-head h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.article-head h1 em {
  font-style: italic;
  color: var(--paper-dim);
}

.article-subtitle {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.3;
  color: var(--paper-dim);
  margin-top: 1rem;
}

.article-dek {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 34em;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

/* one editorial mark at the top of the dek — a single hairline, not a rainbow sweep */
.article-dek::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 4rem;
  background: var(--paper);
}

.article-dek {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
}

.article-byline {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 1.75rem;
}

.article-body > p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 3.6em;
  line-height: 0.85;
  float: left;
  padding: 0.06em 0.12em 0 0;
}

/* a lone line that carries the turn of the argument */
.article-body .lede {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  color: var(--paper);
  margin: 3rem 0 2rem;
  max-width: 26em;
}

.article-body .lede::first-letter { font-size: inherit; float: none; padding: 0; }

/* section headings — the machine register, same family as the accession line */
.article-body h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 3.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* cross-references to other records */
.article-body a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-dim);
  padding-bottom: 0.05em;
}

.article-body a:hover { border-bottom-color: var(--paper); }

.article-body blockquote {
  border-left: 1px solid var(--rule);
  padding-left: 1.75rem;
  margin: 2.5rem 0;
}

.article-body blockquote p {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

.article-body .placeholder-note {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px dashed var(--rule);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-body blockquote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--type);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.article-figure { margin: 3rem 0; }
/* every article frame spans the column — undersized archival files are
   upscaled rather than sitting short of the measure. */
.article-figure img { width: 100%; }

.article-figure figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  padding-top: 0.75rem;
}

.article-sources {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--paper-dim);
}

.article-sources h2 {
  font-family: var(--type);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1rem;
}

.article-sources a { color: var(--paper-dim); }

/* draft notice — for pieces not yet final */
.article-status {
  margin-top: 3rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--paper-dim);
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
}

/* ---- next/prev record ---- */

.article-onward {
  border-top: 1px solid var(--rule);
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.onward-link {
  text-decoration: none;
  color: var(--paper);
  max-width: 22em;
}

.onward-link .onward-label {
  display: block;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.6rem;
}

.onward-link .onward-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  transition: color 200ms ease;
}

.onward-link:hover .onward-title,
.onward-link:focus-visible .onward-title { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.onward-link.next { text-align: right; margin-left: auto; }

/* ============ SECTION TABS (Index / Shorts) ============ */

.section-tabs {
  display: flex;
  flex-wrap: wrap;          /* four tabs no longer fit one row on narrow screens */
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.section-tab {
  position: relative;
  white-space: nowrap;      /* never break a tab label mid-word */
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 0 0 1.1rem;
  transition: color 200ms ease;
}

.section-tab:hover,
.section-tab:focus-visible { color: var(--paper); }

.section-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--paper);
  transition: width 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-tab[aria-current="page"] { color: var(--paper); }
.section-tab[aria-current="page"]::after { width: 100%; }

/* ============ SHORTS ============ */

.shorts {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.shorts-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}

.shorts-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: 0;
}

.shorts-note {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  max-width: 42em;
}

.shorts-note em { font-style: italic; color: var(--paper-mid); }

.shorts-subnote {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  margin-top: 1rem;
}
.shorts-subnote a { color: var(--paper); border-bottom: 1px solid var(--paper-dim); padding-bottom: 1px; }

/* one short = a record header + its typeset story page */
.short {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 1rem;
}

.short-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  column-gap: 2.5rem;
  row-gap: 1.25rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.short-meta .acc {
  display: block;
  margin-bottom: 0.9rem;
}

.short-meta h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.short-place {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.75rem;
}

.short-question {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  color: var(--paper);
  margin-bottom: 1.1rem;
}

.short-blurb {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--paper-mid);
  max-width: 40em;
}

.short-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.short-tag {
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.3em 0.7em;
}

.short-tag.locked { color: var(--paper); border-color: var(--paper-dim); }
.short-tag.draft { color: var(--paper-dim); border-color: var(--rule); font-style: italic; }

/* the typeset story page — a portrait composite; hold it to a reading column */
.short-page {
  margin: 0 auto;
  max-width: 620px;
  border: 1px solid var(--rule);
}

.short-page img { width: 100%; }

/* a card's link into the full readable story */
.short-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.5rem;
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.short-cta:hover,
.short-cta:focus-visible { color: var(--paper-mid); border-color: var(--paper-mid); }

/* ============ SHORT READING PAGE ============ */
/* the two registers, set as legible type instead of baked-in image text */

.short-plate {
  margin: 0 auto 3.5rem;
  max-width: 640px;
  border: 1px solid var(--rule);
}

.short-plate img { width: 100%; display: block; }

.short-plate figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--rule);
}

.short-story {
  max-width: 34em;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.short-story .register + .register { margin-top: 3rem; }

.short-story .register-label {
  display: block;
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1.35rem;
}

.short-story .register p {
  font-family: var(--sans-x);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.62;
}

.short-story .register p + p { margin-top: 1.25em; }

.short-story .register-main p { color: var(--paper); }

.short-story .register-inset {
  border-left: 1px solid rgba(232, 197, 71, 0.5);
  padding-left: 1.75rem;
}

/* Special Elite has no italic — the series fakes it with a 0.21 shear (~12deg) */
.short-story .register-inset p {
  color: var(--inset-gold);
  font-style: oblique 12deg;
}

/* ============ SUBSCRIBE INTERSTITIAL ============ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.subscribe-interstitial {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0;
  text-align: center;
  max-width: 34em;
  margin: 0 auto;
}

.subscribe-slug {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.subscribe-dek {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 26em;
  margin: 0 auto;
}

.subscribe-input {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule);
  border-right: none;
  padding: 0.7rem 1rem;
  outline: none;
}

.subscribe-input::placeholder {
  color: var(--paper-dim);
  opacity: 0.6;
}

.subscribe-input:focus {
  border-color: var(--paper-dim);
}

.subscribe-btn {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.subscribe-btn:hover,
.subscribe-btn:focus-visible {
  background: var(--paper-dim);
  border-color: var(--paper-dim);
}

.index-list--continued {
  border-top: none;
  counter-reset: entry 4;
}

/* Netlify honeypot. Present in the markup for bots, never laid out. */
.subscribe-hp { display: none; }

.subscribe-form[hidden] { display: none; }

.subscribe-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.subscribe-status {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 26em;
  margin: 0.9rem auto 0;
}

.subscribe-status:empty { display: none; }

.subscribe-status.is-error { color: var(--red); }

.subscribe-status-slug {
  font-family: var(--type);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

@media (max-width: 900px) {
  .subscribe-interstitial { padding: 2.5rem 0; }
  .subscribe-form { flex-direction: column; gap: 0.75rem; }
  .subscribe-input { border-right: 1px solid var(--rule); }
  .subscribe-btn { width: 100%; }
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--rule);
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}

.footer-line {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  max-width: 30em;
  margin-bottom: 2.5rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 1.25rem 1.25rem 2.5rem;
    row-gap: 2rem;
  }

  .hero-top { margin-bottom: 1rem; }

  .masthead { font-size: 0.85rem; letter-spacing: 0.28em; }

  .hero-figure {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .hero-title h1 { font-size: clamp(3.25rem, 13vw, 5rem); }

  #veil-skip { right: 1.25rem; bottom: 1.25rem; }

  .index { padding: 2.5rem 1.25rem 4rem; }

  .index-eyebrow { padding-bottom: 2rem; }

  .index-list li {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    padding: 2rem 2.5rem 2rem 0;
  }

  .index-list li:has(.entry-thumb) { grid-template-columns: 1fr; }

  .entry-thumb {
    grid-column: 1;
    grid-row: auto;
    order: -1;
    align-self: auto;
    aspect-ratio: 16 / 7;
    margin-bottom: 0.5rem;
  }

  .entry-thumb img {
    -webkit-mask-image: linear-gradient(to top, transparent, black 18%);
            mask-image: linear-gradient(to top, transparent, black 18%);
  }

  /* no hover on touch: the reserved accent becomes a short persistent
     hairline so the tricolour exists where most readers are */
  .index-list li::before { width: 2.5rem; }
  .index-list li:hover::before,
  .index-list li:active::before { width: 6rem; }

  .index-list li::after { top: 2.1rem; }

  .article-nav-inner { padding: 0.9rem 1.25rem; }
  .article-nav .masthead { font-size: 0.7rem; letter-spacing: 0.2em; }

  .article { padding: 3rem 1.25rem 3.5rem; }
  .article-onward { padding: 2.5rem 1.25rem; gap: 2.5rem; }
  .onward-link.next { text-align: left; margin-left: 0; }
  .article-body blockquote { padding-left: 1.25rem; }

  .shorts { padding: 2.5rem 1.25rem 4rem; }
  .section-tabs { gap: 1.25rem; row-gap: 0; }
  .short-head { grid-template-columns: 1fr; }
  .short-page { max-width: 100%; }
  .short-plate { max-width: 100%; }
  .short-story .register p { font-size: 1.15rem; }
  .short-story .register-inset { padding-left: 1.25rem; }
}


/* ═══════════════════════════════════════════════════════════════════════
   INVISIBLE INK — records uploaded but still in edit.
   The title publishes; the manuscript stays undeveloped. Move a cursor
   across the column and the ink comes up under it, reading ARTICLE IN
   PROGRESS. Degrades to a static overprint with no JS and on touch.
   Applied to PB-ORIG-007 and every record after it.

   Tile is 248x92 and the phrase inside it is ~210px, so the 220px torch
   radius always contains at least one whole phrase — never a fragment.
   ═══════════════════════════════════════════════════════════════════════ */

.ink-wrap {
  position: relative;
  isolation: isolate;
}

/* The manuscript is present but unreadable — and inert: no selection,
   no pointer, no assistive-tech exposure. Only the title is published. */
.ink-wrap .article-body {
  filter: blur(7px) saturate(0.2) contrast(0.75);
  opacity: 0.30;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.ink-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ink-veil::before,
.ink-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27248%27%20height%3D%2792%27%3E%3Ctext%20x%3D%274%27%20y%3D%2752%27%20font-family%3D%27Courier%20New%2CCourier%2Cmonospace%27%20font-size%3D%2713%27%20letter-spacing%3D%273.1%27%20fill%3D%27%2523F4F1EA%27%3EARTICLE%20IN%20PROGRESS%3C%2Ftext%3E%3C%2Fsvg%3E");
  background-repeat: repeat;
}

/* the ink at rest — barely there */
.ink-veil::before { opacity: 0.08; }

/* the ink developed by the torch, following the cursor */
.ink-veil::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27248%27%20height%3D%2792%27%3E%3Ctext%20x%3D%274%27%20y%3D%2752%27%20font-family%3D%27Courier%20New%2CCourier%2Cmonospace%27%20font-size%3D%2713%27%20letter-spacing%3D%273.1%27%20fill%3D%27%2523E8C547%27%3EARTICLE%20IN%20PROGRESS%3C%2Ftext%3E%3C%2Fsvg%3E");
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle 220px at var(--ink-x, -9999px) var(--ink-y, -9999px),
    #000 0%, #000 34%, rgba(0,0,0,0.55) 62%, transparent 82%);
          mask-image: radial-gradient(circle 220px at var(--ink-x, -9999px) var(--ink-y, -9999px),
    #000 0%, #000 34%, rgba(0,0,0,0.55) 62%, transparent 82%);
}

/* ── the standing notice ─────────────────────────────────────────────── */

.ink-stamp {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 2.5rem 0 2.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--inset-gold);
}

.ink-stamp::before,
.ink-stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(232, 197, 71, 0.34);
}

.ink-stamp span {
  flex: 0 0 auto;
  border: 1px solid rgba(232, 197, 71, 0.45);
  padding: 0.5rem 1rem;
}

.ink-hint {
  margin: -1.5rem 0 2.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* only offer the instruction where a cursor actually exists */
@media (hover: hover) and (pointer: fine) {
  .ink-wrap:hover .ink-hint { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  .ink-hint { transition: none; }
}

/* touch and no-JS: no torch, so raise the resting ink into legibility */
.ink-veil.is-static::before { opacity: 0.17; }
.ink-veil.is-static::after  { display: none; }

@media (max-width: 700px) {
  .ink-stamp { gap: 0.7rem; font-size: 0.68rem; letter-spacing: 0.16em; }
  .ink-stamp span { padding: 0.45rem 0.7rem; }
  .ink-hint { display: none; }
}

/* credit line inside a figure caption — set below the label, at reduced
   weight. Records whose art is cleared carry the credit here rather than
   deferring it to the editor's note. */
.article-figure figcaption .figure-credit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(244, 241, 234, 0.42);
}


/* ═══════════════════════════════════════════════════════════════════════
   INVISIBLE-INK PORTRAIT PLATES — the same torch, turned on photographs.
   A portrait arrives undeveloped: blurred, drained, sunk under the grain,
   with the sitter's name overprinted across it. Move a cursor over the
   plate and the picture comes up under it, the way a print comes up in
   the tray. Lift the cursor and it goes back down.

   Lineage: .ink-wrap develops TYPE under the torch; .ink-plate develops
   an IMAGE. Both read --ink-x / --ink-y, both fall back through
   .is-static on touch and with JS off. Applied first to PB-ORIG-012.
   ═══════════════════════════════════════════════════════════════════════ */

.ink-plate { margin: 3rem 0; }

.ink-plate .plate-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #050505;
  isolation: isolate;
}

.ink-plate .plate-frame img {
  display: block;
  width: 100%;
  /* tall portraits get cropped to a plate rather than running the page —
     the developed layer covers the same box, so both stay in register */
  max-height: 620px;
  object-fit: cover;
  object-position: center 28%;
  /* undeveloped: the picture is present but has not come up yet */
  filter: blur(9px) grayscale(1) contrast(0.62) brightness(0.72);
  opacity: 0.34;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

/* the developed copy, painted only where the torch is */
.ink-plate .plate-dev {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 190px at var(--ink-x, -9999px) var(--ink-y, -9999px),
    #000 0%, #000 40%, rgba(0,0,0,0.5) 68%, transparent 86%);
          mask-image: radial-gradient(circle 190px at var(--ink-x, -9999px) var(--ink-y, -9999px),
    #000 0%, #000 40%, rgba(0,0,0,0.5) 68%, transparent 86%);
}

/* the sitter's name overprinted across the undeveloped plate, in the
   same gold as ARTICLE IN PROGRESS. Fades back as the picture arrives. */
.ink-plate .plate-name {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--inset-gold);
  opacity: 0.82;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-shadow: 0 0 12px rgba(0,0,0,0.85);
}

.ink-plate .plate-frame:hover .plate-name { opacity: 0.16; }

/* film grain over the whole plate, developed or not */
.ink-plate .plate-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27140%27%20height%3D%27140%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%274%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27140%27%20height%3D%27140%27%20filter%3D%27url(%23n)%27%20opacity%3D%270.55%27%2F%3E%3C%2Fsvg%3E");
}

/* touch and no-JS: no torch to develop with, so hand over the picture.
   .is-static is the markup default — JS strips it where a cursor exists. */
.ink-plate .plate-frame.is-static img {
  filter: grayscale(0.35) contrast(0.95);
  opacity: 0.92;
}
.ink-plate .plate-frame.is-static .plate-dev { display: none; }
.ink-plate .plate-frame.is-static .plate-name { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ink-plate .plate-frame img,
  .ink-plate .plate-name { transition: none; }
}

/* ── plates with no cleared portrait behind them ─────────────────────── */

.ink-plate.is-unfilled .plate-frame {
  border-style: dashed;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.ink-plate.is-unfilled .plate-empty {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.9;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.ink-plate.is-unfilled .plate-empty strong {
  display: block;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--inset-gold);
  margin-bottom: 0.6rem;
}

.ink-plate figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  padding-top: 0.75rem;
}

.ink-plate figcaption .figure-credit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(244, 241, 234, 0.42);
}

@media (max-width: 700px) {
  .ink-plate .plate-name { font-size: 0.68rem; letter-spacing: 0.16em; }
  .ink-plate.is-unfilled .plate-empty { font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* ============ SUBSCRIBE CONFIRMATION PAGE ============ */

.thanks {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 34em;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.thanks-acc {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1.5rem;
}

.thanks-slug {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 1rem;
}

.thanks-dek {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--paper-mid);
  margin-bottom: 2.5rem;
}

.thanks-back a {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  transition: border-color 200ms ease;
}

.thanks-back a:hover,
.thanks-back a:focus-visible { border-bottom-color: var(--paper); }
