:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-alt: #eef3ee;
  --ink: #1f2522;
  --muted: #65706a;
  --green: #315b46;
  --green-dark: #173626;
  --gold: #b48744;
  --red-earth: #914c35;
  --line: #d9ded7;
  --shadow: 0 18px 50px rgba(29, 41, 34, 0.12);
  --max: 1160px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

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

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

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--surface);
  background: var(--green-dark);
  border-radius: 6px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 222, 215, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--nav-height);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--green);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: min(760px, 84vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--surface);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("NorthBurns.gif");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 26, 21, 0.28) 0%, rgba(18, 26, 21, 0.2) 34%, rgba(18, 26, 21, 0.82) 100%),
    linear-gradient(90deg, rgba(18, 45, 30, 0.66) 0%, rgba(18, 45, 30, 0.12) 64%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 72px) 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--green-dark);
  background: var(--surface);
}

.button-secondary {
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.notice-band,
.quick-info,
.section,
.contact-section {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.notice-band {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 20px 24px;
  color: var(--surface);
  background: var(--red-earth);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice-band p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-item {
  min-width: 0;
  padding: 24px;
}

.info-item + .info-item {
  border-left: 1px solid var(--line);
}

.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: 82px 0 0;
}

.section-heading {
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.resource-panel {
  padding-top: 72px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.feature-link,
.document-group,
.media-callout,
.contact-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(29, 41, 34, 0.07);
}

.feature-link {
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  text-decoration: none;
}

.feature-link:hover,
.feature-link:focus-visible {
  border-color: rgba(49, 91, 70, 0.4);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-link span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-link strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.document-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  align-items: center;
  gap: 16px;
  margin: 36px 0 20px;
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-toolbar label {
  color: var(--green-dark);
  font-weight: 800;
}

.document-toolbar input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.document-toolbar input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(49, 91, 70, 0.16);
}

.document-groups {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}

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

.document-group {
  padding: 24px;
}

.document-list,
.archive-list,
.reference-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-list a,
.archive-list a,
.reference-grid a {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  min-height: 48px;
  padding: 12px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.document-list li:first-child a {
  border-top: 0;
}

.document-list a:hover,
.archive-list a:hover,
.reference-grid a:hover {
  color: var(--green);
}

.document-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.archive-list a {
  justify-content: flex-start;
}

.media-callout {
  position: sticky;
  top: 100px;
  overflow: hidden;
}

.media-callout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-callout div {
  padding: 22px;
}

.media-callout a {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.minutes-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 22px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
}

.reference-grid a {
  justify-content: flex-start;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 34px;
  margin-top: 82px;
  padding: 34px;
  color: var(--surface);
  background: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-section a {
  color: var(--surface);
}

.contact-section p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.board-list h3 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.board-list a {
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  text-decoration: none;
}

.board-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto 0;
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0 0 8px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .featured-grid,
  .minutes-list,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-groups,
  .document-groups.compact,
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .media-callout {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 68px;
  }

  .nav {
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto;
    display: none;
    padding: 12px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 13px 10px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content,
  .notice-band,
  .quick-info,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .notice-band {
    margin-top: -22px;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .info-item + .info-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-top: 58px;
  }

  .featured-grid,
  .archive-list,
  .minutes-list,
  .reference-grid,
  .board-list {
    grid-template-columns: 1fr;
  }

  .document-toolbar {
    grid-template-columns: 1fr;
  }

  .document-list a {
    display: grid;
    gap: 4px;
  }

  .document-list span {
    flex: none;
  }

  .contact-section {
    padding: 24px;
  }
}

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