:root {
  --bg-deep: #0B0E14;
  --bg-gradient-warm: linear-gradient(135deg, #1A1F2B 0%, #2A1E2E 50%, #0B0E14 100%);
  --glass-surface: rgba(255, 255, 255, 0.08);
  --glass-surface-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #F2F0EB;
  --text-secondary: #B8B4AC;
  --accent-amber: #E6B450;
  --accent-teal: #5E9E9A;
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-diffuse: 0 8px 32px rgba(0, 0, 0, 0.4);
  --highlight-inner: inset 0 1px 0 rgba(255, 255, 255, 0.1);

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  --leading-xs: 1.4;
  --leading-sm: 1.5;
  --leading-base: 1.6;
  --leading-lg: 1.6;
  --leading-xl: 1.5;
  --leading-2xl: 1.4;
  --leading-3xl: 1.3;
  --leading-4xl: 1.2;
  --leading-5xl: 1.1;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --container-max: 1200px;
  --container-pad-mobile: 1.5rem;
  --container-pad-tablet: 2rem;
  --container-pad-desktop: 3rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --transition-fast: 200ms ease-out;
  --transition-opacity: 300ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image: var(--bg-gradient-warm);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, var(--text-5xl));
  line-height: var(--leading-5xl);
  margin-block-end: var(--space-md);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, var(--text-3xl));
  line-height: var(--leading-3xl);
  margin-block-end: var(--space-sm);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, var(--text-2xl));
  line-height: var(--leading-2xl);
  margin-block-end: var(--space-xs);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  margin-block-end: var(--space-2xs);
}

h5 {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  margin-block-end: var(--space-2xs);
}

h6 {
  font-size: var(--text-base);
  line-height: var(--leading-base);
  margin-block-end: var(--space-2xs);
}

p {
  margin-block-end: var(--space-sm);
  overflow-wrap: break-word;
}

blockquote {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--accent-teal);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  color: var(--text-primary);
}

blockquote p {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-md);
}

figcaption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-block-start: var(--space-2xs);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin-block: var(--space-lg);
}

address {
  font-style: normal;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-mobile);
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-pad-tablet);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-pad-desktop);
  }
}

.glass-panel {
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-diffuse), var(--highlight-inner);
}

.glass-panel--strong {
  background: var(--glass-surface-strong);
}

.glass-panel--hover {
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.glass-panel--hover:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    var(--highlight-inner);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: var(--space-2xs) var(--space-md);
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--highlight-inner);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  background: var(--glass-surface-strong);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-diffuse),
    var(--highlight-inner);
}

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

.btn--primary {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: #f0c46a;
  border-color: #f0c46a;
  color: var(--bg-deep);
}

.btn--sm {
  min-height: 36px;
  padding: var(--space-3xs) var(--space-sm);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-3xs) var(--space-sm);
  min-height: 28px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tag--amber {
  color: var(--accent-amber);
  border-color: rgba(230, 180, 80, 0.3);
}

.tag--teal {
  color: var(--accent-teal);
  border-color: rgba(94, 158, 154, 0.3);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-amber);
  overflow: hidden;
  background: var(--glass-surface);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.media-frame {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-diffuse), var(--highlight-inner);
  background: var(--glass-surface);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-amber);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

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

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

::selection {
  background: rgba(230, 180, 80, 0.35);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.content-list {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-md);
}

.content-list li {
  margin-block-end: var(--space-2xs);
  padding-inline-start: var(--space-2xs);
  position: relative;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md));
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-amber);
}

.content-list li:last-child {
  margin-block-end: 0;
}

.content-list--teal li::before {
  background: var(--accent-teal);
}

.content-list--disc li::before {
  border-radius: var(--radius-full);
  background: transparent;
  border: 2px solid var(--accent-amber);
  width: 8px;
  height: 8px;
  left: calc(-1 * var(--space-md) - 1px);
  top: 0.55em;
}

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