/* ============================================================
   CUFF JEWELLERY — CENTRAL DESIGN SYSTEM
   All visual decisions live here. HTML references only variables.
   ============================================================ */


/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary:       #2c4c3b;
  --color-primary-hover: #3d6b55;
  --color-bg:            #f5f0e8;
  --color-surface:       #ede8df;
  --color-surface-dark:  #e4ddd4;
  --color-accent:        #b8965a;
  --color-accent-light:   #cead78;
  --color-accent-strong:  #9e7a41;   /* gold on cream/surface — passes WCAG AA large text (≥3:1) */
  --color-accent-text:    #7d6336;   /* gold on light backgrounds — passes WCAG AA body text (≥4.5:1) */
  --color-text:           #1e1e1e;
  --color-muted:          #7a7570;
  --color-reversed:       #f5f0e8;
  --color-border:         #ddd8d0;

  /* ── Opacity scale (5-step, named by value) ── */
  --op-08: 0.08;   /* decorative / texture / barely-there */
  --op-16: 0.16;   /* background markers / faint borders */
  --op-35: 0.35;   /* secondary / placeholder / disabled */
  --op-50: 0.50;   /* readable secondary text */
  --op-70: 0.70;   /* de-emphasized but legible text */

  /* ── RGB companions — compose with opacity scale: rgba(var(--color-*-rgb), var(--op-XX)) ── */
  --color-primary-rgb:   44, 76, 59;
  --color-accent-rgb:    184, 150, 90;
  --color-reversed-rgb:  245, 240, 232;
  --color-text-rgb:      30, 30, 30;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Type scale */
  --text-hero:   clamp(56px, 8vw, 96px);
  --text-h1:     clamp(36px, 5vw, 52px);
  --text-h2:     clamp(30px, 4vw, 42px);
  --text-h3:     clamp(22px, 3vw, 30px);
  --text-accent: clamp(18px, 2vw, 22px);
  --text-body:   16px;
  --text-small:  14px;
  --text-label:  12px;

  /* Weights */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  /* Layout */
  --max-width:    1200px;
  --gutter:       clamp(24px, 5vw, 80px);

  /* Shape */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --duration:  0.4s;

  /* Dividers */
  --divider-gold:  1px solid var(--color-accent);
  --divider-green: 1px solid var(--color-primary);
  --divider-muted: 1px solid var(--color-border);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── GRAIN TEXTURE ───────────────────────────────────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-2xl);
}

/* ── TYPOGRAPHY CLASSES ──────────────────────────────────────── */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  line-height: 1.1;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: 1.2;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: 1.3;
}

.t-accent {
  font-family: var(--font-display);
  font-size: var(--text-accent);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--color-accent);
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.75;
  color: var(--color-muted);
}

.t-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.t-small {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-muted);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-reversed);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-reversed);
}

.btn-gold {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-gold:hover {
  background: var(--color-accent);
  color: var(--color-reversed);
}

.btn-ghost {
  background: transparent;
  color: rgba(var(--color-reversed-rgb), var(--op-35));
  border-color: rgba(var(--color-reversed-rgb), var(--op-35));
  padding-inline: 0;
  letter-spacing: 0.15em;
}
.btn-ghost:hover { color: var(--color-accent); border-color: transparent; }

/* ── DIVIDERS ─────────────────────────────────────────────────── */
.divider        { border: none; border-top: var(--divider-muted); }
.divider-gold   { border: none; border-top: var(--divider-gold); }
.divider-green  { border: none; border-top: var(--divider-green); }

/* ── CARD BASE ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out);
}
.card:hover { transform: translateY(-4px); }

/* ── SECTION LABELS ──────────────────────────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}



/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.35s; }
.anim-delay-4 { animation-delay: 0.5s; }
.anim-delay-5 { animation-delay: 0.65s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding-block: var(--space-xl); }
}
