:root {
  --bg: #fafafa;
  --paper: #ffffff;
  --text: #172028;
  --muted: #52616b;
  --line: #dce2e5;
  --accent: #24537b;
  --accent-hover: #153b5a;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: #dcebf6; color: var(--text); }
.container { width: min(1070px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; padding: 10px 15px; background: #fff; z-index: 10; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.navwrap { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.home-brand { font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.brand-mark { font-size: 15px; font-weight: 800; font-family: var(--mono); letter-spacing: -.07em; }
.brand-mark span { display: none; }
.brand-text { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.5; }
.navlinks { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.navlinks a, .navlinks .nav-contact { font-size: 13px; text-decoration: none; font-weight: 500; color: var(--muted); padding: 0; background: none; border: none; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--accent); }
.eyebrow { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .065em; color: var(--muted); margin: 0 0 17px; }
.hero { padding: 106px 0 94px; }
.hero-content { max-width: 960px; }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { font-size: clamp(43px, 6.7vw, 77px); font-weight: 650; letter-spacing: -.05em; line-height: 1.13; margin: 0 0 24px; }
.hero-lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.65; color: #34434d; max-width: 820px; margin: 0 0 21px; }
.hero-context { font-size: 13px; color: var(--muted); margin: 0 0 30px; }
.cta-row { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; font: 600 13px/1.4 system-ui, sans-serif; text-decoration: none; border-radius: 3px; cursor: pointer; }
.btn-primary { background: var(--text); color: white; border: 1px solid var(--text); }
.btn-primary:hover { background: #334756; color: white; }
.btn-secondary { color: var(--text); background: transparent; border: 1px solid #aebbc4; }
.btn-secondary:hover { background: #eff3f5; color: var(--text); }
.text-link { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-github { margin-left: 7px; }
.section { padding: 83px 0; }
.section-border { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 30px; }
.section-heading h2, .about-grid h2, .interest-layout h2, .contact-inner h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 0; }
.section-heading > p { max-width: 360px; margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 58px; }
.project { border-top: 1px solid var(--line); padding: 28px 0 35px; }
.project-status { margin: 0 0 12px; font-size: 11px; letter-spacing: .01em; color: var(--muted); }
.project h3 { font-size: 21px; font-weight: 650; letter-spacing: -.024em; line-height: 1.3; margin: 0 0 12px; }
.project > p:not(.project-status) { margin: 0 0 15px; color: #40515d; font-size: 14px; line-height: 1.75; }
.project .project-meta { font-family: var(--mono); font-size: 11px !important; color: var(--muted) !important; margin: 0 0 16px !important; }
.project-action { font-size: 13px; font-weight: 600; text-underline-offset: 3px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.about-intro { font-size: 15px; line-height: 1.85; color: #40515d; max-width: 430px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 118px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.timeline-item small { font: 11px/1.7 var(--mono); color: var(--muted); }
.timeline-item h3 { font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.timeline-item p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.interest-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.interest-list { border-top: 1px solid var(--line); }
.interest-list p { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); color: #40515d; font-size: 14px; line-height: 1.7; }
.interest-list strong { color: var(--text); font-weight: 650; }
.contact-inner { display: flex; justify-content: space-between; align-items: start; gap: 48px; }
.contact-inner p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; padding-top: 30px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.footer-inner a { color: var(--muted); text-underline-offset: 3px; }
/* Shared styling for the existing project detail pages. */
.page-heading { padding: 73px 0 59px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(37px, 5.6vw, 59px); line-height: 1.15; letter-spacing: -.04em; font-weight: 650; max-width: 850px; margin: 0; }
.page-subtitle { color: #40515d; font-size: 17px; line-height: 1.7; max-width: 790px; margin: 19px 0 0; }
.crumbs { font: 12px/1.6 var(--mono); color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .7fr); align-items: start; gap: 72px; }
.detail-content h2 { font-size: 25px; font-weight: 650; letter-spacing: -.02em; margin: 39px 0 12px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content p, .detail-content ul { color: #40515d; font-size: 15px; line-height: 1.8; }
.detail-content ul { padding-left: 20px; }
.detail-content li { margin-bottom: 7px; }
.detail-aside { border-top: 1px solid var(--line); padding-top: 20px; }
.detail-aside h3 { font-size: 13px; font-weight: 650; margin: 0 0 19px; }
.fact { border-top: 1px solid var(--line); padding: 13px 0; }
.fact small { display: block; color: var(--muted); font: 11px var(--mono); margin-bottom: 5px; }
.fact span { font-size: 13px; font-weight: 500; }
.honest-note { border-left: 2px solid #9cabb6; padding: 15px 20px; background: #f0f3f5; margin: 26px 0; color: #40515d; font-size: 13px; }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); font-size: 13px; }
.next-project a { font-weight: 600; }
@media (max-width: 850px) {
  .project-grid { column-gap: 30px; }
  .about-grid, .interest-layout { gap: 45px; }
  .detail-grid { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 670px) {
  .container { width: min(100% - 36px, 1070px); }
  .navwrap { min-height: auto; padding: 18px 0; align-items: start; flex-direction: column; gap: 14px; }
  .navlinks { width: 100%; justify-content: space-between; gap: 10px; }
  .navlinks a { font-size: 12px; }
  .hero { padding: 70px 0 67px; }
  .hero h1 { font-size: clamp(40px, 10vw, 59px); }
  .hero-context { line-height: 1.7; }
  .hero-github { margin-left: 0; }
  .section { padding: 60px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .project-grid, .about-grid, .interest-layout { grid-template-columns: 1fr; }
  .project-grid { gap: 0; }
  .project { padding: 23px 0 26px; }
  .about-grid, .interest-layout { gap: 24px; }
  .timeline-item { grid-template-columns: 94px 1fr; gap: 12px; }
  .contact-inner { flex-direction: column; gap: 10px; }
  .contact-links { padding-top: 0; overflow-wrap: anywhere; }
  .page-heading { padding: 55px 0 47px; }
  .next-project { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
