/* ==========================================================================
   West Industry Consulting Group — stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Madera';
  src: url('../fonts/madera.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Averta';
  src: url('../fonts/AvertaDemoPE-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;

  --primary: 207 36% 36%;
  --primary-foreground: 0 0% 100%;
  --primary-dark: 207 38% 27%;

  --secondary: 0 0% 96%;
  --muted: 0 0% 96%;
  --muted-foreground: 220 9% 46%;

  --border: 220 13% 91%;
  --radius: 0.25rem;

  --dark-bg: 0 0% 7%;
  --charcoal: 0 0% 10%;

  --font-heading: 'Madera', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Averta', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-size: inherit;
  font-weight: inherit;
}

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

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

button {
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

blockquote {
  quotes: none;
}

time {
  display: inline;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
/* The content column runs full-bleed and only caps out at 1280px — it does not
   step down at the smaller breakpoints. The gutter widens once past 1024px. */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Narrower gutter below 768px, then identical to .container (home hero). */
.container-md {
  width: 100%;
  padding-inline: 1.25rem;
}

@media (min-width: 768px)  { .container-md { margin-inline: auto; padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-md { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container-md { max-width: 1280px; } }

.section {
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .section { padding-block: 7rem; }
}

.section--muted {
  background-color: hsl(var(--secondary));
}

/* Section with a photographic background and a dark scrim. */
.section-media {
  position: relative;
}

.section-media__bg {
  position: absolute;
  inset: 0;
}

.section-media__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-media__scrim {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.85);
}

.section-media__scrim--70 { background-color: rgb(0 0 0 / 0.70); }
.section-media__scrim--65 { background-color: rgb(0 0 0 / 0.65); }
.section-media__scrim--60 { background-color: rgb(0 0 0 / 0.60); }

.section-media__inner {
  position: relative;
}

/* --------------------------------------------------------------------------
   5. Typography

   Every line-height here is explicit and deliberate. Sizes and leading do not
   follow one ratio: they reproduce what the source design rendered, where a
   font-size step also carried its own line-height at some breakpoints.
   -------------------------------------------------------------------------- */
.heading-xl,
.heading-lg,
.heading-md,
.heading-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

/* Section headings (h2) */
.heading-lg {
  font-size: 1.875rem;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .heading-lg { font-size: 2.75rem; }
}

/* Page headings (h1) */
.heading-xl {
  font-size: 2.25rem;
  line-height: 1.1;
}

@media (min-width: 768px)  { .heading-xl { font-size: 3rem;   line-height: 1; } }
@media (min-width: 1024px) { .heading-xl { font-size: 3.5rem; } }

/* Sub-section headings ("More News") */
.heading-md {
  font-size: 1.5rem;
  line-height: 2rem;
}

@media (min-width: 1024px) {
  .heading-md { font-size: 1.875rem; line-height: 2.25rem; }
}

/* Name headings (CEO) */
.heading-name {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

@media (min-width: 1024px) {
  .heading-name { font-size: 2.25rem; line-height: 2.5rem; }
}

.accent {
  color: hsl(var(--primary));
}

/* Spacing under a section heading. */
.heading-gap      { margin-bottom: 2rem; }
.heading-gap-sm   { margin-bottom: 1.5rem; }
.heading-centered { text-align: center; margin-bottom: 3rem; }

.icon--lg { width: 1.25rem; height: 1.25rem; }

.lede {
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.eyebrow--gap { margin-bottom: 1rem; }

/* Inline "Read more →" / "About us →" style link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

.btn-outline {
  display: inline-block;
  padding: 14px 2rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.6);
  border-radius: 4px;
  color: hsl(var(--primary-foreground));
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.25rem;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

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

/* --------------------------------------------------------------------------
   6. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   7. Header + fullscreen menu
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-solid {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

@media (min-width: 768px) {
  .header-inner { padding-block: 1.25rem; }
}

.header-logo {
  position: relative;
  z-index: 60;
  flex: none;
}

.header-logo img {
  height: 2.25rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

@media (min-width: 768px)  { .header-logo img { height: 3.5rem; } }
@media (min-width: 1024px) { .header-logo img { height: 5rem; } }

.site-header.is-solid .header-logo img {
  filter: none;
}

.header-toggle {
  position: relative;
  z-index: 60;
  padding: 0.5rem;
  color: hsl(var(--primary-foreground));
  transition: color 0.2s;
}

.site-header.is-solid .header-toggle {
  color: hsl(var(--foreground));
}

.header-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .header-toggle .icon { width: 2rem; height: 2rem; }
}

.header-toggle .icon-close { display: none; }

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-nav {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .menu-nav { gap: 2rem; }
}

.menu-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 2.25rem;
  color: hsl(var(--primary-foreground) / 0.7);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
  transition-delay: 0ms;
}

@media (min-width: 768px)  { .menu-link { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .menu-link { font-size: 3rem; line-height: 1; } }

.menu-link:hover,
.menu-link.is-active {
  color: hsl(var(--primary));
}

/* Open state — driven by .is-menu-open on <body>. */
body.is-menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .menu-link {
  opacity: 1;
  transform: translateY(0);
}

body.is-menu-open .menu-link:nth-child(1) { transition-delay: 80ms; }
body.is-menu-open .menu-link:nth-child(2) { transition-delay: 130ms; }
body.is-menu-open .menu-link:nth-child(3) { transition-delay: 180ms; }
body.is-menu-open .menu-link:nth-child(4) { transition-delay: 230ms; }

/* While the menu is open the header always renders in its transparent skin. */
body.is-menu-open .site-header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.is-menu-open .header-logo img { filter: brightness(0) invert(1); }
body.is-menu-open .header-toggle  { color: hsl(var(--primary-foreground)); }
body.is-menu-open .icon-menu      { display: none; }
body.is-menu-open .icon-close     { display: block; }

/* --------------------------------------------------------------------------
   8. Home — hero
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  min-height: calc(100svh - 6rem);
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-home {
    min-height: 90svh;
    align-items: flex-end;
  }
}

.hero-home__inner {
  position: relative;
  width: 100%;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .hero-home__inner { padding-top: 0; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .hero-home__inner { padding-bottom: 7rem; }
}

.hero-home__title {
  max-width: 48rem;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 768px)  { .hero-home__title { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .hero-home__title { font-size: 60px; } }

.hero-home__title strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Home — quick nav strip
   -------------------------------------------------------------------------- */
.quicknav {
  background-color: hsl(var(--charcoal));
  height: 6rem;
}

@media (min-width: 768px) {
  .quicknav { height: auto; }
}

/* This strip keeps a flat 2rem gutter at every width, unlike the rest of the
   page, so the three columns line up the way the design intends. */
.quicknav .container {
  height: 100%;
  padding-inline: 2rem;
}

.quicknav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.quicknav__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0.75rem 0.5rem;
  transition: background-color 0.2s;
}

.quicknav__item + .quicknav__item {
  border-left: 1px solid hsl(var(--primary-foreground) / 0.15);
}

.quicknav__item:hover {
  background-color: hsl(var(--primary-foreground) / 0.05);
}

@media (min-width: 768px) {
  .quicknav__item { padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .quicknav__item { padding: 2rem; }
}

.quicknav__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.025em;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.125rem;
  line-height: 1.5;
}

.quicknav__sub {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.25;
  color: hsl(var(--primary-foreground) / 0.5);
}

@media (min-width: 768px) {
  .quicknav__label { font-size: 0.875rem; line-height: 1.25rem; }
  .quicknav__sub   { font-size: 0.75rem;  line-height: 1rem; }
}

@media (min-width: 1024px) {
  .quicknav__label { font-size: 1rem; line-height: 1.5rem; }
}

/* --------------------------------------------------------------------------
   10. Home — about split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
}

@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--centered { align-items: center; }
}

.about__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about__text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about__media {
  position: relative;
}

.about__media-main {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about__media-main { height: 24rem; }
}

.about__media-inset {
  position: absolute;
  bottom: -2rem;
  left: -1rem;
  width: 12rem;
  height: 9rem;
  object-fit: cover;
  border: 4px solid hsl(var(--background));
}

@media (min-width: 1024px) {
  .about__media-inset {
    left: -2rem;
    width: 16rem;
    height: 12rem;
  }
}

/* --------------------------------------------------------------------------
   11. Home — differentiators
   -------------------------------------------------------------------------- */
.diff__intro-text {
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.diff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .diff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.diff__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diff__icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.5;
  color: hsl(var(--primary));
}

.diff__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.75rem;
}

.diff__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   12. Banners + cards
   -------------------------------------------------------------------------- */
.banner {
  padding-block: 8rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .banner { padding-block: 10rem; }
}

.banner__title,
.cta__title {
  color: hsl(var(--primary-foreground));
}

.cta {
  padding-block: 5rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta { padding-block: 7rem; }
}

.cta__title {
  margin-bottom: 1.5rem;
}

.cta__text {
  font-family: var(--font-body);
  color: hsl(var(--primary-foreground) / 0.6);
  line-height: 1.625;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rule-card {
  border-top: 2px solid hsl(var(--primary));
  padding-top: 2rem;
}

.rule-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
  line-height: 1.75rem;
}

/* --------------------------------------------------------------------------
   13. Interior page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 50vh;
  min-height: 400px;
}

.page-hero--news {
  height: 40vh;
  min-height: 350px;
}

.page-hero--article {
  height: 55vh;
  min-height: 440px;
  align-items: flex-end;
}

.page-hero__title {
  color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   14. Company page
   -------------------------------------------------------------------------- */
.company__overview-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .company__overview-img { height: 450px; }
}

