
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121a2d;
  --panel-2: #17223a;
  --text: #e8edf7;
  --muted: #aab6cb;
  --line: #293650;
  --accent: #83b7ff;
  --accent-2: #a8f0d0;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(ellipse at top left, #172643 0, var(--bg) 45rem);
  color: var(--text); font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c6ddff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--panel); padding: .6rem 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,16,32,.82); backdrop-filter: blur(12px); }
.header-inner, main, .footer-inner { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 0; }
.brand { color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 750; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
nav { display: flex; gap: .4rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; }
nav a[aria-current="page"], nav a:hover { color: var(--text); background: var(--panel-2); }
main { padding: 3.5rem 0 5rem; }
.eyebrow { color: var(--accent-2); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); max-width: 900px; margin: .7rem 0 1rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin: 3.3rem 0 1rem; }
h3 { font-size: 1.18rem; margin: 0 0 .55rem; }
p { color: #d4dced; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #c6d1e5; max-width: 780px; }
.muted, .meta { color: var(--muted); }
.hero { padding: 1rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 2rem; }
.portrait { width: 100%; max-width: 270px; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 25px 80px #0006; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.button.primary { background: var(--accent); color: #071326; border-color: var(--accent); }
.button:hover { transform: translateY(-1px); }
.section-intro { max-width: 760px; margin-top: -.3rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.card { background: linear-gradient(145deg, var(--panel), #0f1728); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.tag { color: #c8d8f2; border: 1px solid #344665; background: #192640; border-radius: 99px; padding: .18rem .6rem; font-size: .82rem; }
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.skill-groups .card { padding: 1.2rem; }
ul.clean { padding-left: 1.2rem; }
li { margin: .32rem 0; }
.timeline { border-left: 1px solid var(--line); margin: 1.5rem 0 2rem .5rem; padding-left: 1.4rem; }
.timeline-item { position: relative; margin: 0 0 1.7rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.77rem; top: .55rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.year { color: var(--accent-2); font-size: .86rem; font-weight: 750; }
.paper { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.paper:first-of-type { border-top: 1px solid var(--line); }
.paper-title { font-weight: 750; font-size: 1.12rem; color: var(--text); }
.paper-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; font-size: .95rem; }
.note { background: #17243a; border-left: 3px solid var(--accent-2); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; color: #d5e0f1; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
small { color: var(--muted); }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { width: 150px; max-width: 150px; }
  .cards, .skill-groups { grid-template-columns: 1fr; }
  main { padding-top: 2.4rem; }
  .header-inner, main, .footer-inner { width: min(100% - 1.5rem, var(--max)); }
}
@media print {
  :root { color-scheme: light; --bg: white; --panel: white; --panel-2: #f2f4f8; --text: #111; --muted: #444; --line: #ddd; --accent: #1456a0; }
  body { background: white; color: #111; }
  .site-header, footer, .actions { display: none; }
  main { width: 100%; padding: 0; }
  .card { break-inside: avoid; }
}
