:root {
  color-scheme: light;
  --ink: #18251f;
  --muted: #53665d;
  --paper: #fbfdfb;
  --surface: #ffffff;
  --line: #dce7df;
  --accent: #176b50;
  --accent-soft: #e5f4ed;
  --warning: #8b4a16;
  --danger: #9d2e2e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
}

.site-footer {
  border-width: 1px 0 0;
  color: var(--muted);
  margin-top: 4rem;
}

.header-inner,
.footer-inner,
main {
  margin: 0 auto;
  max-width: 74rem;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.header-inner,
.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

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

main {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.hero {
  max-width: 52rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: -0.04em;
  margin: 0.5rem 0 1rem;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 3.2rem 0 1rem;
  padding-top: 1.35rem;
}

h3 {
  font-size: 1.12rem;
  margin: 2rem 0 0.6rem;
}

p,
li {
  max-width: 70ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  margin-bottom: 2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.card,
.notice,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
}

.card h2 {
  border: 0;
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  padding: 0;
}

.notice {
  background: var(--accent-soft);
  margin: 1.5rem 0;
}

.notice.warning {
  background: #fff5e9;
  border-color: #efd2b6;
  color: var(--warning);
}

.document {
  max-width: 58rem;
}

.document table {
  border-collapse: collapse;
  display: block;
  margin: 1.25rem 0;
  overflow-x: auto;
  width: 100%;
}

.document th,
.document td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.document th {
  background: #f0f6f2;
}

.status-card {
  margin-top: 2rem;
  max-width: 42rem;
}

.status-card[data-tone="error"] {
  border-color: #e8bcbc;
}

.status-card[data-tone="error"] #status-title {
  color: var(--danger);
}

.status-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(8rem, 0.7fr) 1.3fr;
  margin: 1.3rem 0;
}

.status-grid dt {
  color: var(--muted);
}

.status-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
}

button:hover,
button:focus-visible {
  background: #0f5940;
}

[hidden] {
  display: none !important;
}

code {
  background: #edf2ef;
  border-radius: 0.25rem;
  padding: 0.1rem 0.3rem;
}

@media (max-width: 38rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
