:root {
  color-scheme: light dark;
  --page: #f4f6f3;
  --paper: #fffefa;
  --ink: #142127;
  --muted: #53656a;
  --line: #d8e0dc;
  --accent: #087e83;
  --accent-soft: #e0f3f0;
  --orange: #e9784e;
  --notice-ink: #174c4a;
  --notice-bg: #e5f2ef;
  --notice-line: #a8d1c7;
  --shadow: 0 22px 60px rgb(29 55 53 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 92% 4%, rgb(36 173 168 / 9%), transparent 28rem),
    radial-gradient(ellipse at 4% 50%, rgb(233 120 78 / 6%), transparent 25rem),
    var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.site-shell { width: min(100% - 40px, 1120px); margin-inline: auto; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 rgb(20 33 39 / 14%);
  font-size: .9rem;
  font-weight: 900;
}

.brand-subtitle {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .03em;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.primary-nav a {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.page-main { min-height: 65vh; padding-block: clamp(36px, 7vw, 78px) 72px; }

.page-content {
  width: min(100%, 790px);
  margin-inline: auto;
  padding: clamp(25px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.home-content { width: min(100%, 980px); }

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; }
h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  font-weight: 850;
  letter-spacing: -.075em;
}
h2 { margin: 0 0 12px; font-size: clamp(1.18rem, 2.5vw, 1.5rem); letter-spacing: -.035em; }
h3 { margin: 0 0 7px; font-size: 1rem; letter-spacing: -.02em; }

.lede {
  max-width: 65ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.72;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}

.metadata div { display: grid; gap: 3px; }
.metadata dt { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metadata dd { margin: 0; font-size: .82rem; font-weight: 750; }

.policy-note {
  margin: 25px 0 4px;
  padding: 17px 19px;
  border: 1px solid var(--notice-line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: var(--notice-bg);
  color: var(--notice-ink);
}

.policy-note strong { display: block; color: var(--notice-ink); font-size: .77rem; letter-spacing: .06em; }
.policy-note p { margin: 6px 0 0; color: inherit; font-size: .88rem; }

.content-section { padding-top: 27px; }
.content-section + .content-section { margin-top: 25px; border-top: 1px solid var(--line); }
.content-section > :last-child { margin-bottom: 0; }
.content-section p, .content-section li { color: var(--muted); }
.content-section p { margin: 9px 0 0; }
.content-section ul, .content-section ol { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.content-section li { padding-left: 3px; }
.content-section strong { color: var(--ink); }

.notice-card {
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
}
.notice-card p:first-child { margin-top: 0; }
.notice-card p { margin: 7px 0 0; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 28px;
}

.page-card {
  display: block;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.page-card:hover {
  transform: translateY(-2px);
  border-color: rgb(8 126 131 / 45%);
  box-shadow: 0 12px 28px rgb(29 55 53 / 8%);
}

.page-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 1.05rem; }
.page-card h2::after { content: "↗"; color: var(--accent); font-size: 1.2rem; }
.page-card p { margin: 11px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.status-list { display: grid; gap: 10px; margin-top: 15px; }
.status-row { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status-row dt { color: var(--ink); font-size: .88rem; font-weight: 750; }
.status-row dd { margin: 0; color: var(--muted); font-size: .88rem; }

.site-footer {
  padding-block: 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .79rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.site-footer a { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101719;
    --paper: #172124;
    --ink: #eef5f2;
    --muted: #b0c2bf;
    --line: #344443;
    --accent: #78dcda;
    --accent-soft: #203a39;
    --notice-ink: #d7f4eb;
    --notice-bg: #203b37;
    --notice-line: #426b62;
    --shadow: 0 22px 60px rgb(0 0 0 / 20%);
  }
  .policy-note { color: #d7f4eb; }
  .policy-note strong { color: var(--notice-ink); }
  .page-card:hover { border-color: rgb(120 220 218 / 50%); }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 30px, 1120px); }
  .masthead { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 18px; }
  .primary-nav { justify-content: flex-start; width: 100%; flex-wrap: wrap; padding-bottom: 0; }
  .primary-nav a { flex: 0 0 auto; }
  .page-main { padding-block: 24px 42px; }
  .page-content { padding: clamp(21px, 5vw, 34px); border-radius: 15px; }
}

@media (max-width: 520px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-card { min-height: 0; }
  .status-row { grid-template-columns: 1fr; gap: 4px; }
}

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