/* ═══════════════════════════════════════════════════════════════════════
   couture.css — the cut of every Quintessence page.

   Star, 13 November 2026: "it's still like just a copycat… using fonts and
   the rounded corner shit. The way it's rounding the corners is the same as
   rounding corners for every other Claude client… Pick some really high-end
   CSS things on your inspo board to copy."

   The inspo board is docs/inspo/ (Van Cleef & Arpels, A. Lange & Söhne,
   The Row, Phoebe Philo, Lemaire, Klim, Grilli Type, Stripe Press, The
   Gentlewoman, Co–Star). What they share, and what this layer does:

     1. Type carries the luxury. Bodoni Moda for the voice (high-contrast
        didone, optical sizes, italic for the soul); Switzer for reading, a
        Swiss grotesk. Self-hosted, no third-party font call.
     2. Corners are square. The only curves left mean something: planets,
        dials, orbits (couture-geometry.css squares the rest).
     3. Hairlines hold the structure. No glass, no drop shadows, no cards
        floating on blur.
     4. One action per view, a solid square block. Tabs are words on a rule.
     5. Glyphs, never emoji.

   It keeps everything that is Star's: the skies, the nebula, the chakra and
   aura colors, and what the colors mean (gold flow, violet push, pearl the
   same note). Loads last, after cosmos.css and couture-geometry.css.
   ═══════════════════════════════════════════════════════════════════════ */

html[data-theme] {
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif !important;
  --font-reading: 'Switzer', 'Helvetica Neue', Arial, system-ui, sans-serif !important;
  --font-receipt: 'Switzer', 'Helvetica Neue', Arial, system-ui, sans-serif !important;
  --font-body: var(--font-reading);
  --hair: color-mix(in srgb, var(--text-primary) 14%, transparent);
  --hair-strong: color-mix(in srgb, var(--text-primary) 32%, transparent);
  --ease-couture: cubic-bezier(.2, .7, .1, 1);
}

/* ── type ─────────────────────────────────────────────────────────────── */
html[data-theme] body {
  font-family: var(--font-reading);
  font-feature-settings: normal;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
}
html[data-theme] :is(h1, h2, .page-title, .lt-title, .fc-title, .hero-name, .experience-intro h1,
  .connection-heading h1, .config-title, .q-display) {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.012em;
}
/* the gradient-filled headline is the most common tell there is: ink, not candy */
html[data-theme] :is(.q-sheen, .experience-intro h1, .hero-name, .connection-heading h1, .fc-hero-cond) {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-primary) !important;
  animation: none !important;
}
html[data-theme] :is(.q-eyebrow, .portrait-eyebrow, .path-question) {
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1.2 var(--font-reading); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-secondary);
}
html[data-theme] :is(.q-eyebrow, .portrait-eyebrow)::before {
  content: ""; flex: 0 0 28px; height: 1px; background: var(--lapis);
}
html[data-theme] :is(table, .receipt-table, .fc-score, .fc-day-num, .score, .q-num) { font-variant-numeric: tabular-nums lining-nums; }
html[data-theme] .q-glyph { font-variant-emoji: text; }

