@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --ink: #192321;
  --muted: #4d5a55;
  --green: #245f48;
  --lime: #d8fa8a;
  --paper: #f7f7f1;
  --line: #dce0d4;
  --surface: #fff;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --display: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 3.8rem/.98 var(--display); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 2px solid #287758; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 5rem; }
.shell { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 1rem; top: .5rem; transform: translateY(-150%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--line); background: #f7f7f1f5; backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 4.6rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.32rem; letter-spacing: -.055em; }
.brand-dot { color: var(--green); }
.mark { display: grid; grid-auto-flow: column; place-content: center; margin-right: .65rem; border-radius: .55rem; width: 2rem; height: 2rem; color: var(--lime); background: var(--ink); font: 600 .89rem var(--mono); letter-spacing: -.08em; }
.mark span { color: #fff; }
.nav nav { display: flex; align-items: center; gap: clamp(.65rem, 2.9vw, 2.4rem); }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.nav nav a[aria-current="page"] { text-decoration: underline; }
.nav-contact { border: 1px solid #bfc9ba; border-radius: 2rem; padding: .48rem .8rem; }
.hero { display: grid; align-items: center; grid-template-columns: 1.13fr .87fr; gap: clamp(2.2rem, 5.2vw, 5.5rem); padding-block: clamp(4.2rem, 7.4vw, 7.1rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--green); font: 600 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .105em; }
.signal { width: .62rem; height: .62rem; border-radius: 50%; background: #58a25a; box-shadow: 0 0 0 .23rem #dfebd6; }
.hero h1 { font-size: clamp(4rem, 8.05vw, 7.3rem); margin: 1.05rem 0 1.4rem; letter-spacing: -.023em; }
.hero h1 em { color: var(--green); font-weight: inherit; }
.lede { max-width: 34rem; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.22rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; border: 1px solid transparent; border-radius: .65rem; padding: .65rem .95rem; font: 700 .9rem/1.3 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s; }
.button.primary { background: var(--lime); color: #202b19; }
.button.primary:hover { background: #c9f271; color: #202b19; }
.button.secondary { background: transparent; border-color: #bdc9bb; color: var(--ink); }
.button.secondary:hover { background: #e9efe3; border-color: #93ac91; }
.button.inverse { color: #f2f6ec; border-color: #62796b; }
.button.inverse:hover { background: #254238; }
.screen { background: #14221d; color: #f6f9ee; border-radius: 1.3rem; border: 1px solid #29493a; box-shadow: 0 1.5rem 4rem #263f3428; overflow: hidden; min-width: 0; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .85rem 1rem; border-bottom: 1px solid #365043; font: .72rem var(--mono); color: #c1cec4; }
.screen-dots { display: flex; gap: .28rem; }
.screen-dots i { width: .41rem; height: .41rem; border-radius: 50%; background: #799386; }
.screen-dots i:first-child { background: #b5e887; }
.screen-live { color: #c8ef9a; display: flex; gap: .42rem; align-items: center; }
.screen-live i { width: .38rem; height: .38rem; background: #caf291; border-radius: 50%; }
.screen-inner { padding: clamp(1.1rem, 3vw, 2.1rem); background: radial-gradient(ellipse at top right, #274436, transparent 76%); }
.screen-label, .screen-foot { font: .65rem/1.4 var(--mono); color: #b3c9ba; }
.screen-title { font: 400 clamp(2.1rem, 3.6vw, 3.1rem)/1 var(--display); margin: .35rem 0 .7rem; }
.screen-code { color: #c4cfc8; font: .72rem/1.45 var(--mono); overflow-wrap: anywhere; }
.screen-code b { color: #e8efa7; }
.screen-code strong { color: #b1e3c4; }
.screen-code span { color: #e7c4a4; }
.plot { position: relative; height: clamp(7rem, 12vw, 10rem); margin-top: 1.25rem; border-bottom: 1px solid #436052; }
.plot-grid { position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #2d483b calc(25% - 1px), #2d483b 25%); }
.bars { position: absolute; inset: 0; display: flex; align-items: end; gap: clamp(.27rem, 1.1vw, .8rem); }
.bars i { flex: 1; height: var(--v); border-radius: .32rem .32rem 0 0; background: linear-gradient(0deg, #32664c, #b2df70); }
.bars i:nth-child(2n) { background: linear-gradient(0deg, #426d48, #d5f68d); }
.screen-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .7rem; }
.work-section { background: #eff1e9; border-block: 1px solid var(--line); padding-block: clamp(3.6rem, 7vw, 6.1rem); }
.section-head { display: flex; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.7rem; }
.section-head h2, .about h2, .contact h2 { margin-top: .48rem; font-size: clamp(3rem, 5.3vw, 4.65rem); letter-spacing: -.032em; }
.section-head > p { max-width: 24rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.project { display: flex; flex-direction: column; grid-column: span 2; background: var(--surface); border: 1px solid #d8e0d5; border-radius: 1rem; overflow: hidden; }
.compact-project { grid-column: span 3; }
.art { overflow: hidden; display: grid; place-items: center; position: relative; height: 9.6rem; border-bottom: 1px solid #ccd7c7; }
.art-tag { position: absolute; bottom: .7rem; left: .83rem; font: 600 .57rem var(--mono); letter-spacing: .06em; }
.art-supply { color: #214c38; background: #d8ead8 radial-gradient(#88aa8b 1px, transparent 1px) center / 13px 13px; }
.route { position: relative; display: flex; justify-content: space-between; align-items: center; width: 66%; height: 4rem; }
.route::before { content: ""; position: absolute; width: 100%; height: 55%; border: 2px dashed #4d7c59; border-radius: 1.6rem; }
.route span { position: relative; width: 1.22rem; height: 1.22rem; border: 3px solid #efF7e5; border-radius: 50%; background: #417a55; }
.route span:nth-child(even) { transform: translateY(.55rem); background: #8dba4c; }
.art-credit { color: #3d5130; background: #e7efcc; }
.credit-plot { display: flex; align-items: end; gap: .5rem; width: 58%; height: 4.5rem; border-bottom: 2px solid #89a36a; }
.credit-plot i { flex: 1; min-width: 0; height: 34%; border-radius: .24rem .24rem 0 0; background: #64884f; }
.credit-plot i:nth-child(2) { height: 48%; }.credit-plot i:nth-child(3) { height: 67%; }.credit-plot i:nth-child(4) { height: 57%; }.credit-plot i:nth-child(5) { height: 88%; }.credit-plot i:nth-child(6) { height: 71%; }.credit-plot i:nth-child(7) { height: 97%; }
.art-ml { color: #3f3b59; background: #e8e4f5; }
.matrix { display: grid; grid-template-columns: repeat(4, .9rem); gap: .21rem; transform: rotate(-8deg); }
.matrix i { height: .9rem; border-radius: .2rem; background: #c0b3dc; }
.matrix i:nth-child(5n + 1) { background: #6d599a; }
.matrix i:nth-child(3n + 2) { background: #a794c8; }
.project-body { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: .43rem; padding: 1.18rem; }
.project-type { font: 500 .67rem/1.45 var(--mono); color: var(--green); }
.project h3 { font-size: 1.2rem; line-height: 1.28; letter-spacing: -.025em; }
.project-body > p:not(.project-type) { color: var(--muted); font-size: .92rem; }
.text-link { display: inline-block; font-size: .88rem; font-weight: 700; color: var(--green); }
.project-body .text-link { margin-top: auto; padding-top: .6rem; }
.text-link:hover { color: #172d21; }
.about { display: grid; grid-template-columns: .94fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-block: clamp(3.4rem, 7vw, 6.6rem); }
.about p:not(.eyebrow) { color: var(--muted); margin-bottom: .8rem; }
.contact { background: #172d24; color: #f6f9ef; }
.contact-inner { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding-block: clamp(2.7rem, 5.5vw, 4.5rem); }
.contact h2 { max-width: 37rem; }
.contact .eyebrow { color: #d4f8a0; }
.contact .actions { flex-shrink: 0; }
.contact-email { display: inline-block; margin-top: .6rem; color: var(--paper); font-size: 1rem; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; color: var(--muted); font-size: .82rem; }
.resume-main { padding-block: clamp(2.6rem, 6vw, 5.2rem); }
.resume-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: 1.8rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.resume-main h1 { font-size: clamp(3.45rem, 7.5vw, 6.9rem); letter-spacing: -.04em; margin: .45rem 0; }
.resume-meta { margin-top: .55rem; color: var(--green); font-size: .9rem; }
.resume-meta span { padding-inline: .2rem; }
.resume-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 6vw, 5.7rem); }
.experience h2, .resume-sidebar h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.role { padding-block: .95rem 1.15rem; border-top: 1px solid var(--line); }
.role h3, .resume-sidebar h3 { font-size: 1.22rem; line-height: 1.3; margin: .2rem 0; }
.dates { color: var(--green); font: .72rem/1.55 var(--mono); }
.company { font-weight: 600; }
.role p:not(.dates):not(.company) { color: var(--muted); margin-top: .26rem; }
.role-highlights { color: var(--muted); margin: .5rem 0 0; padding-left: 1.2rem; }
.role-highlights li { margin: .28rem 0; }
.resume-sidebar section { background: #eef1e8; border: 1px solid var(--line); border-radius: .75rem; padding: 1.1rem 1.22rem; margin-bottom: .85rem; }
.resume-sidebar p { color: var(--muted); margin-top: .52rem; }
.resume-sidebar p > strong { color: var(--ink); }
@media (max-width: 960px) {
  .shell { width: min(100% - 3.2rem, 72rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3.8rem, 9vw, 6.4rem); }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 2rem); }
  .nav { min-height: 3.65rem; }
  .nav nav a { font-size: .78rem; }
  .nav-contact { padding: .34rem .5rem; }
  .mark { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 3.4rem; }
  .hero h1 { font-size: clamp(3.65rem, 12vw, 5.7rem); }
  .hero-break { display: none; }
  .screen-inner { padding: 1.25rem; }
  .section-head { align-items: start; flex-direction: column; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project, .compact-project { grid-column: span 1; }
  .about, .resume-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .resume-intro { flex-direction: column; align-items: start; }
}
@media (max-width: 480px) {
  .projects { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media print {
  .site-header, .footer, .skip, .print-button { display: none !important; }
  body, .resume-sidebar section { background: white; color: black; }
  .shell { width: 100%; }
  .resume-main { padding: 0; font-size: 10pt; }
  .resume-main h1 { font-size: 28pt; }
  .resume-intro { padding-bottom: .5rem; margin-bottom: .8rem; }
  .resume-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
  .experience h2, .resume-sidebar h2 { font-size: 18pt; margin-bottom: .5rem; }
  .role { padding-block: .35rem .5rem; }
  .role h3, .resume-sidebar h3 { font-size: 11pt; }
  .resume-sidebar section { padding: .5rem .65rem; margin-bottom: .5rem; }
  .role, .resume-sidebar section { break-inside: avoid; }
}