.ceo__portrait {
  aspect-ratio: 3 / 4;
  max-height: 550px;
  overflow: hidden;
}

.ceo__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ceo__quote {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.625;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .ceo__quote { font-size: 1.5rem; line-height: 2rem; }
}

.stats {
  background-color: hsl(var(--charcoal));
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .stats { padding-block: 5rem; }
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
  }
}

.stats__item { text-align: center; }

@media (min-width: 1024px) {
  .stats__item { text-align: left; }
}

.stats__value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
  line-height: 2.5rem;
}

@media (min-width: 1024px) {
  .stats__value { font-size: 3rem; line-height: 1; }
}

.stats__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

/* --------------------------------------------------------------------------
   15. News index
   -------------------------------------------------------------------------- */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .news-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .news-layout__featured { grid-column: span 7 / span 7; }
  .news-layout__aside    { grid-column: span 5 / span 5; }
}

.news-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-card__media {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.news-card__media img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 1024px) {
  .news-card__media img { height: 24rem; }
}

.news-card {
  display: block;
  transition: transform 0.3s;
}

.news-card:hover { transform: translateY(-0.25rem); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card:hover .news-card__title { color: hsl(var(--primary)); }

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 2rem;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

@media (min-width: 1024px) {
  .news-card__title { font-size: 1.875rem; line-height: 2.25rem; }
}

.news-card__excerpt {
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin-bottom: 1rem;
}

.news-card__more {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.25rem;
  color: hsl(var(--primary));
}

/* Compact variant used in the sidebar */
.news-card--sm .news-card__media        { margin-bottom: 1rem; }
.news-card--sm .news-card__media img    { height: 12rem; }
.news-card--sm .news-card__meta         { font-size: 11px; line-height: 1.5; column-gap: 0.5rem; margin-bottom: 0.5rem; }
.news-card--sm .news-card__excerpt      { font-size: 0.875rem; margin-bottom: 0.5rem; }
.news-card--sm .news-card__more         { font-size: 0.75rem; line-height: 1rem; }

.news-card--sm .news-card__title {
  font-size: 1.125rem;
  letter-spacing: 0.025em;
  line-height: 1.375;
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .news-card--sm .news-card__title { font-size: 1.125rem; }
}

/* --------------------------------------------------------------------------
   16. Article page
   -------------------------------------------------------------------------- */
.article-hero__inner {
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .article-hero__inner { padding-bottom: 4rem; }
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25rem;
  color: hsl(var(--primary-foreground) / 0.8);
  transition: color 0.15s;
}

.article-hero__back:hover { color: hsl(var(--primary)); }

.article-hero__category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.article-hero__title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: hsl(var(--primary-foreground));
  max-width: 56rem;
}

