@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --sans: "Inter Tight", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

body,
.masthead,
.mark,
.nav,
.lang,
.subscribe,
.tagline,
.byline,
.eyebrow,
.meta,
.text-link,
.manifesto-link,
.footer {
  font-family: var(--sans);
}

.card h2,
.hero-statement,
.section-title,
.manifesto-lead,
.newsletter h3,
.article-shell h1,
.article-shell p,
.deck {
  font-family: var(--serif);
}

.masthead {
  font-weight: 720;
  line-height: .88;
  letter-spacing: -.065em;
}

html[lang="es"] .masthead {
  font-size: clamp(62px, 6.2vw, 108px);
  letter-spacing: -.075em;
}

.header-row { gap: 16px; }
.nav { gap: 14px; }
.nav a { font-size: 10px; white-space: nowrap; }

.portrait::before,
.portrait::after { border-color: rgba(91, 43, 217, .24); z-index: -2; }
.portrait::before { width: 430px; height: 430px; left: -70px; top: 8px; }
.portrait::after { width: 300px; height: 300px; left: 18px; top: 80px; box-shadow: 42px 40px 70px rgba(91, 43, 217, .2); }

.portrait img {
  width: 115%;
  max-width: none;
  height: 465px;
  margin-left: -8%;
  object-fit: cover;
  object-position: center 20%;
  clip-path: none;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.12) brightness(1.12);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .nav.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; background: var(--bg); padding: 24px; flex-direction: column; border-bottom: 1px solid var(--border); }
  .nav.open a { font-size: 13px; }
}

@media (max-width: 980px) { .masthead { line-height: .9; } }
@media (max-width: 680px) {
  .masthead { line-height: .92; letter-spacing: -.05em; }
  .portrait img { height: 390px; width: 112%; margin-left: -6%; object-position: center 18%; }
}

.lead-story {
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.lead-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lead-story-visual {
  min-height: 430px;
  overflow: hidden;
}

.lead-story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.lead-story-copy h2 {
  margin: 10px 0 20px;
  font: 500 clamp(42px, 4.5vw, 72px)/.94 var(--serif);
  letter-spacing: -.035em;
}

.lead-story-copy .lead-deck {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font: 400 18px/1.5 var(--serif);
}

.lead-story-copy .meta {
  margin: 24px 0 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .lead-story-grid { grid-template-columns: 1fr; }
  .lead-story-visual { min-height: 300px; aspect-ratio: 16/9; }
  .lead-story-copy { padding: 32px; }
}

@media (max-width: 680px) {
  .lead-story { padding: 22px 0; }
  .lead-story-grid { min-height: 0; }
  .lead-story-visual { min-height: 220px; }
  .lead-story-copy { padding: 25px 22px 30px; }
  .lead-story-copy h2 { font-size: 42px; }
}

[hidden] { display: none !important; }

.filter-notice {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.filter-notice strong { color: var(--violet); }
.topics a { text-decoration: none; }
.topics a:hover { color: var(--violet); }

.archive-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.archive-heading h2 {
  margin: 0;
  font: 500 clamp(44px, 6vw, 76px)/.95 var(--serif);
  letter-spacing: -.035em;
}

.archive-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.archive-card-body { padding: 20px; }
.archive-card h3 { margin: 8px 0 14px; font: 500 28px/1.02 var(--serif); }
.archive-card p { color: var(--muted); font-size: 14px; }

.founder-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 36px;
}

.founder-cover {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 11px;
}

.story-list { display: grid; gap: 0; }
.story-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font: 500 23px/1.15 var(--serif);
}
.story-list a span { flex: 0 0 auto; color: var(--violet); font: 700 12px/1.5 var(--sans); text-transform: uppercase; }

.outlet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.outlet-grid a {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 750;
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-heading, .founder-layout { grid-template-columns: 1fr; }
  .outlet-grid { grid-template-columns: 1fr 1fr; }
  .founder-cover { min-height: 300px; max-height: 520px; }
}

@media (max-width: 680px) {
  .archive-section { padding: 52px 0; }
  .outlet-grid { grid-template-columns: 1fr; }
  .story-list a { font-size: 20px; }
}

/* Long-form articles */
.article-shell.long-read {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 0 96px;
}

.long-read .article-header {
  max-width: 980px;
  margin: 0 auto 38px;
}

.long-read .article-header h1 {
  max-width: 16ch;
  margin: 12px 0 22px;
  font: 500 clamp(52px, 8vw, 104px)/.91 var(--serif);
  letter-spacing: -.05em;
}

.long-read .deck {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--muted);
  font: 500 clamp(22px, 2.7vw, 32px)/1.22 var(--serif);
}

.long-read .hero-image {
  display: block;
  width: 100%;
  max-height: 680px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.original-publication,
.article-source {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 28px auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 750;
}

.original-publication a,
.article-source a {
  color: var(--violet);
  text-decoration: none;
}

.article-body {
  max-width: 800px;
  margin: 54px auto 0;
}

.article-body p,
.article-body li {
  color: var(--ink);
  font: 400 clamp(20px, 2vw, 23px)/1.62 var(--serif);
}

.article-body p { margin: 0 0 1.35em; }

.article-figure {
  margin: 42px 0;
}

.article-inline-image {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 10px;
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font: 12px/1.45 var(--sans);
}

.article-body h2 {
  margin: 2.2em 0 .7em;
  font: 500 clamp(34px, 4vw, 50px)/1 var(--serif);
  letter-spacing: -.035em;
}

.article-body ul {
  margin: 0 0 2em;
  padding-left: 1.35em;
}

.article-body li { margin: 0 0 .65em; }

.article-body .article-question {
  margin-top: 2.2em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.article-source {
  align-items: center;
  margin-top: 62px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.article-source p { margin: 0; }
.language-unavailable { opacity: .35; cursor: help; }

@media (max-width: 680px) {
  .article-shell.long-read { width: min(100% - 28px, 1180px); padding-top: 42px; }
  .long-read .article-header h1 { font-size: clamp(44px, 14vw, 68px); }
  .original-publication, .article-source { flex-direction: column; gap: 8px; }
  .article-body { margin-top: 38px; }
}
