:root {
  --color-surface-mint: #f0fdf4;
  --color-surface-alabaster: #ffffff;
  --color-text-graphite: #0f172a;
  --color-accent-coral: #f97316;
  --color-accent-emerald: #10b981;
  --color-border-soft: rgba(16,185,129,0.12);

  --shadow-soft: 0 4px 20px rgba(0,0,0,0.03);
  --shadow-elevated: 0 8px 28px rgba(15,23,42,0.08);

  --radius-card: 16px;
  --radius-modal: 32px;
  --radius-control: 8px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-5: 4rem;

  --container-max: 1040px;
  --container-padding: 4vw;

  --font-heading: 'Nunito Rounded','Quicksand','Arial Rounded MT Bold',Arial,sans-serif;
  --font-body: 'Quicksand','Nunito Rounded',Arial,sans-serif;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(1.75rem, 2.5vw, 2.25rem);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-graphite);
  background: var(--color-surface-mint);
}

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

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

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

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

ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-2);
}

h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-md); }
h4 { font-size: var(--text-sm); }

p {
  margin-bottom: var(--space-2);
}

blockquote {
  margin-bottom: var(--space-3);
}

ul,
ol {
  margin-bottom: var(--space-3);
}

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

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

.container {
  width: 92vw;
  max-width: var(--container-max);
  margin-inline: auto;
}

.surface {
  background: var(--color-surface-alabaster);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.card {
  background: var(--color-surface-alabaster);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card > *:last-child {
  margin-bottom: 0;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-control);
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-accent-coral);
  color: var(--color-text-graphite);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--color-accent-emerald);
  color: var(--color-text-graphite);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-alabaster);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent-emerald);
  outline-offset: 1px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--color-border-soft);
  margin-block: var(--space-3);
}

.stack > * + * {
  margin-top: var(--space-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.flex {
  display: flex;
  gap: var(--space-2);
}

.flex > * {
  min-width: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.grid-auto {
  display: grid;
  gap: var(--space-3);
}

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

@media (min-width: 1024px) {
  .grid-auto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
