:root {
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --site-header-height: 5rem;
  --page-inset: 3rem;
  --radius-tag: 0;
  --radius-surface: 0;
  --radius-action: 0;
  --text-caption: .8125rem;
  --text-tag: .8125rem;
  --text-small: .875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-card: 1.5rem;
  --text-section: 1.75rem;
  --text-featured: 2rem;
  --text-page: clamp(2.25rem, 4.5vw, 3.75rem);
  --leading-body: 1.6;
  --leading-ui: 1.4;
  --leading-heading: 1.08;
  --control-height: 2.75rem;
  --control-padding: .625rem 1rem;
  --tag-padding: .125rem .375rem;
  --filter-padding: .375rem .625rem;
  --filter-chip-height: 2rem;
  --site-text: #20201e;
  --site-muted: #62625b;
  --site-border: #cecec5;
  --site-tag-border: #b5b5ab;
  --site-surface: #f7f7f2;
  --site-background: #f7f7f2;
  --site-soft: #eaeae3;
  --site-accent: #20201e;
  --site-accent-hover: #56564e;
  --site-tint: #eaeae3;
  --site-on-accent: #f7f7f2;
  --focus-ring: 2px solid var(--site-text);
  --site-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
[data-theme='dark'] {
  color-scheme: dark;
  --site-text: #eeeeE7;
  --site-muted: #b0b0a5;
  --site-border: #484842;
  --site-tag-border: #707069;
  --site-surface: #20201e;
  --site-background: #20201e;
  --site-soft: #2c2c28;
  --site-accent: #eeeee7;
  --site-accent-hover: #c5c5b8;
  --site-tint: #35352f;
  --site-on-accent: #20201e;
}
[data-theme='light'] { color-scheme: light; }
@media (max-width: 767px) {
  :root { --page-inset: 2rem; --site-header-height: 7rem; }
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo/archivo-latin.woff2') format('woff2');
}
:root { --site-font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; }
body, .prose {
  font-family: var(--site-font-family);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--site-font-family);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: -.035em;
  color: var(--site-text);
}
main h1, .prose h1 { font-size: var(--text-page); }
main h2, .prose h2 { font-size: var(--text-section); }
main h3, .prose h3 { font-size: var(--text-card); }
main h4, .prose h4 { font-size: var(--text-body); }
.prose > h1:first-child { margin-top: 0; }
.prose h1, .prose h2 { margin-bottom: var(--space-4); }
.prose p { max-width: 70ch; margin-bottom: var(--space-4); }
button, input, select, textarea { font: inherit; }
strong, b { font-weight: 600; }

