/* Sock Tumble site: shared foundation (fonts, tokens, type, store badge, footer, document pages).
   Page-specific layouts live in their own stylesheet loaded after this one. */

@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Laundry Day Pop palette (pixelmator/ART-DIRECTION.md) */
  --ink: #2b2440;
  --ink-soft: #4a4166;
  --yellow: #ffc93c;
  --yellow-deep: #f2a81d;
  --cream: #f6eedc;
  --white: #ffffff;

  --sky: #5cc8ff;
  --sky-deep: #2e7bef;
  --pink: #ff6fb5;
  --pink-deep: #d9327f;
  --grape: #a776ff;
  --grape-deep: #5b36c9;
  --coral: #ff8a5c;
  --coral-deep: #e5482e;
  --mint: #5be3a6;
  --mint-deep: #1fa77a;

  --font-display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, sans-serif;

  /* Caption outline: the App Store captions' thick ink stroke and hard ink drop. */
  --stroke: 0.09em;
  --drop: 0.06em;

  --radius: 22px;
  --radius-lg: 34px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 66ch;

  --shadow-lift: 0 10px 0 -2px rgb(43 36 64 / 0.9), 0 22px 40px -12px rgb(43 36 64 / 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--cream);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--sky-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  font-weight: 600;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 7px var(--ink);
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 12px; border: 3px solid var(--cream); }

a { color: inherit; text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--yellow-deep); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); padding: 10px 16px; border-radius: 12px;
  border: 3px solid var(--ink); text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Display type: the App Store caption look ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--white);
  -webkit-text-stroke: var(--stroke) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 var(--drop) 0 var(--ink), var(--drop) var(--drop) 0 var(--ink);
  text-wrap: balance;
}
.display em,
.display .pop { font-style: normal; color: var(--yellow); }

/* Smaller headings that keep the outline but lighter. */
.title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--white);
  -webkit-text-stroke: 0.08em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.05em 0 var(--ink);
  text-wrap: balance;
}

/* Lilita on a light surface, no outline. */
.label-type {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

/* ---------- Store badge ----------
   COMING SOON state: not a link, just an honest badge.
   When the App Store listing is live, swap <p class="store store--soon"> for:
   <a class="store" href="https://apps.apple.com/app/idXXXXXXXXXX" data-cta="hero">…<b>App Store</b></a>
   (search the HTML for APP_STORE_LINK to find every spot). */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.62em 1.25em 0.62em 1em;
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 6px 0 0 #120e1f, 0 18px 30px -10px rgb(18 14 31 / 0.6);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  line-height: 1.05;
  font-family: var(--font-body);
}
.store svg { width: 1.9em; height: 1.9em; flex: none; }
.store span { display: grid; text-align: left; }
.store small { font-size: 0.72em; font-weight: 700; letter-spacing: 0.02em; opacity: 0.85; }
.store b { font-family: var(--font-display); font-weight: 400; font-size: 1.45em; letter-spacing: 0.01em; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 #120e1f, 0 22px 34px -10px rgb(18 14 31 / 0.6); }
a.store:active { transform: translateY(4px); box-shadow: 0 2px 0 0 #120e1f, 0 8px 18px -8px rgb(18 14 31 / 0.6); }

.store--soon { cursor: default; }
.store--soon .soon-chip {
  margin-left: 0.25em;
  align-self: center;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78em;
  padding: 0.28em 0.6em 0.22em;
  border-radius: 999px;
  transform: rotate(-4deg);
}

/* Chunky game button (secondary actions, the header "Get the app"). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--ink); background: var(--yellow);
  padding: 0.55em 1.05em 0.5em;
  border: 3px solid var(--ink); border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 0 0 var(--ink);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s;
}
.btn:hover { background: #ffd666; transform: translateY(-1px); box-shadow: 0 5px 0 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--ink); }

.fineprint { font-size: 0.92rem; font-weight: 700; }

/* ---------- Phone frame for real game screens ---------- */
.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 600 / 1304;
  padding: 3.2%;
  background: var(--ink);
  border-radius: 13% / 6%;
  box-shadow: var(--shadow-lift);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 10.5% / 4.9%; }

/* ---------- Site footer (shared) ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}
.site-footer .inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-footer .inner { grid-template-columns: auto 1fr auto; align-items: center; }
}
.site-footer .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-footer .brand img { width: 44px; height: 44px; border-radius: 11px; border: 2px solid var(--cream); }
.site-footer .brand span { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a,
.site-footer nav button[data-consent-settings] { font-weight: 800; }
.site-footer nav button[data-consent-settings]:hover { color: var(--yellow); }

/* ---------- Cookie consent banner (assets/consent), themed for this site ---------- */
:root {
  --consent-color-bg: var(--cream);
  --consent-color-fg: var(--ink);
  --consent-color-link: var(--grape-deep);
  --consent-color-btn-bg: var(--yellow);
  --consent-color-btn-fg: var(--ink);
  --consent-color-focus: var(--ink);
  --consent-btn-shadow: 0 4px 0 0 var(--ink);
  --consent-radius: 22px;
  --consent-radius-btn: 999px;
  --consent-font: var(--font-body);
  --consent-font-display: var(--font-display);
  --consent-shadow: 0 0 0 3px var(--ink), 0 8px 0 0 var(--ink), 0 22px 40px -12px rgb(43 36 64 / 0.55);
}
.consent-banner { z-index: 1000; }
.consent-banner__card { border: 0; }
.consent-banner__btn {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border: 3px solid var(--ink);
}
/* Reject, Accept and Configure are deliberately identical (no nudging toward Accept). */
.consent-banner__btn:active { box-shadow: 0 1px 0 0 var(--ink); }
.consent-banner__title,
.consent-banner__name { font-weight: 400; }
.consent-banner__row input { accent-color: var(--grape-deep); }
.site-footer .legal { font-size: 0.8rem; color: #cfc6e6; max-width: 46ch; }
.site-footer a:hover { color: var(--yellow); }

/* ---------- Document pages (privacy) ---------- */
.doc-page { background: var(--cream); }
.doc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top));
  background: var(--sky);
  border-bottom: 4px solid var(--ink);
}
.doc-bar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.doc-bar .brand img { width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--ink); }
.doc-bar .brand span { font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.5rem); white-space: nowrap; }
.doc-bar .btn { white-space: nowrap; font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.05rem); }
.doc-wrap { padding: clamp(32px, 6vw, 72px) var(--gutter) 80px; }
.doc {
  max-width: var(--measure); margin: 0 auto;
  font-weight: 500;
}
.doc h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: var(--ink);
  margin-bottom: 10px;
}
.doc .doc-updated { font-weight: 800; color: var(--ink-soft); margin-bottom: 36px; }
.doc h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.1; color: var(--ink);
  margin: 2.4em 0 0.55em;
  scroll-margin-top: 24px;
}
.doc h3 { font-weight: 900; font-size: 1.05em; margin: 1.6em 0 0.4em; }
.doc p, .doc ul, .doc ol { margin-bottom: 1em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--pink-deep); }
.doc a { font-weight: 800; color: var(--grape-deep); }
.doc button[data-consent-settings] { font-weight: 800; color: var(--grape-deep); }
.doc strong { font-weight: 900; }
