/* Local heading font — no external font requests. */

@font-face  {
  font-family: "Russo One";
  src: url("assets/fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Theme — edit these colors and the maximum page width. */

:root {
  --bg: #f5eddc;
  --surface: #fff9ed;
  --ink: #092444;
  --muted: #4c5765;
  --accent: #ae3826;
  --line: #cabfa9;
  --lime: #007da4;
  --max: 1180px;
  color-scheme: light;
}

/* Base styles and typography */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 20px;
}

h1, h2, h3 {
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  font-weight: 400;
  font-family: "Russo One", Arial, sans-serif;
}

h1 {
  font-size: clamp(42px, 5.2vw, 64px);
}

h2 {
  font-size: clamp(28px, 3.1vw, 38px);
}

h3 {
  font-size: 27px;
}

.wrap {
  max-width: var(--max);
  margin: auto;
  width: calc(100% - 80px);
}

.skip {
  position: absolute;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px;
  z-index: 5;
}

.skip:focus {
  top: 10px;
}

/* Navigation — shared by both pages */

.header {
  border-bottom: 0;
  background: var(--ink);
  color: var(--surface);
  position: relative;
}


.nav {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.06em;
  display: block;
  gap: 12px;
  align-items: center;
  width: 290px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  font-family: "Russo One", Arial, sans-serif;
}

.links a {
  padding: 9px 2px;
  border-bottom: 2px solid transparent;
}

.links a:hover {
  color: var(--surface);
  border-bottom-color: var(--surface);
}

.header a:focus-visible {
  outline-color: var(--surface);
}

.text-link:hover {
  color: var(--accent);
}

.nav-contact {
  border: 1px solid #65758a;
  padding: 9px 15px;
  border-radius: 4px;
}

.links .nav-contact {
  border: 1px solid #65758a;
  padding: 9px 15px;
}

.eyebrow {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  font-weight: 700;
}

/* Homepage introduction */

.hero {
  padding: 65px 0 55px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 60px;
  align-items: center;
}

.hero h1 span {
  color: var(--accent);
}

.intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 450px;
  margin-top: 28px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 400;
  border: 2px solid var(--ink);
  transition: background .18s, transform .18s;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #c5b79c;
  font-family: "Russo One", Arial, sans-serif;
}

.button:hover {
  background: #20436b;
  transform: translateY(-2px);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: #eee1c7;
}

.hero-art {
  position: relative;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #d4c6aa;
  background: var(--ink);
}

.hero-image {
  position: relative;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-bottom: 3px solid var(--ink);
}

/* Preserve the full compilation frame, including 4:3 games and project labels. */
.hero-image.hero-video {
  border-bottom: 0;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.image-label {
  position: relative;
  background: var(--ink);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border: 0;
  border-top: 0;
  color: var(--surface);
}

.image-label span {
  color: #d2d8df;
  font-family: monospace;
  font-size: 11px;
}

/* Tools and languages */

.skills-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  font-family: monospace;
  font-size: 12px;
  color: var(--ink);
  background: #e9dec7;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.skills-strip span:first-child {
  color: var(--accent);
  font-weight: 700;
}

/* Project sections and cards */

.section {
  padding: 60px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading > p {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.work-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #ddcfb5;
}

.work-feature > a {
  overflow: hidden;
  display: block;
  border-right: 2px solid var(--ink);
}

.work-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 315px;
  transition: transform .3s;
}

.work-feature > a:hover img {
  transform: scale(1.025);
}

.feature-copy {
  padding: 40px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  border: 1px solid #cabfa9;
  color: var(--ink);
  padding: 3px 9px;
  font: 11px monospace;
  background: #eee3cd;
  border-radius: 3px;
}

.feature-copy > p, .project-copy > p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
  margin-top: 10px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.project {
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #ddcfb5;
}

.project-media {
  display: block;
  height: 255px;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.project-media:hover img, .project-media:focus-visible img {
  transform: scale(1.025);
}

.project-media.nes {
  background: #e9dec7;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.project-media.nes img {
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.project-copy {
  padding: 28px 32px;
}

.project-copy .eyebrow {
  margin-bottom: 12px;
}

.work-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.work-note a {
  color: var(--ink);
  white-space: nowrap;
}

/* About section */

.about {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
}

.about-title {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-top: 28px;
}

.portrait {
  object-fit: contain;
  image-rendering: pixelated;
  background: #e9dec7;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.about p {
  color: var(--muted);
  font-size: 17px;
}

.about p strong {
  color: var(--ink);
  font-weight: 400;
}

/* Contact section */

.contact {
  background: var(--ink);
  color: var(--surface);
  padding: 42px 0;
  position: relative;
}


.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.contact .eyebrow {
  color: #42335b;
  margin-bottom: 15px;
}

.contact p {
  margin: 20px 0 0;
  color: #d5dce4;
}

.contact a {
  border-bottom: 2px solid var(--surface);
  padding: 12px 0;
  font-size: 20px;
  white-space: nowrap;
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer div {
  display: flex;
  gap: 24px;
}

/* Case study */

.breadcrumb {
  font: 12px monospace;
  color: var(--muted);
  display: inline-block;
  margin-top: 40px;
}

.case-hero {
  padding: 38px 0 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}

.case-hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
}

.case-hero .intro {
  margin: 0;
  font-size: 17px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 2px solid var(--ink);
  padding: 22px;
  margin-bottom: 36px;
  gap: 20px;
  background: #e9dec7;
  border-radius: 4px;
}

.case-meta dt {
  font: 11px monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 7px;
}

.case-meta dd {
  margin: 0;
  font-size: 14px;
}

.case-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 #d4c6aa;
}

.caption {
  font: 12px monospace;
  color: var(--muted);
  padding: 15px 0;
  line-height: 1.6;
}

.case-nav {
  display: flex;
  gap: 26px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  font-size: 13px;
}

.case-nav a:hover {
  color: var(--accent);
}

.case-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 65px;
}

