:root {
  color-scheme: light;
  --color-background: #f7f5f1;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-alt: rgba(255, 255, 255, 0.7);
  --color-text: #0e0e10;
  --color-muted: #4f505e;
  --color-accent: #c9a96d;
  --color-accent-strong: #5a6aa5;
  --color-stone-50: #f7f5f1;
  --color-stone-100: #e8e6ef;
  --color-stone-200: #d7d3e2;
  --color-stone-300: #c4c1d4;
  --color-copper: #c9a96d;
  --color-border: rgba(14, 14, 16, 0.08);
  --gradient-ember: linear-gradient(120deg, #c9a96d 0%, #b8a5d8 50%, #6c7ec9 100%);
  --gradient-light: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 241, 0.75) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(201, 169, 109, 0.8), rgba(122, 141, 200, 0.6));
  --gradient-aurora:
    radial-gradient(circle at 15% 18%, rgba(201, 169, 109, 0.38), transparent 58%),
    radial-gradient(circle at 82% 12%, rgba(129, 140, 248, 0.28), transparent 56%),
    radial-gradient(120% 160% at 18% 88%, rgba(120, 162, 200, 0.24), transparent 70%);
  --gradient-soft: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(232, 230, 239, 0.65));
  --font-sans: 'Poppins', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', 'Iowan Old Style', 'Times New Roman', serif;
  --max-width: 1120px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 24px 60px rgba(14, 14, 16, 0.12);
  --shadow-floating: 0 36px 90px rgba(14, 14, 16, 0.18);
  --transition: 220ms ease;
  --transition-slow: 800ms ease;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-background);
  background-image:
    radial-gradient(90% 140% at 12% 10%, rgba(201, 169, 109, 0.18), transparent 55%),
    radial-gradient(120% 140% at 88% 12%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(120% 160% at 15% 88%, rgba(108, 126, 201, 0.12), transparent 70%),
    linear-gradient(180deg, #fdfcfa 0%, var(--color-background) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body.theme-dark {
  color-scheme: dark;
  --color-background: #05060c;
  --color-surface: rgba(11, 15, 28, 0.9);
  --color-surface-alt: rgba(13, 18, 32, 0.8);
  --color-text: #f5f7ff;
  --color-muted: #c5cae5;
  --color-accent: #d6b278;
  --color-accent-strong: #8fb5ff;
  --color-border: rgba(255, 255, 255, 0.12);
  --gradient-ember: linear-gradient(130deg, #f0c27b 0%, #c084fc 48%, #60a5fa 100%);
  --gradient-light: linear-gradient(180deg, rgba(19, 23, 38, 0.95), rgba(6, 8, 16, 0.9));
  --gradient-accent: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(14, 165, 233, 0.45));
  --gradient-aurora:
    radial-gradient(circle at 15% 18%, rgba(236, 72, 153, 0.28), transparent 58%),
    radial-gradient(circle at 82% 12%, rgba(14, 165, 233, 0.25), transparent 56%),
    radial-gradient(120% 160% at 18% 88%, rgba(79, 70, 229, 0.32), transparent 70%);
  --gradient-soft: linear-gradient(150deg, rgba(9, 12, 22, 0.95), rgba(3, 5, 12, 0.9));
  background-color: var(--color-background);
  background-image:
    radial-gradient(120% 160% at 12% 10%, rgba(79, 70, 229, 0.24), transparent 55%),
    radial-gradient(120% 120% at 78% 8%, rgba(14, 165, 233, 0.22), transparent 60%),
    radial-gradient(120% 160% at 15% 88%, rgba(236, 72, 153, 0.15), transparent 70%),
    linear-gradient(180deg, #05060c 0%, #020309 100%);
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 3.2vw, 3.4rem);
}

h2 {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
}

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

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

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

.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
