/* Quick Draw site — tokens mirror src/theme/colors.ts and colorsDark.ts. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Oi";
  src: url("fonts/Oi-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f4f2f1;
  --surface: #ffffff;
  --fg: #191015;
  --dim: #564e4a;
  --line: #564e4a;
  --soft-line: #d7cec9;
  --tint: #5c6bff;
  --tint-soft: #e3e2ff;
  --on-tint: #ffffff;
  --red: #f24e1e;
  --radius: 24px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a1a;
    --surface: #2b2b2b;
    --fg: #f4f2f1;
    --dim: #d7cec9;
    --line: #b6aca6;
    --soft-line: #3c3836;
    --tint: #6470f7;
    --tint-soft: #2d2f55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1a1a;
  --surface: #2b2b2b;
  --fg: #f4f2f1;
  --dim: #d7cec9;
  --line: #b6aca6;
  --soft-line: #3c3836;
  --tint: #6470f7;
  --tint-soft: #2d2f55;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--tint);
  font-weight: 600;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---- Header / footer ---------------------------------------------------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  white-space: nowrap;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand span {
    font-size: 19px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
}

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

.site-footer {
  margin-top: 96px;
  border-top: 2px solid var(--soft-line);
  font-size: 15px;
  color: var(--dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

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

/* ---- Buttons ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--fg);
}

.button[aria-disabled="true"] {
  cursor: default;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Phone mockup ------------------------------------------------------- */

.phone {
  width: 100%;
  max-width: 300px;
  padding: 7px;
  border-radius: 46px;
  background: #0e0b0d;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.12) inset,
    0 24px 60px rgba(25, 16, 21, 0.22);
}

.phone img {
  width: 100%;
  aspect-ratio: 1260 / 2736;
  object-fit: cover;
  object-position: top;
  border-radius: 39px;
}

/* ---- Home: hero --------------------------------------------------------- */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 32px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    padding-top: 56px;
  }
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tint);
}

.wordmark {
  margin-top: 14px;
  font-family: "Oi", serif;
  font-weight: 400;
  font-size: clamp(52px, 13vw, 96px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--dim);
}

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

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-phones .phone {
  max-width: 250px;
}

.hero-phones .phone:first-child {
  transform: rotate(-6deg) translateX(18%);
  z-index: 1;
}

.hero-phones .phone:last-child {
  transform: rotate(5deg) translate(-18%, 36px);
}

@media (max-width: 480px) {
  .hero-phones .phone {
    max-width: 190px;
  }
}

/* ---- Home: games -------------------------------------------------------- */

.section {
  margin-top: 112px;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(32px, 5vw, 44px);
}

.section-head p {
  margin-top: 14px;
  color: var(--dim);
}

.games {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.game {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 560px) {
  .game {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 40px;
    padding: 40px;
  }
}

.game h3 {
  font-size: 34px;
}

.game .tagline {
  margin-top: 4px;
  font-weight: 600;
  color: var(--tint);
}

.game .body {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--dim);
}

.game .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.game .facts li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.game .phone {
  max-width: 180px;
  justify-self: center;
  padding: 5px;
  border-radius: 30px;
}

.game .phone img {
  border-radius: 25px;
}

/* ---- Home: features ----------------------------------------------------- */

.features {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 24px;
  border: 2px solid var(--soft-line);
  border-radius: var(--radius);
}

.feature .suit {
  width: 28px;
  height: 28px;
  background: var(--fg);
  mask: var(--suit) center / contain no-repeat;
  -webkit-mask: var(--suit) center / contain no-repeat;
}

.feature .suit.red {
  background: var(--red);
}

.feature h3 {
  margin-top: 18px;
  font-size: 22px;
}

.feature p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--dim);
}

/* ---- Home: screenshot strip --------------------------------------------- */

.strip {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding: 8px var(--gutter) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip .phone {
  flex: 0 0 220px;
  scroll-snap-align: center;
}

@media (min-width: 1080px) {
  .strip {
    justify-content: center;
  }
}

/* ---- Prose pages (support, privacy) ------------------------------------- */

.page-head {
  padding-top: 40px;
  max-width: 720px;
}

.page-head h1 {
  margin-top: 10px;
  font-size: clamp(40px, 7vw, 60px);
}

.page-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--dim);
}

.contact-card {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 720px;
}

@media (min-width: 640px) {
  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-card h2 {
  font-size: 26px;
}

.contact-card p {
  margin-top: 6px;
  color: var(--dim);
}

.faq {
  margin-top: 64px;
  max-width: 720px;
}

.faq h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.faq details {
  border-bottom: 2px solid var(--soft-line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--tint);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding-bottom: 22px;
  color: var(--dim);
}

.faq .answer p + p,
.faq .answer p + ul,
.faq .answer ul + p {
  margin-top: 10px;
}

.faq .answer ul {
  margin: 0;
  padding-left: 20px;
}

.prose {
  max-width: 720px;
  margin-top: 40px;
}

.prose h2 {
  margin-top: 48px;
  font-size: 28px;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--dim);
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--fg);
}
