:root {
  --color-burgundy: #6B1E2B;
  --color-cream: #F5F0E6;
  --color-dark-walnut: #3B2A1E;
  --color-antique-bronze: #B08D57;
  --color-soft-black: #1E1A17;
  --color-muted-bronze: #D9C7A7;
  --color-deep-burgundy: #4A151F;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --text-display: 4rem;
  --text-h1: 3rem;
  --text-h2: 2.25rem;
  --text-h3: 1.75rem;
  --text-h4: 1.25rem;
  --text-body-large: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

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

  --tracking-display: -0.02em;
  --tracking-h1: -0.01em;
  --tracking-h2: 0;
  --tracking-h3: 0;
  --tracking-h4: 0.01em;
  --tracking-body-large: 0.01em;
  --tracking-body: 0.01em;
  --tracking-small: 0.02em;
  --tracking-caption: 0.03em;

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

  --container-max: 1200px;
  --container-padding-mobile: 24px;
  --container-padding-desktop: 48px;
  --section-gap-desktop: 96px;
  --section-gap-mobile: 64px;
  --grid-gutter: 24px;

  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-round: 50%;

  --border-subtle: 1px solid rgba(176, 141, 87, 0.3);
  --border-faint: 1px solid rgba(176, 141, 87, 0.2);
  --border-focus: 2px solid var(--color-antique-bronze);

  --shadow-card: 0 4px 12px rgba(30, 26, 23, 0.08);
  --shadow-elevated: 0 8px 24px rgba(30, 26, 23, 0.12);

  --transition-fast: 200ms ease-in-out;
  --overlay-burgundy: linear-gradient(to bottom, rgba(107, 30, 43, 0.4), transparent);
  --overlay-deep-burgundy: linear-gradient(to bottom, rgba(74, 21, 31, 0.6), transparent);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-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);
  letter-spacing: var(--tracking-body);
  color: var(--color-soft-black);
  background-color: var(--color-cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

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

img,
video {
  object-fit: cover;
}

input,
button,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-burgundy);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-deep-burgundy);
  text-decoration: underline;
  text-decoration-color: var(--color-antique-bronze);
  text-underline-offset: 4px;
}

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

ul {
  list-style: none;
}

ol {
  list-style-position: outside;
  padding-left: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-soft-black);
  line-height: 1.2;
}

h1,
.h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: var(--tracking-h1);
  font-weight: 700;
  margin-block-end: var(--space-5);
}

h2,
.h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  font-weight: 600;
  margin-block-end: var(--space-4);
}

h3,
.h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  font-weight: 600;
  margin-block-end: var(--space-3);
}

h4,
.h4 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  letter-spacing: var(--tracking-h4);
  font-weight: 500;
  margin-block-end: var(--space-3);
}

h5,
.h5 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  font-weight: 600;
  margin-block-end: var(--space-2);
}

h6,
.h6 {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-small);
  font-weight: 600;
  margin-block-end: var(--space-2);
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  margin-block-end: var(--space-4);
}

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

blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  letter-spacing: var(--tracking-body-large);
  color: var(--color-burgundy);
  margin-block-end: var(--space-5);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--color-antique-bronze);
}

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

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

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

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-antique-bronze);
  margin-block-start: var(--space-2);
}

address {
  font-style: normal;
}

hr {
  border: none;
  border-top: var(--border-faint);
  margin-block: var(--space-7);
}

pre,
code,
kbd,
samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--color-dark-walnut);
  color: var(--color-cream);
  padding: var(--space-4);
  border-radius: var(--radius-small);
  overflow-x: auto;
  margin-block-end: var(--space-4);
}

code {
  background-color: var(--color-muted-bronze);
  color: var(--color-deep-burgundy);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-small);
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-5);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

caption {
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-antique-bronze);
  margin-block-end: var(--space-2);
  text-align: start;
}

th,
td {
  text-align: start;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-faint);
}

th {
  font-weight: 600;
  color: var(--color-burgundy);
  font-family: var(--font-heading);
}

fieldset {
  border: var(--border-subtle);
  border-radius: var(--radius-medium);
  padding: var(--space-5);
  margin-block-end: var(--space-5);
}

