/* ============================================
   Angaara House — Design Tokens: wine, brass and ivory
   All colours, type, spacing and radii defined
   once as CSS custom properties.
   ============================================ */

/* --- Web Fonts --- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces/Fraunces-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans/InstrumentSans-Italic-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* --- Dark Theme (default): deep wine --- */
:root {
  --color-bg:             #17080B;
  --color-surface:        #251014;
  --color-surface-2:      #31171C;
  --color-text:           #F6EDE0;
  --color-text-muted:     #CBB5A6;
  --color-accent:         #D9AD5E;
  --color-accent-strong:  #EBC479;
  --color-text-on-accent: #22080C;
  --color-wine:           #571320;
  --color-wine-deep:      #3C0C15;
  --color-on-wine:        #F8EFE2;
  --color-on-wine-muted:  #E3CBBB;
  --color-wine-accent:    #E7C07A;
  --color-error:          #FF9D7E;
  --color-success:        #B4C895;
  --color-divider:        #4A262D;
  --color-field-border:   #8A5C62;
  --shadow-lift:          0 14px 34px -18px rgb(0 0 0 / 0.75);

  /* Typography */
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.5rem;     /* 40px */
  --text-5xl:  3rem;       /* 48px */

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Spacing — 8px grid */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.5rem;    /* 24px */
  --space-6:  2rem;      /* 32px */
  --space-7:  3rem;      /* 48px */
  --space-8:  4rem;      /* 64px */
  --space-9:  6rem;      /* 96px */
  --space-10: 8rem;      /* 128px */

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max: 2200px;
  --gutter: clamp(1rem, 4vw, 4rem); /* one side space for header, hero, pages and footer */
  --grid-columns:  12;
  --grid-gap:      var(--space-5);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* --- Light Theme: ivory and dark red --- */
[data-theme="light"] {
  --color-bg:             #F3ECE0;
  --color-surface:        #FCF8F0;
  --color-surface-2:      #EDE3D3;
  --color-text:           #2B0E13;
  --color-text-muted:     #6B4A4C;
  --color-accent:         #7D1527;
  --color-accent-strong:  #5E0E1C;
  --color-text-on-accent: #FFF6EA;
  --color-error:          #A33A0C;
  --color-success:        #3D5C2E;
  --color-divider:        #D5C3AE;
  --color-field-border:   #9A8070;
  --shadow-lift:          0 14px 34px -20px rgb(60 12 21 / 0.45);
}

/* Anything sitting on a dark photo keeps the dark palette in both themes */
.on-photo {
  --color-bg:             #17080B;
  --color-surface:        #251014;
  --color-text:           #F6EDE0;
  --color-text-muted:     #E4D6CA;
  --color-accent:         #E0B668;
  --color-accent-strong:  #EFCB85;
  --color-text-on-accent: #22080C;
  --color-success:        #B4C895;
  --color-divider:        #6E4A4F;
  color: var(--color-text);
}

/* Deep red bands, the same in both themes */
.on-wine {
  --color-bg:             var(--color-wine);
  --color-surface:        var(--color-wine-deep);
  --color-text:           var(--color-on-wine);
  --color-text-muted:     var(--color-on-wine-muted);
  --color-accent:         var(--color-wine-accent);
  --color-accent-strong:  #F3D597;
  --color-text-on-accent: #2A070D;
  --color-divider:        #8A3B48;
  background: var(--color-wine);
  color: var(--color-text);
}
