/*
 * Tuckpop site: one small stylesheet, no build step, no remote fonts or scripts.
 * Palette comes from the brand wordmark (deep purple, pink "o") and symbol (cyan, pink, yellow, lilac).
 * Type is the same rounded system stack the game itself uses.
 */
:root {
  --ivory: #fbf4e4;
  --ivory-deep: #f4e9cf;
  --ink: #2b014d;
  --ink-soft: #4a2a6c;
  --pink: #fb1667;
  --cyan: #00b6f0;
  --yellow: #ffd60a;
  --lilac: #c9a2ef;
  --line: rgba(43, 1, 77, 0.16);
  --font:
    ui-rounded, 'SF Pro Rounded', 'Nunito', 'Varela Round', system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(60rem 28rem at 12% -8%, rgba(0, 182, 240, 0.1), transparent 70%),
    radial-gradient(48rem 26rem at 96% 4%, rgba(251, 22, 103, 0.08), transparent 70%),
    radial-gradient(52rem 26rem at 50% 112%, rgba(255, 214, 10, 0.16), transparent 70%), var(--ivory);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  text-decoration: none;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* A quiet three-colour edge, the symbol's cyan, pink and yellow. */
.edge {
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) 0 33.33%, var(--pink) 33.33% 66.66%, var(--yellow) 66.66%);
}

/* Header: small brand left, two links right. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
}
.brand {
  display: inline-flex;
  border-radius: 0.5rem;
}
.brand img {
  width: auto;
  height: 1.9rem;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--ivory-deep);
}
.site-nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--ivory);
}

/* Three links and the wordmark still fit on the narrowest phones (320px). */
.brand,
.brand img {
  flex: none;
}
@media (max-width: 22.5rem) {
  .site-header {
    gap: 0.5rem;
  }
  .site-nav {
    gap: 0.1rem;
  }
  .site-nav a {
    padding: 0.5rem 0.5rem;
    font-size: 0.92rem;
  }
}

main {
  flex: 1;
  width: 100%;
}

/* Home: generous whitespace around one central brand. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 5rem) var(--gutter) clamp(3rem, 10vh, 6rem);
}
.hero-symbol {
  width: clamp(9.5rem, 38vw, 14.5rem);
  margin-bottom: clamp(-1.5rem, -3vw, -0.5rem);
  animation: bob 7s ease-in-out infinite;
}
.hero h1 {
  margin: 0;
  line-height: 0;
}
.hero h1 img {
  width: min(78vw, 25rem);
  height: auto;
}
.tagline {
  margin: clamp(0.5rem, 2vw, 0.9rem) 0 0;
  font-size: clamp(1.25rem, 4.6vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
.intro {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--pink);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--pink);
}
.cta:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--pink);
}

/* Soft, small float of the symbol. Off for anyone who asks for less motion. */
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-0.55rem) rotate(1deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-symbol {
    animation: none;
  }
  .cta {
    transition: none;
  }
}

/* Prose pages: FAQ, privacy, 404. */
.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}
.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}
.prose .lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
}
.prose h2 {
  margin: 2.25rem 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.prose p,
.prose ul,
.prose dl {
  margin: 0.6rem 0;
  text-wrap: pretty;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose code {
  padding: 0.05em 0.35em;
  border-radius: 0.35em;
  background: var(--ivory-deep);
  font-size: 0.92em;
}

/* Draft banner and pending fields on /privacy. */
.draft {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: rgba(255, 214, 10, 0.32);
}
.draft strong {
  display: block;
  font-size: 1.1rem;
}
.draft p {
  margin: 0.3rem 0 0;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}
.facts dt {
  font-weight: 800;
}
.facts dd {
  margin: 0;
}
.pending {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  background: var(--ivory-deep);
  border: 1px dashed var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}
@media (max-width: 30rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .facts dd {
    margin-bottom: 0.6rem;
  }
}

/* Footer. */
.site-footer {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.site-footer img {
  width: 2rem;
  height: 2rem;
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
}
.site-footer a {
  font-weight: 700;
}
