/* ═══════════════════════════════════════════════════════════════════════
   Blüte · shared/theme.css
   ────────────────────────────────────────────────────────────────────────
   Design tokens, fonts, and a few utility classes shared across the
   garden. Existing Blüten (Kirschblüte / Glyzinie / Sonnenblume / Lavendel)
   keep their own embedded styles for now — they each ship as a single
   self-contained file. This stylesheet is the *canonical* token set; new
   Blüten built going forward should `<link>` to it rather than duplicate.

   Imported here once: the hub (../index.html) is the first consumer.
═══════════════════════════════════════════════════════════════════════ */

@import url('./fonts.css');

:root {
  /* ── Surface (Warm Botanical Paper) ── */
  --bg:           #fbf7f9;
  --card:         #ffffff;
  --card-soft:    #f6f0f4;

  /* ── Borders / pinks ── */
  --border:       #e6d5df;
  --border-soft:  #f0e4eb;
  --pink-100:     #fde8f1;
  --pink-150:     #fbd5e5;
  --pink-200:     #f5b8d2;

  /* ── Ink (Crisp deep plum-ink for effortless reading) ── */
  --text:         #2b1d28;
  --text-2:       #5c4554;
  --text-3:       #8c7383;

  /* ── Accent (Sakura Rose default) ── */
  --accent:       #e0538c;
  --accent-deep:  #c43872;
  --accent-soft:  #fde8f1;
  --accent-text:  #b02a61;

  /* ── Secondary botanical palettes (harmonized saturation & contrast) ── */
  --mint:         #68c49f;   --mint-bg:    #e6f6ef;   --mint-tx:    #1e6b4c;
  --red:          #e88ca2;   --red-bg:     #fcebef;   --red-tx:     #b33653;
  --gold:         #e8be6b;   --gold-bg:    #fdf5e2;   --gold-tx:     #8f5f0e;
  --lav:          #b695eb;   --lav-bg:     #f2ebfc;   --lav-tx:     #583791;
  --sun:          #e5a94c;   --sun-bg:     #fdf3e1;   --sun-tx:     #8f5708;
  --sky:          #7eb8eb;   --sky-bg:     #e8f3fc;   --sky-tx:     #255c8f;
  --ipo:          #5c6fd6;   --ipo-bg:     #ebedfa;   --ipo-tx:     #3243a6;
  --klee:         #2e8b57;   --klee-bg:    #e3f4ea;   --klee-tx:    #1c613a;
  --lilie:        #655cc9;   --lilie-bg:   #eceafa;   --lilie-tx:   #3f369c;
  --glocke:       #3b82c4;   --glocke-bg:  #e5f1fc;   --glocke-tx:  #1d5791;

  /* ── Fonts ── */
  --sans:         'Quicksand', system-ui, sans-serif;
  --jp-clean:     'Noto Sans JP', 'Quicksand', sans-serif;
  --jp-cute:      'Zen Maru Gothic', 'Quicksand', sans-serif;
  --jp:           var(--jp-cute);

  /* ── Radii ── */
  --r-sm:         10px;
  --r-pill:       11px;
  --r-seg:        14px;
  --r-seg-item:   10px;
  --r-badge:      8px;
  --r-md:         14px;
  --r-lg:         18px;
  --r-xl:         22px;

  /* ── Shadows (Clean architectural elevation, no neon glow) ── */
  --shadow-sm:    0 1px 3px rgba(43, 29, 40, 0.05), 0 4px 12px rgba(43, 29, 40, 0.04);
  --shadow-md:    0 2px 6px rgba(43, 29, 40, 0.06), 0 10px 24px -4px rgba(43, 29, 40, 0.08);
  --shadow-lg:    0 4px 12px rgba(43, 29, 40, 0.08), 0 18px 36px -6px rgba(43, 29, 40, 0.12);
}

