:root {
  color-scheme: light;
  --bg: #e8edef;
  --bg-alt: #eef2f4;
  --surface: #f2f5f6;
  --surface-soft: #edf1f3;
  --text: #192329;
  --text-soft: #54636c;
  --line: #d6dfe3;
  --line-strong: #9cabb3;
  --accent: #087f72;
  --accent-dark: #066258;
  --blue: #326bcb;
  --header-bg: rgba(232, 237, 239, 0.9);
  --container: 1120px;
  --nav-height: 72px;
  --radius: 6px;
  --transition: 220ms ease;
  --scrollbar-thumb: #657f86;
  --scrollbar-track: #e8edef;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111719;
  --bg-alt: #171f22;
  --surface: #1d282c;
  --surface-soft: #202c31;
  --text: #edf4f5;
  --text-soft: #a7b8c0;
  --line: #334247;
  --line-strong: #637d87;
  --accent: #73dfbd;
  --accent-dark: #a2edd4;
  --blue: #8eaffe;
  --header-bg: rgba(17, 23, 25, 0.92);
  --scrollbar-thumb: #597780;
  --scrollbar-track: #111719;
}
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid var(--scrollbar-track);
  border-radius: 8px;
  background: var(--scrollbar-thumb);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  letter-spacing: 0;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