legend {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-burgundy);
  padding-inline: var(--space-2);
}

label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-small);
  color: var(--color-soft-black);
  margin-block-end: var(--space-2);
}

input,
textarea,
select {
  width: 100%;
  background-color: var(--color-cream);
  border: var(--border-subtle);
  border-radius: var(--radius-small);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-soft-black);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(30, 26, 23, 0.5);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 3px rgba(107, 30, 43, 0.15);
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--color-muted-bronze);
  color: rgba(30, 26, 23, 0.5);
  cursor: not-allowed;
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23B08D57' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-inline-end: var(--space-7);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--color-burgundy);
  cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  margin-inline-start: var(--space-2);
  cursor: pointer;
}

input[type="range"] {
  padding: 0;
  border: none;
  accent-color: var(--color-burgundy);
}

input[type="file"] {
  padding: var(--space-2);
  border: none;
  background: none;
}

input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

input[type="number"] {
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

button:active,
.button:active {
  transform: scale(0.98);
}

button:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--border-focus);
  outline-offset: 2px;
}

.button-primary {
  background-color: var(--color-burgundy);
  color: var(--color-cream);
  border: 1px solid var(--color-burgundy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: var(--color-deep-burgundy);
  border-color: var(--color-deep-burgundy);
  color: var(--color-cream);
  text-decoration: none;
}

.button-secondary {
  background-color: transparent;
  color: var(--color-soft-black);
  border: 1px solid var(--color-antique-bronze);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background-color: rgba(176, 141, 87, 0.1);
  border-color: var(--color-antique-bronze);
  color: var(--color-soft-black);
  text-decoration: none;
}

.button-secondary-on-dark {
  background-color: transparent;
  color: var(--color-cream);
  border: 1px solid var(--color-antique-bronze);
}

.button-secondary-on-dark:hover,
.button-secondary-on-dark:focus-visible {
  background-color: rgba(176, 141, 87, 0.15);
  border-color: var(--color-antique-bronze);
  color: var(--color-cream);
  text-decoration: none;
}

.button-ghost {
  background-color: transparent;
  color: var(--color-burgundy);
  border: 1px solid transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background-color: rgba(107, 30, 43, 0.05);
  border-color: var(--color-burgundy);
  color: var(--color-deep-burgundy);
  text-decoration: none;
}

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

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

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

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

.surface-cream {
  background-color: var(--color-cream);
  color: var(--color-soft-black);
}

.surface-dark {
  background-color: var(--color-dark-walnut);
  color: var(--color-cream);
}

.surface-burgundy {
  background-color: var(--color-burgundy);
  color: var(--color-cream);
}

.surface-muted {
  background-color: var(--color-muted-bronze);
  color: var(--color-soft-black);
}

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

.surface-dark a,
.surface-burgundy a {
  color: var(--color-cream);
}

.surface-dark a:hover,
.surface-dark a:focus-visible,
.surface-burgundy a:hover,
.surface-burgundy a:focus-visible {
  color: var(--color-muted-bronze);
  text-decoration-color: var(--color-antique-bronze);
}

.surface-dark label,
.surface-burgundy label {
  color: var(--color-cream);
}

.surface-dark input,
.surface-dark textarea,
.surface-dark select,
.surface-burgundy input,
.surface-burgundy textarea,
.surface-burgundy select {
  background-color: rgba(245, 240, 230, 0.08);
  border-color: rgba(176, 141, 87, 0.4);
  color: var(--color-cream);
}

.surface-dark input::placeholder,
.surface-dark textarea::placeholder,
.surface-burgundy input::placeholder,
.surface-burgundy textarea::placeholder {
  color: rgba(245, 240, 230, 0.5);
}

.surface-dark input:focus,
.surface-dark textarea:focus,
.surface-dark select:focus,
.surface-burgundy input:focus,
.surface-burgundy textarea:focus,
.surface-burgundy select:focus {
  border-color: var(--color-antique-bronze);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.card {
  background-color: var(--color-cream);
  border: var(--border-subtle);
  border-radius: var(--radius-medium);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

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

.panel {
  background-color: var(--color-cream);
  border: var(--border-subtle);
  border-radius: var(--radius-medium);
  padding: var(--space-6);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-round);
  background-color: var(--color-antique-bronze);
  color: var(--color-soft-black);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  line-height: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: none;
  margin-block: var(--space-6);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: var(--border-faint);
}

.divider-icon {
  flex-shrink: 0;
  color: var(--color-antique-bronze);
  font-size: var(--text-small);
  line-height: 1;
}

.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-4);
  z-index: 1000;
  background-color: var(--color-burgundy);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-small);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-cream);
  text-decoration: none;
}

