:root {
  --ink: #17211b;
  --ink-soft: #465248;
  --paper: #f6f3eb;
  --paper-deep: #ebe5d7;
  --white: #fff;
  --forest: #213e2d;
  --forest-bright: #315b40;
  --orange: #d56b35;
  --orange-dark: #a9471f;
  --line: rgba(23, 33, 27, 0.14);
  --shadow: 0 18px 45px rgba(23, 33, 27, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest-bright);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
  margin: 0 0 1.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 235, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.desktop-nav a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--orange-dark);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 3rem;
  right: 0;
  min-width: 230px;
  padding: 0.75rem;
  display: grid;
  gap: 0.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--orange-dark);
  background: var(--paper);
}

.hero {
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 27, 18, 0.9) 0%, rgba(13, 27, 18, 0.48) 58%, rgba(13, 27, 18, 0.2) 100%),
    url("/assets/images/home-hero.webp") center 58% / cover no-repeat;
}

.hero-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
}

.hero-copy {
  max-width: 620px;
  margin: 1.3rem 0 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  color: var(--white);
  background: var(--orange-dark);
  border: 2px solid var(--orange-dark);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: #8e3817;
  border-color: #8e3817;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.alt {
  background: var(--paper-deep);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.feature-card,
.post-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(23, 33, 27, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.post-card:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card img,
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.card-body {
  padding: 1.25rem;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
}

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

.post-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
}

.post-card img {
  height: 100%;
  aspect-ratio: auto;
}

.post-meta {
  margin-bottom: 0.7rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-band {
  color: var(--white);
  background: var(--forest);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-inner p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-actions .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.contact-actions .button.secondary:hover {
  color: var(--forest);
  background: var(--white);
}

.page-hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  color: var(--white);
  background: var(--forest);
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.content-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.resource-card,
.note,
.legal-panel {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resource-card {
  margin-top: 1.5rem;
  border-left: 6px solid var(--orange);
}

.resource-card p:last-child,
.note p:last-child,
.legal-panel p:last-child {
  margin-bottom: 0;
}

.spotify-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 14px;
}

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

.article-index .post-card {
  display: block;
}

.article-index .post-card img {
  height: auto;
  aspect-ratio: 16 / 9;
}

.article {
  width: min(calc(100% - 2rem), 780px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.article-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.article-lede {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-style: italic;
}

.article-hero {
  width: 100%;
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.82;
}

.article-body h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.article-body .equation {
  margin: 2.4rem 0;
  padding: 1.3rem 1.5rem;
  color: var(--white);
  background: var(--forest);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2.3rem 0;
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

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

  .dispatch-grid,
  .article-index {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .header-inner {
    min-height: 70px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .hero {
    min-height: calc(100svh - 70px);
    background-position: 61% center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    display: block;
  }

  .post-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .contact-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-body {
    font-size: 1.03rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
