/* ==========================================================================
   Video Chat Girls — design system
   Palette A-10 Butter Morning · Direction C-10 Thin Line-Art Minimal
   Fonts B-7 Wix Madefor · Edges E2-3 Pill & feather · Accent strategy 1
   ========================================================================== */

:root {
  --vcg-bg:      #FCF8EC;
  --vcg-surface: #FFFEF7;
  --vcg-text:    #2E2812;
  --vcg-muted:   #6B6142;
  --vcg-accent:  #8A6118;
  --vcg-accent2: #ECD489;
  --vcg-link:    #8A6118;            /* accent doubles as link in light (5.2:1 on cream) */
  --vcg-line:    #C9B98B;            /* soft outline for line-art */
  --vcg-hair:    rgba(46,40,18,.12); /* hairline borders */
  --vcg-onaccent:#FFFEF7;
  --vcg-grad: linear-gradient(135deg,#FDF6DF,#F8ECC2 50%,#F2E0A6);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --r-card: 20px;  --r-pill: 999px;  --r-chip: 999px;
  --shadow: 0 2px 12px rgba(40,32,8,.06);
  --shadow-lg: 0 6px 22px rgba(40,32,8,.09);

  --col: 44rem;
  --wrap: 1180px;

  --fs-body: clamp(16px, 1rem + .2vw, 18px);
  --lh-body: 1.7;
}

[data-theme="dark"] {
  --vcg-bg:      #1B1810;
  --vcg-surface: #262214;
  --vcg-text:    #F0EBDB;
  --vcg-muted:   #C2B894;
  --vcg-accent:  #8F6A22;
  --vcg-accent2: #C9A94F;
  --vcg-link:    #D8BC6A;            /* dark accent #8F6A22 fails as text (3.6:1) → lift the link to 7.8:1 */
  --vcg-line:    #6E6030;
  --vcg-hair:    rgba(240,235,219,.14);
  --vcg-onaccent:#1B1810;            /* dark-mode CTA still white-on-accent below; ink kept for accent2 chips */
  --vcg-grad: linear-gradient(135deg,#2A2413,#312912 50%,#3A3016);
}

/* --------------------------------------------------------------- base ----- */
body {
  background: var(--vcg-bg);
  color: var(--vcg-text);
  font-family: "Wix Madefor Text", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .vcg-brand__name {
  font-family: "Wix Madefor Display", "Wix Madefor Text", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.01em;
}
::selection { background: var(--vcg-accent2); color: #2E2812; }
:focus-visible { outline: 2px solid var(--vcg-accent); outline-offset: 3px; border-radius: 4px; }

.vcg-skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--vcg-surface); color: var(--vcg-text);
  padding: var(--space-2) var(--space-4); border-radius: var(--r-pill);
}
.vcg-skip:focus { left: var(--space-4); top: var(--space-4); }

/* faint paper grain (microfeature F-14), never over content interactions */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .04; }

/* scroll-progress bar (microfeature F-2) */
.vcg-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 55;
  background: linear-gradient(90deg, var(--vcg-accent), var(--vcg-accent2));
  will-change: transform;
}

/* --------------------------------------------------------------- header --- */
.vcg-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--vcg-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vcg-hair);
}
.vcg-header__bar {
  max-width: var(--wrap); margin-inline: auto;
  padding: var(--space-3) clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3);
}
.vcg-header__left { display: flex; justify-content: flex-start; }
.vcg-header__right { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); }

