@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gloock";
  src: url("../fonts/Gloock-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161210;
  --ink-2: #1f1a16;
  --ink-3: #2a241e;
  --paper: #f3ead6;
  --paper-dim: #cfc3a8;
  --oxblood: #8e1c3a;
  --oxblood-hot: #b4284a;
  --brass: #c4a574;
  --brass-hot: #e4c992;
  --rule: rgba(243, 234, 214, 0.12);
  --shadow-border: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-border-hover: 0 0 0 1px rgba(255, 255, 255, 0.14);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --font-display: "Big Shoulders", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-display-serif: "Gloock", serif;
  --font-body: "IBM Plex Serif", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-card: 24px;
  --radius-inner: 16px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(142, 28, 58, 0.28), transparent 58%),
    radial-gradient(800px 420px at -12% 18%, rgba(196, 165, 116, 0.1), transparent 52%),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

img.framed {
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brass-hot);
}

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

h1, h2, h3 {
  text-wrap: balance;
}

p, li, figcaption, blockquote {
  text-wrap: pretty;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(22, 18, 16, 0.72);
  box-shadow: 0 1px 0 var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 72px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  min-height: 44px;
}

.mark:hover {
  color: var(--paper);
}

.mark-plate {
  width: 36px;
  height: 36px;
  flex: none;
}

.mark-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 18px;
  line-height: 1;
}

.mark-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--paper-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.hero {
  padding: 64px 0 32px;
}

.lede-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display-serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.hero p {
  margin: 24px 0 0;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.7;
  color: var(--paper-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition-property: scale, box-shadow, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.btn:active {
  scale: 0.96;
}

.btn-primary {
  background: var(--oxblood);
  color: var(--paper);
  box-shadow: var(--shadow-border);
}

.btn-primary:hover {
  background: var(--oxblood-hot);
  color: var(--paper);
  box-shadow: var(--shadow-border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: var(--shadow-border);
}

.btn-ghost:hover {
  color: var(--paper);
  box-shadow: var(--shadow-border-hover);
}

.stamp {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  box-shadow: var(--shadow-border);
}

.stamp::before,
.stamp::after,
.stamp .corners::before,
.stamp .corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--brass);
}

.stamp::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.stamp::after { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.stamp .corners::before { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.stamp .corners::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.stamp-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.stamp h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.stamp p {
  margin: 12px 0 0;
  color: var(--paper-dim);
  font-size: 15px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.catalog {
  display: grid;
  gap: 24px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 8px;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  box-shadow: var(--shadow-border);
  text-decoration: none;
  color: inherit;
  transition-property: box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.app-card:hover {
  box-shadow: var(--shadow-border-hover);
  transform: translateY(-2px);
  color: inherit;
}

.app-card .icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-inner);
  object-fit: cover;
  background: #1a1515;
}

.icon--contain {
  object-fit: contain;
  padding: 12px;
}

.app-hero-icon {
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-border);
}

.status-pill--live {
  color: var(--brass-hot);
}

.status-pill--beta {
  color: #8fd4b8;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.game-card {
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--ink-2);
  box-shadow: var(--shadow-border);
}

.game-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
}

.game-card p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

.method--three {
  grid-template-columns: repeat(3, 1fr);
}

.section.tight {
  padding-top: 24px;
}

.intro {
  max-width: 40em;
  font-size: 18px;
  color: var(--paper-dim);
}

.app-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 16px 16px 8px;
  min-width: 0;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.app-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.app-body .sub {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.app-body p {
  margin: 12px 0 0;
  color: var(--paper-dim);
  max-width: 42em;
}

.slot-card {
  display: grid;
  place-items: center;
  min-height: 152px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(243, 234, 214, 0.03) 10px,
    rgba(243, 234, 214, 0.03) 11px
  );
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--paper-dim);
  text-align: center;
}

.slot-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--ink-2);
  box-shadow: var(--shadow-border);
}

.step .n {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--oxblood-hot);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.step p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-grid h2 {
  margin: 0 0 12px;
  font-family: var(--font-display-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
}

.mail-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  box-shadow: var(--shadow-border);
}

.mail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-inner);
}

.mail-list li + li {
  box-shadow: 0 -1px 0 var(--rule);
}

.mail-list span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.mail-list a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--paper-dim);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--paper);
}

.legal {
  padding: 48px 0 80px;
}

.paper {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.paper h1 {
  margin: 0 0 8px;
  font-family: var(--font-display-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
}

.paper .kicker {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.paper h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper p,
.paper li {
  color: #3a322b;
}

.paper a {
  color: var(--oxblood);
}

.paper a:hover {
  color: var(--oxblood-hot);
}

.app-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  padding: 56px 0 24px;
}

.app-hero img {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  background: #1a1515;
}

.app-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.app-hero .sub {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}


.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: enter 500ms var(--ease) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 200ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stagger > *,
  .app-card,
  .btn {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero-grid,
  .method,
  .method--three,
  .contact-grid,
  .app-hero,
  .app-card {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 40px; }
  .app-card .icon { width: 88px; height: 88px; }
  .app-hero img { width: 96px; height: 96px; border-radius: 20px; }
  .game-grid { grid-template-columns: 1fr; }
  .paper { padding: 28px 24px 36px; }
  .nav a { padding: 0 8px; }
  .mark-sub { display: none; }
}