html { padding: 0; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--site-header-height) + 1.5rem); scrollbar-color: var(--site-tag-border) var(--site-background); }
body.site-body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; background: var(--site-background); color: var(--site-text); }
*, *::before, *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
img, svg { vertical-align: middle; }
.site-message { padding: 3rem 0; }
.site-container { width: calc(100% - 6rem); max-width: 1280px; margin-right: auto; margin-left: auto; }
.site-main { flex: 1 0 auto; min-width: 0; padding: 0; scroll-margin-top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 100; flex: none; background: var(--site-background); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--site-header-height); border-bottom: 1px solid var(--site-text); }
.site-nav__brand { flex: none; color: var(--site-text); font-size: 1.125rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; }
.site-nav__brand:hover { color: var(--site-text); text-decoration: underline; }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 1.5rem; }
.site-nav__link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--site-text); font-size: 1rem; }
.site-nav__link[aria-current] { font-weight: 600; text-decoration-thickness: 2px; }
.resume-placeholder { color: var(--site-muted); font-size: .875rem; white-space: nowrap; }
.resume-placeholder small { margin-left: .25rem; font-family: var(--site-mono); font-size: .75rem; }
#theme-toggler { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: .5rem; min-width: 2.75rem; min-height: 2.75rem; padding: .375rem 0 .375rem .25rem; border: 0; background: none; color: var(--site-text); font-size: .875rem; cursor: pointer; }
#theme-toggler svg { width: 16px; height: 16px; }
#theme-toggler::before, #theme-toggler::after { display: none; content: none; }
[data-theme='light'] .theme-label--light, [data-theme='dark'] .theme-label--dark { display: none; }
a { color: var(--site-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--site-accent-hover); text-decoration: underline; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--site-on-accent); background: var(--site-accent); }
input, textarea { caret-color: var(--site-text); }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 1050; padding: .75rem 1rem; background: var(--site-text); color: var(--site-background); transform: translateY(-160%); }
.skip-link:focus { transform: none; color: var(--site-background); }
.prose { color: var(--site-text); overflow-wrap: anywhere; }
.prose blockquote { margin-left: 0; padding-left: 1rem; color: var(--site-muted); border-left: 3px solid var(--site-border); }
.prose pre, .prose code { background: var(--site-soft); color: var(--site-text); font-family: var(--site-mono); }
.prose code { padding: .125rem .25rem; }
.prose pre { overflow-x: auto; padding: 1rem; }
.prose pre code { padding: 0; }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: .5rem .75rem; border: 1px solid var(--site-border); text-align: left; }
.site-footer { margin-top: 3rem; padding: 0 0 1.25rem; color: var(--site-text); }
.site-footer__contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--site-text); }
.site-footer h2 { margin: 0; font-size: 2rem; font-weight: 600; }
.site-footer__email { display: inline-block; max-width: 100%; font-size: clamp(1.125rem, 2.3vw, 1.75rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; margin-top: .75rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; }
.site-footer__colophon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--site-border); color: var(--site-muted); font-size: .8125rem; }
.site-footer__colophon p { margin: 0; }
.site-footer__identity { display: flex; align-items: center; gap: .625rem; }
.site-footer__identity img { width: 32px; height: 32px; }
@media (max-width: 1000px) { .site-nav__links { gap: .25rem 1rem; } }
@media (max-width: 767px) {
  .site-container { width: calc(100% - 2.5rem); }
  .site-nav { position: relative; flex-wrap: wrap; gap: 0; padding-top: .75rem; padding-bottom: .5rem; }
  .site-nav__brand { min-height: 2.5rem; display: inline-flex; align-items: center; }
  .site-nav__links { width: 100%; justify-content: flex-start; gap: .125rem 1rem; }
  #theme-toggler { position: absolute; top: .625rem; right: 0; }
  .site-nav__link, #theme-toggler { font-size: .875rem; }
  .site-footer__contact { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; }
  .site-footer__colophon { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.home-landing { padding-top: 3rem; }
.home-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: .5rem 0 3rem; }
.home-intro__identity { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-right: 1rem; }
.home-intro h1 { margin: 0; font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.home-intro__role { margin: .875rem 0 0; font-size: 1.125rem; letter-spacing: -.015em; }
.home-intro__identity img { flex: none; width: 76px; height: 76px; object-fit: contain; }
.home-intro__copy > p { max-width: 46ch; margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.editorial-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--site-text); }
.editorial-heading h2 { margin: 0; font-size: 1.5rem; }
.editorial-heading > a { margin-left: auto; font-size: 1rem; }
.home-projects { display: grid; }
.home-projects .project-list-item { grid-template-columns: 2rem minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0 2.5rem; }
.home-projects .project-list-item__content { padding: .125rem 0 0 1rem; }
.home-projects .project-list-item h3 { font-size: clamp(1.75rem, 2.7vw, 2.5rem); }
.home-projects .project-list-item__image { aspect-ratio: 16 / 10; }
.home-projects .project-list-item__footer { padding-top: 1.5rem; }
@media (max-width: 1000px) {
  .home-intro { gap: 2.5rem; }
  .home-intro__identity { padding-right: 0; }
  .home-intro__identity img { width: 60px; height: 60px; }
  .home-projects .project-list-item { grid-template-columns: 1.5rem minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
  .home-projects .project-list-item__content { padding-left: .25rem; }
}
@media (max-width: 767px) {
  .home-landing { padding-top: 2rem; }
  .home-intro { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 0 2rem; }
  .home-intro__identity { justify-content: flex-start; gap: 1.5rem; }
  .home-intro h1 { font-size: clamp(2.75rem, 11vw, 3.75rem); }
  .home-intro__role { font-size: 1rem; }
  .home-intro__copy > p { font-size: 1rem; max-width: 48ch; }
  .home-projects .project-list-item { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .875rem; padding: 1.25rem 0 2rem; }
  .home-projects .project-list-item__content { grid-column: 2; padding: .25rem 0 0; }
  .home-projects .project-list-item__image { aspect-ratio: 16 / 10; }
  .home-projects .project-list-item h3 { font-size: 1.875rem; }
  .editorial-heading { gap: .5rem .75rem; }
  .editorial-heading h2 { font-size: 1.375rem; }
}

.game-ui-page { padding: 3rem 0 1rem; color: var(--site-text); }
.game-ui-intro { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.game-ui-intro .page-heading { margin: 0; }
.game-ui-intro p { max-width: 42ch; margin: 0; font-size: 1rem; line-height: var(--leading-body); }
.game-ui-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--site-text); }
.game-ui-section h2 { margin: 0; font-size: 1.75rem; }
.game-ui-gallery { min-width: 0; display: grid; gap: 3rem; }
.game-ui-empty { margin: 0; color: var(--site-muted); font-size: 1rem; }
.game-ui-design { min-width: 0; margin: 0; }
.game-ui-design__image { display: block; }
.game-ui-design__image img { display: block; width: 100%; height: auto; }
.game-ui-design figcaption { margin-top: 1.25rem; max-width: 65ch; }
.game-ui-design h3 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; }
.game-ui-design figcaption p { margin: .75rem 0 0; font-size: 1rem; }
@media (max-width: 767px) {
  .game-ui-page { padding-top: 2rem; }
  .game-ui-intro { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .game-ui-section { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 2rem; }
  .game-ui-section h2 { font-size: 1.5rem; }
}