#home:focus,
#interessen:focus,
#contact:focus {
  outline: none;
}
::selection {
  color: var(--bg);
  background: var(--accent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  clip-path: inset(50%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--text);
}
.skip-link:focus {
  clip-path: none;
}
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition);
}
.header.scrolled {
  border-color: var(--line);
}
.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.has-nav .navbar {
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-weight: 720;
  color: var(--text);
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--text);
}
.brand-text {
  font-size: 0.88rem;
  line-height: 1.25;
}
.brand:hover .brand-mark {
  color: var(--accent);
}
.nav-menu {
  width: 100%;
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding-bottom: 8px;
}
.has-nav .nav-menu {
  position: absolute;
  inset: calc(var(--nav-height) + 8px) 24px auto;
  width: auto;
  display: none;
  max-height: calc(100dvh - var(--nav-height) - 16px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 16px 40px #00000018;
}
.has-nav .nav-menu.open {
  display: grid;
}
.nav-menu a {
  min-height: 48px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--text-soft);
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link[aria-current="page"],
.nav-link[aria-current="true"] {
  color: var(--text);
  background: var(--surface-soft);
  border-radius: var(--radius);
}
.nav-tools {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}
.nav-tools:has(> .theme-toggle[hidden])::before {
  content: "";
  flex: 0 0 44px;
  height: 44px;
}
.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}
.icon-button:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
  border-color: var(--line);
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 1100;
  bottom: calc(100% + 10px);
  right: 0;
  max-width: 220px;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
}
.header [data-tooltip]::after {
  top: calc(100% + 10px);
  bottom: auto;
}
.theme-sun,
.close-icon,
.check-icon {
  display: none;
}
[data-theme="dark"] .theme-sun {
  display: block;
}
[data-theme="dark"] .theme-moon {
  display: none;
}
.nav-toggle {
  display: none;
}
.has-nav .nav-toggle {
  display: inline-flex;
}
.nav-toggle.is-open .menu-icon {
  display: none;
}
.nav-toggle.is-open .close-icon {
  display: block;
}
.page-flow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-height) - 200px);
  border-bottom: 1px solid var(--line);
}
.hero-section[data-network-touch] {
  touch-action: pan-y pinch-zoom;
}
.code-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-layout {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 36px 24px;
}
.hero-content {
  max-width: 700px;
  padding-bottom: 36px;
  margin-block: auto;
  text-align: center;
}
.mono {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 550;
}
.hero-content h1 {
  margin: 0;
  font-size: 2.85rem;
  font-weight: 720;
  line-height: 1.15;
}
.name-dot {
  color: var(--accent);
}
.hero-motto {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 520;
}
.hero-text {
  max-width: 36ch;
  margin: 1.2rem auto 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 620;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.btn .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--bg);
  border-color: var(--accent-dark);
}
.btn-secondary {
  background: var(--bg);
}
.btn-secondary:hover {
  background: var(--surface-soft);
}
.hero-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-size: 0.7rem;
  color: var(--text-soft);
}
.scroll-link:hover {
  color: var(--accent-dark);
}
.scroll-link .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.section-block {
  padding-block: 64px;
}
.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.3;
}
.section-heading p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0.9rem 0 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.8;
}
.interest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.interest-entry {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.interest-number {
  color: var(--accent-dark);
  font-size: 0.75rem;
}
.interest-entry h3 {
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 650;
}
.interest-entry p {
  max-width: 50ch;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.9;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.text-link .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  transition: transform var(--transition);
}
.text-link:hover {
  color: var(--accent-dark);
}
.text-link:hover .icon {
  transform: translate(2px, -2px);
}
.photo-section {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}
.section-bar .icon-button {
  border-color: var(--line);
  background: var(--bg);
}
.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  transition: opacity 220ms ease;
}
.photo-grid[aria-busy="true"] {
  opacity: 0.55;
}
.photo-item {
  display: block;
  min-width: 0;
}
.photo-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms ease,
    opacity 220ms ease;
}
.photo-frame img[data-placeholder] {
  object-fit: contain;
  background: #e5e5e5;
}
.photo-item:hover img {
  transform: scale(1.04);
}
.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 15px;
  font-size: 0.86rem;
}
.photo-caption .icon {
  color: var(--text-soft);
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.all-photos-link {
  margin-top: 28px;
}
.footer {
  padding-block: 44px 28px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 52px;
}
.footer-contact h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 620;
}
.footer-contact p:not(.eyebrow) {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.email-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}
.email-actions .icon-button {
  width: 40px;
  flex-basis: 40px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  min-height: 44px;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
}
.contact-email .icon {
  display: none;
}
.contact-email:hover {
  color: var(--accent-dark);
}
.copy-email.is-copied .copy-icon {
  display: none;
}
.copy-email.is-copied .check-icon {
  display: block;
  color: var(--accent-dark);
}
.footer-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.copyright {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.footer-links a:hover {
  color: var(--text);
}
.projects-heading {
  padding-block: 64px 40px;
}
.projects-heading h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 650;
  line-height: 1.2;
}
.software-heading h1 {
  font-size: 1.625rem;
}
@media (min-width: 400px) {
  .software-heading h1 {
    font-size: 2.2rem;
  }
}
.projects-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 32px;
  padding-bottom: 64px;
}
.projects-intro {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--text-soft);
}
.project-teaser {
  display: block;
  min-width: 0;
}
.project-teaser-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e5e5e5;
}
.cr3-frame {
  border: 1px solid #334247;
  border-radius: var(--radius);
  overflow: hidden;
  background: #131b1f;
  color: #edf4f5;
}
.cr3-titlebar,
.cr3-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #1b262b;
  font-size: 0.6875rem;
  line-height: 1.3;
}
.cr3-statusbar {
  background: #182226;
  color: #a7b8c0;
}
.cr3-frame-compact .cr3-titlebar,
.cr3-frame-compact .cr3-statusbar {
  padding: 6px 10px;
  font-size: 0.65rem;
}
.cr3-frame-compact {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.cr3-frame-compact .cr3-stage {
  aspect-ratio: auto;
}
.cr3-frame-compact .cr3-stage img {
  object-fit: cover;
}
.cr3-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.cr3-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f646d;
}
.cr3-dots i.is-accent {
  background: #73dfbd;
}
.cr3-filename {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.cr3-mode {
  flex-shrink: 0;
  color: #73dfbd;
}
.cr3-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111719;
}
.cr3-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
}
.cr3-img-before {
  clip-path: inset(0 50% 0 0);
}
.cr3-canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cr3-stage.is-interactive .cr3-canvas {
  display: block;
}
.cr3-stage.is-interactive .cr3-divider {
  display: none;
}
.cr3-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  max-width: calc(50% - 16px);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(13, 23, 28, 0.84);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.cr3-badge-before {
  left: 10px;
  color: #f2b2cc;
}
.cr3-badge-after {
  right: 10px;
  color: #73dfbd;
}
.cr3-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  background: #73dfbd;
  transform: translateX(-50%);
  pointer-events: none;
}
.cr3-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #73dfbd;
  border-radius: 50%;
  background: #111719;
  color: #73dfbd;
  transform: translate(-50%, -50%);
}
.cr3-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cr3-scrubber {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.cr3-stage:has(.cr3-scrubber:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
.cr3-caption {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.8125rem;
}
@media (min-width: 541px) {
  .cr3-titlebar,
  .cr3-statusbar {
    padding: 10px 16px;
    font-size: 0.75rem;
  }
  .cr3-badge {
    top: 14px;
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  .cr3-badge-before {
    left: 14px;
  }
  .cr3-badge-after {
    right: 14px;
  }
}
.project-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms ease;
}
.project-teaser-copy {
  padding-top: 24px;
}
.project-teaser-copy .eyebrow {
  margin-bottom: 12px;
}
.project-teaser h2 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.project-teaser-copy > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--text-soft);
}
.project-note {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.project-teaser:hover h2,
.project-teaser:focus-visible h2 {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}
.project-teaser:hover img,
.project-teaser:focus-visible img {
  transform: scale(1.025);
}
.project-detail-heading {
  padding-block: 32px;
}
.projects-codecs,
.projects-software,
.projects-websites,
.projects-minigames {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.collection-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.collection-teaser-copy {
  min-width: 0;
}
.collection-teaser h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 650;
}
.collection-teaser-copy > p:not(.eyebrow) {
  max-width: 46ch;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.9375rem;
}
.collection-teaser-link {
  display: inline-block;
  margin-top: 8px;
  padding-block: 8px;
  color: var(--accent-dark);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.collection-teaser:is(:hover, :focus-visible) h2 {
  color: var(--accent-dark);
}
.collection-teaser-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 8 / 5;
  border-radius: var(--radius);
}
.projects-minigames .collection-teaser-image {
  image-rendering: pixelated;
}
.website-case-heading .text-link {
  margin-top: 12px;
}
.website-case {
  padding-bottom: 48px;
}
.website-case-media {
  margin: 0 0 32px;
}
.website-case-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.website-case-media figcaption {
  max-width: 75ch;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.website-case-section {
  padding-block: 32px;
}
.website-case-section + .website-case-section {
  border-top: 1px solid var(--line);
}
.website-case-section h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.4;
}
.website-case-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}
.website-case-section > p:not(.eyebrow):not(.website-credit),
.website-solutions p {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--text-soft);
}
.website-facts {
  display: grid;
  gap: 20px;
  margin: 0;
  padding-block: 24px;
  border-block: 1px solid var(--line);
  font-size: 0.875rem;
}
.website-facts dt {
  font-weight: 650;
}
.website-facts dd {
  margin: 4px 0 0;
  color: var(--text-soft);
}
.website-highlights,
.website-contributions {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
}
.website-highlights {
  font-size: 0.875rem;
}
.website-highlights li::marker,
.website-contributions li::marker {
  color: var(--accent-dark);
}
.website-solutions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.website-credit {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.project-detail-heading.minigames-heading {
  padding-block: 24px;
}
.minigames-heading .container {
  max-width: 680px;
}
.minigames-heading .project-breadcrumb {
  margin-bottom: 12px;
}
.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
}
.project-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 0.875rem;
}
.project-detail-actions .project-source-link {
  margin-top: 0;
}
.minigames-playground {
  padding-bottom: 48px;
}
.websites-overview-footer,
.minigames-overview-footer {
  padding-bottom: 48px;
}
.minigame-tile .project-teaser-image img {
  image-rendering: pixelated;
}
.minigames-playground .runner-game {
  margin-top: 0;
}
:root[data-theme="light"] .runner-stats dd {
  color: var(--accent-dark);
}
.minigames-playground .project-detail-links {
  max-width: 680px;
  margin: 20px auto 0;
}
@media (min-width: 761px) {
  .collection-teaser {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 48px;
  }
  .website-solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 48px;
  }
  .website-case-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.project-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-breadcrumb a:hover {
  color: var(--accent-dark);
}
.project-detail-heading h1 {
  max-width: 22ch;
  margin: 0;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.project-tagline {
  max-width: 48ch;
  margin: 20px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
}
.project-detail-heading .project-note {
  margin-top: 8px;
}
.project-detail-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #e5e5e5;
  overflow: hidden;
  border-radius: var(--radius);
}
.project-detail-media-codec {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.project-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-detail-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 40px;
}
.project-detail-info h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
}
.project-detail-copy h3 {
  margin: 32px 0 0;
  font-size: 1.0625rem;
  font-weight: 650;
}
.project-detail-info p {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.85;
}
.project-detail-copy code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
}
.project-facts {
  display: grid;
  gap: 16px;
  margin: 0;
}
.project-facts > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.project-facts dt {
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.project-facts dd {
  margin: 8px 0 0;
}
.project-detail-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 0;
  border-top: 1px solid var(--line);
}
.error-main {
  padding-block: 36px 16px;
}
.error-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.error-intro h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.3;
}
.error-intro > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--text-soft);
}
.error-intro .hero-actions {
  margin-top: 1.5rem;
}

