:root {
  --bg-dark: #0a0a0a;
  --bg-surface: #1a1a2e;
  --accent-violet: #6a0dad;
  --accent-pink: #ff69b4;
  --accent-deep-violet: #8a2be2;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --ff-heading: 'Playfair Display', serif;
  --ff-body: 'Inter', sans-serif;
  --fs-h1: 3.052rem;
  --fs-h2: 2.441rem;
  --fs-h3: 1.953rem;
  --fs-h4: 1.563rem;
  --fs-h5: 1.25rem;
  --fs-h6: 1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-none: 0;
  --radius-card: 8px;
  --radius-modal: 12px;
  --shadow-glow: 0 0 15px rgba(106, 13, 173, 0.4);
  --surface-overlay: rgba(26, 26, 46, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none !important;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin: 0 0 var(--space-md) 0;
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 0;
}

blockquote {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-md);
  border-left: 4px solid var(--accent-violet);
  color: var(--text-muted);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
ul:last-child,
ol:last-child,
blockquote:last-child,
figure:last-child {
  margin-bottom: 0;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.card:hover::before {
  opacity: 1;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  color: var(--text-light);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-card);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.btn:hover {
  box-shadow: var(--shadow-glow);
}

.btn:active {
  filter: brightness(0.9);
}

.divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--accent-violet), var(--accent-pink));
  margin-block: var(--space-xl);
}

.nav-toggle {
  flex-direction: column;
}

.surface {
  background: var(--bg-surface);
  border-radius: var(--radius-none);
  padding: var(--space-xl);
}

.glass {
  background: var(--surface-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 48em) {
  .container {
    padding-inline: var(--space-md);
  }

  h1 {
    font-size: var(--fs-h2);
  }
  h2 {
    font-size: var(--fs-h3);
  }
  h3 {
    font-size: var(--fs-h4);
  }
  h4 {
    font-size: var(--fs-h5);
  }
  h5 {
    font-size: var(--fs-h6);
  }
  h6 {
    font-size: var(--fs-small);
  }
}