:root {
  color-scheme: light;
  --background: #f7f8f6;
  --surface: #ffffff;
  --text: #1e2522;
  --muted: #5f6b65;
  --line: #dce4df;
  --accent: #0e7c66;
  --accent-soft: #e1f3ee;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header-inner,
.site-main,
.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.site-main {
  padding: 44px 0 64px;
}

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0b5f50;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 12px;
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: 0;
}

h1 {
  margin: 20px 0 12px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 6px;
}

code {
  border-radius: 4px;
  background: #eef3f0;
  padding: 0.1em 0.35em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 36px;
}

.index-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
}

.index-list a {
  display: block;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
}

.index-list strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.index-list span {
  color: var(--muted);
}

@media (max-width: 620px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .nav {
    gap: 12px;
  }
}
