:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #171a1d;
  --text: #eceeed;
  --muted: #a8afb3;
  --line: #2d3236;
  --accent: #a3cbb9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(42px, 5.7vw, 76px); font-weight: 600; letter-spacing: -3.5px; }
h1 span { color: var(--accent); }
h2 { font-size: 27px; font-weight: 550; letter-spacing: -.7px; }
h3 { font-size: 19px; font-weight: 550; letter-spacing: -.25px; }
p { color: var(--muted); }
.sidebar { width: 245px; position: fixed; inset: 0 auto 0 0; background: #141719; border-right: 1px solid var(--line); padding: 44px 26px 30px; display: flex; flex-direction: column; overflow-y: auto; }
.identity { display: flex; gap: 13px; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.4; }
.monogram { width: 44px; height: 44px; display: grid; place-items: center; background: #222b29; border: 1px solid #38473f; border-radius: 9px; color: var(--accent); font-size: 22px; letter-spacing: -1px; }
.identity small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.sidebar-label { margin: 60px 0 18px 10px; font: 10px monospace; letter-spacing: 1.8px; color: #909a9f; }
nav { display: flex; flex-direction: column; gap: 7px; }
nav a { padding: 10px; border-radius: 5px; font-size: 14px; color: #c4c9cc; }
nav a:hover { background: #202528; }
.sidebar-bottom { margin-top: auto; padding-top: 50px; font-size: 12px; }
.sidebar-bottom p { margin-bottom: 16px; color: #c4c9cc; }
.sidebar-bottom p span { color: #929b9f; font-size: 11px; }
.sidebar-bottom a { margin-right: 17px; }
.content { max-width: 1150px; margin-left: 245px; padding: 0 76px; }
.hero { padding: 84px 0 0; }
.eyebrow { font: 10px/1.6 monospace; letter-spacing: 1.65px; color: var(--accent); }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); border-radius: 50%; vertical-align: middle; }
.hello { margin-top: 42px; margin-bottom: 7px; font-size: 17px; }
.lead { font-size: 25px; line-height: 1.5; margin-top: 24px; color: #d1d6d7; letter-spacing: -.4px; }
.hero-summary { max-width: 565px; margin-top: 20px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 30px; }
.button { display: inline-flex; gap: 26px; background: var(--accent); color: #14241c; border: 1px solid var(--accent); border-radius: 5px; padding: 10px 19px; font-size: 13px; font-weight: 600; }
.button:hover { background: #bbd9ca; color: #14241c; }
.quiet-link { font-size: 13px; }
.hero-foot { margin-top: 54px; padding: 22px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.hero-foot a { color: var(--accent); }
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 29px; }
.section-number { color: var(--accent); font: 11px monospace; }
.section-link { margin-left: auto; color: var(--muted); font-size: 11px; }
.about-copy { max-width: 650px; font-size: 15px; }
.about-copy p + p { margin-top: 16px; }
.facts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.facts span { font: 9px monospace; letter-spacing: 1.5px; color: #909c96; }
.facts p { margin-top: 8px; font-size: 13px; color: #d4d9d7; }
.facts small { font-size: 12px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project { padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); display: flex; flex-direction: column; }
.project .eyebrow { font-size: 9px; letter-spacing: 1.25px; }
.project h3 { margin: 17px 0 13px; }
.project h3 span { color: #879b90; font-size: 16px; }
.project > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 20px 0; padding: 0; }
.tags li { font-size: 10px; color: #b9c5be; border: 1px solid #36403a; background: #1c2420; border-radius: 4px; padding: 2px 7px; }
.project-link { margin-top: auto; padding-top: 4px; font-size: 12px; color: #d6dcd8; align-self: flex-start; }
.section-intro { font-size: 14px; margin-top: -12px; margin-bottom: 24px; }
.contribution { padding: 28px; border: 1px solid #3c5045; border-radius: 7px; background: #171e1a; }
.contribution-top, .contribution-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.repo-name { font-size: 13px; color: #b9c3bd; }
.repo-name strong { font-weight: 550; color: var(--text); }
.merged { font-size: 10px; border: 1px solid #416150; color: #b8dec6; padding: 2px 9px; border-radius: 20px; }
.contribution h3 { margin: 24px 0 14px; font-size: 21px; }
.contribution > p { font-size: 14px; margin-top: 11px; }
code { font-family: monospace; font-size: .95em; color: #d1dcd5; }
.contribution-bottom { margin-top: 24px; font-size: 11px; color: #b7c3bb; }
.contribution-bottom a { color: var(--accent); }
.contribution .date-note { margin-top: 14px; font-size: 11px; color: #97a79c; }
.more-contributions { display: inline-block; margin-top: 20px; color: var(--muted); }
.experience-row { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.experience-row:first-of-type { padding-top: 3px; }
.experience-row:last-child { border: 0; padding-bottom: 0; }
.period { font: 10px/1.8 monospace; letter-spacing: .4px; padding-top: 4px; }
.experience-row p:not(.period) { font-size: 14px; margin-top: 12px; }
.experience-row .organization { color: #ccd4cf; margin-top: 6px; font-size: 13px; }
.experience-row .tags { margin-bottom: 0; }
.skill-list { margin: 0; }
.skill-list > div { display: grid; grid-template-columns: 175px 1fr; gap: 25px; border-bottom: 1px solid var(--line); padding: 17px 0; font-size: 13px; }
.skill-list > div:first-child { padding-top: 0; }
.skill-list > div:last-child { border: 0; padding-bottom: 0; }
dt { color: #d3d9d5; } dd { margin: 0; color: var(--muted); }
.contact-copy { max-width: 540px; font-size: 15px; }
.email-link { display: inline-block; font-size: clamp(17px,2.3vw,25px); margin-top: 25px; color: var(--accent); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #3c5245; }
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 12px; color: #c1cbc5; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 27px 0; font-size: 11px; color: #9aa59f; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 18px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.wrap { max-width: 850px; margin: 0 auto; padding: 60px 25px; }
.text-link { color: var(--accent); }
:target { scroll-margin-top: 32px; }
@media (max-width: 530px) {
  .content { padding-inline: 23px; } .projects { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1.8px; } .lead { font-size: 21px; } .hero-summary { font-size: 14px; }
  .section-link { margin-left: 0; flex-basis: 100%; padding-left: 27px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .skill-list > div { grid-template-columns: 1fr; gap: 6px; }
  .contribution { padding: 21px; } .contribution h3 { font-size: 19px; }
  .contribution-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mast { border-bottom: 1px solid var(--line); background: var(--bg); }
.mast-inner, .content { width: min(100%, 1000px); margin: auto; padding-inline: clamp(20px, 5vw, 56px); }
.mast-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; }
.wordmark { font: 600 18px/1.2 ui-monospace, monospace; letter-spacing: -1px; }
.wordmark span, .location { color: var(--accent); }
nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
.hero { padding: clamp(58px, 10vw, 114px) 0 64px; border-bottom: 1px solid var(--line); }
.hello { font: 16px/1.5 ui-monospace, monospace; margin: 0 0 10px; color: var(--muted); }
.hero h1 { font-size: clamp(52px, 8vw, 96px); letter-spacing: -.065em; line-height: 1.04; }
.hero-summary { font-size: clamp(17px, 2vw, 21px); max-width: 560px; line-height: 1.6; }
.location { font: 13px/1.6 ui-monospace, monospace; margin-top: 18px; }
.experience-row { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.experience-row, .experience-row:first-of-type, .experience-row:last-child { padding: 24px; border: 1px solid var(--line); }
.project { border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .project:focus-within, .project:hover { border-color: var(--accent); }
}
.button:active { transform: scale(.98); }
@media (max-width: 700px) {
  .mast-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  nav { gap: 4px 14px; }
  nav a { padding: 4px 0; font-size: 13px; }
  .section-link { padding-left: 0; }
}

.more { grid-column: 1 / -1; }
.more summary { width: fit-content; padding: 9px 15px; margin: 12px auto; cursor: pointer; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 14px; }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.more .opened, .more[open] .closed { display: none; }
.more[open] .opened { display: inline; }
.projects .extra-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 18px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  .hero { animation: arrive 280ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .project { transition: transform 180ms ease-out, border-color 180ms ease-out; }
    .project:hover { transform: translateY(-3px); }
    .more summary:hover { border-color: var(--accent); }
  }
}

:root { --bg:#0c1114; --panel:#141c20; --line:#2b383b; --accent:#96e9ce; --text:#f1f2e9; }
body { font-family: Inter, system-ui, sans-serif; }
.hero { background: linear-gradient(0deg,var(--bg),transparent 18%), linear-gradient(90deg,transparent,#10181bbf 50%,transparent), url(signal.webp) center/cover; text-align:center; margin-inline:calc(-1 * clamp(20px, 5vw, 56px)); padding:clamp(60px,8vw,116px) 20px 64px; }
.hero h1 { font-weight:650; }
.hero h1 em { font:italic 1.04em Georgia,serif; letter-spacing:-.07em; }
.hello,.period,.rail-role,.wordmark { font-family:ui-monospace,monospace; }
.hello { text-transform:uppercase; letter-spacing:.16em; font-size:12px; color:var(--accent); }
.hero-summary { margin:22px auto 12px; color:#dce6e0; }
.actions,.hero-social { justify-content:center; }
.hero-social { display:flex; gap:22px; margin-top:22px; font-size:13px; }
.section-title h2 { font:normal clamp(32px,4vw,49px)/1.12 Georgia,serif; letter-spacing:-.045em; }
.project { background:linear-gradient(145deg,#1a292b,var(--panel) 55%); }
.stack { margin:16px 0; color:var(--accent); font-size:13px; }
.stack summary,button { cursor:pointer; }
.stack .tags { margin:8px 0; }
button { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:10px 14px; font:inherit; }
:where(button,summary,input,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
nav a[aria-current] { background:#20332f; color:var(--accent); }
.rail-role,.rail-footer,.menu { display:none; }
form { max-width:690px; margin-top:28px; padding:clamp(18px,3vw,30px); background:var(--panel); border:1px solid var(--line); border-radius:12px; }
form label { display:grid; gap:6px; margin-bottom:14px; font-size:14px; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
input,textarea { width:100%; min-width:0; font:inherit; color:var(--text); background:var(--bg); border:1px solid #425150; padding:10px; border-radius:5px; }
textarea { resize:vertical; }
.draft-actions,.cv-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#copy { margin:12px; font-size:12px; }
.cv { max-width:820px; padding:40px 6%; margin:auto; box-sizing:content-box; }
.cv h2 { margin:28px 0 12px; border-bottom:1px solid var(--line); }
.cv h3 { margin:14px 0 4px; }
.cv-tools { margin-bottom:32px; }
@media(min-width:960px) {
  .mast { position:fixed; inset:0 auto 0 0; width:200px; border-right:1px solid var(--line); }
  .mast-inner { height:100%; overflow:auto; align-items:stretch; flex-direction:column; justify-content:flex-start; padding:38px 18px; }
  .mast nav { flex-direction:column; }
  .rail-role,.rail-footer { display:block; font-size:13px; }
  .rail-role { padding-bottom:28px; border-bottom:1px solid var(--line); }
  .rail-footer { margin-top:auto; color:var(--accent); }
  .content { width:calc(100% - 200px); max-width:none; margin-left:200px; }
  .content > section,.content > footer { max-width:960px; margin-inline:auto; }
}
@media(max-width:959px) {
  .mast { position:sticky; top:0; z-index:3; }
  .mast-inner { display:flex; align-items:center; flex-direction:row; flex-wrap:wrap; }
  .menu:not([hidden]) { display:block; margin-left:auto; font-size:13px; }
  .mast nav { flex-basis:100%; }
  .menu[aria-expanded=false]:not([hidden]) + nav { display:none; }
  section:target { scroll-margin-top:78px; }
}
@media(max-width:530px) { .fields { grid-template-columns:1fr; gap:0; } }
@media print {
  :root { color-scheme:light; --text:#111; --muted:#222; --bg:white; }
  .cv { padding:0; max-width:none; font-size:10pt; }
  .cv-tools { display:none; }
  .cv h1 { font-size:30pt; }
  .cv h2 { font-size:16pt; margin-top:14px; }
  .cv h3 { font-size:12pt; }
}
