:root {
  --green-950: #143c32;
  --green-800: #245b46;
  --green-100: #e7f0ea;
  --earth: #8b5e34;
  --earth-soft: #f3e8d8;
  --paper: #fafbf8;
  --white: #ffffff;
  --ink: #17251f;
  --muted: #4c6258;
  --line: #cbd8d1;
  --warning: #7a3d00;
  --warning-bg: #fff3d6;
  --danger: #9b1c1c;
  --focus: #ffbf47;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.68;
}

a { color: var(--green-800); font-weight: 750; text-underline-offset: 0.18em; }
a:hover { color: var(--earth); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--green-950);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  color: var(--white);
  background: var(--green-950);
}

.header-inner,
.container,
.footer-inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.header-inner { padding: 2rem 0 1.5rem; }
.brand { margin: 0; font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.14; font-weight: 900; }
.tagline { margin: 0.55rem 0 0; color: #dce9e1; font-size: 1rem; font-weight: 650; }

.site-nav { background: #0d2f27; }
.site-nav ul {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  border: 2px solid #7ea391;
  border-radius: 0.65rem;
  text-decoration: none;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--green-950); background: var(--white); }

.container { padding: 2rem 0 3rem; }
main:focus { outline: none; }

h1, h2, h3 { color: var(--green-950); line-height: 1.2; }
h1 { margin: 0 0 0.65rem; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.025em; }
h2 { margin: 2.35rem 0 0.8rem; font-size: clamp(1.45rem, 5vw, 2rem); }
h3 { margin: 1.5rem 0 0.55rem; font-size: 1.18rem; }
p, li { max-width: 76ch; }
li + li { margin-top: 0.42rem; }

.lead { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.1rem; font-weight: 650; }
.meta { color: var(--muted); font-weight: 700; }

.card,
.notice,
.contact-box {
  padding: 1.25rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(20, 60, 50, 0.06);
}
.card + .card { margin-top: 1rem; }
.notice { border-left: 7px solid var(--earth); background: var(--earth-soft); }
.notice strong { color: #613b1e; }
.legal-note { border-left-color: var(--green-800); background: var(--green-100); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.grid .card h2, .grid .card h3 { margin-top: 0; }

.button,
button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--green-950);
  border-radius: 0.75rem;
  color: var(--white);
  background: var(--green-800);
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--green-950); color: var(--white); }
.button.secondary { color: var(--green-950); background: var(--white); }
button:disabled,
button[aria-busy="true"] { opacity: 0.68; cursor: wait; }

form { margin-top: 1.25rem; }
.field { margin-bottom: 1.2rem; }
label, legend { display: block; margin-bottom: 0.4rem; color: var(--green-950); font-weight: 850; }
.hint { display: block; margin: 0.35rem 0 0; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem;
  border: 2px solid #789185;
  border-radius: 0.7rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
textarea { min-height: 145px; resize: vertical; }
fieldset { margin: 0 0 1.2rem; padding: 1rem; border: 2px solid var(--line); border-radius: 0.8rem; }
.check-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-row input { width: 26px; min-width: 26px; height: 26px; min-height: 26px; margin-top: 0.15rem; }
.check-row label { margin: 0; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.status { margin-top: 1rem; padding: 1rem; border-radius: 0.7rem; font-weight: 750; }
.status:empty { display: none; }
.status.success { color: #0b4c2a; background: #ddf4e5; border: 2px solid #4b9669; }
.status.error { color: var(--danger); background: #fff0f0; border: 2px solid #d36b6b; }
.status:focus { outline: 4px solid var(--focus); outline-offset: 3px; }

.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;
  white-space: nowrap !important;
  border: 0 !important;
}

code { padding: 0.12rem 0.3rem; border-radius: 0.3rem; background: #edf1ee; font-size: 0.94rem; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 0.85rem; border: 2px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green-950); background: var(--green-100); font-weight: 850; }

.site-footer { color: #e8f1ec; background: var(--green-950); }
.footer-inner { padding: 1.5rem 0 2rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0.35rem 0; }

@media (max-width: 620px) {
  :root { font-size: 18px; }
  .header-inner, .container, .footer-inner, .site-nav ul { width: min(100% - 1.25rem, 960px); }
  .site-nav li { flex: 1 1 45%; }
  .site-nav a { width: 100%; justify-content: center; }
  .actions .button, .actions button { width: 100%; }
}

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

@media print {
  .site-nav, .skip-link { display: none; }
  body { color: #000; background: #fff; }
  .card, .notice { box-shadow: none; break-inside: avoid; }
}