.vcg-brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  justify-self: center; text-decoration: none; color: var(--vcg-text);
}
.vcg-brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; }
.vcg-brand__mark svg { width: 34px; height: 34px; fill: none; stroke: var(--vcg-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vcg-brand__wave { stroke: var(--vcg-accent2); }
[data-theme="dark"] .vcg-brand__mark svg { stroke: var(--vcg-accent2); }  /* accent dims to 2.9:1 in dark — brighten the mark */
.vcg-brand__name { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

/* icon-only buttons: fixed size, grid-centred (iOS-safe, no svg max-width) */
.vcg-icbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  flex: 0 0 auto; padding: 0; border: 1px solid var(--vcg-hair);
  background: var(--vcg-surface); color: var(--vcg-text);
  border-radius: var(--r-pill); cursor: pointer; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vcg-icbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.vcg-icbtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vcg-toggle__moon { display: none; }
[data-theme="dark"] .vcg-toggle__sun { display: none; }
[data-theme="dark"] .vcg-toggle__moon { display: block; }

/* language list — lives inside the burger sheet (no separate desktop dropdown) */
.vcg-lang__list { list-style: none; margin: 0; padding: 0; }
.vcg-lang__list li { margin: 0; }
.vcg-lang__list a, .trp-language-switcher-container a {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); min-height: 44px; border-radius: 12px;
  text-decoration: none; color: var(--vcg-text);
}
.vcg-lang__list a:hover { background: color-mix(in srgb, var(--vcg-accent2) 40%, transparent); }
.vcg-lang__list img, .trp-flag-image { width: 20px; height: auto; border-radius: 3px; }

/* Below 768 the centred grid would squeeze the brand + buttons past 320px,
   so switch to a single brand-left / actions-right flex row (no overflow, no wrap). */
@media (max-width: 768px) {
  .vcg-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
  .vcg-header__left { display: none; }
  .vcg-brand { justify-self: start; min-width: 0; }
  .vcg-brand__name { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) {
  .vcg-brand__name { font-size: 1rem; }
  .vcg-header__right { gap: 6px; }
}

/* --------------------------------------------------------------- sheet ---- */
.vcg-scrim {
  position: fixed; inset: 0; z-index: 48; background: rgba(20,16,4,.42);   /* above the cookie (45) so an open sheet is never covered */
  opacity: 0; transition: opacity .28s ease;
}
.vcg-scrim.is-open { opacity: 1; }
.vcg-sheet {
  position: fixed; top: 0; right: 0; z-index: 49; height: 100%;
  width: min(84vw, 340px); background: var(--vcg-surface);
  border-left: 1px solid var(--vcg-hair); box-shadow: var(--shadow-lg);
  padding: var(--space-5); transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.vcg-sheet.is-open { transform: translateX(0); }
.vcg-sheet__head { display: flex; align-items: center; justify-content: space-between; }
.vcg-sheet__title { font-weight: 700; font-family: "Wix Madefor Display", sans-serif; }
.vcg-lang--sheet .vcg-lang__list a { border: 1px solid var(--vcg-hair); margin-bottom: var(--space-2); }
.vcg-sheet__links { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.vcg-sheet__links a { color: var(--vcg-link); text-decoration: none; padding: var(--space-2) 0; min-height: 44px; display: flex; align-items: center; }

/* --------------------------------------------------- reading column ------- */
.vcg-entry {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) var(--space-8);
}
/* zero-specificity column rule; component rules override it. Gate is exempt. */
.vcg-entry > :where(*:not(.vcg-gate)) {
  max-width: var(--col); margin-inline: auto;
}

.vcg-entry h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.2rem); font-weight: 800;
  margin-block: 0 var(--space-5); letter-spacing: -.02em;
}
.vcg-entry h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 700;
  margin-block: var(--space-7) var(--space-3); scroll-margin-top: 88px;
}
.vcg-entry h3 { font-size: 1.06rem; font-weight: 700; margin-block: 0 var(--space-1); }
.vcg-entry p { margin-block: 0 var(--space-4); }
.vcg-entry p:last-child { margin-bottom: 0; }

/* links: accent + drawn underline; buttons (classed anchors) excluded (trap) */
.vcg-entry a:not([class]) {
  color: var(--vcg-link); text-decoration: none;
  background-image: linear-gradient(var(--vcg-link), var(--vcg-link));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease;
}
.vcg-entry a:not([class]):hover, .vcg-entry a:not([class]):focus-visible { background-size: 100% 2px; }

/* Gutenberg native lists (if the client adds one) keep their markers */
.vcg-entry .wp-block-list { margin: 0 auto var(--space-4); padding-left: 1.3em; }
.vcg-entry .wp-block-list li { margin-block: var(--space-1); }

/* --------------------------------------------------- age-gate (D-6) ------- */
.vcg-gate {
  max-width: 760px; margin: 0 auto var(--space-7);
  overflow: clip;
}
.vcg-gate__ticket {
  display: flex; align-items: stretch; gap: 0;
  background: var(--vcg-surface); border: 1.6px solid var(--vcg-line);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.vcg-gate__ticket::before { /* subtle warm wash */
  content: ""; position: absolute; inset: 0; background: var(--vcg-grad); opacity: .35; z-index: 0;
}
.vcg-gate__main { position: relative; z-index: 1; flex: 1 1 auto; padding: clamp(22px, 5vw, 38px); }
.vcg-gate__stub {
  position: relative; z-index: 1; flex: 0 0 122px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  border-left: 2px dashed var(--vcg-line); text-align: center; padding: var(--space-4);
}
/* gate text scoped (0,2,0) so it beats .vcg-entry p / .vcg-entry h2 (0,1,1) */
.vcg-gate .vcg-gate__over {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 600; color: var(--vcg-muted); margin-bottom: var(--space-2);
}
.vcg-gate .vcg-gate__q {
  font-family: "Wix Madefor Display", sans-serif; font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem); line-height: 1.2;
  color: var(--vcg-text); margin: 0 0 var(--space-3);
}
.vcg-gate .vcg-gate__note { color: var(--vcg-muted); font-size: .95rem; margin: 0 0 var(--space-4); }
.vcg-gate__stamp {
  font-family: "Wix Madefor Display", sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--vcg-link); border: 2px dashed var(--vcg-link);   /* --link stays legible in dark (accent as text fails 3.6:1) */
  border-radius: 12px; padding: var(--space-2) var(--space-3); transform: rotate(-6deg);
}
.vcg-gate .vcg-gate__stubline { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vcg-muted); }

