/* ── AURA — Base Styles ─────────────────────────────── */
/* Design system: Lustro-inspired — luxury e-commerce, high-contrast, editorial */

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

:root {
  /* ── Colour palette ── */
  --burgundy: #5C061C;
  --burgundy-hover: #4a0516;
  --cream-dark: #f8eeda;
  --cream-base: #FAF5EC;
  --cream-pearl: #FFFDF9;
  --cream-latte: #e9d5b6;
  --cream-coffee: #977b56;
  --cream-alabaster: #F5EFEB;
  --text-dark: #2D1B1E;
  --text-dark-accent: #2d1b1e9a;
  --color-text-light: #2d1b1e7a;
  --box-shadow: #77777759;
 

  /* Semantic Alerts */
  --success-dark: #3D5A45;
  --success-light: #E8EFEA;
  --warning-dark: #AC711B;
  --warning-light: #FBF4E7;
  --error-dark: #922B3E;
  --error-light: #F9EAEB;

  /* Muted Text Helpers */
  --text-muted: #5a4b4d;
  --text-light: #8e7a7c;

  /* ── Spacing ─────────────────────────────────────── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 112px;

  /* Responsive font sizes (clamp) */
  --fs-hero: clamp(2.5rem, 12vw, 5rem);  /* 40px to 80px */
  --fs-h1: clamp(2rem, 8vw, 3rem);     /* 32px to 48px */
  --fs-h2: clamp(1.75rem, 6vw, 2.5rem); /* 28px to 40px */
  --fs-h3: clamp(1.5rem, 5vw, 2rem);    /* 24px to 32px */
  --fs-h4: clamp(1.25rem, 4vw, 1.75rem);/* 20px to 28px */
  --fs-body: clamp(1rem, 2vw, 1.125rem); /* 16px to 18px */

  /* ── Radii — none / minimal ──────────────────────── */
  --radius: 0;
  --radius-lg: 0;
  --radius-sm: 0;

  /* ── Shadows — minimal ───────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* ── Layout ──────────────────────────────────────── */
  --max-width: 1600px;
  --max-width-narrow: 680px;

  /* ── Typography ──────────────────────────────────── */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ── Transitions ─────────────────────────────────── */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.3s;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream-base);
  font-size: var(--fs-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  letter-spacing: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-text-light);
  text-decoration: none;
  margin-top: var(--space-lg, 1.5rem);
  margin-bottom: var(--space-lg, 1.5rem);
}

.back-link:hover { color: var(--text-dark); }

.form-message {
 margin-bottom: var(--space-lg); 
 padding: var(--space-md) var(--space-lg); 
 color: var(--text-dark); 
 font-size: 14px; 
 background: var(--cream-latte);
}

.form-message.success {
  color: var(--success-dark);
  background: var(--success-light);
}

.form-message.warning {
  color: var(--warning-dark);
  background: var(--warning-light);
}

.form-message.error {
  color: var(--error-dark);
  background: var(--error-light);
}

/* ── Toasts / Notifications ─────────────────────────── */

.toast-container {
  position: fixed;
  top: 104px; /* Default --header-height fallback */
  top: calc(var(--header-height, 104px) + var(--space-md));
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none; /* Let clicks pass through to content behind gaps */
  max-width: 400px;
}

.toast {
  pointer-events: auto; /* Enable clicks for the toast itself */
  min-width: 280px;
  background: var(--cream-pearl);
  color: var(--text-dark);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  animation: toast-in 0.4s var(--ease) both;
}

.toast-content {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-top: -2px;
}
.toast-close:hover { color: var(--text-dark); }

/* Semantic Toast States */
.toast--success {
  background: var(--success-light);
  color: var(--success-dark);
}

.toast--error, 
.toast--danger {
  background: var(--error-light);
  color: var(--error-dark);
}

.toast--warning {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.toast--info {
  background: var(--cream-alabaster);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Links ────────────────────────────────────────── */

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--text-muted);
}

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

/* ── Typography ──────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.16;
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.96px;
  line-height: 1.16;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.8px;
  line-height: 1.2;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.64px;
  line-height: 1.25;
}

h4 {
  font-size: var(--fs-h4);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.56px;
  line-height: 1.14;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.lead {
  font-size: 1.15em;
  margin-bottom: var(--space-xl);
}

.space-section {
  margin-top: var(--space-3xl);
}

/* ── Micro-label ──────────────────────────────────── */

.label-micro {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--text-dark-accent);
  font-family: var(--font-sans);
}

/* ── Container ───────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* ── Main content ────────────────────────────────────── */

.main-content {
  flex: 1;
  padding: var(--header-height, 104px) 0 var(--space-3xl);
}

.inner-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.inner-content h1 {
  margin-bottom: var(--space-lg);
}
/* ── Selection ───────────────────────────────────────── */

::selection {
  background: var(--text-dark);
  color: var(--cream-base);
}

/* ── Responsive typography ───────────────────────────── */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}
