/* =========================================================================
   DEEP THINKING — Editorial Magazine
   ========================================================================= */

:root {
  --paper: #F1EBE0;
  --paper-deep: #E8E1D0;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --ink-3: #2A2A2A;
  --muted: #6B6258;
  --muted-2: #8A8276;
  --line: rgba(10, 10, 10, 0.18);
  --line-strong: rgba(10, 10, 10, 0.55);
  --accent: #8B0000;
  --accent-deep: #5C0000;
  --accent-bright: #B8000F;
  --night: #0E0E0E;
  --night-2: #161616;
  --metallic: #C2BDB3;

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 60px);
}

/* =========================================================================
   RESET
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* Paper grain overlay on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

main, header, footer, section { position: relative; z-index: 2; }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

.h-display {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 5.5em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.08em -0.1em 0;
  color: var(--accent);
}

/* =========================================================================
   TOP MASTHEAD BAR
   ========================================================================= */
.masthead-bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.masthead-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.masthead-bar__date { color: var(--muted); }
.masthead-bar__center { color: var(--accent); font-weight: 700; }
.masthead-bar__nav-mini { display: flex; gap: 24px; justify-content: flex-end; }
.masthead-bar__nav-mini a { color: var(--ink); transition: color 0.2s; }
.masthead-bar__nav-mini a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .masthead-bar__date, .masthead-bar__nav-mini { display: none; }
  .masthead-bar__inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   HEADER MASTHEAD (logo + nav)
   ========================================================================= */
.header {
  background: var(--night);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 0, 0, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

.brand__logo {
  height: 56px;
  width: auto;
  filter: brightness(1.05);
}

.brand__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--metallic);
  padding-left: 4px;
}

.nav-main {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav-main a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-main a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent-bright);
  transition: all 0.3s ease;
}

.nav-main a:hover::after, .nav-main a.is-active::after {
  inset: auto 0 0 0;
  width: 100%;
}

.nav-main a:hover { color: var(--metallic); }

.header__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-subscribe {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  transition: all 0.2s;
}

.btn-subscribe:hover {
  background: transparent;
  color: var(--paper);
  border-color: var(--metallic);
}

.menu-toggle { display: none; }

@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night-2);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--paper);
  }
  .header__cta .btn-subscribe { display: none; }
  .brand__tag { display: none; }
  .brand__logo { height: 44px; }
}

/* =========================================================================
   HERO — COVER OF THE MONTH
   ========================================================================= */
.hero {
  padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(50px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__kicker-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 900;
  font-family: var(--serif);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 56ch;
}

.hero__meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.hero__meta strong { color: var(--ink); font-weight: 600; }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-3);
  transition: all 0.25s;
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Cover artwork */
.hero__cover {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  perspective: 1600px;
}

.hero__cover:hover { transform: translateY(-6px); }

.hero__cover-frame {
  position: relative;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.08),
    0 12px 30px -10px rgba(0,0,0,0.25),
    0 30px 60px -20px rgba(0,0,0,0.35);
  transform: rotate(-1.2deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__cover:hover .hero__cover-frame { transform: rotate(0deg) scale(1.015); }

.hero__cover-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}

.hero__cover:hover .hero__cover-frame::before { opacity: 1; }

.hero__cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}

.hero__cover-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 18px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.35);
}

.hero__cover-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 4px;
}

.hero__cover-cta {
  position: relative; z-index: 9999; pointer-events: auto;
  text-decoration: none; color: white; display: flex;
  pointer-events: auto; z-index: 10; cursor: pointer;
  position: absolute;
  inset: auto auto -24px 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
  transition: all 0.3s;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__cover:hover .hero__cover-cta {
  position: relative; z-index: 9999; pointer-events: auto;
  text-decoration: none; color: white; display: flex;
  pointer-events: auto; z-index: 10; cursor: pointer;
  background: var(--accent);
  inset: auto auto -28px 50%;
}

@media (max-width: 880px) {
  .hero__inner { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    display: flex;
    flex-direction: column;
  }
  .hero__copy { order: 1; }
  .hero__cover { 
    order: 2; 
    max-width: 420px; 
    margin: 0 auto; 
    width: 100%;
  }
  .hero__actions { order: 3; margin-top: 20px; justify-content: center; }
  .hero__meta { order: 4; }
  .hero__title { text-align: center; }
  .hero__lede { text-align: center; margin-left: auto; margin-right: auto; }
  .hero__kicker { justify-content: center; }
}

/* =========================================================================
   EDITOR'S LETTER
   ========================================================================= */
.editor-letter {
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.editor-letter__inner {
  max-width: 720px;
  margin: 0 auto;
}

.editor-letter__heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--accent);
  margin-bottom: 28px;
}

.editor-letter__body {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  text-align: left;
  color: var(--ink-2);
  font-weight: 400;
}

.editor-letter__body p { margin: 0 0 1.1em; }
.editor-letter__body p:last-child { margin-bottom: 0; }

.editor-letter__sig {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.editor-letter__sig-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}

