:root {
  color-scheme: light dark;
  --canvas: #F4F6FA;
  --paper: #FFFFFF;
  --line: #D9DFEA;
  --ink: #0B1220;
  --muted: #5B6B82;
  --accent: #0891B2;
  --accent-text: #0E7490;
  --accent-soft: rgba(8, 145, 178, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0F1A;
    --paper: #121A2A;
    --line: #263247;
    --ink: #F1F5F9;
    --muted: #94A3B8;
    --accent: #22D3EE;
    --accent-text: #22D3EE;
    --accent-soft: rgba(34, 211, 238, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand svg { width: 26px; height: 34px; flex: none; }

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

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

main.wrap { padding-top: 40px; padding-bottom: 56px; }

h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 { margin: 24px 0 4px; font-size: 1.05rem; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { font-weight: 620; }

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

.summary {
  margin: 0 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--paper);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.card:hover { border-color: var(--accent); }
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 0; }

.contact {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
}

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

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
}

footer.site a { color: var(--muted); }
