/* Design tokens: all colors and layout defaults live here. */
:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --ink: #242720;
  --muted: #62655d;
  --accent: #b94021;
  --done-ink: #285c3b;
  --planned-ink: #874020;
  --line: #dadcd3;
  --surface: #eeeee7;
  --white: #fffefa;
  --width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: #f3c5b4; color: var(--ink); }
.wrapper { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 104px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 28px; font-weight: 750; letter-spacing: -1.5px; line-height: 1; padding: 12px 0; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 32px; align-items: center; font-size: 14px; font-weight: 500; }
nav a { padding: 10px 0; }
.nav-contact { margin-left: 10px; }
.nav-contact span { margin-left: 10px; color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: center; padding-block: 95px 80px; }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: 1.6px; font-weight: 500; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.status-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 4.7vw, 62px); line-height: 1.12; letter-spacing: -2.8px; font-weight: 650; margin-bottom: 26px; }
h1 > span { color: var(--accent); }
.hero-intro { color: var(--muted); max-width: 440px; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 25px; align-items: center; margin-top: 30px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; padding: 13px 20px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: 4px; font-size: 14px; font-weight: 500; }
.button:hover { background: var(--accent); border-color: var(--accent); color: white; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 500; padding-block: 8px; }
.hero-note { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 44px 0 0; }
.hero-note span { margin-inline: 10px; color: #a9aca1; }
.engineering-card { border: 1px solid #d5d7cd; background: var(--surface); padding: 26px; border-radius: 10px; transform: rotate(1deg); }
.card-topline { display: flex; justify-content: space-between; align-items: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: 1px; margin-bottom: 30px; color: var(--muted); }
.card-topline > span:last-child { font-size: 20px; }
.stack-layer { display: flex; gap: 14px; align-items: center; padding: 22px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 3px 0 #e2e3d9; }
.layer-number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; align-self: flex-start; padding-top: 4px; }
.stack-layer h2 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; margin: 0 0 2px; }
.stack-layer p { margin: 0; font-size: 12px; color: var(--muted); }
.layer-symbol { margin-left: auto; font-size: 23px; color: #707567; white-space: nowrap; }
.stack-connector { text-align: center; line-height: 30px; color: #828777; }
.card-bottomline { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); margin-top: 25px; }
.focus-strip { border-block: 1px solid var(--line); }
.focus-strip .wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.focus-strip p { font-size: 14px; margin: 0; }
.focus-strip span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: 1px; }
.section { padding-block: 76px; border-bottom: 1px solid var(--line); }
.section-label { color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -1.2px; line-height: 1.25; margin-bottom: 0; }
.about { display: block; }
.about-heading { display: flex; align-items: center; gap: 36px; max-width: 760px; margin-inline: auto; }
.about-portrait { display: block; flex: 0 0 auto; width: 180px; max-width: 100%; height: auto; border: 6px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.about-copy { max-width: 760px; margin: 32px auto 0; }
.about-copy p { color: var(--muted); font-size: 15px; }
.about-copy .lead { font-size: 21px; color: var(--ink); line-height: 1.5; letter-spacing: -.3px; }
.about-copy .text-link { border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 36px; }
.section-heading > p { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.experience-row { display: grid; grid-template-columns: 210px 1fr 40px; gap: 35px; padding-block: 32px; border-top: 1px solid var(--line); }
.experience-stage { font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; padding-top: 7px; display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
h3 { font-size: 21px; letter-spacing: -.5px; line-height: 1.3; font-weight: 600; margin-bottom: 12px; }
.experience-row p { font-size: 14px; color: var(--muted); max-width: 670px; }
.row-index { color: #74786d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { font-size: 11px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: #51554b; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.skill-icon { color: var(--accent); font-size: 24px; display: block; margin-bottom: 24px; }
.skill-card h3 { font-size: 18px; margin-bottom: 7px; }
.skill-card > p { color: var(--muted); font-size: 12px; }
.skill-card .tags { gap: 7px; }
.featured-project { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.project-art { background: #e9ecdf; display: flex; flex-direction: column; justify-content: center; padding: 48px; background-image: radial-gradient(#b7bdab 0.7px, transparent 0.7px); background-size: 16px 16px; }
.mini-browser { background: var(--paper); border: 1px solid #b7bdaa; border-radius: 6px; box-shadow: 12px 14px 0 #d3d8c5; transform: rotate(-3deg); }
.browser-bar { border-bottom: 1px solid var(--line); padding: 12px; display: flex; gap: 4px; align-items: center; }
.browser-bar i { width: 5px; height: 5px; border-radius: 50%; background: #bbc0af; }
.browser-bar span { font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; margin-left: auto; color: var(--muted); }
.mini-content { padding: 20px 26px 27px; }
.mini-content > span { display: block; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.mini-content strong { font-size: 30px; line-height: 1.15; letter-spacing: -1px; display: block; margin-bottom: 18px; font-weight: 600; }
.mini-line { height: 4px; background: #d6d8cd; width: 80%; margin-bottom: 7px; }
.mini-line.short { width: 55%; }
.mini-button { display: inline-block; margin-top: 14px; font-size: 8px; background: var(--accent); color: white; padding: 7px 12px; border-radius: 2px; }
.art-caption { margin-top: 35px; text-align: center; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; color: #59624a; }
.project-copy { padding: 38px; }
.project-status { font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.project-copy h3 { font-size: 29px; margin-top: 20px; }
.project-copy > p, .project-card > p { font-size: 14px; color: var(--muted); }
.project-copy .project-detail { font-size: 13px; }
.project-status-complete { color: var(--done-ink); }
.project-status-complete .status-dot { background: currentColor; }
.milestone { display: inline-flex; align-items: center; gap: 7px; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .2px; }
.milestone-done { color: var(--done-ink); }
.milestone-planned { color: var(--planned-ink); }
.milestone-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 12px; width: 12px; height: 12px; font-size: 14px; font-weight: 700; }
.milestone-planned .milestone-icon { flex-basis: 8px; width: 8px; height: 8px; margin-inline: 2px; border: 1px solid currentColor; border-radius: 50%; }
.project-roadmap { list-style: none; padding: 0; margin: 0 0 18px; }
.project-roadmap li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-block: 13px; color: var(--muted); }
.project-roadmap li + li { border-top: 1px solid var(--line); }
details { border-top: 1px solid var(--line); margin-top: 25px; font-size: 13px; }
summary { cursor: pointer; padding-block: 15px; font-weight: 500; }
summary:hover { color: var(--accent); }
details p { color: var(--muted); margin-bottom: 15px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.project-card { border: 1px solid var(--line); border-radius: 6px; padding: 30px; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.project-glyph { font: 22px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--accent); }
.contact-section { background: var(--surface); margin-top: 60px; border-block: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; padding-block: 65px; }
.contact-inner h2 { font-size: clamp(32px, 3.7vw, 44px); margin-bottom: 20px; }
.contact-inner p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.contact-inner .button { margin-top: 12px; }
.contact-links a { display: block; border-bottom: 1px solid #ced1c4; padding-block: 23px; font-size: 16px; overflow-wrap: anywhere; }
.contact-links a > span:first-child { display: block; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; margin-bottom: 8px; }
.contact-links a > span:last-child { float: right; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 30px; font-size: 11px; color: var(--muted); }
.site-footer p { margin: 0; }
@media (min-width: 1400px) { .hero { padding-block: 110px 95px; } }
@media (max-width: 1000px) {
  .wrapper { width: calc(100% - 48px); }
  .hero { gap: 30px; }
  .engineering-card { padding: 20px; transform: none; }
  .stack-layer { padding: 18px 12px; gap: 10px; }
  .layer-symbol { display: none; }
  .hero-actions { gap: 15px; flex-wrap: wrap; }
  .skill-card { padding: 20px; }
  .experience-row { grid-template-columns: 160px 1fr 25px; gap: 25px; }
  .project-art { padding: 30px; }
  .project-copy { padding: 28px; }
  .contact-inner { gap: 40px; }
}
@media (max-width: 720px) {
  .site-header { min-height: 86px; flex-wrap: wrap; gap: 4px 20px; padding-block: 16px; }
  nav { gap: 18px; font-size: 12px; }
  .nav-contact { margin-left: 0; }
  .nav-contact span { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 55px; gap: 40px; }
  h1 { font-size: clamp(40px, 8.5vw, 60px); letter-spacing: -2px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-intro { max-width: 520px; }
  .hero-note { margin-top: 30px; }
  .engineering-card { max-width: 520px; width: 100%; }
  .layer-symbol { display: inline; }
  .card-topline { margin-bottom: 18px; }
  .stack-layer { padding: 16px; }
  .focus-strip .wrapper { flex-wrap: wrap; justify-content: flex-start; gap: 8px 15px; padding-block: 18px; }
  .focus-strip .wrapper > span:first-child { width: 100%; }
  .focus-strip p { font-size: 11px; }
  .section { padding-block: 48px; }
  .about-heading { gap: 24px; }
  .about-portrait { width: 140px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .desktop-break { display: none; }
  .experience-row { grid-template-columns: 1fr; gap: 16px; }
  .row-index { display: none; }
  .skills-grid, .featured-project, .project-grid, .contact-inner { grid-template-columns: 1fr; }
  .skill-icon { margin-bottom: 16px; }
  .project-art { padding: 42px; }
  .mini-browser { max-width: 350px; width: 100%; align-self: center; }
  .project-copy, .project-card { padding: 25px; }
  .contact-section { margin-top: 35px; }
  .contact-inner { padding-block: 45px; gap: 20px; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; }
  .site-footer > p:nth-child(2) { order: 3; width: 100%; }
  .site-footer > a { margin-left: auto; }
}
@media (max-width: 480px) {
  .about-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-copy { margin-top: 24px; }
}
@media (max-width: 370px) {
  .wrapper { width: calc(100% - 32px); }
  nav { gap: 12px; font-size: 11px; }
  .wordmark { font-size: 24px; }
  .hero .eyebrow { letter-spacing: .3px; font-size: 8px; }
  .hero-note { font-size: 8px; }
  .hero-note span { margin-inline: 5px; }
  .project-art { padding: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 11pt; }
  .wrapper { width: 100%; }
  nav, .hero-actions, .engineering-card, .focus-strip, .project-art, .site-footer > a { display: none; }
  .hero, .section, .contact-inner { padding-block: 20px; }
  .hero, .about, .skills-grid, .featured-project, .project-grid, .contact-inner { display: block; }
  .skill-card, .project-card, .experience-row { break-inside: avoid; margin-bottom: 12px; }
  .contact-section { margin-top: 20px; }
}
