@layer reset, tokens, ambient, base, layout, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
  }

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

  body {
    margin: 0;
    min-block-size: 100dvh;
    line-height: 1.6;
  }

  img,
  picture,
  svg,
  canvas {
    display: block;
    max-inline-size: 100%;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  figure,
  blockquote {
    margin: 0;
  }
}

@layer tokens {
  :root {
    /* ZY Brand Palette */
    --color-navy: #232b4e;
    --color-navy-dark: #181f3a;
    --color-teal: #6ab8b9;
    --color-teal-deep: #3d8b8d;
    --color-teal-light: #82c8c9;
    --color-teal-soft: #d9efef;

    /* Calming Eucalyptus & Linen Surfaces */
    --color-bg-base: #f3faf9;
    --color-bg-mist: #e6f3f2;
    --color-surface: #fafdfc;
    --color-white: #ffffff;

    /* Ink & Semantic Tokens */
    --color-ink-heading: #1c2340;
    --color-ink-body: #46516e;
    --color-ink-muted: #5e6b85;
    --color-gold: #e5a93b;
    --color-whatsapp: #1e9e50;
    --color-whatsapp-hover: #178342;
    --color-error: #b92b27;
    --color-error-bg: #fdecec;
    --color-success: #187a42;

    /* Translucent Frosted Glass */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-bg-strong: rgba(255, 255, 255, 0.92);
    --glass-bg-soft: rgba(250, 253, 252, 0.72);
    --glass-border: rgba(106, 184, 185, 0.28);
    --glass-border-strong: rgba(35, 43, 78, 0.14);

    /* Typography */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-script: 'Caveat', cursive;

    /* Type Scale */
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.65rem, 1.35rem + 1.3vw, 2.35rem);
    --text-hero: clamp(2.15rem, 1.55rem + 2.4vw, 3.45rem);

    /* Layout & Spacing */
    --container-max: 75rem;
    --section-space: clamp(3.5rem, 2.5rem + 4vw, 6.25rem);
    --radius-sm: 0.75rem;
    --radius-md: 1.125rem;
    --radius-lg: 1.625rem;
    --radius-pill: 9999px;

    /* Depth & Focus */
    --shadow-soft: 0 12px 32px -12px rgba(24, 31, 58, 0.12), 0 2px 8px rgba(61, 139, 141, 0.08);
    --shadow-card: 0 18px 42px -16px rgba(24, 31, 58, 0.14), 0 1px 4px rgba(24, 31, 58, 0.06);
    --shadow-float: 0 22px 54px -18px rgba(24, 31, 58, 0.24);
    --focus-ring: 0 0 0 3px rgba(106, 184, 185, 0.45);
  }
}
