/* ============================================================
   TabbyBby — Shared Styles
   Soft, feminine, premium. Mobile-first. Colours come from
   /config/site.js — if you change the palette there, update the
   matching values below to keep them in sync.
   ============================================================ */

:root {
  --soft-pink: #f9d9ea;
  --blush: #f8cfe1;
  --lavender: #ded6fa;
  --pale-blue: #dceeff;
  --hot-pink: #f0448a;
  --near-black: #171117;
  --white: #ffffff;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 12px 30px rgba(23, 17, 23, 0.10);
  --shadow-hover: 0 16px 38px rgba(23, 17, 23, 0.14);

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --content-max: 480px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--near-black);
  background: linear-gradient(160deg, var(--soft-pink) 0%, var(--pale-blue) 55%, var(--lavender) 100%);
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

/* ---------- Layout shell ---------- */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  min-height: 100svh;
  min-height: 100vh;
}

.content {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

/* ---------- Typography ---------- */

.brand-heading {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  font-weight: 400;
  color: rgba(23, 17, 23, 0.72);
  margin: 0 0 6px;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.section-heading--spaced {
  margin-top: 6px;
}

.supporting-text {
  font-size: 0.85rem;
  color: rgba(23, 17, 23, 0.62);
  margin: 0;
}

/* ---------- Glass card ---------- */

.glass-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* ---------- VIP entry button (homepage) ---------- */

.vip-card {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--near-black);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  appearance: none;
  font-family: inherit;
}

.vip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.vip-card:active {
  transform: translateY(0) scale(0.985);
}

.vip-card .vip-emoji {
  font-size: 2.1rem;
  line-height: 1;
}

.vip-card .vip-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.vip-card .vip-cta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hot-pink);
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--hot-pink);
  outline-offset: 3px;
}

/* ---------- 18+ badge ---------- */

.age-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--near-black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Hold-to-enter button ---------- */

.hold-button {
  position: relative;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(23, 17, 23, 0.08);
  color: var(--near-black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.hold-button .hold-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--hot-pink), #ff6fa8);
  border-radius: inherit;
  will-change: width;
}

.hold-button .hold-label {
  position: relative;
  z-index: 1;
  mix-blend-mode: normal;
}

.hold-button.is-complete .hold-label {
  color: var(--white);
}

/* ---------- Small text link ---------- */

.text-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: rgba(23, 17, 23, 0.66);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Primary / secondary link styles have moved to
   css/links.css (V2 Official Verified Links list) ---------- */

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(23, 17, 23, 0.55);
}

.site-footer a {
  color: inherit;
}

/* ---------- Visually hidden (screen-reader only) ---------- */

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .vip-card,
  .primary-link {
    transition: none;
  }
  .hold-button .hold-fill {
    transition: none !important;
  }
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .content {
    max-width: 440px;
  }
}

.content--wide {
  max-width: 600px;
}

@media (min-width: 640px) {
  .content--wide {
    max-width: 600px;
  }
}
