:root {
  --color-alabaster: #ffffff;
  --color-pale-slate: #f8fafc;
  --color-graphite: #1e293b;
  --color-forest: #15803d;
  --color-forest-hover: #166534;
  --color-gold: #ca8a04;
  --color-line: #e2e8f0;
  --color-muted: #475569;
  --color-on-dark: #ffffff;
  --color-error: #b91c1c;
  --color-success: #15803d;

  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Manrope, Inter, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.875rem, 3vw, 2.5rem);
  --text-3xl: clamp(2.625rem, 5vw, 3.5rem);
  --text-display: clamp(3rem, 7vw, 4.5rem);

  --leading-tight: 1.08;
  --leading-heading: 1.12;
  --leading-body: 1.65;
  --leading-relaxed: 1.7;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --container-max: 75rem;
  --gutter: 1.5rem;
  --section-space: 4.5rem;

  --radius-sm: 0.375rem;
  --radius-control: 0.625rem;
  --radius-card: 0.75rem;

  --border-default: 1px solid var(--color-line);
  --shadow-card: 0 10px 28px rgba(30, 41, 59, 0.08);
  --shadow-card-hover: 0 14px 34px rgba(30, 41, 59, 0.12);
  --shadow-overlay: 0 10px 28px rgba(30, 41, 59, 0.08);

  --transition-fast: 180ms ease-out;
  --transition-base: 220ms ease-out;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-alabaster);
  color: var(--color-graphite);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
form {
  min-width: 0;
}

img,
picture,
svg,
canvas,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  border: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input,
select,
textarea {
  width: 100%;
  border: var(--border-default);
  border-radius: var(--radius-control);
  background: var(--color-alabaster);
  color: var(--color-graphite);
  font-size: var(--text-base);
  line-height: 1.4;
}

input,
select {
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
  padding: 0.75rem 0.875rem;
}

select {
  appearance: auto;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-forest);
  outline: 3px solid rgba(21, 128, 61, 0.2);
  outline-offset: 0;
}

a {
  color: var(--color-graphite);
  text-decoration-color: var(--color-forest);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-forest);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--space-5);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: var(--leading-heading);
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-display);
  letter-spacing: 0.025em;
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

h4 {
  font-size: var(--text-lg);
  line-height: 1.3;
}

h5,
h6 {
  font-size: var(--text-base);
  line-height: 1.4;
}

p {
  margin-block: 0 var(--space-5);
}

ul,
ol {
  margin-block: 0 var(--space-5);
  padding-inline-start: 1.25rem;
}

ol {
  list-style: decimal;
}

blockquote {
  margin-block: 0 var(--space-5);
  margin-inline: 0;
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  border-inline-start: 2px solid var(--color-gold);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

hr {
  width: 100%;
  height: 1px;
  margin-block: var(--space-7);
  border: 0;
  background: var(--color-line);
}

table {
  width: 100%;
  margin-block: 0 var(--space-5);
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

caption {
  margin-bottom: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: left;
}

th,
td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-default);
  vertical-align: top;
}

th {
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: var(--text-xs);
}

fieldset {
  min-width: 0;
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-card);
}

legend {
  padding-inline: var(--space-2);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-graphite);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

::selection {
  background: rgba(202, 138, 4, 0.25);
  color: var(--color-graphite);
}

.container {
  width: min(100%, calc(var(--container-max) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section--pale {
  background: var(--color-pale-slate);
}

.section--dark {
  background: var(--color-graphite);
  color: var(--color-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6,
.section--dark label,
.section--dark strong {
  color: var(--color-on-dark);
}

.section--dark p,
.section--dark li,
.section--dark small,
.section--dark figcaption {
  color: rgba(255, 255, 255, 0.8);
}

.surface {
  min-width: 0;
  border: var(--border-default);
  border-radius: var(--radius-card);
  background: var(--color-alabaster);
}

.card {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-card);
  background: var(--color-alabaster);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.card > :last-child,
.surface > :last-child,
.content-group > :last-child,
.panel > :last-child {
  margin-bottom: 0;
}

.panel {
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-pale-slate);
}

.panel--dark {
  background: var(--color-graphite);
  color: var(--color-on-dark);
}

.panel--dark h1,
.panel--dark h2,
.panel--dark h3,
.panel--dark h4,
.panel--dark h5,
.panel--dark h6,
.panel--dark label {
  color: var(--color-on-dark);
}

.panel--dark p,
.panel--dark small {
  color: rgba(255, 255, 255, 0.8);
}

.content-group {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-forest);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 2px;
  flex: 0 0 auto;
  background: var(--color-gold);
  content: "";
}

.lead {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.muted {
  color: var(--color-muted);
}

.rule {
  width: min(100%, 5rem);
  height: 2px;
  margin-block: var(--space-5);
  border: 0;
  background: var(--color-forest);
}

.rule--gold {
  background: var(--color-gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(202, 138, 4, 0.12);
  color: var(--color-graphite);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}

.badge svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  color: var(--color-forest);
}

.badge--gold svg {
  color: var(--color-gold);
}

.button,
button.button,
input[type="submit"].button,
input[type="button"].button,
input[type="reset"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--color-forest);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button:hover,
button.button:hover,
input[type="submit"].button:hover,
input[type="button"].button:hover,
input[type="reset"].button:hover {
  background: var(--color-forest-hover);
  color: var(--color-on-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
button.button:focus-visible,
input[type="submit"].button:focus-visible,
input[type="button"].button:focus-visible,
input[type="reset"].button:focus-visible {
  outline-color: var(--color-gold);
}

.button--secondary {
  border-color: var(--color-forest);
  background: var(--color-alabaster);
  color: var(--color-graphite);
}

.button--secondary:hover {
  border-color: var(--color-forest-hover);
  background: var(--color-pale-slate);
  color: var(--color-forest-hover);
}

.button--full {
  width: 100%;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}

.button-group > * {
  min-width: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-pale-slate);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.media-frame:hover img {
  transform: scale(1.02);
}

.form-field {
  min-width: 0;
  margin-bottom: var(--space-3);
}

.form-field > :last-child {
  margin-bottom: 0;
}

.form-help {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-error {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-error);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

.form-success {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

.list {
  margin: 0 0 var(--space-5);
  padding: 0;
}

.list--marked > li {
  position: relative;
  padding-left: 1rem;
}

.list--marked > li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 1px;
  background: var(--color-forest);
  content: "";
}

.list--spaced {
  display: grid;
  gap: var(--space-3);
}

.list--spaced > li {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 899px) {
  :root {
    --gutter: 1.25rem;
    --section-space: 3.25rem;
  }

  .card,
  .panel {
    padding: 1.25rem;
  }

  h1 {
    font-size: clamp(2.625rem, 7vw, 3.5rem);
  }
}

@media (max-width: 699px) {
  :root {
    --gutter: 1rem;
    --section-space: 2.75rem;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.125rem, 10vw, 2.625rem);
    line-height: 1.1;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  .card,
  .panel {
    padding: var(--space-4);
  }

  .button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .button-group .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

ul {
  list-style: none !important;
}

.nav-toggle {
  flex-direction: column;
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

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