@font-face {
  font-family: Barlow;
  src: url("assets/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eff0ec;
  --ink: #141514;
  --accent: #f04429;
  --rule: #969a94;
  --edge: clamp(1.15rem, 4.1vw, 5.5rem);
  --gutter: clamp(1.15rem, 2.5vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.42 Barlow, Arial, sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.skip {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  padding: .65rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.sheet { max-width: 110rem; margin: auto; padding-inline: var(--edge); }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: clamp(5.9rem, 7.6vw, 8.1rem);
  border-bottom: 2px solid var(--ink);
}
.brand, .brand img { display: block; }
.brand img { width: clamp(6rem, 7.95vw, 9rem); height: auto; filter: var(--wordmark-filter, brightness(0)); }
nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.2rem, 3vw, 3.6rem); }
nav a, .project-link { font-weight: 700; text-decoration-thickness: .09em; text-underline-offset: .25em; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
nav a:hover, .project-link:hover { text-decoration: underline; }
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  gap: var(--gutter);
  padding-block: var(--gutter);
}
.statement {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(1.9rem, 3.9vw, 5.2rem);
  padding-block: .4em .25em;
}
h1 {
  font-size: clamp(3.2rem, 8.25vw, 9.2rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.068em;
}
h1 span { display: block; }
.statement p {
  padding-left: .9rem;
  max-width: 26ch;
  border-left: .25rem solid var(--accent);
  font-size: clamp(1.05rem, 1.55vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.016em;
}
.initial { position: relative; overflow: hidden; background: var(--accent); }
.initial svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.project {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2.2fr) auto;
  align-items: baseline;
  gap: var(--gutter);
  padding-block: clamp(1.3rem, 2.5vw, 3.3rem);
  border-top: .35rem solid var(--section-rule, var(--ink));
  border-bottom: 1px solid var(--rule);
}
.project-label, .project-link { font-size: clamp(1rem, 1.22vw, 1.35rem); }
.project-label { font-weight: 700; }
.project-title h2 { font-size: clamp(2.1rem, 4.1vw, 5.2rem); letter-spacing: -.055em; line-height: 1; }
.project-title p { margin-top: .35rem; font-size: clamp(1rem, 1.4vw, 1.45rem); }
.project-link { justify-self: end; text-decoration: underline; }
.project-link:hover { text-decoration-thickness: .17em; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 2rem; padding-block: 1rem 1.5rem; font-size: .875rem; }
footer a { font-weight: 700; text-underline-offset: .22em; }
.home-sheet {
  --accent: #489dc4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.home-sheet .initial { color: #141514; }
.home-sheet .project { border-bottom: 0; }
.game-list .project + .project { border-top: 1px solid var(--rule); }
@media (min-width: 45.001rem) {
  .game-list {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 2.2fr) auto;
    column-gap: var(--gutter);
  }
  .game-list .project {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
}
.studio-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem var(--gutter);
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-block: .75rem;
  font-size: .9375rem;
}
.studio-footer a {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 2.75rem;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.theme-switch {
  padding: 0;
  min-height: 2.75rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.theme-switch:not([hidden]) { display: inline-grid; place-items: center; }
.theme-switch-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1.5rem);
  place-items: center;
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 2rem;
  line-height: 1;
}
.theme-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.theme-switch[aria-checked="true"] .theme-switch-track::before { transform: translateX(100%); }
.theme-switch svg {
  position: relative;
  width: 1rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-switch[aria-checked="false"] .sun,
.theme-switch[aria-checked="true"] .moon { color: #141514; }
.theme-switch:focus-visible { outline: none; }
.theme-switch:focus-visible .theme-switch-track { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .theme-switch-track::before { transition: transform 140ms ease-out; }
}
@media (forced-colors: active) {
  .theme-switch-track::before { background: Highlight; forced-color-adjust: none; }
  .theme-switch[aria-checked="false"] .sun,
  .theme-switch[aria-checked="true"] .moon { color: HighlightText; forced-color-adjust: none; }
}
.studio-footer a:hover { text-decoration-thickness: .15em; }
@media (max-width: 45rem) {
  .lead { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 1rem; }
  h1 { font-size: clamp(2.5rem, 8vw, 3.6rem); }
  .project { grid-template-columns: 1fr auto; row-gap: .65rem; }
  .project-label { grid-column: 1 / -1; }
}
@media (max-width: 32rem) {
  .studio-footer { grid-template-columns: 1fr; gap: 0; padding-block: 1rem; }
  .footer-actions { justify-content: space-between; }
  .masthead { min-height: 4.7rem; gap: .7rem; }
  .brand img { width: 5.25rem; }
  nav { gap: .8rem; font-size: .9375rem; }
  .lead { grid-template-columns: minmax(0, 1fr) 21%; gap: .6rem; }
  .statement { gap: 1.55rem; }
  h1 { font-size: clamp(2.6rem, 10.5vw, 3.45rem); }
  .initial svg { width: 205%; left: -63%; }
  .home-sheet .lead {
    --flower-width: 52%;
    grid-template-columns: minmax(0, 1fr) var(--flower-width);
    gap: 1rem 0;
  }
  .home-sheet .statement { display: contents; }
  .home-sheet .statement h1 {
    grid-area: 1 / 1;
    align-self: center;
    z-index: 1;
    padding: .5em 0 .5em clamp(.75rem, 3.5vw, 1.125rem);
    color: #fff;
    font-size: clamp(1.8rem, 8.9vw, 2.8rem);
    line-height: .93;
    text-wrap: balance;
  }
  .home-sheet .statement p {
    grid-area: 2 / 1 / auto / -1;
    max-width: none;
  }
  .home-sheet .initial {
    grid-area: 1 / 1 / auto / -1;
    width: 100%;
    aspect-ratio: 1.9;
  }
  .home-sheet .initial .studio-flower {
    width: var(--flower-width);
    left: auto;
    right: 0;
  }
  .project { column-gap: .75rem; }
  .project-title h2 { font-size: clamp(1.85rem, 7.35vw, 2.2rem); }
}
@media (max-width: 26rem) {
  .project { grid-template-columns: 1fr; }
  .project-link { justify-self: start; }
}
@media (max-width: 22rem) {
  h1 { font-size: 2.5rem; }
}
