:root {
  --ink: #151515;
  --paper: #f6f1e7;
  --paper-bright: #fffdf7;
  --peanut: #f5bc55;
  --green: #a9e65d;
  --lime: #c9f255;
  --blue: #b9dff3;
  --red: #ef695d;
  --line: #151515;
  --muted: #5f5c55;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-link {
  flex: 0 0 auto;
  display: inline-block;
}

.brand-link img {
  width: 188px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 4px 0;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav a:not(:hover):not([aria-current="page"]) {
  text-decoration: none;
}

.intro {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 52px 0 42px;
}

.intro h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5.6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

#games {
  position: relative;
  padding: 42px 20px 66px;
  overflow: hidden;
  background: #1b1915;
}

#games > .games-heading,
#games > .game-list {
  position: relative;
  z-index: 1;
}

.games-heading {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 0 21px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  color: var(--paper-bright);
}

.games-heading h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.games-heading p {
  margin: 0;
  color: #c7c0b5;
  font-size: 0.9rem;
}

.game-list {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.game-row {
  overflow: hidden;
  border: 2px solid var(--paper-bright);
  border-radius: 30px;
}

.game-row + .game-row {
  margin-top: 54px;
}

.game-row-inner {
  width: 100%;
  min-height: 390px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
}

.game-copy {
  min-width: 0;
  padding: clamp(34px, 5vw, 66px);
}

.game-art {
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 2px solid var(--ink);
}

.game-shot {
  width: 100%;
  height: auto;
}

.game-shot[hidden] {
  display: none;
}

.game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.game-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 19px;
  object-fit: contain;
  object-position: left center;
}

.game-logo-icanname {
  width: 178px;
}

.game-logo-speedle {
  width: 190px;
}

.game-logo-betwixtle {
  width: 165px;
}

.game-logo-narrowly {
  width: 185px;
}

.game-number {
  margin: 0 0 19px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-copy h3 {
  margin: 0 0 13px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.game-copy p {
  max-width: 550px;
  margin: 0 0 27px;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.5;
}

.game-meta {
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.game-meta li {
  padding: 5px 9px;
  border: 1px solid currentColor;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button-link {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 17px;
  border: 2px solid currentColor;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  text-decoration: none;
}

.button-link::after {
  content: "↗";
  font-size: 1.1rem;
  line-height: 1;
}

.button-link:hover {
  background: var(--ink);
  color: var(--paper-bright);
}

.game-icanname {
  background: #1b1b1a;
  color: #f8f8f3;
}

.game-icanname .game-art {
  border-color: #f8f8f3;
}

.game-icanname .button-link:hover {
  background: var(--green);
  color: var(--ink);
}

.game-speedle {
  background: var(--paper-bright);
}

.game-speedle .game-art {
  background: #ffffff;
}

.game-betwixtle {
  background: var(--blue);
}

.game-betwixtle .game-art {
  background: #f8f6ef;
}

.game-narrowly {
  background: #f3b49e;
}

.game-narrowly .game-art {
  background: #f8f4ec;
}

.studio-note {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
}

.studio-note img {
  width: 142px;
  transform: rotate(-3deg);
}

.studio-note h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.studio-note p {
  max-width: 670px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 1.07rem;
}

.text-link {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: #a43a31;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: #f8f5ed;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 36px 0 30px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.footer-brand img {
  width: 190px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.footer-right {
  text-align: right;
}

.footer-nav {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-nav a {
  text-underline-offset: 4px;
}

.copyright {
  margin: 0;
  color: #969187;
  font-size: 0.78rem;
}

.page-main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 60px 0 86px;
}

.page-intro {
  max-width: 850px;
  margin-bottom: 54px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.page-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.story-section {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-bright);
}

.story-copy h2 {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(1.85rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.story-copy {
  padding: clamp(30px, 4vw, 50px);
}

.story-copy p {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 1.06rem;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.founder-compact {
  margin-top: 68px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--blue);
}

.founder-photo-small {
  min-height: 235px;
  border-right: 2px solid var(--ink);
}

.founder-photo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.founder-copy-small {
  max-width: 760px;
  padding: 28px 36px 30px;
}

.founder-copy-small h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.founder-copy-small p {
  margin: 0 0 9px;
}

.founder-copy-small p:last-child {
  margin-bottom: 0;
}

.contact-board {
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.contact-primary,
.contact-aside {
  padding: clamp(30px, 5vw, 58px);
}

.contact-primary {
  background: var(--peanut);
}

.contact-primary h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contact-primary p {
  max-width: 600px;
  margin: 0 0 25px;
}

.email-link {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.contact-aside {
  border-left: 2px solid var(--ink);
  background: var(--paper-bright);
}

.contact-aside h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-aside ul {
  margin: 0;
  padding-left: 20px;
}

.contact-aside li {
  margin-bottom: 10px;
}

.legal {
  max-width: 800px;
}

.legal .page-intro {
  margin-bottom: 38px;
}

.legal-meta {
  margin: -4px 0 40px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.86rem;
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: #393733;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  font-weight: 700;
  text-underline-offset: 4px;
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found img {
  width: 135px;
  margin: 0 auto 18px;
}

.not-found h1 {
  margin: 0 0 10px;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.not-found p {
  margin: 0 0 22px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .nav-wrap {
    min-height: 70px;
  }

  .brand-link img {
    width: 160px;
  }

  .intro {
    padding: 42px 0 34px;
  }

  .game-row-inner {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 0;
    aspect-ratio: 1.43;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .game-narrowly .game-art {
    aspect-ratio: 1524 / 1322;
  }

  .game-copy {
    min-height: 320px;
  }

  .studio-note {
    grid-template-columns: 120px 1fr;
    gap: 30px;
  }

  .contact-board {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    width: min(calc(100% - 28px), var(--max));
    min-height: 64px;
    gap: 14px;
  }

  .brand-link img {
    width: 132px;
    height: 48px;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.8rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .intro,
  .studio-note,
  .footer-inner,
  .page-main {
    width: min(calc(100% - 28px), var(--max));
  }

  .intro h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .games-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  #games {
    padding: 32px 14px 44px;
  }

  .game-row {
    border-radius: 22px;
  }

  .game-row + .game-row {
    margin-top: 48px;
  }

  .game-copy {
    padding: 32px 24px;
  }

  .game-art {
    min-height: 0;
  }

  .game-copy {
    min-height: 300px;
  }

  .studio-note {
    padding: 48px 0 54px;
    grid-template-columns: 1fr;
  }

  .studio-note img {
    width: 92px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-right {
    text-align: left;
  }

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

  .page-main {
    padding: 44px 0 64px;
  }

  .page-intro {
    margin-bottom: 40px;
  }

  .founder-compact {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .founder-photo-small {
    min-height: 145px;
    height: 145px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .founder-photo-small img {
    object-position: 52% 48%;
  }

  .founder-copy-small {
    padding: 26px 24px 28px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #35332f;
  }
}
