@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --text: #e6e6e6;
  --muted: #9d9d9d;
  --line: rgba(255, 255, 255, 0.16);
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='26'%3E%3Cg stroke='%23fff' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 13.4 Q33 12.2 66 13.2 T132 13'/%3E%3Cpath d='M12 4 L14 22'/%3E%3Cpath d='M43 6 L41.5 21'/%3E%3Cpath d='M77 3 L79 23'/%3E%3Cpath d='M108 5.5 L106.5 20'/%3E%3C/g%3E%3C/svg%3E");
  /* the doll's x-stitched eye */
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg stroke='%23fff' stroke-width='3.4' stroke-linecap='round' fill='none'%3E%3Cpath d='M5 6.5 Q16 15 27 25'/%3E%3Cpath d='M26 5 Q15.5 16.5 6.5 26.5'/%3E%3C/g%3E%3C/svg%3E");
  --page: min(74rem, 100% - 3rem);
  --head-h: 5.25rem;
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
}

/* film grain over everything, the rough texture of the logo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: url("../assets/img/grain.png");
  opacity: 0.07;
  mix-blend-mode: screen;
  z-index: 10;
}

::selection { background: var(--white); color: var(--black); }

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

a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

h1, h2, h3 {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--white); color: var(--black); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

.wrap { width: var(--page); margin-inline: auto; }

/* header: stays on top so contact is always one click away */

.site-head {
  position: sticky; top: 0; z-index: 5;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 2.75rem; }
.brand span { font-weight: 800; font-stretch: 62%; font-size: 1.75rem; line-height: 1; color: var(--white); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 1rem; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text); }
.site-nav a:not(.btn):hover { color: var(--white); text-decoration: underline; }

/* hero */

.hero { padding: 3rem 0 5rem; overflow-x: clip; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero__mark { position: relative; justify-self: center; width: min(26rem, 78vw); }
/* soft light behind the doll, like a single lamp in a dark room */
.hero__mark::before {
  content: "";
  position: absolute; inset: -4% -12%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 60%, transparent);
  pointer-events: none;
}
.hero__logo { position: relative; width: 100%; }
.hero h1 { font-size: clamp(4.5rem, 15vw, 10.5rem); }
.hero__claim { margin: 1.75rem 0 0; max-width: 30rem; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; font-stretch: 75%; line-height: 1.05; color: var(--white); text-wrap: balance; }
.hero__lede { margin: 1rem 0 2.25rem; max-width: 27rem; text-wrap: pretty; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* buttons: solid, ghost and small */

.btn {
  display: inline-block;
  padding: 0.95rem 1.5rem;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--white);
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--small { padding: 0.65rem 1rem; font-size: 0.9375rem; }
.link { font-weight: 600; font-size: 1rem; }
.link:hover { text-decoration-thickness: 2px; }

/* stitched seam between sections, from the doll's stitches */

.seam {
  width: var(--page);
  height: 26px;
  margin-inline: auto;
  background: var(--stitch) left center / 132px 26px repeat-x;
  opacity: 0.35;
}

/* sections */

.section { padding: 5.5rem 0; }
.section h2 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 2.5rem; }

/* games */

.game { display: grid; gap: 2rem; align-items: center; }
.game__art {
  -webkit-mask: url("../assets/img/rough-mask.png") center / 100% 100% no-repeat;
  mask: url("../assets/img/rough-mask.png") center / 100% 100% no-repeat;
}
.game__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game h3 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.game__meta { margin: 0.9rem 0 1.25rem; color: var(--muted); font-size: 1rem; }
.game p { max-width: 32rem; }
.game__text p:not(.game__meta) { margin: 0 0 1.75rem; }

/* studio: what we believe */

.studio h2 { font-size: clamp(3.25rem, 9.5vw, 8rem); margin-bottom: clamp(3rem, 5vw, 4.5rem); text-wrap: balance; }
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.beliefs li { position: relative; padding-left: 3.25rem; }
.beliefs li::before {
  content: "";
  position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem;
  background: var(--cross) center / contain no-repeat;
}
.beliefs h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; }
.beliefs p { margin: 0.85rem 0 0; max-width: 24rem; color: var(--text); }

/* support */

.support__text { max-width: 36rem; }
.support__text p { margin: 0 0 1rem; }
.support__lead { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--white); text-wrap: balance; }
.support__text p:not(.support__lead) { color: var(--muted); }
.support__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* contact */

.contact h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
.contact__mail {
  display: inline-block;
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact p { margin: 1.5rem 0 0; color: var(--muted); max-width: 34rem; }

/* footer */

.site-foot { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; gap: 1.5rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--white); }

/* legal pages */

.legal { padding: 3rem 0 5rem; }
.legal .wrap > * { max-width: 42rem; }
.legal h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 2.5rem; }
.legal h2 { font-stretch: 100%; font-weight: 700; font-size: 1.125rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }

/* larger screens */

@media (min-width: 880px) {
  .hero { padding: 3rem 0 7rem; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .hero__mark { order: 2; width: 100%; max-width: 31rem; justify-self: end; }
  .section { padding: 7.5rem 0; }
  .game { grid-template-columns: 1.45fr 1fr; gap: 3.5rem; }
  .beliefs { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .support .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
  .support h2 { margin-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --head-h: 4.5rem; }
  .site-head { padding-block: calc(0.75rem + env(safe-area-inset-top, 0px)) 0.75rem; }
  .brand img { width: 2.25rem; }
  .site-nav { gap: 1.25rem; font-size: 0.9375rem; }
  .site-nav .nav-opt { display: none; }
  .brand span { display: none; }
}

/* one entrance moment: the doll fades in from the dark */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: surface 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  @keyframes surface { from { opacity: 0; transform: scale(0.97); filter: blur(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
