:root {
  color-scheme: light;
  --background: #f5f6f4;
  --surface: #ffffff;
  --surface-soft: #edf2ef;
  --ink: #202522;
  --muted: #626b66;
  --line: #d9dfdb;
  --accent: #3f6e5f;
  --accent-strong: #2f574b;
  --warning: #6d5535;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(32, 37, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid rgba(63, 110, 95, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header,
.page-shell,
.site-footer {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(32, 37, 34, 0.12);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.page-shell {
  padding-block: 18px 56px;
}

.hero,
.document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(32px, 7vw, 64px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14em;
  margin-bottom: 18px;
  font-size: clamp(31px, 7vw, 50px);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.55;
}

.lead {
  max-width: 38em;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.boundary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  list-style: none;
}

.boundary li {
  min-height: 106px;
  padding: 18px;
  background: var(--surface-soft);
}

.boundary strong,
.boundary span {
  display: block;
}

.boundary strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.boundary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.link-card {
  display: block;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: #aebdb5;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(32, 37, 34, 0.08);
  transform: translateY(-2px);
}

.link-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.document {
  padding: clamp(28px, 7vw, 56px);
}

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

.document-header h1 {
  font-size: clamp(29px, 6vw, 44px);
}

.updated-at {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.document section {
  padding-top: 34px;
}

.document section + section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.document p:last-child,
.document ul:last-child {
  margin-bottom: 0;
}

.document ul,
.document ol {
  margin: 0;
  padding-left: 1.4em;
}

.document li + li {
  margin-top: 8px;
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--surface-soft);
}

.notice.warning {
  border-left-color: var(--warning);
  background: #f5f0e8;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #ffffff;
  background: var(--accent);
}

.site-footer {
  padding-block: 0 36px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .boundary,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .boundary li {
    min-height: auto;
  }
}

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

  .link-card {
    transition: none;
  }
}
