/*
Theme Name: Narrative Editorial
Version: 1.0.2
Text Domain: narrative-editorial
*/

:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  background: #f9f9f9;
  color: #1a1c1c;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body main {
  overflow-x: clip;
}

body main .font-display {
  font-family: "Epilogue", sans-serif !important;
  letter-spacing: -0.025em !important;
}

body main h1 {
  font-size: clamp(2.3rem, 5vw, 4.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
}

body main h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.85rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}

body main h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem) !important;
  line-height: 1.2 !important;
}

body main h4 {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}

body main p.text-lg,
body main p.text-xl {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

body main .narrative-article-title {
  font-size: clamp(2rem, 4vw, 3.1rem) !important;
  line-height: 1.08 !important;
}

.narrative-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.narrative-article-content h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem) !important;
}

.narrative-article-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
}

body main.px-8 {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

body nav > div {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

body nav img,
body nav .custom-logo {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

body footer > div > div:last-child {
  flex-wrap: wrap;
  justify-content: center;
}

body nav a,
body main a,
body footer a,
body button,
body input,
body textarea,
body select {
  transition-duration: 180ms;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body select:focus-visible {
  outline: 3px solid #6d23f9;
  outline-offset: 3px;
}

body main article.group {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body main article.group:hover {
  transform: translateY(-3px);
}

body main img {
  max-width: 100%;
}

@media (max-width: 640px) {
  body main h1 {
    font-size: clamp(2.1rem, 10vw, 3.1rem) !important;
  }

  body main h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem) !important;
  }

  body main.px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body main.px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body main .py-24 {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }

  body main .mb-32,
  body main .mb-40 {
    margin-bottom: 4rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}