/* self-hosted latin subsets: Fraunces (display), Newsreader (text), IBM Plex Mono (labels) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/Fraunces-400-900-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/Newsreader-400-600-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/Newsreader-400-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   THE REVIEW — Nigel Albert Chimhofu
   A printed-quarterly aesthetic: flat spot inks, hairline rules,
   oversized numerals. No gradients anywhere — solid ink only.
   ============================================================ */

:root {
  --paper:    #EFEAE0;
  --paper-2:  #E5DECE;
  --paper-3:  #D8CFB9;
  --ink:      #17140F;
  --ink-2:    #57503F;
  --ink-3:    #857C6A;
  --rule:     #C9C0AC;

  /* spot inks — one per section of the review */
  --clay:   #C0431A;
  --indigo: #2B3A8C;
  --forest: #14614B;
  --gold:   #A8791A;
  --plum:   #8A2F5C;
  --slate:  #4A4238;

  --accent: var(--clay);
  --on-accent: #F6F2E9;

  --measure: 42rem;
  --rail: 13rem;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 78rem;

  --step: cubic-bezier(.22,.61,.36,1);
  --swift: cubic-bezier(.4,0,.1,1);

  color-scheme: light;
}

[data-theme="ink"] {
  --paper:   #14120E;
  --paper-2: #1E1B15;
  --paper-3: #2A251C;
  --ink:     #EFEAE0;
  --ink-2:   #B5AC98;
  --ink-3:   #837A67;
  --rule:    #3A3428;

  --clay:   #E8623A;
  --indigo: #7B8CE8;
  --forest: #3FA283;
  --gold:   #D8A63A;
  --plum:   #D4699C;
  --slate:  #B0A692;
  --on-accent: #14120E;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--swift), color .4s var(--swift);
}

/* paper grain — noise, not a gradient */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .26; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}
[data-theme="ink"] body::after { mix-blend-mode: screen; opacity: .15; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.display {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 700; line-height: .95;
  letter-spacing: -.02em; text-wrap: balance;
}
.rule { height: 1px; background: var(--rule); border: 0; margin: 2rem 0 1.25rem; }

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

/* ============================================================
   MASTHEAD + NAV
   ============================================================ */
.masthead { padding-top: 1.1rem; }

.masthead__bar {
  display: flex; align-items: center; gap: 1.25rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--rule);
}
.masthead__wordmark { text-decoration: none; flex: 0 0 auto; }
.masthead__wordmark .mono { font-weight: 600; letter-spacing: .2em; }
.masthead__byline { color: var(--ink-3); margin-left: auto; }
@media (max-width: 40rem) { .masthead__byline { display: none; } }

.toggle {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 1px solid var(--rule); color: var(--ink);
  padding: .45rem .75rem; cursor: pointer; flex: 0 0 auto;
  transition: background .2s var(--swift), color .2s var(--swift), border-color .2s var(--swift);
}
.toggle:hover, .toggle:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nameplate {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 900;
  font-size: clamp(3.2rem, 14vw, 12rem);
  line-height: .82; letter-spacing: -.045em;
  margin: clamp(.75rem, 2.5vw, 1.75rem) 0 1rem;
  text-transform: uppercase;
}
.nameplate span { display: block; }

/* nameplate left, standfirst + facts right — fills the width instead of
   leaving a dead column beside the wordmark */
.masthead__plate { display: grid; gap: 0 3rem; align-items: end; }
@media (min-width: 62rem) { .masthead__plate { grid-template-columns: minmax(0, 1fr) 19rem; } }

.masthead__aside { padding-bottom: .5rem; }
.masthead__blurb { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 61.99rem) { .masthead__blurb { max-width: 44rem; } }

.masthead__facts { display: flex; gap: 1.75rem; margin: 0 0 1.5rem; }
.masthead__facts div { display: block; }
.masthead__facts dt { color: var(--ink-3); margin: 0 0 .2rem; }
.masthead__facts dd {
  margin: 0; font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em;
}

/* nav — a broadsheet rule of section names */
.nav { border-top: 1px solid var(--rule); border-bottom: 3px solid var(--ink); }
.nav ul {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 1.5rem; list-style: none; margin: 0; padding: .7rem 0;
}
.nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .2s var(--swift), border-color .2s var(--swift);
}
.nav a:hover { color: var(--ink, currentColor); border-bottom-color: var(--ink); }
.nav a[style*="--ink"]:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
@media (min-width: 58rem) { .hero { grid-template-columns: 1.05fr .95fr; } }

