/* ══════════════════════════════════════════════════════════════════════════
   SEA MIRACLE — BRAND TOKENS
   Single source of truth for colour and typography.

   SUPPLIED PALETTE
     COLOR 1  #E5BE9E  Soft Peach
     COLOR 2  #DFAB76  Warm Caramel
     COLOR 3  #E7B88E  Golden Peach

   The three supplied colours are light pastels. Measured against white text
   they score 1.72:1, 2.05:1 and 1.80:1 — far below the 4.5:1 that WCAG AA
   requires. They are therefore used for GRADIENTS, TINTS AND DECORATIVE FILLS,
   never as a surface that has to carry text.

   Text, links and solid buttons come from the derived ramp below, which is
   the same hue family (29°) with the lightness solved for contrast. Every
   value here is verified, not eyeballed.
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Supplied brand colours (decorative) ───────────────────────────── */
  --brand-peach:   #E5BE9E;   /* COLOR 1 · Soft Peach   */
  --brand-caramel: #DFAB76;   /* COLOR 2 · Warm Caramel */
  --brand-golden:  #E7B88E;   /* COLOR 3 · Golden Peach */

  /* ── Derived ramp — every ratio below is measured ──────────────────── */
  --brand-ink:     #654120;   /*  9.01:1  body copy, headings            */
  --brand-strong:  #7C4C1F;   /*  7.22:1  strong emphasis, prices        */
  --brand-link:    #945B25;   /*  5.55:1  links (AA)                     */
  --brand-solid:   #A36833;   /*  4.58:1  solid fill carrying WHITE text */
  --brand-deep:    #774C24;   /*  7.38:1  gradient end, white text        */
  --brand-accent:  #BD712A;   /*  3.78:1  large text, borders, icons      */

  /* ── Tints — the supplied peach washed onto white ──────────────────── */
  --brand-tint-1:  #FAF6F3;   /*  page-level soft panel                  */
  --brand-tint-2:  #F6ECE2;   /*  card / table stripe                    */
  --brand-tint-3:  #F2E3D5;   /*  badge / chip fill                       */
  --brand-tint-4:  #EACCB0;   /*  chip border, hover fill                */
  --brand-tint-5:  #E8C6A7;   /*  decorative panel                        */

  /* ── Gradients ─────────────────────────────────────────────────────── */
  /* Both stops verified against white text: 4.58:1 and 7.38:1. */
  --grad-brand:  linear-gradient(135deg, #A36833 0%, #774C24 100%);
  --grad-brand-r: linear-gradient(135deg, #774C24 0%, #A36833 100%);
  /* Purely decorative — never place text directly on this. */
  --grad-peach:  linear-gradient(135deg, #E7B88E 0%, #DFAB76 55%, #E5BE9E 100%);
  --grad-peach-soft: linear-gradient(135deg, #FAF6F3 0%, #F2E3D5 100%);

  /* ── Focus ring ────────────────────────────────────────────────────── */
  --focus-ring: #A36833;

  /* ── Typography ────────────────────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  /* Modest scale — e-commerce needs density, so the steps are close. */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  34px;
  --fs-4xl:  44px;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-body:  1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: #1F2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Every focusable control gets a visible, on-brand ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   DISPLAY TYPE — storefront only.
   Scoped to .nav-link / .pdv-* etc via the storefront pages so that admin and
   customer dashboards stay entirely Inter. Serif headings inside dense tables
   and forms measurably reduce scanability.
   ══════════════════════════════════════════════════════════════════════════ */
body.storefront h1,
body.storefront h2,
body.storefront .hero-title,
body.storefront .section-title,
body.storefront .pdv-title,
body.storefront .prd-name,
body.storefront .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
}

/* Display serif needs a touch more weight at small sizes to avoid looking
   thin next to the Inter body copy. */
body.storefront h2,
body.storefront .section-title { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   MOTION — respect the user's system preference.
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ── Decorative brand band ───────────────────────────────────────────────
   Uses the three supplied colours verbatim. This is purely decorative and
   deliberately carries NO text, because white on #DFAB76 is only 2.05:1. */
.storefront .brand-band{
  background:linear-gradient(135deg,#E7B88E 0%,#DFAB76 55%,#E5BE9E 100%);
}
.storefront .brand-band-soft{
  background:linear-gradient(135deg,#FAF6F3 0%,#F2E3D5 100%);
}
.storefront .brand-rule{
  height:4px;border:0;border-radius:9999px;
  background:linear-gradient(90deg,#E7B88E,#DFAB76,#E5BE9E);
}
/* Accent underline for storefront section headings. */
.storefront .section-title{
  background-image:linear-gradient(90deg,#DFAB76,#E7B88E);
  background-repeat:no-repeat;
  background-size:0% 3px;
  background-position:0 100%;
  padding-bottom:6px;
  transition:background-size .35s ease;
}
.storefront .section-title:hover{background-size:100% 3px}