*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-accent: #1e40af;
  --color-accent-hover: #1d4ed8;
  --color-bg: #faf7f2;
  --color-bg-subtle: #f2ece3;
  --color-border: #e0d9cf;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 720px;
  --max-width-wide: 1040px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ── Site header ── */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: var(--color-text);
}

.site-title a:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ── Home hero ── */

.home-hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.home-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.home-hero .tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.65;
}

.home-hero .tagline a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Article list ── */

.section {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.article-list {
  list-style: none;
}

.article-item {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.article-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.article-item::after {
  content: "";
  display: block;
  clear: both;
}

.article-thumb {
  float: right;
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0.1rem 0 0.75rem 1.25rem;
  display: block;
  background: var(--color-bg-subtle);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-item h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-item h2 a {
  color: var(--color-text);
}

.article-item h2 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.875rem;
  max-width: 600px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Section banner (full-width image below hero) ── */

.section-banner {
  border-bottom: 1px solid var(--color-border);
  line-height: 0;
}

.section-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: cover;
  object-position: center 40%;
}

/* ── About strip ── */

.about-strip {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.about-strip p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about-strip a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Article page header ── */

.article-header {
  padding: 4rem 0 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
}

.back-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

.article-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.article-lang .back-link {
  margin-bottom: 0;
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.2em 0.55em;
}

.lang-switch:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.byline-dot {
  color: var(--color-border);
}

/* ── Article body ── */

.article-body {
  padding: 3rem 0 4rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-body blockquote strong {
  font-style: normal;
  color: var(--color-text);
}

.article-body figure {
  margin: 2.25rem 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-series-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: #eff6ff;
  border-radius: 3px;
  padding: 0.2em 0.55em;
}

.article-sign {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.article-sign a {
  color: var(--color-text-muted);
}

/* ── Site footer ── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer .container--wide {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--color-text-muted);
}

.footer-legal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Contact form ── */

.contact-form {
  margin-top: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  height: 160px;
  resize: vertical;
}

.contact-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-form .checkbox-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.contact-form button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.contact-form button[type="submit"]:hover {
  background: var(--color-accent-hover);
}

.contact-success {
  display: none;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* ── Sector filter bar ── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.3em 0.75em;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.filter-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.filter-btn.active {
  color: var(--color-accent);
  background: #eff6ff;
  border-color: var(--color-accent);
}

/* ── Sector card grid ── */

.sector-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.sector-card {
  display: flex;
  flex-direction: column;
}

.sector-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: var(--color-bg-subtle);
  margin-bottom: 0.875rem;
}

.sector-card__meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.sector-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.sector-card h2 a {
  color: var(--color-text);
}

.sector-card h2 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.sector-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* ── Featured sectors (landing page) ── */

.featured-sectors {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .article-thumb {
    display: none;
  }
}

@media (max-width: 768px) {
  .sector-grid,
  .featured-sectors {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .home-hero {
    padding: 3rem 0 2.5rem;
  }

  .home-hero h1 {
    font-size: 2.1rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .site-header .container--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-footer .container--wide {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }

  .sector-grid,
  .featured-sectors {
    grid-template-columns: 1fr;
  }
}

/* ── Share bar ── */

.share-bar {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.share-bar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1.5;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ── News index ── */

.news-index-header {
  padding: 4rem 0 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.news-index-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* ===================================================
   SOURCES PAGE
   =================================================== */

.sources-body {
  padding: 3rem 0 4rem;
}

.sources-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
}

.sources-intro a {
  color: var(--color-accent);
  text-decoration: underline;
}

.sources-intro code {
  font-family: monospace;
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: #374151;
}

.sources-group {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.sources-group:last-of-type {
  border-bottom: none;
}

.sources-group__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.sources-list {
  list-style: decimal;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sources-list li {
  line-height: 1.6;
}

.sources-list li strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.sources-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.sources-list li a {
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
}

.sources-list li a:hover {
  text-decoration: underline;
}

.sources-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ===================================================
   END SOURCES PAGE
   =================================================== */

.page-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-top: 0.5rem;
}

.news-label {
  background: #fff7ed;
  color: #c2410c;
}

.news-date {
  font-weight: 700;
  color: var(--color-text);
}

.nav-active {
  color: var(--color-text) !important;
  font-weight: 700;
}

/* ── Language toggle (header) ── */

.lang-toggle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25em 0.6em;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-muted);
  margin-left: 1.25rem;
  flex-shrink: 0;
  text-decoration: none;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.site-header .container--wide {
  /* already flex — just ensure lang-toggle aligns */
}

/* ── Nav separator + series link ── */
.nav-sep {
  color: var(--color-border);
  margin: 0 0.2rem;
  user-select: none;
  font-weight: 300;
}

.nav-series {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-series:hover {
  text-decoration: underline;
}

/* ── The Great Return — feature block ── */
.great-return-feature {
  background: #111827;
  padding: 3.5rem 0;
}

.great-return-feature .container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.great-return-feature__img {
  flex: 0 0 340px;
  margin: 0;
}

.great-return-feature__img img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

.great-return-feature__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  margin: 0 0 0.75rem;
}

.great-return-feature__text h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #f9fafb;
}

.great-return-feature__text h2 a {
  color: #f9fafb;
  text-decoration: none;
}

.great-return-feature__text h2 a:hover {
  text-decoration: underline;
  color: #93c5fd;
}

.great-return-feature__text p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.great-return-feature .read-more {
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 0.6em 1.1em;
}

.great-return-feature .read-more:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .great-return-feature .container {
    flex-direction: column;
  }
  .great-return-feature__img {
    flex: none;
    width: 100%;
  }
  .great-return-feature__text h2 {
    font-size: 1.35rem;
  }
}
