:root {
  color-scheme: light;
  --canvas: #f4f7f5;
  --surface: #ffffff;
  --surface-muted: #e6eeea;
  --ink: #1c2e25;
  --ink-muted: #3a5347;
  --accent: #ffc06a;
  --accent-ink: #352f36;
  --rule: #c7d7cf;
  --content-width: 720px;
  --page-gutter: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.utility-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.navbar {
  display: flex;
  align-items: center;
  width: min(100%, 1120px);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 4px;
  background: var(--accent);
  transform: rotate(-45deg);
}

.page-shell {
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) var(--page-gutter) 80px;
}

.utility-main {
  display: flex;
  align-items: center;
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: clamp(64px, 12vw, 120px) var(--page-gutter);
  flex: 1;
}

.utility-content {
  width: 100%;
}

.utility-content h1 {
  max-width: 14ch;
}

.utility-content .intro {
  margin-bottom: 36px;
}

.link-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease-out, padding 180ms ease-out;
}

.link-list a::after {
  color: var(--ink-muted);
  content: "→";
  font-size: 22px;
  font-weight: 400;
}

.link-list a:hover {
  padding-left: 8px;
  color: var(--ink-muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  filter: brightness(0.96);
}

.document-header {
  margin-bottom: clamp(44px, 7vw, 64px);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2 {
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.intro {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}

.last-updated {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.placeholder-note {
  margin: 0 0 48px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.placeholder-note strong {
  font-weight: 700;
}

.legal-section {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.legal-section p {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.legal-section p + p {
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  min-height: 88px;
  margin: 0 auto;
  padding: 20px var(--page-gutter);
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-inner a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .navbar {
    min-height: 64px;
  }

  h1 {
    font-size: 42px;
  }

  .intro {
    font-size: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .skip-link {
    transition: none;
  }

  .link-list a {
    transition: none;
  }
}

@media print {
  :root {
    --canvas: #ffffff;
    --ink: #000000;
    --ink-muted: #222222;
    --rule: #cccccc;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .status,
  .placeholder-note {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .legal-section {
    break-inside: avoid;
  }
}
