:root {
  --aubergine-900: #2D1B2E;
  --aubergine-700: #3E2438;
  --copper-500: #B87333;
  --copper-300: #D19A66;
  --cream-100: #F5E6D3;
  --cream-50: #FDF6EE;
  --smoke-500: #6B5B6B;
  --smoke-700: #4A3B4A;
  --cream-200: #EDE0D0;
  --white: #FFFFFF;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Segoe UI", sans-serif;

  --text-display: clamp(2.5rem, 5vw, 3.5rem);
  --text-h1: clamp(2rem, 4vw, 2.5rem);
  --text-h2: clamp(1.625rem, 3vw, 2rem);
  --text-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.25;
  --leading-h3: 1.3;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --leading-caption: 1.4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  --container-max: 1200px;
  --container-pad-desktop: 3rem;
  --container-pad-mobile: 1.5rem;
  --section-space-desktop: 6rem;
  --section-space-mobile: 4rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.35);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --focus-ring: 0 0 0 3px rgba(209, 154, 102, 0.5);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--cream-100);
  background-color: var(--aubergine-900);
  min-height: 100vh;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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(--copper-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--copper-300);
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--cream-50);
  font-weight: 600;
  line-height: var(--leading-h1);
  margin-block-end: var(--space-4);
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
}

h4,
h5,
h6 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

p {
  margin-block-end: var(--space-4);
  line-height: var(--leading-body);
}

p:last-child {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--copper-500);
  color: var(--cream-100);
  font-style: italic;
}

blockquote:last-child {
  margin-block-end: 0;
}

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

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--smoke-500);
  margin-block-start: var(--space-2);
}

address {
  font-style: normal;
}

hr {
  border: none;
  border-block-start: 1px solid var(--smoke-500);
  margin-block: var(--space-6);
}

small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

strong {
  font-weight: 700;
  color: var(--cream-50);
}

em {
  font-style: italic;
}

code,
pre {
  font-family: "SF Mono", "Cascadia Code", monospace;
  font-size: var(--text-small);
}

pre {
  background-color: var(--aubergine-700);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-block-end: var(--space-4);
}

pre:last-child {
  margin-block-end: 0;
}

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

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

.section {
  padding-block: var(--section-space-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--section-space-desktop);
  }
}

.surface-card {
  background-color: var(--aubergine-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.surface-card > :last-child {
  margin-block-end: 0;
}

.surface-light {
  background-color: var(--cream-200);
  color: var(--smoke-700);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.surface-light > :last-child {
  margin-block-end: 0;
}

.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light h4,
.surface-light h5,
.surface-light h6 {
  color: var(--smoke-700);
}

.surface-light a {
  color: var(--copper-500);
}

.surface-light a:hover {
  color: var(--copper-300);
}

.surface-light strong {
  color: var(--smoke-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--copper-500);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--copper-500);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--copper-300);
  border-color: var(--copper-300);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cream-100);
  border-color: var(--smoke-500);
}

.btn-secondary:hover {
  background-color: var(--aubergine-700);
  border-color: var(--copper-300);
  color: var(--copper-300);
}

.btn-ghost {
  background-color: transparent;
  color: var(--copper-500);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: transparent;
  border-color: transparent;
  color: var(--copper-300);
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
  }
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-100);
  margin-block-end: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--aubergine-900);
  border: 1px solid var(--smoke-500);
  border-radius: var(--radius-md);
  color: var(--cream-100);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--smoke-500);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--copper-500);
  box-shadow: var(--focus-ring);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B87333' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  margin-block-end: var(--space-4);
}

.form-group:last-child {
  margin-block-end: 0;
}

.form-hint {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--smoke-500);
  margin-block-start: var(--space-1);
}

.form-error {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: #e05252;
  margin-block-start: var(--space-1);
}

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

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

.content-list li {
  margin-block-end: var(--space-2);
}

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

.content-list-unstyled {
  list-style: none;
  padding-inline-start: 0;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  background-color: var(--copper-500);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--white);
}

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

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-muted {
  color: var(--smoke-500);
}

.text-accent {
  color: var(--copper-500);
}

.rule-accent {
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--copper-500);
  border-radius: var(--radius-sm);
  margin-block-end: var(--space-4);
}

.rule-accent-center {
  margin-inline: auto;
}

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

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}