/* Flowers — Editorial Mini App tokens */

:root {
  /* Palette — light (cream) */
  --cream: #F6F3EA;
  --cream-2: #FBFAF4;
  --ink: #0E0E0C;
  --mute: #8A8A7E;
  --line: #E4E0D1;
  --dash: #C9C5B5;

  /* Two equal neons */
  --violet: oklch(0.62 0.30 306);
  --violet-soft: oklch(0.82 0.18 306);
  --lime: #D4FF47;
  --lime-deep: #BFEF1F;

  /* Roles — remap for theme */
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --fg: var(--ink);
  --fg-mute: var(--mute);
  --border: var(--line);
  --border-dash: var(--dash);
  --card: #FFFFFF;
  --pill: rgba(14,14,12,0.06);
  --pill-border: rgba(14,14,12,0.12);

  /* Panels that must stay dark in BOTH themes (for lime/violet accent contrast) */
  --panel-bg: #0E0E0C;
  --panel-fg: #F6F3EA;
  --panel-fg-mute: rgba(246,243,234,0.55);
  --panel-border: rgba(246,243,234,0.18);
  --panel-rim: transparent;

  /* Fonts — pair A (default) */
  --f-display: 'Unbounded', 'Neue Haas Grotesk', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'GT Sectra', Georgia, serif;
  --f-serif-ed: 'IBM Plex Serif', 'PP Editorial', Georgia, serif;
  --f-mono: 'JetBrains Mono', 'Söhne Mono', ui-monospace, monospace;
  --f-ui: 'Manrope', 'Onest', system-ui, sans-serif;

  /* Geometry */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --eyebrow: 0.22em;
}

[data-theme="dark"] {
  --bg: #0E0E0C;
  --bg-2: #16160F;
  --fg: #F6F3EA;
  --fg-mute: #9A9A8C;
  --border: #2A2A24;
  --border-dash: #38382F;
  --card: #1A1A14;
  --pill: rgba(246,243,234,0.08);
  --pill-border: rgba(246,243,234,0.14);
  --violet-soft: oklch(0.55 0.22 306);

  /* Dark panels stay dark, but lifted above the app bg so they don't disappear.
     Hairline rim gives visual separation against the nearly-black stage. */
  --panel-bg: #1C1C17;
  --panel-fg: #F6F3EA;
  --panel-fg-mute: rgba(246,243,234,0.55);
  --panel-border: rgba(246,243,234,0.12);
  --panel-rim: rgba(246,243,234,0.08);
}

/* Font pair overrides (tweakable) */
[data-font="b"] {
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-serif-ed: 'Fraunces', Georgia, serif;
}
[data-font="c"] {
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-serif-ed: 'DM Serif Text', Georgia, serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #0E0E0C;
  font-family: var(--f-ui);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utility: eyebrow */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--eyebrow);
  text-transform: uppercase;
  color: var(--fg-mute);
}

.eyebrow-ink {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--eyebrow);
  text-transform: uppercase;
  color: var(--fg);
}

.mono { font-family: var(--f-mono); }
.display { font-family: var(--f-display); letter-spacing: -0.02em; }
.serif-it { font-family: var(--f-serif); font-style: italic; letter-spacing: 0; }

/* Ruble sign helper — italic serif glyph overhangs its advance width; add
   right-padding so the tail isn't clipped inside parents with tight
   letter-spacing or overflow:hidden. */
.rub {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  padding-right: 0.12em;
  display: inline-block;
}
.serif-ed { font-family: var(--f-serif-ed); }

/* Dashed divider */
.dashed {
  border: 0;
  border-top: 1px dashed var(--border-dash);
  height: 0;
  margin: 0;
}

/* Corner registration marks */
.reg-mark {
  position: absolute;
  width: 10px; height: 10px;
  color: var(--fg-mute);
}

/* Neon dot */
.brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(212,255,71,0.2);
}

.brand-dot.violet {
  background: var(--violet);
  box-shadow: 0 0 0 3px oklch(0.62 0.30 306 / 0.22);
}

/* Hide scrollbars in horizontal scrollers */
.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { scrollbar-width: none; }

/* Pulse */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.pulse { animation: pulse-dot 1.6s ease-in-out infinite; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stage (viewport for mini app) */
.stage {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, oklch(0.62 0.30 306 / 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, oklch(0.85 0.18 128 / 0.10), transparent 40%),
    #0A0A08;
}

.device {
  width: 420px;
  max-width: 100%;
  min-height: 900px;
  background: var(--bg);
  color: var(--fg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.06);
}

/* App surface */
.app { position: relative; min-height: 900px; padding-bottom: 96px; }
