/* ── the editorial layer ────────────────────────────────────────────────────
 *
 * WHY THIS FILE EXISTS
 * --------------------
 * The site had a working design system but a template voice: rounded cards,
 * soft shadows, gradients, everything centred. Owner's brief (2026-10-20):
 * "bakio jaisa nahi — unique, mainly for phones." Direction agreed: editorial
 * luxury. Big serif headlines, hairline rules, monospace labels, generous
 * negative space, one accent colour. About restraint, not decoration.
 *
 * HOW IT WORKS
 * ------------
 * Everything above is a *translation layer*, not a rewrite. It loads last, so
 * it wins ties on equal specificity and it can reach every page — including
 * the eight that were never part of the shared stylesheet — without touching
 * their markup. When the per-page design is revised properly, this file is the
 * thing to delete, not to extend.
 *
 * PHONE FIRST
 * -----------
 * The base rules are the 390px rules. Anything inside `@media (min-width:…)`
 * is the exception. Editorial on a small screen means: one column, flat
 * surfaces separated by hairlines instead of floating cards, full-width
 * actions, and words big enough to read at arm's length.
 *
 * COLOURS ARE NOT TOUCHED. Only type, rules, spacing, radius, shadow and
 * alignment. The existing palette is what the contrast gate measures, and
 * changing it here would quietly undo that.
 */

/* ── 1. type ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, .vx-gate-h, .rp-card .vx-gate-h {
  font-family: var(--fd, Georgia, serif) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  margin-block: 0 0.55em !important;
}

h1 { font-size: clamp(2.6rem, 11.5vw, 5.6rem) !important; }
h2 { font-size: clamp(1.9rem, 7.6vw, 3.2rem) !important; }
h3 { font-size: clamp(1.35rem, 5vw, 1.9rem) !important; }

/* Body text reads wider on purpose — a long measure is the whole point of an
   editorial layout. Phones get the tighter end of it.
 *
 * NOT `.code`: the 404 page's numeral is a <p class="code"> whose own rule sets
 * `font-size:clamp(4.4rem,17vw,8rem)`. This blanket `!important` beat it (an
 * !important declaration outranks the page's normal one), so the 404 rendered
 * its display numeral at 16px — and because axe then measured it as normal-size
 * text it also failed contrast at 4.5:1 instead of passing the 3:1 large-text
 * floor it was tuned for. One exclusion fixes both. Same shape as the
 * `.vx-app-card` exclusion below: a global selector needs its exceptions. */
p:not(.code), li:not(.code) {
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

/* The small monospace label. Every section on the site gains one without
   needing a markup change, because it is drawn from the existing eyebrow,
   kicker and overline classes plus a bare ::before on section headings. */
.eyebrow, .kicker, .overline, .vx-gate-brand, .rp-brand,
.sec-label, [class*="eyebrow"], [class*="kicker"] {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* ── 2. surface language: rules, not cards ───────────────────────────────── */

/* On a phone every card loses its radius, its shadow and its fill, and gains a
   hairline. The list becomes an index rather than a row of boxes. */
@media (max-width: 767px) {
  /* NOT .vx-app-card: it is a violet gradient panel with white text, and
     flattening it turns that text invisible on a light page. Same for the
     sign-in gate's card, which owns its surface. */
  [class*="card"]:not(.vx-app-card):not(.vx-gate-card), [class*="Card"]:not(.vx-app-card):not(.vx-gate-card),
  .pcard, .scard, .tcard, .fcard, .plan, .step, .tool {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-inline: 0 !important;
    border-top: 1px solid var(--line, rgba(127, 127, 127, 0.28)) !important;
    border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.28)) !important;
    background: transparent !important;
    padding-block: 22px !important;
  }

  [class*="grid"], [class*="Grid"], .sgrid, .tgrid, .pgrid, .fgrid {
    gap: 0 !important;
  }

  section, .parallax-section, [class*="section"] {
    padding-block: 46px !important;
  }
}

/* Desktop keeps a card, but a flat one: hairline border, near-zero radius,
   no shadow. Depth comes from whitespace, which is what editorial means. */
@media (min-width: 768px) {
  [class*="card"]:not(.vx-app-card):not(.vx-gate-card), [class*="Card"]:not(.vx-app-card):not(.vx-gate-card),
  .pcard, .scard, .tcard, .fcard, .plan, .step, .tool {
    border-radius: 3px !important;
    box-shadow: none !important;
    border: 1px solid var(--line, rgba(127, 127, 127, 0.28)) !important;
  }

  section, .parallax-section, [class*="section"] {
    padding-block: 84px !important;
  }
}

/* A hairline under every section heading. One rule, repeated, is the motif
   that ties the whole page together. */
h2, .sec-title, [class*="sec-title"] {
  padding-bottom: 0.5em !important;
  border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.28)) !important;
  margin-bottom: 0.9em !important;
}

/* ── 3. actions ──────────────────────────────────────────────────────────── */

/* NO BUTTON RULES ANY MORE. REMOVED 2026-10-25, after two owner reports.
 *
 * This section used to force `.btn, [class*="btn"]` into a rectangular,
 * uppercase, monospace, 1px-bordered editorial button. The first owner
 * report ("circles square ho gaye") showed it flattening the site's chrome
 * - the header pill, the icon toggles, the floating circles - and the
 * exclusion list written that day fixed exactly ten classes while the
 * measurement below shows the damage was never about ten classes.
 *
 * What the probe actually found, across every page on the live site: every
 * button class this site owns declares its OWN design - `.btn` is a 100px
 * gradient pill in tools.css and a 999px gradient pill in the earn pages'
 * inline styles, `.at-cta-btn` is a gradient pill, `.at-cta-btn`,
 * `.at-price-btn`, `.av-cta-btn`, `.apply-btn`, `.vx-gate-btn`, `.n-btn`,
 * `.cf-btn`, `.wa-btn`, `.rrbtn`, `.btn-primary`, `.vxt-btn-glass`,
 * `.vxm-carousel-btn`, `.toggle-btn` and more all carry a gradient, a
 * radius or a border of their own. The editorial rule was overriding every
 * one of them with 2px corners, a monospace font and - worst of all, per
 * the second report - a WHITE 1px BORDER around gradient buttons.
 *
 * An exclusion list for that is a losing game: the next button class wins
 * the argument by existing. The editorial layer keeps its type, rules,
 * spacing and form treatments, which is what it was actually good for. It
 * does not touch buttons. If a page ever wants the editorial button, that
 * page can style it explicitly.
 */

/* ── 4. forms ────────────────────────────────────────────────────────────── */

/* Hairline boxes, no fill, monospace labels. Applies to the gate, the reset
   page, the contact form and the share-my-work form alike. */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
  border-radius: 2px !important;
  background: transparent !important;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.28)) !important;
  min-height: 48px !important;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid currentColor !important;
  outline-offset: 1px !important;
}

.vx-field label, .vx-gate label, label:not([for=""]) {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  /* No opacity here on purpose: fading a label to 72% pushed four form labels
     below the 4.5:1 floor in light theme and the contrast gate caught it. */
}

/* ── 5. quiet the decoration ─────────────────────────────────────────────── */

/* Editorial means deleting. Anything that exists only to look busy goes. */
[class*="glow"], [class*="shine"], [class*="shimmer"] {
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

.grad, [class*="grad-text"] {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}

/* ── 6. one accent, used once per scroll ─────────────────────────────────── */

/* Every accent-coloured word becomes underlined instead, the way an editor
   would mark emphasis in print. */
a.ac, .ac, [class*="accent"] {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.22em !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
