:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #52615a;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dce4de;
  --brand: #165b43;
  --brand-strong: #0e4532;
  --accent: #dff3e8;
  --warm: #f5efe2;
  --focus: #a43d00;
  --shadow: 0 18px 45px rgb(31 54 44 / 9%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgb(223 243 232 / 72%), transparent 30rem),
    var(--paper);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(-180%);
}

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

.site-header,
.site-footer,
main {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.65rem 0.65rem 0.65rem 0.2rem;
  color: #fff;
  background: var(--brand);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}

main {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 28rem;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.eyebrow {
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  letter-spacing: -0.045em;
}

.document h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.lead {
  max-width: 41rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-card,
.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.hero-card p,
.card p {
  margin: 0;
}

.hero-card ul,
.prose ul {
  padding-left: 1.2rem;
}

.hero-card li + li,
.prose li + li {
  margin-top: 0.45rem;
}

.badge {
  margin-bottom: 1rem;
  padding: 0.28rem 0.65rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 0.7rem;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
}

.button.secondary {
  color: var(--brand-strong);
  background: var(--surface);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  padding: 1.35rem;
}

.card-number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.document {
  max-width: 52rem;
}

.document-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  padding-top: 2rem;
}

.prose section + section {
  margin-top: 3.25rem;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1rem;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 0.35rem solid var(--brand);
  background: var(--warm);
  box-shadow: none;
}

.scope {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 2rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .hero {
    display: block;
  }

  .site-header nav {
    margin-top: 1rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-card {
    margin-top: 2rem;
  }

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

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