:root {
  --ink: #061b2b;
  --navy: #08243a;
  --navy-soft: #103b59;
  --green: #3d6f24;
  --green-bright: #93b84b;
  --rust: #a8481d;
  --sky: #0d6fa8;
  --paper: #f7f4eb;
  --paper-strong: #fffdf7;
  --muted: #66727a;
  --line: rgba(6, 27, 43, 0.14);
  --shadow: 0 24px 70px rgba(6, 27, 43, 0.18);
  --header-width: 240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: clip;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--header-width);
  padding: 32px 24px;
  background:
    linear-gradient(rgba(6, 27, 43, 0.96), rgba(6, 27, 43, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.04) 28px 29px),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.04) 28px 29px);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 18px 0 50px rgba(6, 27, 43, 0.2);
}

.brand {
  width: 150px;
  margin: 8px auto 72px;
}

.site-nav {
  width: 100%;
  display: grid;
  gap: 2px;
}

.site-nav a {
  padding: 15px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(147, 184, 75, 0.14);
  color: white;
}

.social-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-strong);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nav-toggle {
  display: none;
}

main,
.site-footer {
  margin-left: var(--header-width);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 27, 43, 0.82) 0%, rgba(6, 27, 43, 0.56) 42%, rgba(6, 27, 43, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 27, 43, 0.58) 0%, rgba(6, 27, 43, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 56px));
  margin-left: clamp(28px, 7vw, 92px);
  padding: 96px 0 150px;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.newsletter form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  background: var(--rust);
  color: white;
}

.button.secondary {
  background: var(--paper-strong);
  color: var(--ink);
}

.quick-grid {
  width: min(1240px, calc(100% - 56px));
  margin: -92px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}

.feature-card {
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 27, 43, 0.86), rgba(6, 27, 43, 0.08) 68%);
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card .tag,
.feature-card h2 {
  position: relative;
  z-index: 2;
  margin-left: 22px;
  margin-right: 22px;
}

.feature-card .tag {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(147, 184, 75, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h2 {
  margin-bottom: 22px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  text-transform: uppercase;
}

.content-band,
.split-section,
.newsletter,
.article-shell {
  width: min(1240px, calc(100% - 56px));
  margin: 88px auto 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.story-panel h2,
.newsletter h2,
.article-content h2,
.sidebar-block h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.topic-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic {
  min-height: 270px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
}

.topic span {
  color: var(--rust);
  font-weight: 900;
}

.topic h3 {
  margin: 46px 0 10px;
  font-size: 24px;
  text-transform: uppercase;
}

.topic p {
  color: var(--muted);
}

.topic a,
.text-link,
.article-content a {
  color: var(--sky);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.image-panel {
  min-height: 430px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(147, 184, 75, 0.22), transparent 34%),
    linear-gradient(135deg, var(--navy), #020910);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-panel img {
  width: min(380px, 82%);
}

.story-panel p:not(.eyebrow),
.newsletter p,
.article-content p,
.article-sidebar p {
  color: var(--muted);
  font-size: 17px;
}

.newsletter {
  margin-bottom: 80px;
  padding: 34px;
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(6, 27, 43, 0.09);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.newsletter input {
  min-width: 220px;
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.site-footer {
  padding: 28px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.7);
}

.template-page {
  padding-top: 42px;
}

.page-hero {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
  color: white;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 27, 43, 0.88), rgba(6, 27, 43, 0.18));
}

.page-hero div {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: clamp(26px, 5vw, 58px);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.article-shell {
  margin-bottom: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
}

.article-content,
.sidebar-block {
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(6, 27, 43, 0.08);
}

.article-content {
  padding: clamp(28px, 5vw, 64px);
}

.article-content .lede {
  color: var(--ink);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.32;
}

.article-content h2,
.sidebar-block h2 {
  margin-top: 34px;
  font-size: clamp(26px, 3vw, 38px);
}

.article-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 6px solid var(--rust);
  background: #f0eadb;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.article-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-block {
  padding: 24px;
}

.sidebar-block h2 {
  margin-top: 0;
}

.sidebar-block a:not(.button) {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  font-weight: 900;
}

.sidebar-block.accent {
  background: var(--navy);
  color: white;
}

.sidebar-block.accent p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1080px) {
  :root {
    --header-width: 0px;
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100vw;
    min-height: 78px;
    padding: 10px 18px;
    flex-direction: row;
    justify-content: space-between;
  }

  .brand {
    width: 116px;
    margin: 0;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: transparent;
    display: grid;
    place-content: center;
    gap: 5px;
  }

  .nav-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: white;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 10px 18px 18px;
    background: var(--ink);
    display: none;
  }

  .site-nav.is-open {
    display: grid;
  }

  .social-links {
    display: none;
  }

  main,
  .site-footer {
    margin-left: 0;
  }

  .hero {
    min-height: 700px;
    padding-top: 78px;
  }

  .quick-grid,
  .topic-grid,
  .split-section,
  .newsletter,
  .article-shell {
    grid-template-columns: 1fr 1fr;
  }

  .quick-grid {
    margin-top: -72px;
  }

  .feature-card.large,
  .newsletter,
  .article-shell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 650px;
  }

  .hero-content {
    width: calc(100% - 36px);
    max-width: calc(100vw - 36px);
    margin-left: 18px;
    padding-bottom: 112px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 0.98;
    max-width: 10ch;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .newsletter form {
    display: grid;
  }

  .button,
  .newsletter input {
    width: 100%;
  }

  .quick-grid,
  .topic-grid,
  .split-section,
  .newsletter,
  .article-shell,
  .page-hero,
  .content-band {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
  }

  .topic {
    min-height: 220px;
  }

  .image-panel {
    min-height: 320px;
  }

  .newsletter {
    padding: 24px;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .template-page {
    padding-top: 100px;
  }

  .page-hero {
    min-height: 520px;
  }
}
