:root {
  --color-milk-white: #FBF8F2;
  --color-soft-sand: #EDE3D2;
  --color-dark-wood: #3B2A20;
  --color-clay-terracotta: #B85C3E;
  --color-pale-sage: #A8B5A0;
  --color-warm-shadow: rgba(59, 42, 32, 0.12);
  --color-deep-wood: #2A1D16;
  --color-sage-wash: #DCE3D6;
  --color-border-subtle: rgba(59, 42, 32, 0.12);
  --color-border-sage: rgba(168, 181, 160, 0.3);
  --color-overlay-warm: rgba(237, 227, 210, 0.08);

  --font-heading: "Fraunces", serif;
  --font-body: "Nunito Sans", sans-serif;

  --text-display-size: clamp(2.5rem, 5vw, 3.5rem);
  --text-display-line-height: 1.05;
  --text-display-letter-spacing: -0.02em;

  --text-h1-size: clamp(2.125rem, 4vw, 2.75rem);
  --text-h1-line-height: 1.1;
  --text-h1-letter-spacing: -0.01em;

  --text-h2-size: clamp(1.75rem, 3vw, 2.125rem);
  --text-h2-line-height: 1.15;
  --text-h2-letter-spacing: 0;

  --text-h3-size: clamp(1.375rem, 2.5vw, 1.625rem);
  --text-h3-line-height: 1.2;
  --text-h3-letter-spacing: 0;

  --text-h4-size: clamp(1.125rem, 2vw, 1.3125rem);
  --text-h4-line-height: 1.25;
  --text-h4-letter-spacing: 0;

  --text-body-large-size: 1.1875rem;
  --text-body-large-line-height: 1.65;
  --text-body-large-letter-spacing: 0;

  --text-body-size: 1.0625rem;
  --text-body-line-height: 1.65;
  --text-body-letter-spacing: 0;

  --text-small-size: 0.9375rem;
  --text-small-line-height: 1.5;
  --text-small-letter-spacing: 0;

  --text-caption-size: 0.8125rem;
  --text-caption-line-height: 1.4;
  --text-caption-letter-spacing: 0.01em;

  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;

  --container-max-width: 1180px;
  --container-padding-mobile: 24px;
  --container-padding-desktop: 48px;

  --radius-small: 8px;
  --radius-button-pill: 999px;
  --radius-button-rect: 16px;
  --radius-card: 24px;
  --radius-image: 28px;
  --radius-panel-large: 32px;
  --radius-header: 999px;

  --shadow-card: 0 8px 24px rgba(59, 42, 32, 0.1);
  --shadow-button: 0 4px 12px rgba(59, 42, 32, 0.08);
  --shadow-header: 0 8px 24px rgba(59, 42, 32, 0.1);
  --shadow-pressed: inset 0 2px 6px rgba(59, 42, 32, 0.12);

  --transition-link: color 200ms ease-out;
  --transition-image: transform 600ms ease-out;
  --transition-button: transform 150ms ease-out, box-shadow 150ms ease-out;
  --transition-reveal: opacity 500ms ease-out, transform 500ms ease-out;

  --focus-outline-width: 2px;
  --focus-outline-offset: 2px;
  --focus-outline-color: #B85C3E;
}

*,
*::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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-dark-wood);
  background-color: var(--color-milk-white);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

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;
  outline: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-link);
}

ul,
ol {
  list-style: none;
}

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

blockquote,
q {
  quotes: none;
}

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

address {
  font-style: normal;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-dark-wood);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

h1,
.h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  margin-block-end: var(--space-24);
}

h2,
.h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  margin-block-end: var(--space-16);
}

h3,
.h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  margin-block-end: var(--space-12);
}

h4,
.h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-letter-spacing);
  margin-block-end: var(--space-8);
}

.display {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  color: var(--color-dark-wood);
  margin-block-end: var(--space-24);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

p {
  margin-block-end: var(--space-16);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

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

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

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

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

ul:not([class]),
ol:not([class]) {
  margin-block-end: var(--space-16);
  padding-inline-start: var(--space-24);
}

ul:not([class]) {
  list-style: disc;
}

ol:not([class]) {
  list-style: decimal;
}

ul:not([class]) li,
ol:not([class]) li {
  margin-block-end: var(--space-8);
}

ul:not([class]) li:last-child,
ol:not([class]) li:last-child {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-16);
  padding-inline-start: var(--space-24);
  border-inline-start: 3px solid var(--color-pale-sage);
  color: var(--color-dark-wood);
  font-style: italic;
}

blockquote p {
  margin-block-end: var(--space-8);
}

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

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

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-dark-wood);
  opacity: 0.75;
  margin-block-start: var(--space-8);
}

hr {
  border: none;
  border-block-start: 1px solid var(--color-border-sage);
  margin-block: var(--space-32);
  width: 100%;
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }
}

.surface-card {
  background-color: var(--color-milk-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-24);
}

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

.surface-panel {
  background-color: var(--color-soft-sand);
  border-radius: var(--radius-panel-large);
  box-shadow: var(--shadow-card);
  padding: var(--space-32);
}

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