.vcg-gate__go {
  display: inline-block; background: var(--vcg-accent); color: #FFFEF7;
  background-image: none; text-decoration: none; font-weight: 700;
  padding: 14px 26px; min-height: 48px; border-radius: var(--r-pill);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.vcg-gate__go:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vcg-gate__peek {
  display: inline-block; margin-top: var(--space-3); margin-left: var(--space-3);
  color: var(--vcg-link); text-decoration: none; font-size: .95rem; background-image: none;
}
.vcg-gate__peek:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .vcg-gate__ticket { flex-direction: column; }
  .vcg-gate__stub { flex-basis: auto; border-left: 0; border-top: 2px dashed var(--vcg-line); flex-direction: row; justify-content: center; }
  .vcg-gate__peek { margin-left: 0; display: block; }
}

/* --------------------------------------------------- illustration (H-11) -- */
.vcg-figure { margin: var(--space-6) auto var(--space-7); }
.vcg-illus { display: block; width: 100%; height: auto; }
.vcg-illus__panel { fill: var(--vcg-surface); stroke: var(--vcg-line); stroke-width: 1.6; }
.vcg-illus__tile { fill: var(--vcg-surface); stroke: var(--vcg-line); stroke-width: 2.2; }        /* queued tiles: soft, behind */
.vcg-illus__tile--front { stroke: var(--vcg-link); stroke-width: 2.6; }                            /* active call: legible both modes */
.vcg-illus__lens { fill: none; stroke: var(--vcg-line); stroke-width: 2; }
.vcg-illus__lens--inner { stroke: var(--vcg-link); }
.vcg-illus__cycle { fill: none; stroke: var(--vcg-link); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }   /* the skip / next arrow */
.vcg-illus__dot { fill: var(--vcg-link); }
.vcg-illus__live { fill: var(--vcg-accent); }
.vcg-illus__label { fill: var(--vcg-muted); font-family: "Wix Madefor Text", sans-serif; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="dark"] .vcg-illus__panel { fill: #211C10; }
[data-theme="dark"] .vcg-illus__live { fill: var(--vcg-accent2); }

/* --------------------------------------------------- chips (section 7) ---- */
.vcg-chips {
  list-style: none; padding: 0; margin: var(--space-4) auto var(--space-2);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center;
}
.vcg-chips li {
  border: 1.4px solid var(--vcg-line); border-radius: var(--r-chip);
  padding: var(--space-2) var(--space-4); font-size: .92rem; color: var(--vcg-text);
  background: var(--vcg-surface);
}

/* --------------------------------------------------- pull-quote ----------- */
.vcg-pull {
  border: 0; border-left: 3px solid var(--vcg-accent);
  background: color-mix(in srgb, var(--vcg-accent2) 22%, var(--vcg-surface));
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  margin-block: var(--space-6);
}
.vcg-pull p { font-family: "Wix Madefor Display", sans-serif; font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin: 0; }

/* --------------------------------------------------- feature cards (9) ---- */
.vcg-cards {
  list-style: none; padding: 0; margin: var(--space-5) auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
}
.vcg-card {
  border: 1.4px solid var(--vcg-line); border-radius: var(--r-card);
  padding: var(--space-4); background: var(--vcg-surface); box-shadow: var(--shadow);
}
.vcg-card__icon { width: 30px; height: 30px; fill: none; stroke: var(--vcg-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-2); }
[data-theme="dark"] .vcg-card__icon { stroke: var(--vcg-accent2); }
.vcg-card h3 { margin: 0 0 var(--space-1); }
.vcg-card p { margin: 0; color: var(--vcg-muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 560px) { .vcg-cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------- FAQ (native details) - */
/* Never animate a <details> layout height (::details-content grid trap) — keep the
   answer in normal flow, add only a fade so it can't fail closed. */
.vcg-faq { margin: var(--space-5) auto; display: flex; flex-direction: column; gap: var(--space-3); }
.vcg-faq__item { border: 1.4px solid var(--vcg-line); border-radius: var(--r-card); background: var(--vcg-surface); overflow: hidden; }
.vcg-faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-4);
  font-weight: 600; font-family: "Wix Madefor Display", sans-serif;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.vcg-faq__item summary::-webkit-details-marker { display: none; }
.vcg-faq__item summary::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto;
  border-right: 2px solid var(--vcg-accent); border-bottom: 2px solid var(--vcg-accent);
  transform: rotate(45deg); transition: transform .25s ease;
}
.vcg-faq__item[open] summary::after { transform: rotate(225deg); }
.vcg-faq__a { padding: 0 var(--space-4) var(--space-4); }
.vcg-faq__a p { margin: 0; color: var(--vcg-muted); }
@media (prefers-reduced-motion: no-preference) {
  .vcg-faq__item[open] .vcg-faq__a { animation: vcg-fade .28s ease both; }
}
@keyframes vcg-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------- generic button ------- */
.vcg-btn {
  display: inline-block; background: var(--vcg-accent); color: #FFFEF7;
  background-image: none; text-decoration: none; font-weight: 700;
  padding: 13px 24px; min-height: 48px; border-radius: var(--r-pill); box-shadow: var(--shadow);
}
.vcg-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --------------------------------------------------- footer --------------- */
.vcg-footer { border-top: 1px solid var(--vcg-hair); margin-top: var(--space-8); background: color-mix(in srgb, var(--vcg-accent2) 12%, var(--vcg-bg)); }
.vcg-footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: var(--space-6) clamp(16px, 4vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.vcg-footer__copy { margin: 0; color: var(--vcg-muted); }
.vcg-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; padding: 0; }
.vcg-footer__menu a { color: var(--vcg-link); text-decoration: none; }
.vcg-footer__menu a:hover { text-decoration: underline; }

/* --------------------------------------------------- cookie --------------- */
.vcg-cookie {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 45; width: min(680px, calc(100vw - 32px));
  background: var(--vcg-surface); border: 1.4px solid var(--vcg-line);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease; opacity: 0;
}
.vcg-cookie.is-in { transform: translateX(-50%) translateY(0); opacity: 1; }
.vcg-cookie__text { margin: 0; font-size: .9rem; color: var(--vcg-muted); flex: 1 1 320px; line-height: 1.5; }
.vcg-cookie__text a { color: var(--vcg-link); }
.vcg-cookie__ok {
  flex: 0 0 auto; background: var(--vcg-accent); color: #FFFEF7; border: 0;
  padding: 12px 22px; min-height: 44px; border-radius: var(--r-pill); font-weight: 700; cursor: pointer;
}
[hidden] { display: none !important; }   /* attribute always wins over component display rules */

/* --------------------------------------------------- inner / 404 ---------- */
.vcg-entry--page, .vcg-entry--404 { min-height: 46vh; }
.vcg-page-title { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; margin-block: 0 var(--space-5); }
.vcg-entry--404 { text-align: center; }
.vcg-404__num { font-family: "Wix Madefor Display", sans-serif; font-weight: 800; font-size: clamp(4rem, 3rem + 8vw, 8rem); color: var(--vcg-accent); line-height: 1; margin: 0; }
.vcg-404__title { margin-block: var(--space-2) var(--space-3); }
.vcg-404__lead { color: var(--vcg-muted); margin-bottom: var(--space-5); }

/* --------------------------------------------------- reveal (F-10 / O-3) -- */
/* Primary: pure-CSS scroll-driven reveal — base-visible, never hides content. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .vcg-entry > h1,
    .vcg-entry > h2,
    .vcg-entry > p,
    .vcg-figure, .vcg-chips, .vcg-pull, .vcg-cards, .vcg-faq {
      animation: vcg-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    @keyframes vcg-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
  /* JS/IO fallback is layered on ONLY when view() is unsupported (see main.js) */
  .vcg-io .vcg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .vcg-io .vcg-reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
