:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5d646b;
  --line: #e3dfd6;
  --accent: #1f4e5f;
  --accent-soft: #e4eef1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14181b;
    --surface: #1b2024;
    --text: #e8e6e1;
    --muted: #9aa2a9;
    --line: #2c3338;
    --accent: #8cc3d4;
    --accent-soft: #1f2d33;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14181b;
  --surface: #1b2024;
  --text: #e8e6e1;
  --muted: #9aa2a9;
  --line: #2c3338;
  --accent: #8cc3d4;
  --accent-soft: #1f2d33;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  transition: background-color .2s, color .2s;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }

nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; gap: 16px; }
nav .brand { font-family: Fraunces, Georgia, serif; font-weight: 600; text-decoration: none; color: var(--text); }
nav .right { display: flex; align-items: center; gap: 16px; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0 4px 0 0; padding: 0; font-size: 14px; }
nav ul a { color: var(--muted); text-decoration: none; }
nav ul a:hover { color: var(--text); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); padding: 3px; gap: 2px;
}
.lang-switch a {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  color: var(--muted); padding: 5px 9px; border-radius: 5px; line-height: 1;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--accent); color: var(--bg); }
@media (max-width: 640px) { nav ul { display: none; } }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

header.hero { padding: 88px 0 64px; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.portrait {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface);
}
@media (max-width: 680px) {
  header.hero { padding-top: 48px; }
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 128px; height: 128px; order: -1; }
}
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(36px, 7vw, 58px); margin: 12px 0 16px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); align-items: center; }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.cta { display: inline-block; margin-top: 32px; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; margin-bottom: 24px; }
h3.sub { font-size: 19px; margin: 28px 0 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 32px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 600; color: var(--accent); }
.stat dt { font-size: 14px; color: var(--muted); }

.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.roles li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.roles b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job .when { font-size: 14px; color: var(--muted); padding-top: 3px; }
.job h3 { font-size: 19px; }
.job .org { font-size: 14px; color: var(--accent); font-weight: 500; margin: 4px 0 10px; }
.job ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.job li + li { margin-top: 4px; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; gap: 6px; } }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

address { font-style: normal; }
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