.surface-sand {
  background-color: var(--color-soft-sand);
  border-radius: var(--radius-card);
  padding: var(--space-24);
}

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

.surface-deep {
  background-color: var(--color-deep-wood);
  color: var(--color-milk-white);
  border-radius: var(--radius-panel-large);
  padding: var(--space-32);
}

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

.surface-deep h1,
.surface-deep h2,
.surface-deep h3,
.surface-deep h4,
.surface-deep .display {
  color: var(--color-milk-white);
}

.surface-deep a {
  color: var(--color-pale-sage);
}

.surface-deep a:hover,
.surface-deep a:focus-visible {
  color: var(--color-clay-terracotta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-button-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body-size);
  line-height: 1.2;
  letter-spacing: var(--text-body-letter-spacing);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-button);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

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

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

.btn-primary {
  background-color: var(--color-dark-wood);
  color: var(--color-milk-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background-color: var(--color-deep-wood);
}

.btn-accent {
  background-color: var(--color-clay-terracotta);
  color: var(--color-milk-white);
  box-shadow: var(--shadow-button);
}

.btn-accent:hover {
  background-color: #A34D32;
}

.btn-secondary {
  background-color: var(--color-soft-sand);
  color: var(--color-dark-wood);
  box-shadow: var(--shadow-button);
}

.btn-secondary:hover {
  background-color: #E0D5C0;
}

.btn-rect {
  border-radius: var(--radius-button-rect);
}

.link-quiet {
  color: var(--color-dark-wood);
  text-decoration: underline;
  text-decoration-color: var(--color-pale-sage);
  text-underline-offset: 4px;
  transition: var(--transition-link);
}

.link-quiet:hover,
.link-quiet:focus-visible {
  color: var(--color-clay-terracotta);
  text-decoration-color: var(--color-clay-terracotta);
}

.link-sage {
  color: var(--color-pale-sage);
  text-decoration: underline;
  text-decoration-color: var(--color-pale-sage);
  text-underline-offset: 4px;
  transition: var(--transition-link);
}

.link-sage:hover,
.link-sage:focus-visible {
  color: var(--color-clay-terracotta);
  text-decoration-color: var(--color-clay-terracotta);
}

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

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-12) var(--space-16);
  background-color: var(--color-soft-sand);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-button-rect);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-dark-wood);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-dark-wood);
  opacity: 0.55;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-pale-sage);
  box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.25);
  outline: none;
}

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

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233B2A20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-16) center;
  padding-inline-end: var(--space-48);
  cursor: pointer;
}

.label {
  display: block;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-letter-spacing);
  font-weight: 600;
  color: var(--color-dark-wood);
  margin-block-end: var(--space-8);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  background-color: var(--color-soft-sand);
  box-shadow: var(--shadow-card);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-image);
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay-warm);
  pointer-events: none;
  border-radius: inherit;
}

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

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

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

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

.badge-21 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-button-pill);
  background-color: var(--color-clay-terracotta);
  color: var(--color-milk-white);
  font-size: var(--text-caption-size);
  line-height: 1;
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: 600;
  white-space: nowrap;
}

.divider-sage {
  border: none;
  border-block-start: 1px solid var(--color-border-sage);
  margin-block: var(--space-24);
  width: 100%;
}

.divider-short {
  border: none;
  border-block-start: 2px solid var(--color-pale-sage);
  width: 64px;
  margin-block: var(--space-24);
  border-radius: var(--radius-small);
}

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

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

.section-sand {
  background-color: var(--color-soft-sand);
}

.section-sage-wash {
  background-color: var(--color-sage-wash);
}

.section-deep {
  background-color: var(--color-deep-wood);
  color: var(--color-milk-white);
}

.section-deep h1,
.section-deep h2,
.section-deep h3,
.section-deep h4,
.section-deep .display {
  color: var(--color-milk-white);
}

.section-deep a {
  color: var(--color-pale-sage);
}

.section-deep a:hover,
.section-deep a:focus-visible {
  color: var(--color-clay-terracotta);
}

.flex {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
  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-1 {
  flex: 1 1 0%;
  min-width: 0;
}

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

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

.gap-12 {
  gap: var(--space-12);
}

.gap-16 {
  gap: var(--space-16);
}

.gap-24 {
  gap: var(--space-24);
}

.gap-32 {
  gap: var(--space-32);
}

.gap-48 {
  gap: var(--space-48);
}

.sr-only {
  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-16);
  z-index: 10000;
  background-color: var(--color-clay-terracotta);
  color: var(--color-milk-white);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-button-pill);
  font-weight: 600;
  transition: top 200ms ease-out;
}

.skip-link:focus {
  top: var(--space-16);
}

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

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

  .image-frame:hover img {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--container-padding-mobile);
  }

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

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

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

  .surface-sand {
    padding: var(--space-20);
  }

  .surface-deep {
    padding: var(--space-24);
  }

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

  .gap-24 {
    gap: var(--space-16);
  }

  .gap-32 {
    gap: var(--space-24);
  }

  .gap-48 {
    gap: var(--space-32);
  }
}