.legal-main {
  padding-block: 40px 80px;
}
.legal-card {
  max-width: 760px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.legal-card h1 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  line-height: 1.3;
  hyphens: auto;
}
.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.9;
}
.legal-card ul {
  padding-left: 1.2rem;
}
.legal-card a:not(.back-link) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.back-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.reveal {
  opacity: 1;
}
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms ease,
    transform 1000ms cubic-bezier(0.16, 1.12, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 {
  transition-delay: 100ms;
}

@media (min-width: 541px) {
  .container {
    width: min(var(--container), calc(100% - 3rem));
  }
  .navbar {
    gap: 1rem;
  }
  .brand {
    gap: 0.7rem;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .brand-text {
    font-size: 1rem;
  }
  .hero-layout {
    padding-top: 48px;
  }
  .hero-content {
    padding-bottom: 72px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-motto {
    font-size: 1.4rem;
  }
  .hero-text {
    max-width: 54ch;
    font-size: 1.05rem;
  }
  .hero-actions {
    gap: 0.85rem;
    margin-top: 1.8rem;
  }
  .btn {
    gap: 0.85rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
  }
  .btn .icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .hero-bottom {
    gap: 1.5rem;
  }
  .scroll-link {
    gap: 0.7rem;
    font-size: 0.8rem;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }
  .interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 44px;
  }
  .interest-entry h3 {
    font-size: 1.17rem;
  }
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .photo-frame {
    aspect-ratio: 4 / 3;
  }
  .section-bar {
    gap: 1.5rem;
  }
  .contact-email {
    font-size: 0.9rem;
  }
  .contact-email .icon {
    display: block;
  }
  .email-actions {
    gap: 0.65rem;
  }
  .email-actions .icon-button {
    width: 44px;
    flex-basis: 44px;
  }
  .footer {
    padding-top: 60px;
  }
  .footer-links {
    gap: 1.5rem;
  }
  .footer-contact h2 {
    font-size: 1.35rem;
  }
  .legal-main {
    padding-top: 64px;
  }
  .legal-card h1 {
    font-size: 2.4rem;
  }
  .projects-heading h1 {
    font-size: 2.6rem;
  }
  .error-main {
    padding-top: 48px;
  }
  .error-intro h1 {
    font-size: 2.4rem;
  }
}
@media (min-width: 761px) {
  .projects-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-detail-heading {
    padding-block: 48px 40px;
  }
  .project-detail-heading h1 {
    font-size: 2.6rem;
  }
  .project-tagline {
    font-size: 1.25rem;
  }
  .project-detail-info {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 64px;
    padding-block: 48px;
  }
}
@media (min-width: 821px) {
  :root {
    --nav-height: 80px;
  }
  .navbar {
    gap: 1.75rem;
    flex-wrap: nowrap;
  }
  .nav-menu,
  .has-nav .nav-menu {
    position: static;
    width: auto;
    order: 0;
    display: flex;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-menu a {
    min-height: 44px;
  }
  .nav-tools {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }
  .has-nav .nav-toggle {
    display: none;
  }
  .hero-content h1 {
    font-size: 4.5rem;
  }
  .hero-section {
    min-height: min(660px, calc(100svh - var(--nav-height) - 220px));
  }
  .hero-layout {
    padding-top: 58px;
  }
  .section-block {
    padding-block: 88px;
  }
  .interest-grid {
    gap: 64px;
  }
  .photo-grid {
    gap: 24px;
  }
  .footer-content {
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }
}
@media (forced-colors: active) {
  :root {
    scrollbar-color: auto;
  }
  .icon-button,
  .btn,
  .nav-menu {
    border: 1px solid CanvasText;
  }
  .code-canvas {
    display: none;
  }
}
