:root {
  --color-sky: #8fafb9;
  --color-petrol: #247783;
  --color-seafoam: #4b9ba6;
  --color-ice: #e1e6ea;

  --font-family-sans: "Avenir Next", "Fira Sans", "Segoe UI", sans-serif;
  --font-family-serif: "Cormorant Garamond", "Merriweather", serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2.25rem;

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

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 999px;

  --shadow-soft: 0 12px 24px rgba(36, 119, 131, 0.18);
  --shadow-focus: 0 0 0 3px rgba(36, 119, 131, 0.35);

  --transition-snappy: 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-night);
  background: var(--color-ice);
}

.ds-heading {
  font-family: var(--font-family-serif);
  letter-spacing: 0.02em;
}

.ds-font-sans {
  font-family: var(--font-family-sans);
}

.ds-font-serif {
  font-family: var(--font-family-serif);
}

.ds-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
}

.ds-section {
  margin-bottom: var(--space-2xl);
}

.ds-section h2 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xxl);
  color: var(--color-petrol);
}

.ds-lead {
  font-size: var(--font-size-lg);
  color: color-mix(in srgb, var(--color-night) 70%, white 30%);
  margin-bottom: var(--space-xl);
  max-width: 60ch;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  border: none;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform var(--transition-snappy), box-shadow var(--transition-snappy);
  cursor: pointer;
}

.ds-btn-primary {
  background: var(--color-petrol);
  color: white;
  box-shadow: var(--shadow-soft);
}

.ds-btn-primary:hover {
  transform: translateY(-2px);
}

.ds-btn-secondary {
  background: white;
  color: var(--color-petrol);
  border: 1px solid color-mix(in srgb, var(--color-petrol) 40%, transparent);
}

.ds-token-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .ds-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ds-color-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .ds-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ds-color-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: white;
}

.ds-color-swatch {
  height: 120px;
}

.ds-color-meta {
  padding: var(--space-md);
}

.ds-color-meta h3 {
  margin: 0;
  font-size: var(--font-size-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-color-meta p {
  margin: var(--space-xs) 0 0;
  font-size: var(--font-size-sm);
  color: color-mix(in srgb, var(--color-night) 60%, white 40%);
}

.ds-color-swatch.sky {
  background: var(--color-sky);
}

.ds-color-swatch.petrol {
  background: var(--color-petrol);
}

.ds-color-swatch.seafoam {
  background: var(--color-seafoam);
}

.ds-color-swatch.ice {
  background: var(--color-ice);
}

.ds-color-swatch.night {
  background: var(--color-night);
}

.ds-typography-sample {
  display: grid;
  gap: var(--space-md);
}

.ds-typography-sample h3 {
  margin-bottom: var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--color-night) 70%, white 30%);
}

.ds-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}
