@font-face {
  font-family: "Inter";
  src:
    url("/fonts/inter/Inter_18pt-Regular.woff2") format("woff2"),
    url("/fonts/inter/Inter_18pt-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src:
    url("/fonts/inter/Inter_18pt-Bold.woff2") format("woff2"),
    url("/fonts/inter/Inter_18pt-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src:
    url("/fonts/inter/Inter_18pt-ExtraBold.woff2") format("woff2"),
    url("/fonts/inter/Inter_18pt-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Bitcount Grid Single";
  src:
    url("/fonts/bitcount-grid-single/BitcountGridSingle-Regular.woff2") format("woff2"),
    url("/fonts/bitcount-grid-single/BitcountGridSingle-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Rubik Dirt";
  src:
    url("/fonts/rubik-dirt/RubikDirt-Regular.woff2") format("woff2"),
    url("/fonts/rubik-dirt/RubikDirt-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #f7ead4;
  --ink-muted: #d8c79e;
  --paper: #0b1317;
  --paper-soft: #111f24;
  --paper-lift: #162b2f;
  --teal: #39d4cf;
  --teal-deep: #0f7579;
  --gold: #f0ac22;
  --orange: #e0641b;
  --red: #bd2e22;
  --blue: #1d6f99;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow: 0 1.6rem 4rem rgb(0 0 0 / 42%);
  --radius: 0.5rem;
  --max-page: 73rem;
  --gutter: clamp(1.3rem, 3.9vw, 2.6rem);
  --grid-gap: clamp(1rem, 3vw, 1.5rem);
  --font-display: "Rubik Dirt", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "Bitcount Grid Single", ui-monospace, monospace;
  --header-offset: calc(2rem + clamp(3rem, 11vw, 4.75rem) + 0.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background: var(--paper);
  scrollbar-gutter: stable;
}

html.fonts-loading:not(.fonts-loaded) body {
  visibility: hidden;
}

body {
  min-block-size: 100svh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 2.75rem 2.75rem,
    linear-gradient(0deg, rgb(255 255 255 / 2%) 1px, transparent 1px) 0 0 / 2.75rem 2.75rem,
    radial-gradient(ellipse at 18% 6%, rgb(224 100 27 / 22%), transparent 30rem),
    radial-gradient(ellipse at 86% 12%, rgb(57 212 207 / 18%), transparent 34rem),
    linear-gradient(180deg, #06090b 0%, var(--paper) 42%, #090d10 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgb(189 46 34 / 8%), transparent 18%, transparent 82%, rgb(57 212 207 / 8%));
  mix-blend-mode: screen;
  opacity: 0.42;
}


img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 0.18rem solid var(--teal);
  outline-offset: 0.22rem;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 20;
  translate: 0 -150%;
  padding: 0.65rem 0.85rem;
  color: #061112;
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  translate: 0;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
}

.container {
  inline-size: 100%;
  max-inline-size: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.row.align-centre {
  align-items: center;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: 100svh;
}

.site-header-sentinel {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 0;
  inline-size: 1px;
  block-size: 1px;
  pointer-events: none;
  visibility: hidden;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 15;
  border-block-end: 1px solid transparent;
  background: transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  border-block-end-color: color-mix(in srgb, var(--line) 55%, transparent);
  background: rgb(11 19 23 / 42%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: rgb(11 19 23 / 88%);
  }
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-inline-size: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 4vw, 1.45rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark img {
  inline-size: clamp(3rem, 11vw, 4.75rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0.35rem 0.4rem rgb(0 0 0 / 40%));
}

.brand-mark span {
  overflow-wrap: anywhere;
}

.site-header-actions {
  position: relative;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--gold) 72%, var(--orange));
  border-radius: 0.35rem;
  color: var(--gold);
  background: rgb(12 8 4 / 55%);
  box-shadow:
    inset 0 0 0 1px rgb(240 172 34 / 10%),
    0 0.22rem 0 rgb(0 0 0 / 44%);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: #ffe9bc;
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgb(240 172 34 / 22%) 0%, rgb(224 100 27 / 14%) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgb(255 204 82 / 18%),
    0 0.28rem 0 #5a2408,
    0 0.5rem 1rem rgb(0 0 0 / 36%);
}

.menu-toggle-icon {
  position: relative;
  display: block;
  inline-size: 1.35rem;
  block-size: 0.95rem;
}

.menu-toggle-bar {
  position: absolute;
  inset-inline: 0;
  block-size: 0.14rem;
  background: currentcolor;
  border-radius: 999px;
}

.menu-toggle-bar:nth-child(1) {
  inset-block-start: 0;
}

.menu-toggle-bar:nth-child(2) {
  inset-block-start: 50%;
  translate: 0 -50%;
}

.menu-toggle-bar:nth-child(3) {
  inset-block-end: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  inset-block-start: 50%;
  translate: 0 -50%;
  rotate: 45deg;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  inset-block-end: auto;
  inset-block-start: 50%;
  translate: 0 -50%;
  rotate: -45deg;
}

.site-menu {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.55rem);
  min-inline-size: 13rem;
  inline-size: max-content;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius);
  background: rgb(11 19 23 / 82%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 0.65rem 1.75rem rgb(0 0 0 / 36%);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-menu {
    background: rgb(17 31 36 / 96%);
  }
}

.site-menu[hidden] {
  display: none;
}

.site-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 0.1rem);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: rgb(255 255 255 / 7%);
}

.hero-actions,
.project-links,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-actions {
  gap: 0.85rem;
}

.site-footer a {
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.hero {
  padding-block: clamp(2rem, 8vw, 5rem);
}

.hero-row-top {
  margin-block-end: clamp(1.25rem, 3vw, 2rem);
}

.hero-intro {
  min-inline-size: 0;
}

.hero-intro h1 {
  max-inline-size: none;
  margin-block-end: 0;
}

.hero-follow-up {
  min-inline-size: 0;
}

.hero-row-spacer {
  min-block-size: 0;
}

.eyebrow,
.project-kicker {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 400;
}

h1 {
  margin-block-end: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0.05em 0.05em 0 #051113,
    0.1em 0.1em 0 rgb(189 46 34 / 80%);
}

h2 {
  margin-block-end: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-block-end: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  line-height: 1.7;
}

.hero-lede {
  max-inline-size: 44rem;
  margin-block-end: 1.35rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: 0.72rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary,
.button-secondary {
  color: var(--gold);
  background: rgb(12 8 4 / 55%);
  border-color: color-mix(in srgb, var(--gold) 72%, var(--orange));
  box-shadow:
    inset 0 0 0 1px rgb(240 172 34 / 10%),
    0 0.22rem 0 rgb(0 0 0 / 44%);
}

.button-primary:hover,
.button-secondary:hover {
  color: #ffe9bc;
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgb(240 172 34 / 22%) 0%, rgb(224 100 27 / 14%) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgb(255 204 82 / 18%),
    0 0.28rem 0 #5a2408,
    0 0.5rem 1rem rgb(0 0 0 / 36%);
}

.hero-badge {
  position: relative;
  margin: 0;
  justify-self: center;
}

.hero-badge img {
  inline-size: min(100%, 24rem);
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 1.1rem 1.8rem rgb(0 0 0 / 54%));
}

.hero-badge figcaption {
  inline-size: min(18rem, 88%);
  margin: 0.65rem auto 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.section-band,
.answer-strip {
  border-block: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgb(57 212 207 / 10%), transparent 38%),
    linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%);
}

.section-band,
.answer-strip {
  padding-block: clamp(1.25rem, 4vw, 2.25rem);
}

.answer-strip {
  margin-block-end: clamp(2rem, 6vw, 3.5rem);
}

.workbench .row + .row {
  margin-block-start: clamp(1.25rem, 3vw, 2rem);
}

.about-layout {
  align-items: start;
}

.about .section-heading h2,
.answer-strip .section-heading h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 0.98;
}

.copy-panel {
  color: var(--ink-muted);
  font-size: 1.04rem;
}

.copy-panel p:last-child,
.project-body p:last-child,
.content-section p:last-child {
  margin-block-end: 0;
}

.workbench {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.section-heading {
  min-inline-size: 0;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.project-card img {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-block-end: 2px solid var(--line);
}

.project-card:nth-child(3) img {
  object-position: 50% 18%;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.project-body h3 {
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  line-height: 1.08;
}

.project-body p:not(.project-kicker) {
  color: var(--ink-muted);
}

.project-links {
  margin-block-start: auto;
  padding-block-start: 1rem;
  justify-content: center;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.project-link-icon {
  flex-shrink: 0;
  inline-size: 1rem;
  block-size: 1rem;
  background-color: currentcolor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.project-link-icon--website {
  mask-image: url("/images/globe.svg");
  -webkit-mask-image: url("/images/globe.svg");
}

.project-link-icon--steam {
  mask-image: url("/images/steam.svg");
  -webkit-mask-image: url("/images/steam.svg");
}

.project-links a:hover {
  border-color: var(--gold);
  background: rgb(240 172 34 / 12%);
}

.answer-strip p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.04rem;
}

.site-footer {
  border-block-start: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  color: var(--ink-muted);
}

.site-footer-inner {
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 2rem);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer-nav {
  display: flex;
  justify-content: flex-start;
}

.site-footer nav {
  gap: 0;
}

.footer-nav-separator {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding-inline: 0.75rem;
  color: color-mix(in srgb, var(--ink-muted) 50%, transparent);
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
}

.footer-discord-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-link-icon {
  flex-shrink: 0;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  background-color: currentcolor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.footer-link-icon--discord {
  mask-image: url("/images/discord.svg");
  -webkit-mask-image: url("/images/discord.svg");
}

.content-shell main {
  align-self: start;
}

.content-page {
  padding-block: clamp(2rem, 7vw, 4rem);
}

.content-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.content-header {
  margin-block-end: clamp(1.5rem, 4vw, 2.5rem);
}

.content-header h1 {
  max-inline-size: none;
  margin-block-end: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.content-section + .content-section {
  margin-block-start: clamp(1.5rem, 4vw, 2rem);
  padding-block-start: clamp(1.5rem, 4vw, 2rem);
  border-block-start: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.content-section h2 {
  margin-block-end: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.content-section h3 {
  margin-block: 1rem 0.5rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.content-section p,
.content-section li {
  color: var(--ink-muted);
}

.content-section p + p,
.content-section p + ul,
.content-section ul + p {
  margin-block-start: 0.85rem;
}

.content-section ul {
  margin-block: 0.85rem 0;
  padding-inline-start: 1.35rem;
}

.content-section li + li {
  margin-block-start: 0.4rem;
}

.content-section a {
  color: var(--gold);
  font-weight: 700;
}

.content-section strong {
  color: var(--ink);
  font-weight: 800;
}

.toast {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline: 1rem;
  z-index: 10;
  inline-size: min(32rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  color: #130d06;
  background: var(--gold);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

@media (min-width: 58rem) {
  .col-4\@md { grid-column: span 4; }
  .col-5\@md { grid-column: span 5; }
  .col-6\@md { grid-column: span 6; }
  .col-7\@md { grid-column: span 7; }

  .site-footer-nav {
    justify-content: flex-end;
  }

  .hero-row-spacer {
    display: block;
  }
}

@media (max-width: 57.99rem) {
  .hero-intro {
    display: none;
  }

  .hero-row-spacer {
    display: none;
  }

  .hero-badge {
    margin-block-start: 0.5rem;
  }
}

@media (max-width: 34rem) {
  .hero-actions,
  .button {
    inline-size: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .button-primary,
  .button-secondary,
  .project-card,
  .project-links a,
  .menu-toggle,
  .menu-toggle-bar,
  .site-header {
    transition:
      transform 160ms ease,
      border-color 160ms ease,
      background-color 160ms ease,
      color 160ms ease,
      opacity 160ms ease,
      translate 160ms ease,
      rotate 160ms ease;
  }

  .project-card:hover {
    transform: translateY(-2px);
  }
}

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

  .menu-toggle-bar {
    transition: none;
  }
}
