@font-face {
  font-family: "DIN Pro";
  src: url("/directory/fonts/DINPro.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src: url("/directory/fonts/DINPro-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src: url("/directory/fonts/DINPro-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #93bf1f;
  --green-dark: #4f6b00;
  --green-soft: #f1f7df;
  --charcoal: #464645;
  --charcoal-dark: #30302f;

  --text: #242423;
  --muted: #686865;
  --border: #deded9;
  --surface: #fff;
  --background: #f5f6f2;

  --shadow:
    0 1px 2px rgb(25 30 20 / 5%),
    0 6px 20px rgb(25 30 20 / 8%);

  --radius: 0.8rem;
  --page-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    "DIN Pro",
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  color: var(--charcoal-dark);
  font-weight: 700;
  line-height: 1.18;
}

.page-shell {
  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #000;
  border-radius: 0.4rem;
  transform: translateY(-200%);
}

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

.accessibility-bar {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  background: var(--charcoal-dark);
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  box-shadow: 0 3px 12px rgb(0 0 0 / 14%);
}

.accessibility-bar-inner {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-block: 0.45rem;
}

.accessibility-label {
  margin-right: auto;
  font-weight: 700;
}

.accessibility-button,
.accessibility-link {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.accessibility-button:hover,
.accessibility-button[aria-pressed="true"],
.accessibility-link:hover {
  color: var(--charcoal-dark);
  background: var(--green);
  border-color: var(--green);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 70px;
}

.header-label {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: var(--charcoal);
  text-align: right;
}

.header-kicker,
.eyebrow,
.section-kicker,
.project-type {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 25%,
      rgb(147 191 31 / 16%),
      transparent 42%
    ),
    linear-gradient(
      120deg,
      var(--charcoal-dark),
      var(--charcoal)
    );
  border-bottom: 6px solid var(--green);
}

.hero-content {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--green);
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 700px;
  margin: 0;
  color: #eee;
  font-size: 1.15rem;
}

.page-content {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.directory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.directory-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-kicker {
  margin-bottom: 0.4rem;
}

.search-group {
  width: min(100%, 390px);
}

.search-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.search-group input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font: inherit;
}

.result-count {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

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

.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-direction: column;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 30px rgb(25 30 20 / 12%);
  transform: translateY(-3px);
}

.project-card[hidden] {
  display: none;
}

.project-card-content {
  padding: 1.4rem;
  flex: 1;
}

.project-type {
  margin-bottom: 0.55rem;
}

.project-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

.project-card h3 a {
  color: var(--charcoal-dark);
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.project-summary {
  display: -webkit-box;
  margin-bottom: 1.25rem;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.project-metadata {
  margin: 0;
}

.project-metadata div {
  padding-block: 0.55rem;
  border-top: 1px solid var(--border);
}

.project-metadata dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-metadata dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.project-card-footer {
  padding: 0.9rem 1.4rem;
  background: var(--green-soft);
  border-top: 1px solid var(--border);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--charcoal-dark);
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-footer {
  padding-block: 2.5rem;
  color: #ddd;
  background: var(--charcoal-dark);
  border-top: 6px solid var(--green);
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: #bdbdb8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  text-align: right;
}

.footer-links a {
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* High contrast mode */

html.high-contrast {
  --green: #ffdf00;
  --green-dark: #004f9e;
  --green-soft: #fff4a0;
  --charcoal: #000;
  --charcoal-dark: #000;

  --text: #000;
  --muted: #222;
  --border: #000;
  --surface: #fff;
  --background: #fff;
  --shadow: none;
}

html.high-contrast .hero,
html.high-contrast .site-footer,
html.high-contrast .accessibility-bar {
  color: #fff;
  background: #000;
}

html.high-contrast .project-card {
  border: 2px solid #000;
  box-shadow: none;
}

html.high-contrast a {
  color: #004f9e;
  text-decoration: underline;
}

html.high-contrast :focus-visible {
  outline: 4px solid #ffdf00 !important;
}

/* Responsive */

@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .header-inner {
    min-height: 86px;
  }

  .brand-logo {
    height: 55px;
  }

  .header-label {
    display: none;
  }

  .directory-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-group {
    width: 100%;
  }

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

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

  .footer-links {
    text-align: left;
  }
}

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