.case-section h2 {
  font-size: 28px;
}

.case-section .eyebrow {
  margin-bottom: 15px;
}

.case-section h3 {
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 30px 0 14px;
}

.case-section h3:first-child {
  margin-top: 0;
}

.case-content p {
  color: var(--muted);
  max-width: 720px;
}

.case-content strong {
  color: var(--ink);
  font-weight: 500;
}

.case-content figure {
  margin: 30px 0 0;
}

.case-content figure img {
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.case-video {
  width: 100%;
  background: var(--surface);
  display: block;
  border: 3px solid var(--ink);
  border-radius: 8px;
}




/* Tablet layouts */

/* Phone layouts */

/* Reduced motion preference */

/* Small reusable styles */

.profile-location {
  color: var(--muted);
  font-size: 14px;
}

.accent-text {
  color: var(--accent);
}


.image-label strong {
  font-family: "Russo One", Arial, sans-serif;
  font-weight: 400;
}

/* Homepage project selection and all-projects archive */

.selected-grid {
  margin-top: 0;
}

.work-feature + .selected-grid {
  margin-top: 28px;
}

.more-projects {
  padding-top: 0;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.compact-project {
  border-top: 2px solid var(--ink);
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.compact-project .eyebrow {
  margin-bottom: 12px;
  letter-spacing: .02em;
}

.compact-project h3 {
  font-size: 23px;
}

.compact-project p {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.compact-project .text-link {
  margin-top: auto;
}

.archive {
  padding-bottom: 60px;
}

.archive-heading {
  padding: 38px 0;
}

.archive-heading p {
  margin: 20px 0 0;
  color: var(--muted);
}

.archive-group + .archive-group {
  margin-top: 48px;
}

.archive-group h2 {
  margin-bottom: 24px;
}

.archive-project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.archive-project h3 {
  font-size: 23px;
}

.archive-meta {
  display: block;
  margin-top: 10px;
  font: 12px monospace;
  color: var(--accent);
}

.archive-project p {
  max-width: 750px;
  margin: 14px 0 0;
  color: var(--muted);
}

.archive-project .text-link {
  white-space: nowrap;
}

@media (max-width:900px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .hero {
    gap: 28px;
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .feature-copy {
    padding: 28px;
  }

  .work-feature {
    grid-template-columns: 1fr 1fr;
  }

  .work-feature img {
    min-height: 300px;
  }

  .about {
    gap: 40px;
  }

  .case-section {
    grid-template-columns: 210px 1fr;
    gap: 30px;
  }

  .case-hero {
    gap: 35px;
  }

  .contact a {
    font-size: 16px;
  }

  .brand {
    width: 240px;
  }

  .links {
    gap: 20px;
    font-size: 12px;
  }

}

@media (max-width:650px) {
  .compact-grid, .archive-project {
    grid-template-columns: 1fr;
  }

  .archive-project {
    gap: 12px;
    justify-items: start;
  }

  .more-projects {
    padding-top: 0;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    min-height: 80px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 20px;
  }

  .links {
    width: 100%;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .nav-contact {
    padding: 0;
    border: 1px solid #65758a;
  }

  .brand {
    font-size: 20px;
    width: 260px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0 42px;
    gap: 30px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-image {
    aspect-ratio: 1.6;
  }

  .skills-strip {
    padding: 16px;
    gap: 14px;
    font-size: 11px;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
    max-width: none;
  }

  .work-feature, .work-grid, .about, .case-hero {
    grid-template-columns: 1fr;
  }

  .work-feature img {
    min-height: 0;
    aspect-ratio: 16/9;
  }

  .feature-copy {
    padding: 28px;
  }

  .work-grid {
    gap: 20px;
    margin-top: 20px;
  }

  .project-media {
    height: auto;
    aspect-ratio: 16/9;
  }

  .work-note {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .about {
    gap: 30px;
  }

  .about h2 {
    font-size: 30px;
  }

  .contact-inner {
    display: block;
  }

  .contact {
    padding: 34px 0;
  }

  .contact a {
    display: inline-block;
    margin-top: 20px;
    font-size: 17px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .case-hero {
    gap: 25px;
    padding: 30px 0;
  }

  .case-hero h1 {
    font-size: 42px;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }

  .case-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 0;
  }


  .case-nav {
    gap: 18px;
  }

  .case-section h2 {
    font-size: 26px;
  }

  .links .nav-contact {
    padding: 7px 10px;
  }

  .work-feature > a {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .image-label {
    padding: 14px;
  }

  .image-label strong {
    font-size: 12px;
  }

  .image-label span {
    font-size: 10px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

}


/* Project details — inline references and uncropped NES footage. */

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pixel-figure img {
  width: 256px;
  max-width: 100%;
  image-rendering: pixelated;
}

.case-video {
  object-fit: contain;
  background: var(--ink);
}

/* Preserve the full interface screenshot on short write-ups. */
.case-cover.case-still {
  aspect-ratio: auto;
}