/* the plate is a printed 3:2 composition — show all of it, never crop */
.hero__plate { display: block; background: var(--paper-3); }
.hero__plate img { width: 100%; height: auto; }

.hero__kicker { color: var(--accent); margin-bottom: .9rem; display: block; }
.hero__kicker a { text-decoration: none; border-bottom: 1px solid currentColor; }

.hero__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin: 0 0 .9rem; }
.hero__title a { text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

.hero__standfirst { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 1.25rem; }
.hero__meta { display: flex; gap: 1.5rem; color: var(--ink-3); margin-bottom: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.3rem; text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s var(--swift), color .25s var(--swift), border-color .25s var(--swift);
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn__arrow { transition: transform .25s var(--step); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: none; color: var(--ink); }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ============================================================
   FILTER + CONTENTS
   ============================================================ */
.filter {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 1rem;
}
.filter__label { color: var(--ink-3); }
.filter__chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: none; color: var(--ink-2); border: 1px solid var(--rule);
  padding: .45rem .8rem; cursor: pointer;
  transition: background .2s var(--swift), color .2s var(--swift), border-color .2s var(--swift);
}
.chip:hover { border-color: currentColor; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--chip, var(--ink)); border-color: var(--chip, var(--ink)); color: var(--on-accent); }

.contents { border-top: 3px solid var(--ink); }

.entry {
  position: relative; display: grid;
  grid-template-columns: 3rem 1fr; gap: 0 1rem;
  align-items: baseline; padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; isolation: isolate;
  transition: padding-inline .35s var(--step), color .25s var(--swift);
}
@media (min-width: 48rem) {
  .entry { grid-template-columns: 3.75rem minmax(0,1fr) 13rem 3.5rem; gap: 0 1.5rem; align-items: center; }
}

.entry::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -1rem;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .42s var(--step);
}
.entry:hover, .entry:focus-visible { color: var(--on-accent); padding-inline: 1rem; outline: none; }
.entry:hover::before, .entry:focus-visible::before { transform: scaleX(1); }
.entry:hover .entry__num, .entry:hover .entry__cat, .entry:hover .entry__year,
.entry:focus-visible .entry__num, .entry:focus-visible .entry__cat, .entry:focus-visible .entry__year { color: var(--on-accent); }

