:root {
  --bg-base: #FAF9F6;
  --bg-surface: #FFFFFF;
  --text-primary: #2C2C2C;
  --text-inverse: #FAF9F6;
  --accent-blue: #1E90FF;
  --accent-coral: #FF6F61;
  --border-subtle: #E5E5E5;

  --font-heading: "Archivo Black", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --text-display: clamp(2.5rem, 6vw, 4rem);
  --text-h1: clamp(2rem, 4.5vw, 3rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-h3: clamp(1.375rem, 2.5vw, 1.75rem);
  --text-body-large: 1.25rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;

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

  --weight-display: 700;
  --weight-h1: 700;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-body-large: 400;
  --weight-body: 400;
  --weight-caption: 400;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  --radius-none: 0px;
  --radius-small: 4px;
  --radius-default: 8px;
  --radius-large: 16px;

  --shadow-soft: 0 2px 8px rgba(44, 44, 44, 0.06);
  --shadow-lift: 0 6px 20px rgba(44, 44, 44, 0.1);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  -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;
}

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

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

a:hover {
  color: var(--accent-coral);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-h1);
  line-height: var(--leading-h1);
  color: var(--text-primary);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: var(--space-4);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: var(--space-4);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-3);
}

h4,
h5,
h6 {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  margin-block-end: var(--space-3);
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-3);
  overflow-wrap: break-word;
}

ul,
ol {
  padding-inline-start: var(--space-4);
  margin-block-end: var(--space-4);
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--accent-blue);
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
}

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
}

th,
td {
  padding: var(--space-2) var(--space-3);
  border-block-end: 1px solid var(--border-subtle);
  text-align: start;
}

th {
  font-weight: 600;
}

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

.surface {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-default);
}

.surface-dark {
  background-color: var(--text-primary);
  color: var(--text-inverse);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5,
.surface-dark h6 {
  color: var(--text-inverse);
}

.surface-dark a {
  color: var(--accent-blue);
}

.surface-dark a:hover {
  color: var(--accent-coral);
}

.radius-none {
  border-radius: var(--radius-none);
}

.radius-small {
  border-radius: var(--radius-small);
}

.radius-default {
  border-radius: var(--radius-default);
}

.radius-large {
  border-radius: var(--radius-large);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-lift {
  box-shadow: var(--shadow-lift);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-default);
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
  min-width: 0;
  white-space: nowrap;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: #1a7fd6;
  color: var(--text-inverse);
}

.btn-primary:active {
  background-color: #156fb8;
}

.btn-secondary {
  background-color: var(--accent-coral);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background-color: #e85a4e;
  color: var(--text-inverse);
}

.btn-secondary:active {
  background-color: #d14a3f;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: var(--text-inverse);
}

.btn-outline:active {
  background-color: #1a7fd6;
  border-color: #1a7fd6;
}

.form-label {
  display: block;
  font-size: var(--text-caption);
  font-weight: 600;
  margin-block-end: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-2) var(--space-1);
  background-color: transparent;
  border: none;
  border-block-end: 2px solid var(--border-subtle);
  border-radius: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-block-end-color: var(--accent-blue);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-primary);
  opacity: 0.5;
}

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

.form-select {
  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='%232C2C2C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-1) center;
  padding-inline-end: var(--space-5);
}

.form-checkbox,
.form-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  flex-shrink: 0;
}

.visually-hidden {
  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-3);
  z-index: 9999;
  background-color: var(--accent-blue);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--text-inverse);
}

.flex {
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

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

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  align-items: flex-start;
  justify-content: flex-start;
}

.flex-end {
  align-items: flex-end;
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
  min-width: 0;
}

.flex-auto {
  flex: 0 0 auto;
}

.flex-grow {
  flex: 1 1 0%;
  min-width: 0;
}

.grid {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.content-list li {
  position: relative;
  padding-inline-start: var(--space-4);
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

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

.content-list-numbered {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-4);
  counter-reset: content-list;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.content-list-numbered li {
  counter-increment: content-list;
  position: relative;
  padding-inline-start: var(--space-6);
}

.content-list-numbered li::before {
  content: counter(content-list);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-size: var(--text-body-large);
  font-weight: 700;
  color: var(--accent-blue);
  line-height: var(--leading-body);
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure, table, .content-list, .content-list-numbered):last-child {
  margin-block-end: 0;
}

@media (max-width: 768px) {
  :root {
    --text-display: clamp(2rem, 8vw, 2.75rem);
    --text-h1: clamp(1.75rem, 6vw, 2.25rem);
    --text-h2: clamp(1.5rem, 5vw, 1.875rem);
    --text-h3: clamp(1.25rem, 4vw, 1.5rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .flex {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .btn {
    width: 100%;
  }
}