@media (min-width: 768px)  { .article-hero__title { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .article-hero__title { font-size: 3rem; line-height: 1; } }

.article-body {
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .article-body { padding-block: 6rem; }
}

.article-body__inner {
  max-width: 48rem;
  margin-inline: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.article-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .icon { color: hsl(var(--primary)); }

.article-meta strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.article-lede {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .article-lede { font-size: 1.25rem; line-height: 1.75rem; }
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .article-section h2 { font-size: 1.5rem; line-height: 2rem; }
}

.article-section p,
.article-section li {
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

.article-section p { margin-bottom: 1rem; }

.article-section ul,
.article-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-section ul { list-style: disc; }
.article-section ol { list-style: decimal; }

.article-section li + li { margin-top: 0.5rem; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}

.article-tags .icon {
  color: hsl(var(--primary));
  margin-right: 0.25rem;
}

.article-tags span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1rem;
  border-radius: 0.125rem;
}

.article-author {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border));
}

.article-author__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.article-author__name {
  font-family: var(--font-body);
  font-weight: 600;
}

.article-author__role {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.article-author__dates {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

/* Related articles */
.related {
  padding-block: 4rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
}

@media (min-width: 1024px) {
  .related { padding-block: 5rem; }
}

.related__title {
  margin-bottom: 2.5rem;
}

.related__card { display: block; }

.related__media {
  overflow: hidden;
  margin-bottom: 1rem;
}

.related__media img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.5s;
}

.related__card:hover .related__media img { transform: scale(1.05); }
.related__card:hover .related__headline   { color: hsl(var(--primary)); }

.related__date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.related__headline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.375;
  transition: color 0.15s;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: hsl(var(--dark-bg));
  color: hsl(var(--primary-foreground));
}

.site-footer .container {
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .site-footer .container { padding-block: 5rem; }
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__grid { gap: 4rem; }
}

.footer__logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

@media (min-width: 1024px) {
  .footer__logo { height: 4rem; }
}

.footer__about {
  max-width: 20rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--primary-foreground) / 0.6);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary-foreground) / 0.4);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--primary-foreground) / 0.7);
  transition: color 0.2s;
}

.footer__nav a:hover { color: hsl(var(--primary-foreground)); }

.footer__contact-intro {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--primary-foreground) / 0.6);
  margin-bottom: 1rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: color 0.2s;
}

.footer__contact a:hover { color: hsl(var(--primary-foreground)); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--primary-foreground) / 0.4);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

.footer__bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer__bottom-right {
    flex-direction: row;
    align-items: center;
  }
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  color: hsl(var(--primary-foreground) / 0.4);
  transition: color 0.2s;
}

.footer__social a:hover { color: hsl(var(--primary)); }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.notfound {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
  text-align: center;
}

.notfound h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 2.5rem;
}

.notfound p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.75rem;
}

.notfound a {
  color: hsl(var(--primary));
  text-decoration: underline;
}
