/* ==========================================================================
   Karaft — Prestige Allure clone
   theme.css = design tokens + global resets + base typography + primitives.
   Component styles (header, footer, product card, buttons) live in common.css.
   Section layout lives in assets/sections/<name>.css (lazy-loaded).
   ========================================================================== */

:root {
  /* Palette (overridable via layout inline <style> from settings.*) */
  --color-bg: #EFEFEF;
  --color-surface: #FFFFFF;
  --color-text: #1C1C1C;
  --color-text-muted: #6E6E6E;
  --color-border: rgba(28, 28, 28, 0.12);
  --color-border-strong: rgba(28, 28, 28, 0.28);
  --color-placeholder: #D8D4CD;
  --color-dark: #1C1C1C;
  --color-dark-fg: #FFFFFF;
  --color-primary: #1C1C1C;
  --color-primary-fg: #FFFFFF;
  --color-sale: #B23A2E;

  /* Type */
  --font-heading: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1440px;
  --container-pad: 48px;
  --section-gap: 96px;
  --radius: 0px;

  /* Letter-spacing scale — Prestige leans on wide tracking for uppercase type */
  --track-eyebrow: 0.22em;
  --track-heading: 0.16em;
  --track-button: 0.18em;
  --track-nav: 0.12em;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font-family: inherit; cursor: pointer; }

ul, ol { list-style: none; padding: 0; margin: 0; }

select {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231C1C1C' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
  border: none;
  font-family: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Headings — uppercase, light weight, wide tracking (Prestige signature)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
}

h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: 56px; }

/* Eyebrow — tiny uppercase label above headings */
.kf-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

.kf-section-head { text-align: center; margin-bottom: 44px; }
.kf-section-head h2 { margin: 0; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger][data-revealed] > * { opacity: 1; transform: none; }
[data-reveal-stagger][data-revealed] > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger][data-revealed] > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger][data-revealed] > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger][data-revealed] > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { transition: none; opacity: 1; transform: none; }
}

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

:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Responsive container padding
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --container-pad: 32px; --section-gap: 72px; }
}
@media (max-width: 600px) {
  :root { --container-pad: 20px; --section-gap: 56px; }
  body { font-size: 14px; }
}
