@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

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

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

:root {
  color-scheme: dark;
  --bg: #100c0a;
  --ink: #f4efe6;
  --work: #e23a2b;
  --prepare: #e4b15a;
  --muted: rgba(244, 239, 230, 0.64);
  --line: rgba(228, 177, 90, 0.32);
  --panel: rgba(244, 239, 230, 0.07);
  --display: "Barlow Condensed", Barlow, "Avenir Next", sans-serif;
  --body: Barlow, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(226, 58, 43, 0.16), transparent 46%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: #1a100c;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 0.7rem; }

.glow {
  position: fixed;
  width: 40rem;
  height: 40rem;
  left: 50%;
  top: 0;
  translate: -50% -32%;
  background: radial-gradient(circle, var(--work) 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

.wrap {
  width: min(36rem, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  padding: 0.85rem 0 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  text-decoration: none;
  min-height: 2.75rem;
}

h1.brand-name { margin: 0; }

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: block;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.35rem;
}

.brand-kicker {
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1;
}

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

.lang {
  display: flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang a {
  min-height: 2.4rem;
  min-width: 2.6rem;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  color: rgba(244, 239, 230, 0.48);
}

.lang a[aria-current="page"] {
  background: var(--prepare);
  color: #1a100c;
}

body:has(.home) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.home) .wrap { width: min(72rem, calc(100% - 3rem)); }

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #e4b15a;
}

body:has(.home) { --glow: #e4b15a; }
body[data-shot="timer"] { --glow: #e23a2b; }
body[data-shot="stop"] { --glow: #7ac2f2; }

body:has(.home) .glow {
  top: 46%;
  left: 34%;
  width: 34rem;
  height: 34rem;
  translate: -50% -50%;
  opacity: 0.38;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  transition: --glow 0.9s ease;
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem 0 1rem;
}

.stage {
  width: min(52rem, calc(100% - 3rem));
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.copy { flex: 0 1 24rem; max-width: 24rem; }

.lede {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.deck {
  position: relative;
  margin: 0;
  height: min(58vh, 28rem);
  aspect-ratio: 1170 / 2532;
  flex: none;
}

.deck img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(244, 239, 230, 0.16),
    0 1.1rem 2.2rem rgba(0, 0, 0, 0.45);
  transform-origin: 70% 80%;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.9s ease;
}

.deck img[data-slot="0"] {
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  filter: none;
}

.deck img[data-slot="1"] {
  z-index: 2;
  transform: translate3d(-18%, 5%, 0) scale(0.92) rotate(-6deg);
  filter: brightness(0.78);
}

.deck img[data-slot="2"] {
  z-index: 1;
  transform: translate3d(-34%, 10%, 0) scale(0.84) rotate(-11deg);
  filter: brightness(0.58);
}

@media (max-width: 860px) {
  .stage {
    flex-direction: column;
    text-align: center;
  }
  .copy { max-width: 24rem; }
  .deck { height: min(52vh, 24rem); }
  .deck img[data-slot="1"] { transform: translate3d(-14%, 4%, 0) scale(0.92) rotate(-5deg); }
  .deck img[data-slot="2"] { transform: translate3d(-26%, 8%, 0) scale(0.86) rotate(-9deg); }
  body:has(.home) .glow { left: 50%; top: 62%; }
}

.home h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 860px) {
  .home h1,
  .eyebrow { margin-inline: auto; }
  .points { justify-items: center; }
  .points li { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .deck img,
  body:has(.home) .glow { transition: none; }
}

h2, h1.brand-name, .doc h1 {
  font-family: var(--display);
  font-weight: 700;
}

.doc h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h2 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.55rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kicker {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prepare);
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

@media (max-width: 860px) {
  .actions { justify-content: center; }
}

.points {
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 1.08rem;
}

.points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.points li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #e4b15a;
  flex: none;
}

.points li:nth-child(2)::before { background: #e23a2b; }
.points li:nth-child(3)::before { background: #7ac2f2; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.8rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  line-height: 1.25;
  text-align: center;
  background: rgba(228, 177, 90, 0.16);
  box-shadow: inset 0 0 0 1px rgba(228, 177, 90, 0.5);
  color: #e4b15a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  min-width: 10.6rem;
  padding: 0.4rem 0.95rem 0.45rem 0.7rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: #1a100c;
  text-align: left;
}

a.badge {
  text-decoration: none;
}

.store-mark {
  width: 1.15rem;
  height: 1.4rem;
  flex: none;
}

.store-mark.play {
  width: 1.25rem;
  height: 1.25rem;
}

.badge span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.badge strong {
  display: block;
  margin-top: 0.05rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

body:has(.home) .foot { text-align: center; padding-top: 0.2rem; }

.legal {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(244, 239, 230, 0.38);
  white-space: nowrap;
}

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

.legal a:hover { color: var(--muted); }

.legal > * + *::before {
  content: "·";
  margin: 0 0.55rem 0 0.7rem;
}

@media (max-width: 640px) {
  .legal {
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 0.15rem;
    padding-inline: 0.75rem;
  }
}

.foot {
  padding: 1.8rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot p { margin: 0.35rem 0; }

.foot a { color: var(--ink); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.doc { padding-bottom: 2.4rem; }

.doc a { color: var(--prepare); }

.updated { color: var(--muted); margin-top: 0; }

@media (max-width: 420px) {
  .brand-kicker { display: none; }
}
