:root {
  --color-ivory: #f7f1e3;
  --color-warm-ivory: #fff9ed;
  --color-walnut: #4a2f25;
  --color-butter: #e8c85a;
  --color-powder-blue: #a9c9d6;
  --color-coral: #d98270;
  --color-riviera-blue: #31546a;
  --color-terrazzo: #c9bca5;
  --color-chrome: #aeb6b5;
  --color-on-dark: #fff9ed;

  --color-text: var(--color-walnut);
  --color-text-muted: color-mix(in srgb, var(--color-walnut) 72%, transparent);
  --color-border: color-mix(in srgb, var(--color-walnut) 18%, transparent);
  --color-border-chrome: color-mix(in srgb, var(--color-chrome) 45%, transparent);
  --color-focus: var(--color-powder-blue);

  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --text-body: 1rem;
  --text-small: 0.8125rem;
  --text-eyebrow: 0.75rem;
  --text-control: 0.875rem;
  --text-lead: 1.25rem;

  --line-body: 1.55;
  --line-small: 1.4;
  --line-display: 0.98;

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

  --container-max: 77.5rem;
  --gutter: 2rem;
  --gutter-mobile: 1.25rem;

  --radius-control: 0.5rem;
  --radius-card: 0.75rem;
  --radius-image: 1.25rem;
  --radius-feature: 2rem;
  --radius-pill: 999px;

  --shadow-elevated: 0 8px 24px rgba(74, 47, 37, 0.1);

  --transition-fast: 180ms ease-out;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-ivory);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
form,
fieldset,
blockquote,
dl,
dd {
  min-width: 0;
}

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

img,
video {
  height: auto;
}

svg {
  fill: currentColor;
}

iframe {
  border: 0;
}

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

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"],
select,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-warm-ivory);
  padding: 0.75rem 0.875rem;
  line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--color-walnut) 52%, transparent);
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  accent-color: var(--color-riviera-blue);
}

fieldset {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 600;
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--line-small);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

::selection {
  background: var(--color-butter);
  color: var(--color-walnut);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: inherit;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: var(--line-display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h3 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
}

h4 {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.08;
}

h5,
h6 {
  font-size: 1.125rem;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
}

li::marker {
  color: var(--color-riviera-blue);
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  border-left: 2px solid var(--color-walnut);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

hr {
  height: 1px;
  margin: var(--space-6) 0;
  border: 0;
  background: var(--color-border);
}

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

figcaption {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: var(--line-small);
}

table {
  width: 100%;
  margin: 0 0 var(--space-5);
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: var(--text-small);
  font-weight: 600;
}

details {
  margin-bottom: var(--space-4);
}

summary {
  cursor: pointer;
}

address {
  margin: 0 0 var(--space-4);
  font-style: normal;
}

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

strong,
b {
  font-weight: 700;
}

:where(.container) {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

:where(.container-fluid) {
  width: 100%;
  padding-inline: var(--gutter);
}

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

:where(.surface) {
  background: var(--color-warm-ivory);
}

:where(.surface-butter) {
  background: var(--color-butter);
  color: var(--color-walnut);
}

:where(.surface-blue) {
  background: var(--color-powder-blue);
  color: var(--color-walnut);
}

:where(.surface-coral) {
  background: var(--color-coral);
  color: var(--color-walnut);
}

:where(.surface-dark) {
  background: var(--color-riviera-blue);
  color: var(--color-on-dark);
}

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

:where(.eyebrow) {
  display: inline-block;
  margin: 0 0 var(--space-3);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

:where(.lead) {
  margin-bottom: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.45;
}

:where(.editorial-number) {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

:where(.content-list) {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
}

:where(.card) {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-warm-ivory);
  padding: var(--space-5);
}

:where(.panel) {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-warm-ivory);
  padding: var(--space-6);
}

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

:where(.image-frame) {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-image);
  background: var(--color-warm-ivory);
}

:where(.image-frame > img),
:where(.image-frame > picture > img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

:where(a.image-frame:hover > img),
:where(a.image-frame:hover > picture > img) {
  filter: saturate(0.96) brightness(1.03);
  transform: scale(1.025);
}

:where(.tag) {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.625rem;
  background: var(--color-warm-ivory);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

:where(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0.75rem 1rem;
  background: var(--color-butter);
  color: var(--color-walnut);
  font-size: var(--text-control);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

:where(.button:hover) {
  border-color: color-mix(in srgb, var(--color-walnut) 55%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--color-chrome) 80%, transparent);
  text-decoration: none;
  transform: translateY(-2px);
}

:where(.button:active) {
  transform: translateY(0);
}

:where(.button-secondary) {
  border-color: var(--color-walnut);
  background: transparent;
  color: var(--color-walnut);
}

:where(.button-coral) {
  background: var(--color-coral);
}

:where(.button-dark) {
  background: var(--color-riviera-blue);
  color: var(--color-on-dark);
}

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

:where(.stack) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

:where(.stack > *) {
  min-width: 0;
}

:where(.stack-sm) {
  gap: var(--space-2);
}

:where(.stack-md) {
  gap: var(--space-4);
}

:where(.stack-lg) {
  gap: var(--space-5);
}

:where(.cluster) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

:where(.cluster > *) {
  min-width: 0;
}

:where(.card > :last-child),
:where(.panel > :last-child),
:where(.stack > :last-child),
:where(.compact-content > :last-child) {
  margin-bottom: 0;
}

@media (max-width: 719px) {
  :root {
    --gutter: var(--gutter-mobile);
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1;
  }

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

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

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

  :where(.editorial-number) {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  :where(.button-group) {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}