@font-face { font-family: Fraunces; src: url('fonts/Fraunces-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Public Sans; src: url('fonts/PublicSans-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Caveat; src: url('fonts/Caveat-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Maple; src: url('fonts/MapleMono-latin.woff2') format('woff2'); font-display: swap; }

:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e2d2;
  --ink: #1f2022;
  --muted: #666960;
  --rule: #c9c1ae;
  --orange: #b45f3c;
  --gold: #c98f2d;
  --blue: #397bb5;
  --moss: #4a7048;
  --navy: #1f2022;
  --display: Fraunces, Georgia, serif;
  --body: Public Sans, Arial, sans-serif;
  --mono: Maple, 'Courier New', monospace;
  --hand: 500 1.2rem/1.1 Caveat, 'Segoe Print', cursive;
  --copy-col: 16rem;
  --banner-h: 7rem;
  --title-size: 2.2rem;
  --col-gap: .9rem;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 1rem/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; z-index: -1; content: ''; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .98; }
.shell { width: min(calc(100% - 3rem), 88rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 5; padding: .65rem .9rem; background: var(--gold); color: var(--ink); transform: translateY(-150%); transition: transform 150ms ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.eyebrow { color: var(--muted); font: .64rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; }

main { position: relative; }
.pencil-layer { position: absolute; top: 0; left: 0; z-index: 0; overflow: visible; pointer-events: none; }
.pencil-layer path { fill: none; stroke: #4a4337; stroke-linecap: round; }
.software, .built { position: relative; z-index: 1; }

/* header */
.site-header { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 3.2rem; padding-inline: 1.75rem; background: var(--navy); color: var(--paper); }
.wordmark { font: 600 1.3rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 2.4rem; font: 500 1rem/1 var(--display); }
.site-header nav a { color: #e6e0d0; text-decoration: none; }
.site-header nav a:hover { color: var(--gold); }
.site-header nav a.nav-cta { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45rem; }

/* hero */
.hero { position: relative; min-height: 23.5rem; padding-top: 2.9rem; }
.hero-art { position: absolute; top: .2rem; right: 0; width: 58%; max-width: 54rem; margin: 0; pointer-events: none; }
.hero-art img { width: 100%; height: auto; }
.hero-copy { position: relative; z-index: 1; max-width: 52rem; padding-left: 2.5rem; }
.hero .eyebrow { display: flex; align-items: center; gap: 1.4rem; }
.hero .eyebrow::before { content: '+'; color: var(--orange); font: 400 2.4rem/0 var(--body); }
h1 { margin-top: 1rem; font-size: clamp(3.2rem, 4.5vw, 4.6rem); letter-spacing: -.045em; white-space: nowrap; }
h1 em { display: block; color: var(--orange); font-weight: 500; }
.hero-lead { max-width: 37rem; margin-top: 1.4rem; color: #42443e; font: clamp(1.05rem, 1.55vw, 1.5rem)/1.35 var(--mono); }
.hero-rule { display: block; width: 4.4rem; height: 3px; margin-top: 1.5rem; background: var(--blue); }
.hero-note { color: var(--ink); font: var(--hand); }
.hero-note--left { display: block; width: min(23rem, 100%); height: auto; margin-top: 1.5rem; margin-left: .2rem; overflow: visible; }
.hero-note--left text { fill: var(--ink); font: 500 2rem Caveat, 'Segoe Print', cursive; }
.hero-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-notes .hero-note { position: absolute; }
.hero-note--me { top: 7.2rem; right: 13.5rem; font-size: 1.6rem; transform: rotate(-8deg); }
.hero-note--right { top: 1.2rem; right: 1.4rem; padding-bottom: .5rem; font-size: 1.05rem; line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; transform: rotate(5deg); }
.hero-note--right::after { content: ''; position: absolute; right: 0; bottom: 0; width: 2.6rem; height: 2px; background: var(--ink); }

/* projects */
.software { padding-top: 1.2rem; padding-left: 24%; }
.section-heading { display: flex; align-items: center; gap: 1.2rem; margin-left: 0; }
.section-heading .eyebrow { margin: 0; font-weight: 400; display: flex; align-items: center; gap: .8rem; white-space: nowrap; }
.section-heading .eyebrow::before { content: ''; width: 1.4rem; height: 3px; background: var(--orange); }
.section-heading__rule { flex: 1; height: 1px; background: var(--rule); }
.section-heading__note { position: relative; padding-right: .3rem; color: var(--ink); font: 500 1.1rem/1 Caveat, 'Segoe Print', cursive; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.section-heading__note::after { content: ''; position: absolute; right: 0; bottom: -.55rem; width: 2rem; height: 2px; background: var(--blue); }
.software-list { display: grid; gap: 1.4rem; margin-top: 1.1rem; }
.software-project { --accent: var(--orange); }
.software-project > a { display: grid; grid-template-columns: var(--copy-col) 1fr; gap: var(--col-gap); grid-template-rows: var(--banner-h); align-items: start; text-decoration: none; }
/* one row: title cap line on the banner's top edge, arrow on its bottom edge */
.software-project__copy { display: grid; grid-template-rows: auto auto 1fr; height: var(--banner-h); }
.software-project__copy h3 { margin-top: -.2em; font-size: var(--title-size); line-height: 1; letter-spacing: -.035em; text-box: trim-both cap alphabetic; }
@supports (text-box: trim-both cap alphabetic) { .software-project__copy h3 { margin-top: 0; } }
.software-project__copy p { max-width: 15.5rem; margin-top: .7rem; color: #4e514a; font: .64rem/1.35 var(--mono); }
.project-link { align-self: end; justify-self: start; display: inline-block; color: var(--accent); font: 1.2rem/.6 var(--mono); transition: transform 180ms ease; }
.software-project:hover .project-link, .software-project a:focus-visible .project-link { transform: translateX(.35rem); }
.software-project__visual { height: var(--banner-h); margin: 0; overflow: hidden; background: var(--navy); }
.software-project__visual img { width: 100%; height: 100%; object-fit: cover; }
.software-project:hover .software-project__copy h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: .3rem; }

/* project accents: arrow, hover underline, banner corners */
.software-project--groot { --accent: oklch(58% 0.13 72); }
.software-project--uermend { --accent: #b08a24; }
.software-project--qubit { --accent: oklch(55% 0.16 150); }
.software-project--vindicator { --accent: #3f7fc0; }

/* built */
.built { padding-top: 3rem; padding-bottom: 2rem; padding-left: 24%; }
.built-row { margin-top: 1.1rem; }
.software-project--boomhut { --accent: #8a5a32; }
.built-row > a { grid-template-rows: auto; }
.built-row .software-project__copy { height: auto; row-gap: .8rem; }
.built-plate { margin: 0; }
.built-plate img { width: 100%; height: auto; }
.built-plate figcaption { display: flex; justify-content: space-between; padding: .35rem .4rem 0; color: var(--muted); font: 500 1.1rem/1 Caveat, 'Segoe Print', cursive; }
.software-project__visual { position: relative; }
.software-project__visual figcaption { position: absolute; top: 50%; right: 1.4rem; transform: translateY(-50%) rotate(-3deg); max-width: 9rem; color: var(--paper); font: 500 .95rem/1.15 Caveat, 'Segoe Print', cursive; text-align: right; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.9); }
.software-project__visual figcaption { z-index: 1; }
.software-project__visual img + figcaption::before { content: ''; position: absolute; top: -50vh; bottom: -50vh; right: -1.4rem; width: 16rem; z-index: -1; background: linear-gradient(to left, rgba(10,12,16,.88) 35%, transparent); }
.software-project__visual img { object-position: left center; transition: filter 200ms ease; }
.software-project:hover .software-project__visual img { filter: brightness(1.08); }
.text-link { display: inline-block; margin-top: 1.3rem; color: var(--blue); font: .74rem var(--mono); text-decoration-thickness: 1px; text-underline-offset: .3rem; }
.text-link:hover { color: var(--orange); }

/* footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem 1.6rem; color: var(--muted); font: .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { color: var(--blue); letter-spacing: 0; text-transform: none; }
.site-footer__links { display: flex; align-items: center; gap: 1.4rem; }
.site-footer__links b { margin-left: .6rem; color: var(--orange); font: 400 1.9rem/0 var(--body); }

@media (max-width: 68rem) {
  .software, .built { padding-left: 0; }
  .hero-art { top: 1.5rem; width: 50%; }
  .hero-copy { max-width: 58%; }
  h1 { font-size: clamp(3rem, 5.2vw, 4.6rem); }
  .hero-note--me { display: none; }
  h1 { white-space: normal; }
}
@media (max-width: 56rem) {
  .shell { width: min(calc(100% - 2rem), 88rem); }
  .site-header { padding-inline: 1rem; }
  .site-header nav { gap: 1.4rem; }
  .wordmark { font-size: 1.05rem; white-space: nowrap; }
  .hero-notes { display: none; }
  .hero-copy { padding-left: 0; }
  .hero .eyebrow::before { display: none; }
  .software-project > a { grid-template-columns: minmax(10rem, .8fr) minmax(12rem, 1.2fr); }
}
@media (max-width: 42rem) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero-copy { max-width: none; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero-art { position: relative; top: auto; right: auto; width: 140%; max-width: none; margin-top: 0; margin-left: -20%; }
  .hero-note--left { margin-top: 1.6rem; }
  .section-heading { margin-left: 0; }
  .section-heading__note { display: none; }
  .built-plate { grid-column: 2; }
  .software-list { gap: 1.2rem; }
  .software-project > a { grid-template-columns: 1fr; grid-template-rows: auto; gap: .6rem; }
  .software-project__visual { height: 5.5rem; }
  .software-project__copy { height: auto; row-gap: .5rem; }
  .software-project__visual figcaption { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
