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

:root {
  /* Brand tokens (namespaced) */
  --dreamy26-bg: #ffffff;
  --dreamy26-ink: #050505;
  --dreamy26-ink2: #757575;
  --dreamy26-ink3: #e5e5e5;
  --dreamy26-inkA: #999999;

  --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: 'Playfair Display', 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;

  /* 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%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
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;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
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: var(--dreamy26-ink);
  color: #fff;
  border-color: rgba(0,0,0,0.75);
}

.dreamy26-btn--primary:hover {
  background: rgba(0,0,0,0.92);
}

.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;
}

/* 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;
  }
}
