/* Ziggy Games: risograph print-shop look. Cream stock, overprinted inks, one zigzag. */
:root {
  --paper: #f2ead8;
  --paper-2: #e9dfc8;
  --ink: #1b1f1c;
  --ink-2: #4a4f47;
  --green: #1f6b4a;
  --red: #e5452c;
  --blue: #2e63c9;
  --yellow: #f1bd2c;
  --rule: rgba(27, 31, 28, 0.18);
  --display: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--mono);
  overflow-x: hidden;
}

/* Paper grain over everything, never blocking input. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

/* ---- masthead ---------------------------------------------------------- */
.mast {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.bolt {
  width: 38px;
  height: 38px;
  overflow: visible;
}
.bolt-b {
  fill: var(--blue);
  transform: translate(3px, 3px);
  mix-blend-mode: multiply;
}
.bolt-a {
  fill: var(--red);
  mix-blend-mode: multiply;
}
.word {
  font: 800 26px/1 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72;
  letter-spacing: -0.02em;
}
.word .dot {
  color: var(--red);
}
.mast nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mast nav a {
  text-decoration: none;
}
.mast nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nav-play {
  border: 2px solid var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-play:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none !important;
}

/* ---- intro ------------------------------------------------------------- */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 88px) var(--gutter) 24px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
h1 {
  margin: 0;
  font: 800 clamp(48px, 10.5vw, 150px) / 0.92 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  letter-spacing: -0.035em;
}
h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--red);
  text-shadow: 3px 3px 0 rgba(46, 99, 201, 0.55);
}
.lede {
  max-width: 52ch;
  margin: 28px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-2);
}
.zig {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: clamp(32px, 6vw, 64px);
}
.zig path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

/* ---- featured game ------------------------------------------------------ */
.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  scroll-margin-top: 16px;
}
.feature-art {
  position: relative;
  isolation: isolate;
}
.plate {
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: multiply;
}
.plate-red {
  background: var(--red);
  transform: translate(-14px, 14px) rotate(-1.2deg);
}
.plate-blue {
  background: var(--blue);
  opacity: 0.85;
  transform: translate(12px, -10px) rotate(0.8deg);
}
.feature-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 3px solid var(--ink);
  filter: saturate(1.05) contrast(1.02);
}
.stamp {
  position: absolute;
  right: -14px;
  top: -22px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font: 700 13px/1.15 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(12deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.feature-copy h2 {
  margin: 0 0 16px;
  font: 800 clamp(40px, 5.4vw, 72px) / 0.95 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 110;
  letter-spacing: -0.03em;
  color: var(--green);
}
.pitch {
  margin: 0 0 22px;
  font-size: 16px;
}
.steps {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
  line-height: 1.5;
}
.steps .n {
  font: 800 20px/1.1 var(--display);
  color: var(--red);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--green);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font: 600 15px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.play svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  transition: transform 140ms ease;
}
.play:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.play:hover svg {
  transform: translateX(3px);
}
.play:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}
.note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ---- screenshot strip -------------------------------------------------- */
.strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) clamp(40px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
}
.strip figure {
  margin: 0;
}
.strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px solid var(--ink);
}
.strip figure:nth-child(2) {
  transform: translateY(18px);
}
.strip figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
}
.strip figcaption::before {
  content: '↳ ';
  color: var(--red);
}

/* ---- Ziggy Dash card ----------------------------------------------------- */
.dash {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.dash-art {
  display: block;
  position: relative;
  isolation: isolate;
}
.dash-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: translate(12px, 12px) rotate(1.2deg);
  mix-blend-mode: multiply;
}
.dash-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.dash-copy h2 {
  margin: 0 0 14px;
  font: 800 clamp(34px, 4.4vw, 58px) / 0.95 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 110;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.play-alt {
  background: var(--blue);
}

/* ---- what's next ------------------------------------------------------- */
.next {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(48px, 7vw, 96px);
}
.next h2 {
  margin: 0 0 24px;
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 2px solid var(--ink);
  font: 700 clamp(28px, 3.6vw, 44px) / 1 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  letter-spacing: -0.02em;
}
.slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
}
.slot {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(31, 107, 74, 0.08) 10px 12px),
    var(--paper-2);
  border: 2px dashed var(--ink-2);
}
.slot-num {
  font: 800 48px/1 var(--display);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink-2);
}
.slot p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---- footer ------------------------------------------------------------ */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-size: 12.5px;
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--yellow);
}

/* ---- load-in ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .intro > *,
  .feature-art,
  .feature-copy,
  .strip figure {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .intro h1 {
    animation-delay: 60ms;
  }
  .intro .lede {
    animation-delay: 140ms;
  }
  .intro .zig {
    animation: draw 1100ms 200ms ease-out both;
    stroke-dasharray: 1400;
  }
  .feature-art {
    animation-delay: 260ms;
  }
  .feature-copy {
    animation-delay: 360ms;
  }
  .strip figure:nth-child(1) {
    animation-delay: 420ms;
  }
  .strip figure:nth-child(2) {
    animation-delay: 500ms;
  }
  .strip figure:nth-child(3) {
    animation-delay: 580ms;
  }
  .stamp {
    animation: spinIn 800ms 700ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}
@keyframes draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes spinIn {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(0.6);
  }
}

/* ---- small screens ----------------------------------------------------- */
@media (max-width: 860px) {
  .feature,
  .dash {
    grid-template-columns: 1fr;
  }
  .stamp {
    right: 6px;
    width: 84px;
    height: 84px;
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .mast nav a:not(.nav-play),
  .nav-long {
    display: none;
  }
  .word {
    font-size: 22px;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .strip figure:nth-child(2) {
    transform: none;
  }
  .slots {
    grid-template-columns: 1fr;
  }
  .plate-red {
    transform: translate(-8px, 8px) rotate(-1deg);
  }
  .plate-blue {
    transform: translate(8px, -6px) rotate(0.6deg);
  }
}
