:root {
  --bg: #09090b;
  --surface: #121216;
  --surface-strong: #17171d;
  --text: #f4f1ea;
  --muted: #acaaa3;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #df7240;
  --container: min(1080px, calc(100vw - 40px));
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(223, 114, 64, 0.12), transparent 28%),
    radial-gradient(circle at 0% 15%, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, #0d0d10 0%, #08080a 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-shell {
  padding: 18px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img,
.footer-logo {
  width: auto;
  height: 28px;
}

.site-nav,
.footer-links,
.meta-row,
.subscribe-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  color: var(--text);
  background: rgba(223, 114, 64, 0.18);
}

.nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero,
.categories,
.latest,
.bottom-signup {
  padding: 56px 0 0;
}

.hero {
  padding-top: 88px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 600;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.02rem;
  margin-top: 20px;
}

.hero-offer {
  max-width: 58ch;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(223, 114, 64, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(223, 114, 64, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-offer-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-offer-copy {
  margin-top: 6px;
}

.subscribe-form {
  margin-top: 22px;
  align-items: stretch;
}

.subscribe-form input {
  min-width: min(320px, 100%);
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.subscribe-feedback {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.subscribe-feedback.is-success {
  color: #d6f5c8;
}

.subscribe-feedback.is-error {
  color: #ffb29b;
}

.button {
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.site-nav a:hover,
.footer-links a:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff7f2;
  background: linear-gradient(135deg, var(--accent), #9f4521);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.issue-card,
.article-shell,
.inline-cta,
.end-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.article-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.filter-block + .filter-block {
  margin-top: 18px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8d87;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row.is-collapsed {
  display: none;
}

.filter-toggle {
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-toggle:hover,
.filter-toggle.is-active {
  color: var(--text);
  background: rgba(223, 114, 64, 0.14);
  transform: translateY(-1px);
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text);
  background: rgba(223, 114, 64, 0.14);
  transform: translateY(-1px);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px 18px;
}

.issue-card {
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 180ms ease;
}

.issue-card:hover {
  transform: translateY(-2px);
}

.issue-card.is-image-missing {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.issue-card.is-image-missing .issue-copy {
  padding-top: 2px;
}

.issue-media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.issue-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.issue-copy,
.related-copy {
  display: grid;
  gap: 8px;
}

.issue-copy h3,
.related-copy h3 {
  font-size: 1.05rem;
  line-height: 1.28;
}

.issue-copy p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.issue-tags,
.article-taxonomy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.tags-open .issue-tags {
  display: flex;
}

.issue-tags {
  display: none;
}

.tag-chip,
.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #c7c4bc;
}

.tag-chip:hover {
  color: var(--text);
  border-color: rgba(223, 114, 64, 0.3);
  background: rgba(223, 114, 64, 0.12);
}

.section-pill {
  color: #fff1e8;
  border-color: rgba(223, 114, 64, 0.28);
  background: rgba(223, 114, 64, 0.16);
}

.issue-meta {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #8f8d87;
}

.site-footer {
  padding: 56px 0 40px;
}

.footer-copyright {
  padding-top: 16px;
}

.footer-copyright p {
  font-size: 0.85rem;
  color: #8f8d87;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-shell {
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.article-page {
  padding: 64px 0 40px;
}

.article-shell {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    #111116;
}

.article-header {
  display: grid;
  gap: 18px;
}

.article-header h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.article-taxonomy {
  margin-top: -4px;
}

.article-subtitle {
  max-width: 62ch;
  font-size: 1.04rem;
}

.article-hero {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px;
}

.article-content {
  max-width: 72ch;
  margin-top: 34px;
}

.article-top-link {
  margin-top: 8px;
  margin-bottom: 10px;
}

.article-top-link a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.article-top-link a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.56);
  transform: translateY(-1px);
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2em 0 0.7em;
  max-width: none;
}

.article-content p {
  margin-top: 1.15em;
}

.inline-cta,
.end-cta {
  margin-top: 32px;
  padding: 24px;
}

.inline-cta {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, rgba(223, 114, 64, 0.16), rgba(255, 255, 255, 0.03));
}

.inline-cta .subscribe-form {
  margin-top: 4px;
}

.inline-cta .subscribe-feedback {
  margin-top: 0;
}

.related-section {
  margin-top: 40px;
}

.related-header h2 {
  max-width: none;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  margin-top: 4px;
}

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

.related-card {
  display: grid;
  gap: 10px;
}

.end-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(223, 114, 64, 0.1));
}

.article-bottom-back {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.article-bottom-back .button {
  min-width: 0;
}

.end-cta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 180ms ease, opacity 180ms ease;
}

.end-cta-logo:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.end-cta-logo img {
  width: auto;
  max-width: none;
  height: 32px;
}

.issue-card.is-hidden {
  display: none;
}

.bottom-signup-shell {
  padding: 28px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-signup-shell h2 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.bottom-signup-shell p {
  max-width: 58ch;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .issue-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .end-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 28px, 1080px);
  }

  .header-shell,
  .footer-shell {
    display: grid;
    justify-content: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }

  .site-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .issue-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    max-width: none;
  }

  .article-shell,
  .inline-cta,
  .end-cta {
    padding: 22px;
  }
}