.editor-letter__sig-role {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   IN THIS ISSUE
   ========================================================================= */
.in-this-issue {
  padding: clamp(70px, 9vw, 130px) var(--gutter) clamp(50px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

.in-this-issue__inner { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.section-head__left { max-width: 720px; }
.section-head__title { font-size: clamp(32px, 4.5vw, 56px); font-weight: 900; }
.section-head__title em { font-style: italic; font-weight: 400; color: var(--accent); }

.section-head__sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-style: italic;
  color: var(--muted);
  max-width: 50ch;
  margin-top: 14px;
}

.section-head__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.section-head__link:hover { opacity: 0.7; }

.toc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.toc-entry {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.3s;
}

.toc-entry:hover { transform: translateY(-2px); }

.toc-entry__num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: var(--paper-deep);
  -webkit-text-stroke: 1px var(--ink-3);
  letter-spacing: -0.05em;
  margin-bottom: -12px;
}

.toc-entry__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.toc-entry__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}

.toc-entry:hover .toc-entry__title { color: var(--accent); }

.toc-entry__lede {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.toc-entry__byline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 12px;
}

.toc-entry__byline strong { color: var(--ink); font-weight: 600; }

/* TOC layout: feature spans wider */
.toc-entry--feature {
  grid-column: span 7;
  border-top: 4px solid var(--ink);
  padding-top: 24px;
}

.toc-entry--feature .toc-entry__title { font-size: clamp(28px, 2.8vw, 44px); }

.toc-entry:not(.toc-entry--feature) {
  grid-column: span 5;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.toc-entry--col4 {
  grid-column: span 4 !important;
}

.toc-entry--col4 .toc-entry__title { font-size: clamp(20px, 1.6vw, 24px); }

@media (max-width: 880px) {
  .toc-entry--feature, .toc-entry, .toc-entry--col4 { grid-column: span 12 !important; }
}

/* =========================================================================
   PAST ISSUES STRIP
   ========================================================================= */
.past-issues {
  padding: clamp(70px, 9vw, 130px) var(--gutter) clamp(60px, 7vw, 100px);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.past-issues__inner { max-width: var(--maxw); margin: 0 auto; }

.past-issues .section-head { border-color: rgba(255,255,255,0.25); }
.past-issues .section-head__title { color: var(--paper); }
.past-issues .section-head__title em { color: var(--accent-bright); }
.past-issues .section-head__sub { color: var(--metallic); }
.past-issues .section-head__link { color: var(--accent-bright); }

.past-issues__rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.past-issues__rail::-webkit-scrollbar { height: 4px; }
.past-issues__rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
.past-issues__rail::-webkit-scrollbar-thumb { background: var(--accent); }

.past-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.past-card:hover { transform: translateY(-6px); }

.past-card__cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
  position: relative;
}

.past-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.past-card:hover .past-card__cover img { transform: scale(1.04); }

.past-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--metallic);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.past-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--paper);
}

/* =========================================================================
   FEATURED ARTICLES
   ========================================================================= */
.featured-articles {
  padding: clamp(70px, 9vw, 130px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.featured-articles__inner { max-width: var(--maxw); margin: 0 auto; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}

.feat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  transition: transform 0.3s;
}

.feat-card:hover { transform: translateY(-3px); }

.feat-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.feat-card__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.feat-card:hover .feat-card__title { color: var(--accent); }

.feat-card__excerpt {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.feat-card__byline {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}

.feat-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.feat-card__byline strong { font-weight: 600; color: var(--ink); }

@media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   CONTRIBUTORS
   ========================================================================= */
.contributors {
  padding: clamp(70px, 9vw, 130px) var(--gutter);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.contributors__inner { max-width: var(--maxw); margin: 0 auto; }

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.contrib {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contrib__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contrib__role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.contrib__bio {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 980px) { .contrib-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .contrib-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter {
  padding: clamp(70px, 9vw, 130px) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.newsletter__inner { max-width: 720px; margin: 0 auto; }

.newsletter__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.newsletter__title em { font-style: italic; font-weight: 400; color: var(--accent-bright); }

.newsletter__lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--metallic);
  margin-bottom: 36px;
}

.newsletter__form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1.5px solid var(--paper);
}

.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  padding: 16px 0;
  outline: none;
}

.newsletter__form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter__form button {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--paper);
  padding: 16px 0 16px 18px;
  transition: color 0.2s;
}

.newsletter__form button:hover { color: var(--accent-bright); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--night);
  color: var(--paper);
  padding: clamp(60px, 7vw, 100px) var(--gutter) 32px;
}

.footer__inner { max-width: var(--maxw); margin: 0 auto; }

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__brand img { height: 56px; width: auto; }

.footer__brand-text {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--metallic);
  max-width: 36ch;
}

.footer__col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 18px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--paper); transition: color 0.2s; }
.footer__col a:hover { color: var(--accent-bright); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--metallic);
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

/* =========================================================================
   FLIPBOOK MODAL
   ========================================================================= */
.modal-flipbook {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.modal-flipbook.is-open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-flipbook__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 90vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-flipbook__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.modal-flipbook__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-flipbook__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.modal-flipbook__close {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--paper);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-flipbook__close:hover { background: var(--accent); border-color: var(--accent); }

.modal-flipbook__frame {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.modal-flipbook__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================================
   ARCHIVE PAGE
   ========================================================================= */
.archive-hero {
  padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(40px, 5vw, 70px);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
}

.archive-hero__inner { max-width: var(--maxw); margin: 0 auto; }

.archive-hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.archive-hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }

.archive-hero__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink-2);
}

.archive-list {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}

.archive-list__inner { max-width: var(--maxw); margin: 0 auto; }

.archive-year {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}

.archive-year:first-child { border-top: 0; padding-top: 0; }

.archive-year__label {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  position: sticky;
  top: 110px;
  align-self: start;
}

.archive-year__label small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 2px;
}

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

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.3s;
}

.archive-card:hover { transform: translateY(-4px); }

.archive-card__cover {
  aspect-ratio: 3/4;
  background: var(--paper-deep);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
  overflow: hidden;
}

.archive-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.archive-card__date {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.archive-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

@media (max-width: 880px) {
  .archive-year { grid-template-columns: 1fr; }
  .archive-year__label { position: static; }
  .archive-year__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .archive-year__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.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;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
