:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #20262d;
  --muted: #66707a;
  --line: #d9d3c7;
  --accent: #b4242b;
  --accent-dark: #7e171e;
  --green: #2d6f58;
  --focus: #0f6bff;
  --shadow: 0 18px 48px rgba(32, 38, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  background: rgba(32, 38, 45, 0.08);
  border-radius: 4px;
  padding: 0.12rem 0.32rem;
  font-size: 0.94em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #ffffff;
  background: rgba(20, 23, 27, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.9rem;
}

.brand-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.8rem);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

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

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

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 16, 20, 0.88) 0%, rgba(12, 16, 20, 0.65) 42%, rgba(12, 16, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 16, 20, 0.58) 0%, rgba(12, 16, 20, 0) 44%);
}

.hero-content {
  width: min(760px, calc(100% - 2rem));
  margin: 0 0 clamp(3rem, 9vh, 6rem) clamp(1rem, 7vw, 5rem);
  padding-top: 7rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #ffb1b5;
}

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

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  width: min(620px, 100%);
  margin: 1.35rem 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: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.8rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.section-heading {
  width: min(1100px, 100%);
  margin: 0 auto 2rem;
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid article {
  min-height: 230px;
  background: var(--surface);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.number {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 2rem;
}

.intro-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1.28rem;
}

.intro-grid p,
.documents-heading p,
.contact p {
  color: var(--muted);
  margin: 0;
}

.documents {
  background: #ffffff;
}

.documents-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 2rem;
  align-items: end;
}

.document-tools {
  width: min(1100px, 100%);
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1rem;
}

.search-field,
.select-field {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 0.9rem;
  font: inherit;
}

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

.document-count {
  width: min(1100px, 100%);
  margin: 0 auto 1rem;
  color: var(--muted);
  font-weight: 700;
}

.document-list {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.3rem);
  background: #ffffff;
}

.document-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.document-meta span {
  display: inline-flex;
  align-items: center;
}

.document-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--line);
}

.document-description {
  margin: 0;
  color: var(--muted);
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.document-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.document-link:hover,
.document-link:focus-visible {
  background: var(--accent);
}

.document-link-secondary {
  color: var(--ink);
  background: #f3efe6;
  border: 1px solid var(--line);
}

.document-link-secondary:hover,
.document-link-secondary:focus-visible {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--muted);
  background: #fbfaf7;
}

.contact {
  background: var(--bg);
}

.contact-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel .eyebrow {
  color: #ffb1b5;
}

.contact-panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details a {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.82);
  background: #14171b;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 1rem 3rem;
  }

  .intro-grid,
  .documents-heading,
  .document-tools,
  .document-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .document-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    white-space: normal;
  }

  .nav {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 680px;
  }

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

  .document-link {
    width: 100%;
  }

  .document-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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