:root {
  color-scheme: light;
  --canvas: #f5f5f1;
  --paper: #fffef9;
  --paper-muted: #ecefe8;
  --ink: #15191c;
  --ink-soft: #4d5961;
  --ink-muted: #737d84;
  --line: #d8dcd3;
  --line-strong: #b8c1b6;
  --green: #00875a;
  --green-dark: #005f43;
  --blue: #1d5367;
  --brass: #8a6d2f;
  --clay: #8b4f37;
  --shadow: 0 16px 36px rgba(21, 25, 28, 0.08);
  --radius: 8px;
  --container: 1160px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}

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

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: 3.55rem;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 2.2rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  line-height: 1.65;
}

ul,
ol {
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 840px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(216, 220, 211, 0.88);
  background: rgba(245, 245, 241, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__wordmark {
  width: 9.5rem;
  max-height: 2.75rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.72rem 0.72rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--paper-muted);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle__lines {
  position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__lines::before {
  top: -6px;
}

.nav-toggle__lines::after {
  top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

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

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

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

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--line-strong);
  background: #f9faf6;
}

.text-link {
  color: var(--green-dark);
  font-weight: 820;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.68;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-muted);
}

.hero__inner {
  display: grid;
  gap: 2rem;
  padding: 4.4rem 0 4rem;
}

.hero__copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero__actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.section {
  padding: 4rem 0;
}

.section--paper {
  background: var(--paper);
}

.section--muted {
  background: var(--paper-muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.ui-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(21, 25, 28, 0.05);
}

.ui-panel--muted {
  background: var(--paper-muted);
}

.ui-panel__body {
  padding: 1.35rem;
}

.ui-input,
.ui-select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ui-input:focus,
.ui-select:focus {
  border-color: var(--green-dark);
  outline: 3px solid rgba(0, 135, 90, 0.14);
  outline-offset: 1px;
}

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 820;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ui-button:hover,
.ui-button:focus-visible {
  transform: translateY(-1px);
}

.ui-button--secondary {
  border-color: var(--line);
  background: var(--paper);
}

.ui-button--secondary:hover,
.ui-button--secondary:focus-visible {
  border-color: var(--line-strong);
  background: #f9faf6;
}

.documents-panel__body {
  display: grid;
  gap: 1.25rem;
}

.documents-catalog-section {
  padding-top: 2rem;
}

.documents-heading {
  margin-bottom: 0;
}

.documents-count {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 820;
}

.document-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(12rem, 0.7fr));
  gap: 1rem;
}

.document-toolbar__field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.document-toolbar__label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-list {
  display: grid;
  gap: 0.85rem;
}

.document-item .ui-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem);
  gap: 1rem 1.25rem;
  align-items: start;
}

.document-item__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.document-meta {
  display: grid;
  grid-column: 1;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.document-meta span {
  color: var(--ink-muted);
}

.document-meta strong {
  color: var(--ink-soft);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.document-actions {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
}

.document-actions .ui-button {
  width: 100%;
}

.document-item[hidden] {
  display: none;
}

.documents-empty {
  border-style: dashed;
  box-shadow: none;
}

.documents-empty .ui-panel__body {
  padding: 1rem;
}

.documents-empty p {
  margin: 0;
  color: var(--ink-soft);
}

.card,
.side-panel,
.empty-state,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(21, 25, 28, 0.05);
}

.card {
  min-height: 11.5rem;
  padding: 1.2rem;
}

.card h2,
.side-panel h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.card--accent-blue {
  border-top: 4px solid var(--blue);
}

.card--accent-green {
  border-top: 4px solid var(--green);
}

.card--accent-brass {
  border-top: 4px solid var(--brass);
}

.card--accent-clay {
  border-top: 4px solid var(--clay);
}

.card p {
  color: var(--ink-soft);
}

.card footer {
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.page-hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-muted);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 2rem;
  align-items: start;
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}

.clean-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}

.side-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
}

.side-panel dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.side-panel dt {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.side-panel dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  font-size: 2rem;
}

.empty-state p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

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

.contact-grid--single {
  grid-template-columns: minmax(0, 28rem);
}

.contact-card {
  display: grid;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1.2rem;
}

.contact-card strong {
  color: var(--green-dark);
  font-size: 1.08rem;
}

.contact-card a {
  color: var(--ink);
  font-weight: 820;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.55fr) minmax(12rem, 0.55fr);
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}

.footer-copy {
  max-width: 52ch;
  color: var(--ink-soft);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-links strong {
  color: var(--ink);
}

.footer-links a,
.footer-links span {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-dark);
}

.footer-bottom {
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .brand {
    min-width: auto;
  }

  .site-nav a {
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

}

@media (max-width: 860px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .hero__inner,
  .split,
  .section-heading,
  .content-layout,
  .footer-inner,
  .document-toolbar,
  .document-item .ui-panel__body {
    grid-template-columns: 1fr;
  }

  .document-actions,
  .document-meta {
    grid-column: auto;
  }

  .document-actions {
    grid-row: auto;
  }

  .hero__inner {
    padding: 3.5rem 0 3rem;
  }

  .grid--3,
  .grid--2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 2.75rem;
  }

}

@media (max-width: 560px) {
  :root {
    font-size: 15px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .brand__wordmark {
    width: 8.8rem;
    max-height: 2.4rem;
  }

  .button {
    width: 100%;
  }

  .hero__actions,
  .action-row {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .documents-catalog-section {
    padding-top: 1.5rem;
  }
}
