@font-face {
  font-family: "Azeret Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/azeret-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Azeret Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/azeret-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Azeret Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/azeret-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --paper: #f3eedf;
  --paper-deep: #e2d8c6;
  --paper-bright: #faf7ef;
  --ink: #171411;
  --ink-soft: #40352d;
  --dust: #a69b88;
  --pink: #ff7eb6;
  --yellow: #f0e64d;
  --blue: #8ec7ff;
  --mint: #8fd4b3;
  --border: 2px solid var(--ink);
  --shadow-offset: 10px;
  --max-width: 1180px;
  --radius-soft: 22px;
  --radius-panel: 28px;
  --grain: rgba(23, 20, 17, 0.12);
  --grid: rgba(23, 20, 17, 0.05);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #f6f2e8 0%, var(--paper) 38%, #efe4cf 100%);
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.85rem 1rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

.page-texture,
.page-splotch {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page-texture {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 20% 25%, var(--grain) 0.8px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(23, 20, 17, 0.08) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px, 24px 24px, 28px 28px;
  opacity: 0.42;
}

.page-splotch {
  opacity: 0.82;
  mix-blend-mode: multiply;
}

.page-splotch-a {
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 126, 182, 0.24) 0 8%, transparent 8.4%),
    radial-gradient(circle at 86% 22%, rgba(240, 230, 77, 0.28) 0 7%, transparent 7.4%);
}

.page-splotch-b {
  background:
    radial-gradient(circle at 13% 68%, rgba(142, 199, 255, 0.18) 0 9%, transparent 9.5%),
    radial-gradient(circle at 22% 77%, rgba(143, 212, 179, 0.18) 0 6.5%, transparent 6.9%);
}

.site-header,
.section-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.section-shell,
.site-header,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: var(--border);
  border-radius: 999px;
  background: rgba(248, 245, 236, 0.82);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 0 rgba(23, 20, 17, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 48%),
    linear-gradient(135deg, var(--yellow), var(--blue));
  font-family: "Azeret Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 6px 6px 0 var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1;
}

.brand-copy span,
.kicker,
.fact-label,
.section-tag,
.site-footer p {
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: 999px;
  padding: 0.92rem 1.15rem;
  font-family: "Azeret Mono", monospace;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition);
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-primary {
  background:
    linear-gradient(135deg, var(--yellow), #fff6b7 72%),
    repeating-linear-gradient(
      45deg,
      rgba(23, 20, 17, 0.08) 0 2px,
      transparent 2px 5px
    );
  box-shadow: 0 6px 0 rgba(23, 20, 17, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.25rem;
  padding: 4.5rem 0 3rem;
  align-items: center;
}

.page-intro {
  padding: 4.5rem 0 1.5rem;
}

.page-intro-copy {
  max-width: 44rem;
}

.kicker {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: var(--border);
  border-radius: 999px;
  background-color: rgba(248, 245, 236, 0.9);
}

.hero h1,
.credits-card h2,
.changelog-card h2 {
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.lede,
.credits-card p,
.changelog-card p {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero .lede {
  max-width: 31rem;
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.fact-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0;
  margin: 1.8rem 0 0;
}

.fact-row li {
  min-width: 10.5rem;
  padding: 1rem 1.1rem;
  border: var(--border);
  border-radius: 22px;
  background: rgba(248, 245, 236, 0.88);
}

.fact-row strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.02rem;
}

.hero-poster {
  position: relative;
}

.poster-stack {
  position: relative;
  padding: 0 0 4.25rem;
}

.stage-card,
.credits-card,
.changelog-card {
  position: relative;
  border: var(--border);
  background: rgba(248, 245, 236, 0.97);
}

.stage-card::after,
.credits-card::after,
.changelog-card::after {
  content: "";
  position: absolute;
  inset: auto calc(var(--shadow-offset) * -1) calc(var(--shadow-offset) * -1) auto;
  width: 100%;
  height: 100%;
  border: var(--border);
  border-radius: inherit;
  z-index: -1;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(23, 20, 17, 0.18) 0 2px,
      rgba(23, 20, 17, 0) 2px 5px
    ),
    rgba(23, 20, 17, 0.04);
}

.stage-card {
  width: min(100%, 41rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-panel);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: var(--border);
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-head p {
  margin: 0;
}

.window-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.window-dots i {
  width: 0.7rem;
  height: 0.7rem;
  border: var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.card-frame {
  overflow: hidden;
  border-radius: 0 0 calc(var(--radius-panel) - 2px) calc(var(--radius-panel) - 2px);
  background: var(--paper-bright);
  aspect-ratio: 670 / 650;
  line-height: 0;
}

.poster-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

.swatch-ribbon {
  position: absolute;
  left: 1.4rem;
  bottom: -0.4rem;
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.8rem 0.95rem;
  border: var(--border);
  border-radius: 999px;
  background: rgba(248, 245, 236, 0.92);
}

.swatch {
  width: 1.3rem;
  height: 1.3rem;
  border: var(--border);
  border-radius: 999px;
}

.swatch-pink {
  background: var(--pink);
}

.swatch-yellow {
  background: var(--yellow);
}

.swatch-blue {
  background: var(--blue);
}

.swatch-mint {
  background: var(--mint);
}

.changelog-shell {
  padding: 0.5rem 0 2.5rem;
}

.changelog-card,
.credits-card {
  border-radius: var(--radius-soft);
  padding: 1.3rem 1.25rem;
}

.changelog-card h2,
.credits-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.changelog-card {
  background:
    linear-gradient(135deg, rgba(248, 245, 236, 0.98), rgba(255, 245, 179, 0.3)),
    repeating-linear-gradient(
      -45deg,
      rgba(23, 20, 17, 0.06) 0 2px,
      transparent 2px 6px
    );
}

.changelog-note {
  max-width: 34rem;
  margin: 0.9rem 0 0;
}

.log-list {
  display: grid;
  gap: 1.5rem;
  padding: 0.25rem 0 2rem;
}

.log-entry h2 {
  max-width: 28rem;
}

.credits-shell {
  padding: 0 0 2rem;
}

.credits-card {
  background:
    linear-gradient(135deg, rgba(248, 245, 236, 0.98), rgba(142, 199, 255, 0.12)),
    repeating-linear-gradient(
      -45deg,
      rgba(23, 20, 17, 0.06) 0 2px,
      transparent 2px 6px
    );
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.text-link:hover {
  color: var(--ink);
}

.changelog-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.changelog-list li + li {
  margin-top: 0.5rem;
}

.changelog-list span {
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.site-footer {
  padding: 1rem 0 2rem;
}

.site-footer p {
  margin: 0;
  padding-top: 0.6rem;
  border-top: var(--border);
  text-align: center;
  color: var(--ink-soft);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .swatch-ribbon {
    position: static;
    margin-top: 1rem;
  }

  .fact-row li {
    min-width: min(100%, 12rem);
  }
}

@media (max-width: 560px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .stage-card,
  .changelog-card,
  .credits-card {
    border-radius: 20px;
  }
}

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

  .button {
    transition: none;
  }
}
