/* ============================================================
   AARNA — main.css
   Design tokens, CSS reset, base element styles
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Colours — unchanged brand palette (warm gold / champagne) */
  --color-primary:        #8B6914;
  --color-primary-light:  #C4972A;
  --color-primary-dark:   #5C440C;
  --color-accent:         #F5E6C8;
  --color-surface:        #FDFAF5;
  --color-dark:           #1A1209;
  --color-muted:          #6B5D4F;
  --color-border:         #E8D9C0;
  --color-white:          #FFFFFF;
  --color-success:        #2D6A4F;
  --color-error:          #B5281A;
  --color-overlay:        rgba(26, 18, 9, 0.65);

  /* Surfaces added for redesign (glass nav, dark-on-dark cards) */
  --glass-light:          rgba(253, 250, 245, 0.82);
  --glass-dark:           rgba(26, 18, 9, 0.55);
  --shadow-glow:          0 8px 32px rgba(139, 105, 20, 0.28);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(139, 105, 20, 0.10), 0 1px 2px rgba(139, 105, 20, 0.06);
  --shadow-md:  0 4px 6px rgba(139, 105, 20, 0.08), 0 2px 4px rgba(139, 105, 20, 0.06);
  --shadow-lg:  0 10px 15px rgba(139, 105, 20, 0.10), 0 4px 6px rgba(139, 105, 20, 0.05);
  --shadow-xl:  0 20px 25px rgba(139, 105, 20, 0.10), 0 10px 10px rgba(139, 105, 20, 0.04);

  /* Z-Index */
  --z-below:   -1;
  --z-base:     0;
  --z-above:    10;
  --z-sticky:   100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-dark);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ---- Focus Styles ---- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

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