/* ── Explicit Dark Mode tokens (toggled via html[data-theme="dark"]) ── */
html[data-theme="dark"] {
  --bg:           #151219;
  --card:         #1f1a25;
  --card-soft:    #272130;

  --border:       #3d3247;
  --border-soft:  #31283a;
  --pink-50:      #241b29;
  --pink-100:     #2e2234;
  --pink-150:     #3a2940;
  --pink-200:     #543652;

  --text:         #f6eef4;
  --text-2:       #cbb8c6;
  --text-3:       #968191;

  --accent:       #f06ea4;
  --accent-deep:  #e0538c;
  --accent-soft:  #382030;
  --accent-text:  #ff9ec7;

  --mint:         #3d9c77;   --mint-bg:    #193028;   --mint-tx:    #7ce8c2;
  --red:          #c75b73;   --red-bg:     #381e28;   --red-tx:     #ff9db2;
  --gold:         #b88b3b;   --gold-bg:    #332818;   --gold-tx:    #ffd88a;
  --lav:          #8465bd;   --lav-bg:     #282038;   --lav-tx:     #d9c2ff;
  --sun:          #b8862d;   --sun-bg:     #332717;   --sun-tx:     #ffd98a;
  --sky:          #4a7eb0;   --sky-bg:     #1b2b3a;   --sky-tx:     #9fd0ff;
  --ipo:          #5f70c9;   --ipo-bg:     #202540;   --ipo-tx:     #b5c2ff;
  --klee:         #3b9666;   --klee-bg:    #193024;   --klee-tx:    #85e8b4;
  --lilie:        #6d65c9;   --lilie-bg:   #22213d;   --lilie-tx:   #c4bfff;
  --glocke:       #66aae6;   --glocke-bg:  #1a2b3d;   --glocke-tx:  #a3d4ff;

  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md:    0 8px 22px rgba(0, 0, 0, 0.44);
  --shadow-lg:    0 14px 36px rgba(0, 0, 0, 0.56);
}

/* ── Per-bloom accent overrides (used on the hub cards) ── */
.bloom-kirschblüte { --bloom: var(--accent);    --bloom-bg: var(--accent-soft);  --bloom-tx: var(--accent-text); }
.bloom-glyzinie    { --bloom: var(--lav);       --bloom-bg: var(--lav-bg);       --bloom-tx: var(--lav-tx); }
.bloom-sonnenblume { --bloom: var(--sun);       --bloom-bg: var(--sun-bg);       --bloom-tx: var(--sun-tx); }
.bloom-lavendel    { --bloom: var(--lav);       --bloom-bg: var(--lav-bg);       --bloom-tx: var(--lav-tx); }
.bloom-mint        { --bloom: var(--mint);      --bloom-bg: var(--mint-bg);      --bloom-tx: var(--mint-tx); }
.bloom-winde       { --bloom: var(--ipo);       --bloom-bg: var(--ipo-bg);       --bloom-tx: var(--ipo-tx); }
.bloom-klee        { --bloom: var(--klee);      --bloom-bg: var(--klee-bg);      --bloom-tx: var(--klee-tx); }
.bloom-lilie       { --bloom: var(--lilie);     --bloom-bg: var(--lilie-bg);     --bloom-tx: var(--lilie-tx); }
.bloom-glockenblume{ --bloom: var(--glocke);    --bloom-bg: var(--glocke-bg);    --bloom-tx: var(--glocke-tx); }

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-deep); }

/* ── Mobile iOS Safari / Android Chrome Touch Ergonomics ── */
@media (max-width: 768px), (pointer: coarse) {
  input[type="text"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: max(16px, 1em);
  }
}
@media (pointer: coarse) {
  button,
  .btn,
  .opt,
  .choice,
  .ob-btn,
  .typed-submit {
    min-height: 42px;
    min-width: 42px;
    touch-action: manipulation;
  }
  .tag,
  .chip,
  .leg-pill,
  .mode-btn,
  .ob-seg-btn,
  .ob-link-pill,
  .ob-tl-chip,
  .blüte-audio-btn,
  .blüte-nav-pill,
  .blüte-nav-item,
  .blüte-nav-bloom-btn,
  .blüte-nav-locked-pill {
    min-height: 36px;
    min-width: 36px;
    touch-action: manipulation;
  }
}
