:root {
  --bg: #fbfaf7;
  --fg: #1f2320;
  --muted: #5e655f;
  --rule: #dcd9d0;
  --card: #ffffff;
  --accent: #1f5a3a;
  --measure: 44rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161815; --fg: #ebe9e2; --muted: #a2a79f; --rule: #2f332e; --card: #1e211d; --accent: #8fd19e; }
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}
:lang(ja) { line-height: 1.8; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
header.site, main, footer.site { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
header.site { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.wordmark { color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.wordmark span { font-weight: 400; color: var(--muted); }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo { height: 1.6rem; width: auto; }
@media (prefers-color-scheme: dark) { .logo { filter: invert(1); } }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--fg); text-decoration: underline; }
header.site nav a.lang { border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; color: var(--fg); }
.hero { padding: 3.5rem 0 2rem; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }
:lang(ja) .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero p { font-size: 1.15rem; max-width: 36rem; margin: 0; color: var(--muted); }
section { padding: 2rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1.25rem; font-weight: 600; }
:lang(ja) h2 { text-transform: none; letter-spacing: 0.04em; }
h2 .ja, th .ja { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.5em; }
.lede { font-size: 1.05rem; max-width: 38rem; margin: 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cards article { background: var(--card); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem; }
.cards h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); }
table.profile { border-collapse: collapse; width: 100%; }
table.profile th, table.profile td { text-align: left; vertical-align: top; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
table.profile th { width: 11rem; font-weight: 600; color: var(--fg); padding-right: 1rem; }
table.profile td span[lang] { color: var(--muted); }
@media (max-width: 36rem) { table.profile th, table.profile td { display: block; width: auto; } table.profile th { border-bottom: 0; padding-bottom: 0.1rem; } }
footer.site { padding-top: 2rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); margin-top: 2rem; }
footer.site a { color: var(--muted); }
.prose h1 { font-size: 2rem; margin: 2.5rem 0 0.25rem; }
.prose .meta { color: var(--muted); margin-top: 0; }
.prose h2 { text-transform: none; letter-spacing: 0; font-size: 1.2rem; color: var(--fg); margin-top: 2rem; }
.prose p { max-width: 38rem; }