.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  color: var(--color-soft-black);
  margin-block-end: var(--space-5);
}

.text-display:last-child {
  margin-block-end: 0;
}

.text-body-large {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  letter-spacing: var(--tracking-body-large);
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-small);
}

.text-caption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: 500;
}

.text-muted {
  color: rgba(30, 26, 23, 0.65);
}

.text-bronze {
  color: var(--color-antique-bronze);
}

.text-burgundy {
  color: var(--color-burgundy);
}

.text-cream {
  color: var(--color-cream);
}

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

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

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

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

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

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

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

.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-gap-1 {
  gap: var(--space-1);
}

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

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

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

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

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

.flex-1 {
  flex: 1;
}

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

.flex-grow {
  flex-grow: 1;
}

.flex-no-shrink {
  flex-shrink: 0;
}

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

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

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

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

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.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-gap-1 {
  gap: var(--space-1);
}

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

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

.grid-gap-4 {
  gap: var(--space-4);
}

.grid-gap-5 {
  gap: var(--space-5);
}

.grid-gap-6 {
  gap: var(--space-6);
}

.grid-gap-7 {
  gap: var(--space-7);
}

.grid-gap-8 {
  gap: var(--space-8);
}

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

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

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

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

.content-list-disc {
  list-style: disc;
}

.content-list-decimal {
  list-style: decimal;
}

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

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

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

.content-list-check li {
  padding-inline-start: 1.75em;
}

.content-list-check li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-antique-bronze);
  font-size: 0.75em;
}

.overlay-burgundy {
  background: var(--overlay-burgundy);
}

.overlay-deep-burgundy {
  background: var(--overlay-deep-burgundy);
}

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

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

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

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

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

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

.border-subtle {
  border: var(--border-subtle);
}

.border-faint {
  border: var(--border-faint);
}

.border-bronze {
  border: 1px solid var(--color-antique-bronze);
}

.border-burgundy {
  border: 1px solid var(--color-burgundy);
}

.img-frame {
  border: 1px solid var(--color-antique-bronze);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(30, 26, 23, 0.05);
}

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

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-3x2 {
  aspect-ratio: 3 / 2;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.ratio-21x9 {
  aspect-ratio: 21 / 9;
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-in-out both;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.6s ease-in-out 0.1s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-in-out 0.2s both;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.6s ease-in-out 0.3s both;
}

.animate-fade-in-delay-4 {
  animation: fadeInUp 0.6s ease-in-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  :root {
    --text-display: 3rem;
    --text-h1: 2.5rem;
    --text-h2: 2rem;
    --text-h3: 1.5rem;
    --text-h4: 1.125rem;
  }

  .container {
    padding-inline: var(--container-padding-mobile);
  }

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

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

@media (max-width: 768px) {
  :root {
    --text-display: 2.5rem;
    --text-h1: 2rem;
    --text-h2: 1.75rem;
    --text-h3: 1.375rem;
    --text-h4: 1.125rem;
    --section-gap-mobile: 64px;
  }

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

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

  .flex-gap-5,
  .flex-gap-6,
  .flex-gap-7 {
    gap: var(--space-4);
  }

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

@media (max-width: 480px) {
  :root {
    --text-display: 2.25rem;
    --text-h1: 1.875rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-h4: 1.125rem;
    --container-padding-mobile: 20px;
  }

  .card {
    padding: var(--space-4);
  }

  .panel {
    padding: var(--space-4);
  }
}