:root {
  --color-sandstone-light: #F2E6D3;
  --color-sandstone-mid: #D7B994;
  --color-copper: #C78645;
  --color-copper-deep: #9A5E42;
  --color-petrol: #274B50;
  --color-umber: #46372F;
  --color-petrol-tint: #1E3A3E;
  --color-sandstone-white: #FBF5EB;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;

  --text-display: 4.5rem;
  --text-h1: 3.25rem;
  --text-h2: 2.5rem;
  --text-h3: 1.75rem;
  --text-h4: 1.25rem;
  --text-body-large: 1.125rem;
  --text-body: 1rem;
  --text-body-small: 0.875rem;
  --text-caption: 0.75rem;

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

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

  --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;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --container-max: 1280px;
  --container-narrow: 720px;
  --page-padding-mobile: 1.5rem;
  --page-padding-tablet: 2.5rem;
  --page-padding-desktop: 4rem;

  --radius-sm: 2px;
  --radius-md: 4px;

  --border-light: 1px solid rgba(70, 55, 47, 0.15);
  --border-dark: 1px solid rgba(242, 230, 211, 0.2);
  --border-divider: 1px solid rgba(70, 55, 47, 0.1);
  --border-card: 1px solid rgba(70, 55, 47, 0.1);

  --focus-outline: 2px solid var(--color-copper);
  --focus-offset: 2px;

  --transition-fast: 200ms ease-out;
  --transition-medium: 300ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-umber);
  background-color: var(--color-sandstone-light);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  -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;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

hr {
  border: none;
  border-top: var(--border-divider);
  margin: var(--space-lg) 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  color: var(--color-umber);
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: var(--tracking-h1);
  font-weight: 400;
  margin-block-end: var(--space-lg);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  font-weight: 400;
  margin-block-end: var(--space-lg);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  font-weight: 500;
  margin-block-end: var(--space-md);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  letter-spacing: var(--tracking-h4);
  font-weight: 600;
  text-transform: uppercase;
  margin-block-end: var(--space-md);
}

h5,
h6 {
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  line-height: var(--leading-body-small);
  letter-spacing: var(--tracking-body-small);
  font-weight: 600;
  text-transform: uppercase;
  margin-block-end: var(--space-sm);
}

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

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

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

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

blockquote {
  margin-block-end: var(--space-lg);
  padding-inline-start: var(--space-lg);
  border-inline-start: 3px solid var(--color-copper);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  color: var(--color-umber);
}

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

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

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  margin-block-end: var(--space-xs);
}

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

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

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;
  font-weight: 500;
  color: var(--color-umber);
  margin-block-start: var(--space-xs);
}

a {
  color: var(--color-umber);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-copper);
}

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

::selection {
  background-color: var(--color-copper);
  color: var(--color-sandstone-white);
}

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

.surface-card {
  background-color: var(--color-sandstone-white);
  border: var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.surface-dark {
  background-color: var(--color-petrol);
  color: var(--color-sandstone-light);
}

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

.surface-dark a {
  color: var(--color-sandstone-light);
}

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

.surface-dark blockquote {
  color: var(--color-sandstone-light);
  border-inline-start-color: var(--color-copper);
}

.surface-dark figcaption {
  color: var(--color-sandstone-mid);
}

.surface-dark hr {
  border-top-color: rgba(242, 230, 211, 0.2);
}

.surface-dark .surface-card {
  background-color: var(--color-petrol-tint);
  border-color: rgba(242, 230, 211, 0.2);
  color: var(--color-sandstone-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  font-weight: 600;
  line-height: var(--leading-body-small);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-copper);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  min-height: 44px;
  overflow-wrap: break-word;
}

.btn-primary {
  background-color: var(--color-copper);
  color: var(--color-umber);
  border-color: var(--color-copper);
}

.btn-primary:hover {
  background-color: var(--color-copper-deep);
  border-color: var(--color-copper-deep);
  color: var(--color-umber);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-copper);
  border-color: var(--color-copper);
}

.btn-secondary:hover {
  background-color: var(--color-copper);
  color: var(--color-umber);
  border-color: var(--color-copper);
}

.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-umber);
  margin-block-end: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-umber);
  background-color: var(--color-sandstone-white);
  border: 1px solid rgba(70, 55, 47, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(70, 55, 47, 0.5);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
  border-color: var(--color-copper);
}

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

.form-select {
  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='%2346372F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  padding-inline-end: var(--space-xl);
}

.surface-dark .form-label {
  color: var(--color-sandstone-light);
}

.surface-dark .form-input,
.surface-dark .form-textarea,
.surface-dark .form-select {
  background-color: var(--color-petrol-tint);
  border-color: rgba(242, 230, 211, 0.2);
  color: var(--color-sandstone-light);
}

.surface-dark .form-input::placeholder,
.surface-dark .form-textarea::placeholder {
  color: rgba(242, 230, 211, 0.5);
}

.surface-dark .form-select {
  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='%23F2E6D3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

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

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

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

@media (min-width: 768px) {
  .container,
  h1 {
    font-size: var(--text-h1);
  }

  h2 {
    font-size: var(--text-h2);
  }

  h3 {
    font-size: var(--text-h3);
  }
}

@media (min-width: 1024px) {
  .container,
  }

@media (max-width: 767px) {
  :root {
    --text-display: 2.75rem;
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.5rem;
    --text-h4: 1.125rem;
    --text-body-large: 1rem;
  }

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

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

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

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

  blockquote {
    font-size: var(--text-h3);
    line-height: 1.25;
  }
}

@media (max-width: 479px) {
  :root {
    --text-display: 2.25rem;
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.375rem;
  }

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

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

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