.entry__num { color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .25s var(--swift); }
.entry__title {
  font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 600; font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  line-height: 1.18; letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.entry__cat { color: var(--accent); transition: color .25s var(--swift); }
@media (max-width: 47.99rem) { .entry__cat { grid-column: 2; margin-top: .35rem; } }
.entry__year { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; transition: color .25s var(--swift); }
@media (max-width: 47.99rem) { .entry__year { display: none; } }

.entry--partial .entry__title::after {
  content: "fragment";
  font-family: "IBM Plex Mono", monospace;
  font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase;
  vertical-align: middle; margin-left: .7rem;
  border: 1px solid currentColor; padding: .12rem .38rem; opacity: .6;
}
.entry[hidden] { display: none; }
.contents__empty { padding: 2.5rem 0; color: var(--ink-3); }

/* ============================================================
   PAGE HEAD (sections, essays, about)
   ============================================================ */
.page-head { padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-head__kicker { color: var(--accent); text-decoration: none; display: inline-block; margin-bottom: .9rem; }
a.page-head__kicker:hover { border-bottom: 1px solid currentColor; }
.page-head__title { font-size: clamp(2rem, 5.4vw, 3.9rem); margin: 0; max-width: 20ch; }
.page-head__meta { color: var(--ink-3); margin: 1rem 0 0; }
.page-head__standfirst {
  font-size: 1.25rem; line-height: 1.45; color: var(--ink-2);
  max-width: 44rem; margin: 1.1rem 0 0; text-wrap: pretty;
}
.page-head--essay { border-bottom: 1px solid var(--rule); }

/* plates print at their natural 3:2 — no cropping */
.art-plate { background: var(--paper-3); margin: clamp(1.5rem,3vw,2.25rem) 0 clamp(2rem,4vw,3rem); }
.art-plate img { width: 100%; height: auto; }

/* ============================================================
   ARTICLE — rail + measure, so the page isn't mostly margin
   ============================================================ */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.art-rail { min-width: 0; }
@media (min-width: 62rem) {
  .art-layout {
    grid-template-columns: var(--rail) minmax(0, var(--measure));
    gap: 3.5rem; justify-content: center;
  }
}

.art-rail { font-size: .9375rem; }
.art-rail__inner { display: grid; gap: 1.4rem; }
@media (max-width: 61.99rem) {
  .art-rail__inner {
    grid-auto-flow: column; grid-auto-columns: max-content;
    gap: 1.75rem; overflow-x: auto; padding-bottom: .75rem;
    border-bottom: 1px solid var(--rule);
  }
  .art-rail__portrait { display: none; }
}
@media (min-width: 62rem) { .art-rail__inner { position: sticky; top: 2rem; } }

.art-rail__label { display: block; color: var(--ink-3); margin-bottom: .4rem; }
.art-rail__value { display: block; color: var(--ink-2); line-height: 1.3; }
.art-rail__link { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.art-rail__portrait { width: 3.5rem; height: 3.5rem; border-radius: 50%; margin-bottom: .5rem; }

.art-body { font-size: 1.1875rem; line-height: 1.7; max-width: var(--measure); }
.art-body p { margin: 0 0 1.4rem; }

.art-body p.standfirst { font-size: 1.3rem; line-height: 1.4; color: var(--ink-2); margin-bottom: 1.6rem; text-wrap: pretty; }
.art-body p.lede::first-letter {
  float: left;
  font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 900; font-size: 4em; line-height: .78;
  padding: .04em .1em 0 0; color: var(--accent);
}
.art-body__source { color: var(--ink-3); margin-top: -.75rem; }
.art-body__small { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

.art-body h2, .art-body h3 {
  font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 2.5rem 0 .9rem;
}
.art-body h2 { font-size: 1.6rem; }
.art-body h3 { font-size: 1.3rem; }
.art-body strong { font-weight: 700; }
.art-body em { font-style: italic; }
.art-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

.art-body blockquote { margin: 1.8rem 0; padding-left: 1.4rem; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.art-body ul, .art-body ol { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.art-body li { margin-bottom: .5rem; }
.art-body figure { margin: 2.25rem 0; }
.art-body figure img { width: 100%; border: 1px solid var(--rule); }
.art-body figcaption { margin-top: .5rem; color: var(--ink-3); font-size: .875rem; }

.erratum {
  border: 1px solid var(--accent); border-left-width: 4px;
  padding: 1.1rem 1.35rem; margin: 0 0 2rem; background: var(--paper-2);
}
.erratum p { margin: .45rem 0 0; font-size: 1rem; color: var(--ink-2); }
.erratum .mono { color: var(--accent); }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); z-index: 100; }

.art-nav {
  display: grid; gap: 1px; background: var(--rule);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
@media (min-width: 44rem) { .art-nav { grid-template-columns: 1fr 1fr; } }
.art-nav a { background: var(--paper); padding: 1.5rem 1.35rem; text-decoration: none; transition: background .25s var(--swift), color .25s var(--swift); }
.art-nav a:hover { background: var(--accent); color: var(--on-accent); }
.art-nav a:hover .mono { color: var(--on-accent); }
.art-nav .mono { display: block; color: var(--ink-3); margin-bottom: .45rem; }
.art-nav strong { font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0,"WONK" 1; font-weight: 600; font-size: 1.05rem; line-height: 1.25; display: block; }
.art-nav .next { text-align: right; }
@media (max-width: 43.99rem) { .art-nav .next { text-align: left; } }

/* ============================================================
   ABOUT STRIP (home)
   ============================================================ */
.about-strip { background: var(--ink); color: var(--paper); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.about-strip__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 46rem) { .about-strip__grid { grid-template-columns: 9rem 1fr; } }
.portrait { width: 9rem; height: 9rem; border-radius: 50%; }
.about-strip__label { color: var(--paper); opacity: .5; display: block; margin-bottom: .5rem; }
.about-strip__name { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .75rem; }
.about-strip__blurb { color: var(--paper); opacity: .78; max-width: 40rem; margin: 0 0 1.5rem; }
.about-strip .btn--ghost { color: var(--paper); border-color: rgba(239,234,224,.35); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.foot__label { color: var(--ink-3); display: block; margin-bottom: .75rem; }
.foot__blurb { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 30rem; }
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li { margin-bottom: .4rem; }
.foot__links a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; border-bottom: 1px solid transparent; }
.foot__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot__note { color: var(--ink-3); margin: 0; }

/* ============================================================
   MOTION
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--step), transform .7s var(--step); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
