/* =====================================================================
 * DreamyCore26 — Global UI/UX Preset (tokens + reset + primitives)
 * - Keep this brand foundation stable; modules layer on top.
 * =================================================================== */

:root {
  /* Brand tokens (namespaced) */
  --dreamy26-bg: #F8F8F8;
  --dreamy26-ink: #333333;
  --dreamy26-ink2: #555555;
  --dreamy26-ink3: #e5e5e5;
  --dreamy26-inkA: #767676;

  --dreamy26-shadow-ground: radial-gradient(closest-side, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0) 100%);
  --dreamy26-ease: cubic-bezier(0.23, 1, 0.32, 1);

  --dreamy26-font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --dreamy26-font-edit: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Layout */
  --dreamy26-container: 1400px;
  --dreamy26-gutter: 16px;

  /* Components */
  --dreamy26-radius-lg: 22px;
  --dreamy26-radius-md: 16px;
  --dreamy26-radius-pill: 999px;
  --dreamy26-border: 1px solid rgba(0, 0, 0, 0.10);

  /* Sticky offset is computed by JS based on header height */
  --dreamy26-sticky-offset: 0px;

  /* Gold / amber accent — product identity system */
  --dp26-gold:        #DAA520;
  --dp26-gold-dark:   #9A6F00;
  --dp26-gold-bg:     rgba(218, 165, 32, 0.10);
  --dp26-gold-border: rgba(218, 165, 32, 0.28);
  --dp26-gold-rule:   rgba(218, 165, 32, 0.30);
  --dp26-gold-halo:   rgba(218, 165, 32, 0.18);

  /* Sage green accent — Ambrelo secondary system */
  --dreamy26-sage:        #9BBBA6;
  --dreamy26-sage-dark:   #5E8A72;
  --dreamy26-sage-bg:     rgba(155, 187, 166, 0.12);
  --dreamy26-sage-border: rgba(155, 187, 166, 0.38);

  /* Ink scale — secondary & quiet text */
  --dreamy26-ink-muted:  rgba(0, 0, 0, 0.55);  /* secondary body copy */
  --dreamy26-ink-quiet:  rgba(0, 0, 0, 0.38);  /* placeholder, captions */

  /* Shadow scale (3 levels) */
  --dreamy26-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --dreamy26-shadow-md:  0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.07);
  --dreamy26-shadow-lg:  0 2px 8px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.12);

  /* Z-index scale — all stacking contexts must use these */
  --z-base:     1;
  --z-raised:   10;
  --z-sticky:   100;
  --z-dropdown: 1000;
  --z-modal:    9000;
  --z-overlay:  9990;
  --z-toast:    9999;

  /* Backwards-compatible aliases used by earlier modules */
  --bg-canvas: var(--dreamy26-bg);
  --ink-primary: var(--dreamy26-ink);
  --ink-secondary: var(--dreamy26-ink2);
  --ink-light: var(--dreamy26-ink3);
  --shadow-ground: var(--dreamy26-shadow-ground);
  --anim-physics: var(--dreamy26-ease);
  --font-ui: var(--dreamy26-font-ui);
  --font-edit: var(--dreamy26-font-edit);
}

/* --------------------
 * Reset
 * ------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@supports (overflow-x: clip) {

  html,
  body {
    overflow-x: visible;
  }

  body {
    overflow-x: clip;
    line-height: 1.75;
    letter-spacing: -0.012em;
    font-weight: 400;
  }
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  background: var(--dreamy26-bg);
  color: var(--dreamy26-ink);
  font-family: var(--dreamy26-font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Calm focus states (accessible, not noisy) */
:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.28);
  outline-offset: 3px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------
 * Layout helpers
 * ------------------ */
.dreamy26-container {
  width: min(100%, var(--dreamy26-container));
  margin-inline: auto;
  padding-inline: var(--dreamy26-gutter);
}

.dreamy26-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WooCommerce / WordPress a11y class (prevents SR-only price text leaking into UI) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

/* --------------------
 * Buttons / inputs
 * ------------------ */
.dreamy26-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--dreamy26-radius-pill);
  border: var(--dreamy26-border);
  background: rgba(255, 255, 255, 0.80);
  color: var(--dreamy26-ink);
  font-family: var(--dreamy26-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.dreamy26-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.dreamy26-btn--primary {
  background: linear-gradient(105deg, #C8960C 0%, #DAA520 30%, #F0C840 55%, #DAA520 75%, #B8860B 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  color: #333333;
  border-color: rgba(154, 111, 0, 0.60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 3px 10px rgba(218, 165, 32, 0.18);
  transition: transform .18s ease, background-position 0.38s ease, box-shadow .22s ease;
}

.dreamy26-btn--primary:hover {
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(218, 165, 32, 0.32);
  transform: translateY(-1px);
}

.dreamy26-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--dreamy26-radius-md);
  border: var(--dreamy26-border);
  background: #fff;
  color: var(--dreamy26-ink);
  font-family: var(--dreamy26-font-ui);
  font-size: 0.95rem;
}

.dreamy26-input::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

/* --------------------
 * Announcement bar
 * ------------------ */
.dreamy26-announcement {
  position: relative;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dreamy26-announcement__inner {
  width: min(100%, var(--dreamy26-container));
  margin-inline: auto;
  padding: 10px var(--dreamy26-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dreamy26-announcement__text {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
}

.dreamy26-announcement__link {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dreamy26-ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  padding-bottom: 2px;
}


/* --------------------
 * Layout wrappers
 * ------------------ */
.dreamy26-page {
  width: 100%;
}

.dreamy26-page-inner {
  max-width: var(--dreamy26-container);
  margin: 0 auto;
  padding: 0 var(--dreamy26-gutter);
  width: 100%;
}

.dreamy26-container {
  max-width: var(--dreamy26-container);
  margin: 0 auto;
  padding: 0 var(--dreamy26-gutter);
  width: 100%;
}

.dreamy26-stack>*+* {
  margin-top: 16px;
}


/* =====================================================================
 * DreamyCore26 — Museum Card Stage (sitewide primitive)
 * Class: .dreamy26-pcardStage
 * - Subtle plate + soft border + grounded shadow
 * - Safe for <li>, <article>, <a> wrappers
 * =================================================================== */
.dreamy26-pcardStage {
  position: relative;
  border-radius: var(--dreamy26-radius-lg, 22px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(5, 5, 5, 0.08);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: translateZ(0);
}

.dreamy26-pcardStage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.045), rgba(5, 5, 5, 0.012));
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}

.dreamy26-pcardStage>* {
  position: relative;
  z-index: 1;
}

/* --------------------
 * Form validation states
 * ------------------ */
.dreamy26-input.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: rgba(220, 38, 38, 0.55) !important;
  background: rgba(220, 38, 38, 0.02) !important;
}

.dreamy26-field-error {
  display: block;
  font-size: 0.75rem;
  color: #c53030;
  margin-top: 4px;
  line-height: 1.4;
}

/* Hover polish — only when a pointer exists */
@media (hover:hover) and (pointer:fine) {
  .dreamy26-pcardStage:hover {
    border-color: rgba(5, 5, 5, 0.12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
}