@font-face {
  font-family: Geist;
  src: url("./assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --ink: #22221d;
  --red: #af321e;
  --accent: #eb4b31;
  --line: #cbc7bc;
  --muted: #55564e;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); margin: 0; font: 16px/1.55 Geist, Arial, sans-serif; }
::selection { background: #ffc5a8; color: #221d19; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--red); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ad331d; outline-offset: 4px; }
.wrap { width: min(1320px, calc(100% - clamp(36px, 8vw, 128px))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 8; background: white; padding: .75rem; }
.skip:focus { top: 1rem; }
.site-header, .site-header nav, .brand, .actions, .site-footer, .site-footer div { display: flex; align-items: center; }
.site-header { min-height: 80px; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.site-header nav, .site-footer div { gap: clamp(14px,2.5vw,38px); }
.site-header a { text-decoration: none; }
.brand { gap: 12px; font-weight: 720; letter-spacing: -.045em; font-size: 1.12rem; }
.brand-mark { display: grid; grid-auto-flow: column; align-items: center; padding-right: 3px; background: var(--accent); color: #201c17; width: 43px; height: 35px; font: 900 31px/.8 Geist,sans-serif; letter-spacing: -.15em; justify-content: center; transform: rotate(-4deg); }
.site-header nav { font-weight: 580; font-size: .87rem; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: 4.5%; align-items: center; padding-block: clamp(40px,5vw,82px); }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 620; line-height: .98; letter-spacing: -.065em; }
.eyebrow,.card-meta { font: 600 .68rem/1.4 var(--mono); letter-spacing: .10em; text-transform: uppercase; }
.eyebrow { color: var(--muted); margin: 0 0 22px; }
.eyebrow span { color: #ad6856; padding-inline: 4px; }
h1 { font-size: clamp(3.9rem,6.4vw,6.65rem); line-height: .94; font-weight: 670; }
h1 em { display: inline-block; color: var(--red); font: italic normal 1.08em/.91 Georgia,serif; letter-spacing: -.075em; }
.lede { color: #4c4f47; max-width: 37ch; font-size: clamp(1rem,1.35vw,1.18rem); line-height: 1.5; margin: 22px 0 24px; }
.actions { gap: 9px; flex-wrap: wrap; }
.button,button[data-copy] { border: 1px solid #b8b5a9; border-radius: 4px; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 15px; gap: 14px; text-decoration: none; font: 600 .85rem/1.25 Geist,Arial,sans-serif; cursor: pointer; }
.button:hover,button[data-copy]:hover { background: #e7e1d6; color: var(--ink); }
.button.primary { background: var(--ink); color: #fff9eb; border-color: var(--ink); }
.button.primary:hover { background: #4b3c32; }
.project-feature { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(24px,5vw,72px); padding: clamp(20px,4vw,54px); border: 1px solid var(--line); border-radius: 16px; background: #edf2e9; }
.project-feature h3 { font-size: clamp(2rem,3.8vw,3.7rem); }
.project-feature p { max-width: 40ch; color: var(--muted); margin: 1rem 0 1.4rem; }
.project-feature img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 24px #20372c1f; }
@media (max-width: 700px) { .project-feature { grid-template-columns: 1fr; } }
.bolo-feature { background: #eff2e5; }
.work { padding-bottom: 60px; }
.section-head { border-top: 1px solid var(--ink); padding: 30px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.section-head h2,.resume h2 { font-size: clamp(2.75rem,5.2vw,5rem); }
.section-head a,.engineering-notes summary { font-size: .85rem; font-weight: 600; }
.role { display: grid; grid-template-columns: minmax(210px, .74fr) 1.26fr; gap: 6%; border-top: 1px solid var(--line); padding: 26px 0; }
.role h3 { font-size: clamp(1.75rem,2.65vw,2.8rem); }
.role dl { margin: 13px 0 0; }
.role dt { font-weight: 600; font-size: .87rem; }
.role dd { margin: 1px 0 8px; font: .73rem/1.4 var(--mono); color: var(--muted); }
.role-story { max-width: 65ch; }
.role-story p { margin-bottom: 12px; }
.engineering-notes { margin-bottom: 12px; }
.engineering-notes summary,.tool summary { cursor: pointer; font-weight: 600; }
.engineering-notes p { margin-top: 8px; font-size: .91rem; }
.cards { border-top: 1px solid var(--line); display: grid; gap: 3.5%; grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { display: grid; align-content: start; grid-template-columns: 1fr; gap: clamp(12px,1.6vw,24px); border-bottom: 1px solid var(--line); padding: 28px 0; }
.card-copy { min-width: 0; }
.card-meta { display: flex; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: .6rem; color: var(--muted); }
.card h3 { font-size: clamp(1.75rem,2.65vw,2.8rem); margin-bottom: 10px; }
.card-copy > p:not(.card-meta) { font-size: .93rem; margin-bottom: 14px; }
.card .note { font: italic .83rem/1.4 Georgia,serif; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .8rem; font-weight: 600; }
.work-print { width: 60px; align-self: start; aspect-ratio: 1; position: relative; overflow: hidden; container-type: inline-size; }
.work-print i { position: absolute; display: block; transition: transform .45s cubic-bezier(.2,.75,.2,1); }
#opencut .work-print { background: #efb58b; }
#opencut i { top:28%; left:12%; height:19%; width:50%; background:#7e362d; transform:skew(-17deg); }
#opencut i:nth-child(2) { top:54%; left:39%; width:48%; }
#opencut i:last-child { top:13%; left:53%; height:73%; width:4%; transform:none; background:#fef1c9; }
#raycast .work-print { background:#bacdd0; }
#raycast i:first-child { height:34%; width:94%; top:34%; left:3%; background:repeating-linear-gradient(90deg,transparent 0 7%,#e3eddf 7% 9%) left top / 100% 35% no-repeat,#304c50; transform:rotate(-35deg); }
#raycast i:last-child { width:29%; height:29%; left:33%; top:30%; border:3cqw solid #f2eee0; border-radius:50%; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #opencut:hover i:nth-child(2) { transform: translateX(-20%) skew(-17deg); }
  #raycast:hover i:last-child { transform: translate(50%,-32%); }
}
#flameshot .work-print { background: #dac2bd; }
#flameshot i:first-child { inset: 22%; border: 4px solid #693b40; }
#flameshot i:last-child { width: 38%; height: 12%; top: 15%; left: 22%; background: #693b40; }
.resume { background: #e8e4d9; border-block: 1px solid var(--line); padding: clamp(40px,6vw,90px) 0; }
.resume-inner { display:grid; grid-template-columns:1.1fr .9fr; gap:8%; align-items:start; }
.resume-inner>div:first-child>p:not(.eyebrow) { color: var(--muted); max-width: 44ch; margin: 18px 0; }
.toolbox { min-width:0; display:grid; gap:10px; }
.tool { background: var(--paper); border:1px solid #bcb7a8; }
.tool summary { display:flex; justify-content:space-between; padding:14px 16px; }
.tool summary::-webkit-details-marker { display:none; }
.tool[open] summary span { transform:rotate(45deg); }
.tool-body { display:grid; padding:0 16px 16px; justify-items:start; gap:10px; }
.tool-body textarea { width:100%; min-width:0; font:.8rem/1.4 var(--mono); background:#fffaf0; color:var(--ink); padding:10px; resize:vertical; }
.tool-body>a,#copy-status { font-size:.83rem; }
#copy-status:empty { display:none; }
.site-footer { justify-content:space-between; padding-block:22px; font-size:.84rem; gap:20px; }
@media(max-width:850px) {
  .hero { gap:3%; }
  .cards { column-gap:25px; }
  .card { grid-template-columns:1fr; }
  .work-print { width:65px; }
}
@media(max-width:700px) {
  .site-header { min-height:65px; }
  .hero { grid-template-columns:1fr; gap:27px; padding-block:35px; }
  .hero .eyebrow { margin-bottom:14px; }
  h1 { font-size:clamp(3.45rem,10vw,5rem); }
  .lede { max-width:46ch; margin:14px 0 18px; }
  .role,.resume-inner { grid-template-columns:1fr; gap:22px; }
  .section-head { gap:10px; padding-block:22px; }
  .role { gap: 8px; }
  .cards { grid-template-columns:1fr; gap:0; }
  .card { grid-template-columns:65px 1fr; }
  .site-header nav { gap:12px; font-size:.78rem; }
  .brand { font-size:.94rem; gap:7px; }
  .brand-mark { width:33px; height:28px; font-size:24px; }
  .site-footer { flex-wrap:wrap; }
}
@media(max-width:450px) { .nav-contact { display:none; } .card { grid-template-columns:50px 1fr; } .work-print { width:50px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .work-print i { transition:none; } }