/* ── nav ──────────────────────────────────────────────────────────────── */
html[data-theme] .q-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-solid); border-bottom: 1px solid var(--hair); }
html[data-theme] .q-nav::after { display: none; }
html[data-theme] .q-nav-links a { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
html[data-theme] .q-nav-links a.active { font-weight: 500; }
html[data-theme] .q-nav-links a.active::after {
  left: 0; right: 0; bottom: 4px; height: 1px; border-radius: 0;
  background: var(--text-primary); box-shadow: none;
}
html[data-theme] .q-nav-user-btn { background: transparent; color: var(--text-primary); border: 1px solid var(--hair-strong); box-shadow: none; font-weight: 500; }
html[data-theme] .q-nav-user-menu { box-shadow: none; border: 1px solid var(--hair-strong); }
html[data-theme] .q-beta { background: transparent; border-color: var(--hair-strong); color: var(--gold-soft, var(--gold)); }
html[data-theme] .q-tool { border-color: var(--hair); background: transparent; }
html[data-theme] .q-tool:hover { transform: none; border-color: var(--hair-strong); }
html[data-theme] .q-sky-panel { box-shadow: none; border: 1px solid var(--hair-strong); }
html[data-theme] .q-swatch { box-shadow: inset 0 0 0 1px var(--hair); }
html[data-theme] .q-switch::after { border-radius: 0 !important; }

/* ── surfaces: plates, not floating glass cards ───────────────────────── */
html[data-theme] :is(.connection-door, .config-card, .energy-hero, .narr-card, .system-card, .connection-contact,
  .q-card, .settings-card, .fc-day-card, .lt-card, .fc-hero) {
  background: color-mix(in srgb, var(--bg-solid) 72%, transparent);
  border: 1px solid var(--hair);
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme] :is(a.connection-door, .q-card.is-link):hover {
  transform: none; box-shadow: none; border-color: var(--hair-strong);
}
/* one plate per view may carry registration ticks at its corners, like a print proof */
html[data-theme] .q-plate {
  position: relative;
  background-image:
    linear-gradient(var(--hair-strong), var(--hair-strong)), linear-gradient(var(--hair-strong), var(--hair-strong)),
    linear-gradient(var(--hair-strong), var(--hair-strong)), linear-gradient(var(--hair-strong), var(--hair-strong)),
    linear-gradient(var(--hair-strong), var(--hair-strong)), linear-gradient(var(--hair-strong), var(--hair-strong)),
    linear-gradient(var(--hair-strong), var(--hair-strong)), linear-gradient(var(--hair-strong), var(--hair-strong));
  background-repeat: no-repeat;
  background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ── fields: a line to write on ───────────────────────────────────────── */
html[data-theme] :is(input[type="text"], input[type="email"], input[type="search"], input[type="date"], input[type="time"],
  input[type="number"], input[type="password"], textarea) {
  background: transparent; border: 0; border-bottom: 1px solid var(--hair-strong); padding-left: 0; padding-right: 0;
}
html[data-theme] :is(select, .seed-select, .page-person-select) { background-color: transparent; border: 1px solid var(--hair-strong); }
html[data-theme] :is(select, input, textarea):focus { box-shadow: none; border-color: var(--lapis); outline: none; }
html[data-theme] :is(select, input, textarea):focus-visible { outline: 1px solid var(--lapis); outline-offset: 2px; }

/* ── the one action: a solid square block ─────────────────────────────── */
.q-gate, html[data-theme] :is(.interpret-btn, .btn-primary, .save-btn, .submit-btn) {
  background: var(--text-primary) !important; color: var(--bg-solid) !important;
  -webkit-text-fill-color: var(--bg-solid);
  box-shadow: none !important; border: 1px solid var(--text-primary);
  font: 500 12px/1 var(--font-reading); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 30px; min-height: 50px;
  transition: background-color .35s var(--ease-couture), color .35s var(--ease-couture), border-color .35s var(--ease-couture);
}
.q-gate::after, html[data-theme] :is(.interpret-btn, .btn-primary)::after { display: none; }
.q-gate:hover, html[data-theme] :is(.interpret-btn, .btn-primary, .save-btn, .submit-btn):hover {
  transform: none; background: var(--lapis) !important; border-color: var(--lapis);
  color: #fff !important; -webkit-text-fill-color: #fff; box-shadow: none !important;
}
html[data-theme] .q-ghost {
  background: transparent; border: 1px solid var(--hair-strong);
  font: 500 12px/1 var(--font-reading); letter-spacing: 0.2em; text-transform: uppercase;
}
html[data-theme] .q-ghost:hover { background: transparent; border-color: var(--text-primary); }

/* ── choices: words on a rule, not candy pills ────────────────────────── */
html[data-theme] :is(.gender-pill, .fc-lens, .lens-pill, .cat-pill, .category-pill, .model-btn, .preset-chip,
  .connection-method-buttons button, .pill) {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid transparent !important;
  box-shadow: none !important; padding: 8px 2px !important; margin-right: 18px;
  color: var(--text-muted); font: 500 11px/1.2 var(--font-reading); letter-spacing: 0.2em; text-transform: uppercase;
}
html[data-theme] :is(.gender-pill, .fc-lens, .lens-pill, .cat-pill, .category-pill, .model-btn, .preset-chip, .pill):hover { color: var(--text-primary); }
html[data-theme] :is(.gender-pill, .fc-lens, .lens-pill, .cat-pill, .category-pill, .model-btn, .preset-chip, .pill):is(.active, [aria-pressed="true"]),
html[data-theme] .connection-method-buttons button[aria-pressed="true"] {
  color: var(--text-primary); background: transparent !important; border-bottom-color: var(--text-primary) !important;
}
html[data-theme] :is(.pill-bar, .model-toggle) { border-bottom: 1px solid var(--hair); gap: 0; background: transparent; padding: 0; }

/* ── motion: slower, quieter ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html[data-theme] :is(.connection-door, .q-card, .fc-row) { transition: border-color .5s var(--ease-couture), background-color .5s var(--ease-couture); }
}

/* ── the trailer on About: a film frame, square, with plain controls ─── */
html[data-theme] .qt { box-shadow: none; border-color: var(--hair-strong); }
html[data-theme] .qt-cap { background: transparent; }
html[data-theme] .qt-btn {
  backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 5, 18, 0.72);
  font: 500 11px/1 var(--font-reading); letter-spacing: .2em; text-transform: uppercase;
}
html[data-theme] :is(.qt-sound, .qt-big):not(.on) {
  background: #fdf3f9; color: #0c0512; border-color: #fdf3f9; box-shadow: none;
}
html[data-theme] :is(.qt-sound, .qt-big):not(.on):hover { background: var(--lapis); border-color: var(--lapis); color: #fff; }

/* the way into the stack (core/self/stack.py), on the portrait and between two people */
.stack-link { display: inline-block; margin-top: 14px; color: var(--gold); text-decoration: none; font: 500 12px/1.4 var(--font-reading); letter-spacing: 0.18em; text-transform: uppercase; }
.stack-link:hover { color: var(--gold-soft); }
