/* ============================================================
   YOUR MEAT MAKER: themes
   Smokehouse (dark) is the default. Butcher Shop (light) applies
   when <html data-theme="light">, set by the sun/moon button and
   remembered per browser (see static/js/site.js and head.html).
   custom.css uses only these tokens, so a theme is just this list.
   ============================================================ */

/* ── Smokehouse: charcoal, ember orange, bone text ───────── */
:root {
  color-scheme: dark;

  --bg:            #16120f;   /* page                          */
  --surface:       #211b16;   /* cards, recipe panel           */
  --surface-2:     #1a1511;   /* nutrition strip, tips, pairs  */
  --line:          #3a2f26;   /* hairlines and borders         */
  --text:          #f1e6d4;
  --text-soft:     #cbb9a1;
  --muted:         #a38f78;   /* dates, author, captions       */
  --primary:       #ec7a3c;   /* ember: buttons, icons, rules  */
  --primary-dark:  #c45a22;
  --on-primary:    #16120f;   /* text on a primary background  */
  --link:          #f2955c;
  --highlight:     #f4c27b;

  --nav-bg:          #0d0a08;
  --nav-text:        #f1e6d4;
  --nav-hover-bg:    #1f1712;
  --nav-hover-text:  #ec7a3c;
  --nav-border:      2px solid #ec7a3c;
  --footer-text:     #a38f78;
  --footer-soft:     #cbb9a1;
  --footer-link:     #f2955c;
  --input-bg:        #211b16;
  --input-border:    #3a2f26;

  --card-border:        1px solid #2e251e;
  --card-shadow:        0 8px 24px rgba(0, 0, 0, 0.45);
  --card-shadow-hover:  0 10px 34px rgba(236, 122, 60, 0.2);
  --card-lift:          translateY(-3px);
  --panel-shadow:       0 12px 40px rgba(0, 0, 0, 0.5);
  --card-btn-bg:        transparent;
  --card-btn-text:      #ec7a3c;
  --card-btn-hover-bg:  #2a2019;
  --card-btn-hover-text:#f4c27b;

  --chip-bg:      #2a2019;
  --chip-border:  1px solid #3a2f26;
  --chip-text:    #f2955c;
  --divider:      1px solid #3a2f26;
  --strip-border: 1px solid #3a2f26;
  --h2-rule:      2px solid #ec7a3c;
  --h4-color:     #f4c27b;
  --stat-label:   #ec7a3c;
  --hero-bg:      #000;
  --print-bg:     #16120f;
  --print-fg:     #ec7a3c;
  --print-border: #ec7a3c;

  --radius:    4px;
  --radius-lg: 6px;

  /* A low ember glow at the top of every page */
  --page-image:        radial-gradient(ellipse 70% 520px at 50% 0, rgba(236, 122, 60, 0.13), transparent 70%);
  --page-image-size:   100% 640px;
  --page-image-repeat: no-repeat;

  --font-brand:   'Pirata One', 'Old English Text MT', serif;
  --font-heading: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label:   'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --heading-weight:    800;
  --label-weight:      700;
  --label-size:        1.05rem;
  --label-tracking:    1.5px;
  --tagline-style:     italic;
  --title-leading:     1.05;
  --recipe-title-size: 2.7rem;
  --card-title-size:   1.7rem;
}

/* ── Butcher Shop: white tile, chalkboard black, butcher red ── */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:            #ecebe6;
  --surface:       #fbf9f4;   /* butcher paper */
  --surface-2:     #ffffff;
  --line:          #d3cfc4;
  --text:          #1e1b18;
  --text-soft:     #4a443d;
  --muted:         #7b7368;
  --primary:       #a3231a;   /* butcher red */
  --primary-dark:  #7c1912;
  --on-primary:    #ffffff;
  --link:          #a3231a;
  --highlight:     #e9c8a0;   /* twine */

  --nav-bg:          #1e1b18; /* chalkboard */
  --nav-text:        #fbf9f4;
  --nav-hover-bg:    #000000;
  --nav-hover-text:  #e9c8a0;
  --nav-border:      5px solid #a3231a;
  --footer-text:     #b9b0a4;
  --footer-soft:     #d8d0c4;
  --footer-link:     #e9c8a0;
  --input-bg:        #ffffff;
  --input-border:    #55504a;

  /* Deli-label cards: a dark outline and a hard printed shadow */
  --card-border:        1.5px solid #1e1b18;
  --card-shadow:        5px 5px 0 rgba(30, 27, 24, 0.88);
  --card-shadow-hover:  7px 7px 0 rgba(30, 27, 24, 0.88);
  --card-lift:          translate(-2px, -2px);
  --panel-shadow:       7px 7px 0 rgba(30, 27, 24, 0.88);
  --card-btn-bg:        #a3231a;
  --card-btn-text:      #ffffff;
  --card-btn-hover-bg:  #7c1912;
  --card-btn-hover-text:#ffffff;

  /* Price-tag chips and dashed dividers */
  --chip-bg:      transparent;
  --chip-border:  1px dashed #4a443d;
  --chip-text:    #1e1b18;
  --divider:      1px dashed #4a443d;
  --strip-border: 1.5px dashed #1e1b18;
  --h2-rule:      3px solid #a3231a;
  --h4-color:     #a3231a;
  --stat-label:   #1e1b18;
  --hero-bg:      #d3cfc4;
  --print-bg:     #fbf9f4;
  --print-fg:     #1e1b18;
  --print-border: #1e1b18;

  --radius:    2px;
  --radius-lg: 2px;

  /* Faint white-tile grid */
  --page-image:        linear-gradient(rgba(30, 27, 24, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 27, 24, 0.045) 1px, transparent 1px);
  --page-image-size:   64px 32px;
  --page-image-repeat: repeat;

  --font-heading: 'Zilla Slab', Rockwell, Georgia, serif;
  --font-body:    'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label:   'Oswald', 'Arial Narrow', sans-serif;
  --heading-weight:    700;
  --label-weight:      500;
  --label-size:        0.95rem;
  --label-tracking:    1.5px;
  --tagline-style:     normal;
  --title-leading:     1.15;
  --recipe-title-size: 2.1rem;
  --card-title-size:   1.5rem;
}
