/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --paper:      #EDEAE1;
  --paper-dim:  #E3DFD1;
  --ink:        #1C1B18;
  --slate:      #55524C;
  --line:       #C9C3B4;
  --wire-red:   #A93226;
  --wire-red-dim: #8A2A20;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-w: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
  z-index: 100; font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: var(--pad); top: var(--pad); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--wire-red);
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: #D98A80; }

.section-head { max-width: 680px; margin: 0 auto 3rem; padding: 0 var(--pad); text-align: left; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.section-sub { margin-top: 0.85rem; color: var(--slate); font-size: 1.05rem; }

.frame-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  background: var(--paper-dim);
  border: 1px dashed var(--line);
  padding: 0.4rem 0.6rem;
  display: inline-block;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--pad);
  position: sticky;
  top: 0;
  background: rgba(237, 234, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--slate);
  position: relative;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--wire-red);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.dateline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--wire-red); }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--slate);
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  display: inline-block;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--wire-red); border-color: var(--wire-red); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-media-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 320px; }
}

/* =========================================================
   TICKER (signature element)
   ========================================================= */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
}
.ticker-track {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  will-change: transform;
}
.ticker-track > * { padding-right: 0.4em; color: inherit; text-decoration: none; display: inline-block; }
.ticker-track > *:nth-child(odd) { color: #E8A79D; }
.ticker-track a:hover,
.ticker-track a:focus-visible { text-decoration: underline; }
.ticker-credit {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate);
  padding: 0.5rem var(--pad) 0;
}
.ticker-credit a { color: var(--wire-red); text-decoration: none; }
.ticker-credit a:hover { text-decoration: underline; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { max-width: var(--max-w); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo {
  aspect-ratio: 3 / 4;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center;
}
.about-copy p { color: var(--slate); font-size: 1.05rem; margin-bottom: 1.1rem; max-width: 60ch; }
.fact-strip {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}
.fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--wire-red);
  margin-bottom: 0.25rem;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) 0; }
.services .section-head { max-width: 680px; }
.services .eyebrow { color: #E8A79D; }
.services .section-sub { color: #B9B5AB; }
.service-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #3A3833;
  border: 1px solid #3A3833;
}
.service-card {
  background: var(--ink);
  padding: 2rem 1.5rem;
}
.service-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--wire-red);
  border: 1px solid #4A473F;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 500; }
.service-card p { color: #B9B5AB; font-size: 0.92rem; }
.service-note {
  max-width: var(--max-w); margin: 2.5rem auto 0; padding: 0 var(--pad);
  font-family: var(--font-mono); font-size: 0.8rem; color: #8B877D;
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* Researchers section — same layout as .services, recoloured to match .podcast */
.services-red { background: var(--wire-red-dim); }
.services-red .eyebrow-light { color: #F0BBB2; }
.services-red .section-sub { color: #F0DEDA; }
.services-red .service-grid { background: rgba(0, 0, 0, 0.18); border-color: rgba(0, 0, 0, 0.18); }
.services-red .service-card { background: var(--wire-red-dim); }
.services-red .service-mark { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.services-red .service-card p { color: #F0DEDA; }

/* =========================================================
   WORK / DISPATCHES
   ========================================================= */
.work { max-width: var(--max-w); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.dispatch-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.dispatch-card {
  position: relative;
  border: 1px solid var(--line);
  background: #F4F2EC;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dispatch-card.is-visible { opacity: 1; transform: translateY(0); }
.dispatch-card:hover { border-color: var(--ink); }
.dispatch-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dispatch-media { min-height: 100%; }
.video-embed { position: relative; height: 100%; min-height: 220px; background: var(--paper-dim); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .frame-tag { position: absolute; inset: 1rem; margin: auto; height: fit-content; }
.dispatch-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--slate); }
.dispatch-body h3 { font-size: 1.2rem; font-weight: 500; }
.dispatch-body > p:not(.dispatch-meta) { color: var(--slate); font-size: 0.95rem; }
.dispatch-link {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--wire-red);
  width: fit-content;
}
.dispatch-link:hover { text-decoration: underline; }
.dispatch-body audio { width: 100%; margin-top: 0.4rem; }
.frame-tag-inline { margin-top: 0.35rem; }

.stamp {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border: 1.5px solid currentColor;
  transform: rotate(4deg);
  z-index: 2;
}
.stamp-print { color: var(--ink); }
.stamp-video { color: var(--wire-red); }
.stamp-audio { color: #5B6B8C; }
.stamp-tv { color: #4F7A5E; }
.stamp-newsletter { color: #8A5FB0; }

@media (max-width: 860px) {
  .dispatch-grid { grid-template-columns: 1fr; }
  .dispatch-featured { grid-template-columns: 1fr; }
}

/* =========================================================
   PODCAST — Warsaw Wire
   ========================================================= */
.podcast { background: var(--wire-red-dim); color: #FBEAE7; padding: clamp(4rem, 8vw, 7rem) 0; }
.podcast-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.podcast-head { max-width: 640px; }
.podcast .eyebrow-light { color: #F0BBB2; }
.podcast-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); color: #fff; }
.podcast-sub { margin-top: 1rem; color: #FBEAE7; opacity: 0.92; font-size: 1.05rem; }
.podcast-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.podcast-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: #FBEAE7;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.6rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.podcast-link:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.podcast-episodes {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.episode-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.episode-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; opacity: 0.8; }
.episode-card h3 { font-size: 1.05rem; font-weight: 500; color: #fff; }
.episode-card p { color: #F0DEDA; font-size: 0.9rem; }
.episode-card .dispatch-link { color: #fff; }
.episode-card .dispatch-link:hover { opacity: 0.85; }

.podcast-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #E3B3AA;
}
.podcast-note code {
  background: rgba(0,0,0,0.2);
  padding: 0.1rem 0.35rem;
}

@media (max-width: 860px) {
  .podcast-episodes { grid-template-columns: 1fr; }
}

/* =========================================================
   REVIEWS / REFERENCES
   ========================================================= */
.reviews { max-width: var(--max-w); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  margin: 0;
  border: 1px solid var(--line);
  background: #F4F2EC;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.review-card blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid var(--wire-red);
}
.review-card figcaption { display: flex; flex-direction: column; font-family: var(--font-mono); }
.review-name { font-size: 0.85rem; color: var(--ink); }
.review-role { font-size: 0.72rem; color: var(--slate); margin-top: 0.2rem; }

@media (max-width: 860px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   OUTLETS
   ========================================================= */
.outlets {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.outlets-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--slate); margin-bottom: 1.25rem;
}
.outlets-list {
  display: flex; flex-wrap: wrap; gap: 2rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--paper); padding: clamp(4rem, 9vw, 7rem) var(--pad); }
.contact-inner { max-width: 680px; margin: 0 auto; text-align: left; }
.contact .eyebrow-light { color: #E8A79D; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); color: #FFF; }
.contact-sub { margin-top: 1rem; color: #B9B5AB; }
.contact-methods {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
.contact-method {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid #3A3833;
  text-decoration: none;
  color: inherit;
}
.contact-methods > *:last-child { border-bottom: 1px solid #3A3833; }
.contact-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: #B9B5AB; }
.contact-value { font-family: var(--font-mono); font-size: 0.95rem; }
a.contact-method:hover .contact-value { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--pad);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}
.footer-links a { text-decoration: none; color: var(--slate); }
.footer-links a:hover { color: var(--ink); }
