:root {
  --color-cream: #FAF6F0;
  --color-mist: #E6EDF0;
  --color-ink: #3D3E3A;
  --color-terracotta: #D3A297;
  --color-white: #FFFFFF;
  --color-sage: #A8B5A0;
  --color-terracotta-dark: #C08B7E;
  --color-sage-light: #C2CCBB;
  --color-ink-soft: rgba(61, 62, 58, 0.72);
  --color-ink-faint: rgba(61, 62, 58, 0.48);
  --color-cream-deep: #F2EADD;
  --color-border: rgba(61, 62, 58, 0.14);
  --color-border-strong: rgba(61, 62, 58, 0.22);
  --color-overlay: rgba(61, 62, 58, 0.58);
  --color-overlay-deep: rgba(61, 62, 58, 0.78);

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

  --text-display: clamp(2.25rem, 6vw, 2.5rem);
  --text-h1: clamp(1.85rem, 4.6vw, 2rem);
  --text-h2: clamp(1.4rem, 3.2vw, 1.5rem);
  --text-h3: clamp(1.15rem, 2.4vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;

  --leading-display: 1.2;
  --leading-h1: 1.25;
  --leading-h2: 1.33;
  --leading-h3: 1.4;
  --leading-body: 1.5;
  --leading-small: 1.43;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;

  --shadow-soft: 0 2px 10px rgba(61, 62, 58, 0.06), 0 8px 28px rgba(61, 62, 58, 0.07);
  --shadow-lifted: 0 4px 14px rgba(61, 62, 58, 0.1), 0 14px 36px rgba(61, 62, 58, 0.12);
  --shadow-card: 0 1px 4px rgba(61, 62, 58, 0.05), 0 6px 18px rgba(61, 62, 58, 0.08);

  --transition-fast: 160ms ease;
  --transition-slow: 320ms ease;
  --transition-slower: 520ms ease;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
video {
  object-fit: cover;
}

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

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

a {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
  text-decoration-color: rgba(211, 162, 151, 0.55);
  text-underline-offset: 0.18em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-terracotta);
  text-decoration-color: var(--color-terracotta);
}

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

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

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

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

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

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

h4 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-xs);
}

h5,
h6 {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  margin-block-end: var(--space-xs);
}

p {
  margin-block-end: var(--space-sm);
  overflow-wrap: break-word;
}

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

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

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

li {
  overflow-wrap: break-word;
}

blockquote {
  margin-block-end: var(--space-sm);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--color-terracotta);
  color: var(--color-ink-soft);
  font-style: italic;
}

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

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

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

figcaption {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ink-soft);
  margin-block-start: var(--space-xs);
}

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

address {
  font-style: normal;
}

strong {
  font-weight: 700;
}

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

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

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

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

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

.surface {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

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

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
}

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

.panel {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-lifted);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

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

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--color-cream-deep);
  color: var(--color-ink);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
}

.btn--small {
  font-size: var(--text-small);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.btn--large {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
}

.btn--block {
  display: flex;
  width: 100%;
}

.link-plain {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-plain:hover,
.link-plain:focus-visible {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-terracotta);
}

.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: 0;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-ink);
  color: var(--color-white);
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: 0;
  color: var(--color-white);
  text-decoration: none;
}

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

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

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

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

.flex--between {
  justify-content: space-between;
}

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

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

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

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

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

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

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

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

.content-list > li {
  overflow-wrap: break-word;
}

.content-list--spaced {
  gap: var(--space-sm);
}

.content-list--roomy {
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-block-end: var(--space-sm);
}

.form-field:last-child {
  margin-block-end: 0;
}

.form-field label {
  font-weight: 600;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(211, 162, 151, 0.25);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-ink-faint);
}

.form-field select {
  appearance: none;
  -webkit-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='%233D3E3A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-inline-end: 2.4rem;
}

.form-field--inline {
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.form-field--inline label {
  margin-block-end: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-overlay);
  padding: var(--space-md);
}

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

.overlay__content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
  padding: var(--space-lg);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}

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

@media (min-width: 768px) {
  .overlay__content {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .overlay__content {
    padding: var(--space-xl) var(--space-xxl);
  }
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-lg);
  }

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

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

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

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

  .overlay {
    padding: var(--space-sm);
  }

  .overlay__content {
    padding: var(--space-md);
    max-height: 92vh;
    max-height: 92dvh;
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: var(--space-md);
  }

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

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

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

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

  .overlay__content {
    padding: var(--space-sm);
  }

  .btn {
    padding: 0.65rem 1.25rem;
  }

  .btn--large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}