@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap");

:root {
  --orange: #e94c16;
  --orange-light: #f26a3a;
  --dark: #1a1a1a;
  --dark2: #222222;
  --grey: #565655;
  --grey-light: #888887;
  --beige: #f8f5f1;
  --white: #ffffff;
  --card-bg: #fdfaf7;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --header-h: 72px;
  --max: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--beige);
  color: var(--dark);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.waves {
  background-image: repeating-linear-gradient(
    -35deg,
    transparent 0 52px,
    rgba(233, 76, 22, 0.16) 52px 80px
  );
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.brand-tag {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  width: fit-content;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 11px;
  transition: 0.2s ease;
}

.nav-toggle span {
  top: 20px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--orange-light);
}

.btn-ghost {
  background: transparent;
  color: var(--orange) !important;
  border: 1px solid rgba(233, 76, 22, 0.35);
}

.btn-ghost:hover {
  background: rgba(233, 76, 22, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark2);
  color: var(--white);
  padding: 72px 0 80px;
}

.hero .waves {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--orange);
}

.hero-lead {
  max-width: 640px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.hero-meta dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.hero-meta dd {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-meta dd:last-child {
  margin-bottom: 0;
}

.topics {
  background: var(--orange);
  padding: 12px 0;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.topics-list a {
  text-decoration: none;
}

.topics-list a:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section h2,
.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.intro-text {
  max-width: 760px;
  font-size: 18px;
  color: var(--grey);
}

.intro-text strong {
  color: var(--dark);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.card-grid.four {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
}

.card.featured {
  background: var(--dark2);
  color: var(--white);
  min-height: 100%;
}

.card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card p {
  color: var(--grey);
  font-size: 15px;
  flex: 1;
}

.card.featured p {
  color: rgba(255, 255, 255, 0.65);
}

.card-more {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 48px 0 8px;
}

.kpi-card {
  background: var(--dark2);
  color: var(--white);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

.kpi-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.6px;
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Portrait teaser ---------- */
.portrait-band {
  background: var(--dark2);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.portrait-band .waves {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.portrait-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  border: 3px solid var(--orange);
  flex-shrink: 0;
}

.portrait-inner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.portrait-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.portrait-inner p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-light);
}

.cta-inner strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.cta-inner strong span {
  color: var(--orange);
}

/* ---------- Article pages ---------- */
.page-hero {
  background: var(--dark2);
  color: var(--white);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero .waves {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.crumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 10px 0 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 48px;
  align-items: start;
  padding: 48px 0 72px;
}

.chapo {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: rgba(233, 76, 22, 0.06);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
}

.article-body {
  font-size: 17px;
  color: var(--grey);
  margin-bottom: 24px;
}

.article-body strong {
  color: var(--dark);
}

.facts {
  list-style: none;
  margin-bottom: 28px;
}

.facts li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
}

.facts li::before {
  content: "▪";
  color: var(--orange);
  flex-shrink: 0;
}

.facts li strong {
  color: var(--dark);
}

.reco {
  display: flex;
  gap: 12px;
  background: rgba(233, 76, 22, 0.05);
  border: 1px solid rgba(233, 76, 22, 0.15);
  border-radius: 10px;
  padding: 18px 16px;
  font-weight: 600;
}

.reco-arrow {
  color: var(--orange);
  flex-shrink: 0;
}

.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.side-card h2 {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.side-card a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-card a:last-of-type {
  border-bottom: 0;
}

.side-card a:hover {
  color: var(--orange);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.article-nav a {
  text-decoration: none;
  font-weight: 800;
  color: var(--orange);
}

/* ---------- Portrait page ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.profile-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
}

.profile-item dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.profile-item dd {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}

.profile-hero .avatar {
  width: 120px;
  height: 120px;
  font-size: 34px;
}

/* ---------- Sources ---------- */
.sources {
  list-style: none;
  display: grid;
  gap: 8px;
}

.sources li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 28px;
  color: var(--grey);
  position: relative;
}

.sources li::before {
  content: "—";
  position: absolute;
  left: 12px;
  color: var(--orange);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark2);
  color: var(--white);
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.site-footer .waves {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--orange);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.site-footer h3 {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .article-layout,
  .footer-inner,
  .portrait-inner,
  .card-grid,
  .card-grid.four,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .portrait-inner {
    justify-items: start;
  }

  .side-card {
    position: static;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--dark2);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav .btn {
    margin-top: 10px;
    justify-content: center;
  }

  .hero,
  .page-hero,
  .section,
  .portrait-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
