:root {
  --bg: #1b1b1b;
  --bg-soft: #323232;
  --bg-wide: #242820;
  --text: #f4f1ea;
  --muted: #c9c2b8;
  --muted-strong: #d8d8d8;
  --green: #6e8b3d;
  --gold: #d6a63a;
  --red: #8b1e1e;
  --border: rgba(214, 166, 58, 0.36);
  --shadow: rgba(0, 0, 0, 0.28);
  --max: 1120px;
}

html[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-soft: #ffffff;
  --bg-wide: #eef1e7;
  --text: #1b1b1b;
  --muted: #4d4a44;
  --muted-strong: #4d4a44;
  --green: #5f7933;
  --gold: #9b711b;
  --red: #8b1e1e;
  --border: rgba(110, 139, 61, 0.3);
  --shadow: rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body,
body * {
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 48px 30px;
}

.header-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 54px);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: clamp(150px, 24vw, 315px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  transform: translateY(-4px);
}

.brand-title {
  color: var(--green);
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-claim {
  color: var(--green);
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  margin-top: 12px;
}

.header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  justify-content: center;
}

.control-select,
.control-button {
  min-height: 40px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}

html[data-theme="light"] .control-select,
html[data-theme="light"] .control-button {
  background: rgba(0, 0, 0, 0.03);
}

.control-select option {
  color: #111;
}

/* Department line */

.department-wrap,
.department-static {
  margin-top: 22px;
  color: var(--muted-strong);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.department-wrap {
  width: 900px;
  max-width: 90vw;
  height: 1.25em;
  overflow: hidden;
  position: relative;
}

.department-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  transform: translateX(0);
}

.department-track span {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--muted-strong);
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding-right: 90px;
}

.department-static {
  max-width: 900px;
}

/* Navigation */

.nav {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 16px;
  border: 1px solid transparent;
}

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

/* Main layout */

.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 68px 24px;
}

.hero,
.hero-section {
  padding-top: 90px;
  padding-bottom: 92px;
  border-bottom: 1px solid var(--border);
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.title,
.hero-title {
  color: var(--text);
  font-size: clamp(50px, 8vw, 104px);
  line-height: 0.94;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  font-weight: 900;
}

.heading,
.section-heading {
  color: var(--text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 900;
}

.subtitle,
.lead,
.hero-subtitle,
.hero-lead {
  max-width: 860px;
  color: var(--green);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.28;
  margin: 0 0 28px;
  font-weight: 800;
}

.hero-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.text {
  max-width: 880px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.button-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--gold);
}

.button-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

/* Cards and grids */

.grid,
.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

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

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

.card,
.legal-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--gold);
  padding: 26px;
  min-width: 0;
  box-shadow: 0 12px 36px var(--shadow);
}

.card h3,
.legal-card h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.legal-card h2 {
  font-size: 24px;
}

.card p,
.legal-card p,
.legal-card li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 12px 0 0 22px;
  padding: 0;
}

.legal-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

.legal-card a:hover {
  text-decoration: underline;
}

/* Statement and wide sections */

.statement {
  margin-top: 34px;
  padding: 26px 30px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.035);
  max-width: 880px;
}

.statement p {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 900;
}

.wide,
.wide-section {
  width: 100%;
  background: linear-gradient(135deg, rgba(110, 139, 61, 0.12), rgba(27, 27, 27, 0.05)), var(--bg-wide);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.final,
.final-section {
  text-align: center;
  padding-top: 86px;
  padding-bottom: 94px;
}

.final p,
.final-section p {
  margin: 0 auto 18px;
  max-width: 860px;
  color: var(--text);
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.final-small {
  margin-top: 28px;
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

/* About page extras */

.org-box {
  margin-top: 34px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 18px;
}

.org-placeholder {
  min-height: 220px;
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.legal-section {
  max-width: 980px;
}

.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 980px) {
  .header-inner {
    padding: 26px 28px 28px;
  }

  .header-topline {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .header-controls {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand {
    gap: 32px;
  }

  .brand-logo {
    width: 220px;
    max-width: 40vw;
  }

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

  .department-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 22px 20px 26px;
  }

  .brand {
    gap: 16px;
  }

  .brand-logo {
    width: 118px;
    max-width: 35vw;
  }

  .brand-title {
    font-size: 42px;
  }

  .brand-claim {
    font-size: 20px;
    margin-top: 8px;
  }

  .department-wrap,
  .department-static {
    width: 100%;
    max-width: 100%;
    height: 1.3em;
    margin-top: 18px;
    font-size: 28px;
  }

  .department-track span {
    padding-right: 60px;
  }

  .nav {
    margin-top: 26px;
  }

  .nav a {
    padding: 9px 0;
  }

  .section {
    padding: 48px 20px;
  }

  .hero,
  .hero-section {
    padding-top: 58px;
    padding-bottom: 64px;
  }

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

  .department-card-wide {
    grid-column: span 1;
  }

  .card,
  .legal-card {
    padding: 22px;
  }

  .statement {
    padding: 22px 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
