:root {
  color-scheme: light dark;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #181a1b;
  --muted: #62676b;
  --line: #deded9;
  --accent: #315c7b;
}

* { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; text-rendering: optimizeLegibility; }
body { min-height: 100vh; margin: 0; background: var(--background); color: var(--text); }
main { display: grid; min-height: 100vh; place-items: center; padding: clamp(2rem, 8vw, 7rem) 1.5rem; }
.profile { width: min(100%, 42rem); padding: clamp(2rem, 6vw, 4.5rem); background: var(--surface); border: 1px solid var(--line); }
h1 { margin: 0; font-size: clamp(2.6rem, 10vw, 5.5rem); font-weight: 650; letter-spacing: -0.055em; line-height: 0.95; }
.title, .tagline, .summary, .location { max-width: 36rem; }
.title { margin: 1.5rem 0 0; color: var(--accent); font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 600; }
.tagline { margin: 0.6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.summary { margin: 2.5rem 0 0; font-size: clamp(1.05rem, 2.5vw, 1.2rem); line-height: 1.7; }
.location { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
a { color: var(--text); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 0.12em; text-underline-offset: 0.25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-color-scheme: dark) {
  :root { --background: #101214; --surface: #171a1d; --text: #f2f1ed; --muted: #a8adb1; --line: #34383b; --accent: #8eb9d6; }
}
@media (max-width: 34rem) { .profile { border-right: 0; border-left: 0; } }
