:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --text: #2b2f36;
  --muted: #5f6672;
  --line: #ebe5dc;
  --accent: #2f6f73;
  --accent-text: #ffffff;
  --max: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav a { display: inline-block; padding: .7rem .6rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 240px; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.5rem; }
.portrait { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; border: 4px solid var(--line); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
.btn { display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; color: var(--text); background: var(--surface); font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.section { padding: 2.5rem 1rem; border-top: 1px solid var(--line); }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0; }
h3 span { color: var(--muted); font-weight: 400; }
h3 span::before { content: "· "; }
.sub { margin-top: 2rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; margin-bottom: 2rem; }
.timeline > li::before { content: ""; position: absolute; left: -1.7rem; top: .55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--accent); }
.when { color: var(--muted); margin: .1rem 0 .5rem; font-size: .95rem; }
.timeline ul { margin: 0; padding-left: 1.2rem; list-style: disc; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0; }
.skills div { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.skills dt { font-weight: 700; margin-bottom: .25rem; }
.skills dd { margin: 0; color: var(--muted); }

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

@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: 140px; height: 140px; }
  .bar { gap: 0; padding-top: .25rem; }
  nav { margin-left: -.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.dl { position: relative; }
.dl summary { cursor: pointer; list-style: none; }
.dl summary::-webkit-details-marker { display: none; }
.dl summary::after { content: " \25BE"; }
.dl ul { position: absolute; z-index: 6; top: calc(100% + .35rem); left: 0; min-width: 100%; margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.dl li a { display: block; padding: .45rem .75rem; border-radius: .35rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.dl li a:hover { background: var(--bg); color: var(--accent); }
