:root {
  --color-paper: #efeae1;
  --color-paper-raised: #f8f5ee;
  --color-ink: #1b1a17;
  --color-ink-muted: #625d56;
  --color-mauve: #9a8c98;
  --color-mauve-deep: #675c68;
  --color-line: #d4cdc2;
  --color-focus: #675c68;
  --color-danger: #8b3a3a;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: 1.125rem;
  --text-card-title: 1.5rem;
  --text-section-title: clamp(1.75rem, 3vw, 2rem);
  --text-page-title: clamp(2.5rem, 5vw, 3rem);
  --text-display: clamp(3.25rem, 8vw, 7rem);

  --leading-xs: 1.35;
  --leading-sm: 1.45;
  --leading-body: 1.6;
  --leading-lead: 1.55;
  --leading-card-title: 1.15;
  --leading-section-title: 1.1;
  --leading-page-title: 1.02;
  --leading-display: 0.92;

  --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: 5rem;
  --space-10: 7rem;
  --space-11: 9rem;

  --container-max: 80rem;
  --container-width: calc(100% - 3rem);
  --container-width-mobile: calc(100% - 2rem);

  --radius-xs: 0.125rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;

  --border-default: 1px solid var(--color-line);
  --shadow-surface: 0 8px 24px rgb(27 26 23 / 7%);
  --shadow-surface-hover: 0 12px 30px rgb(27 26 23 / 10%);

  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 3px;

  --header-offset: 4.75rem;
}

@media (max-width: 47.9375rem) {
  :root {
    --container-width: var(--container-width-mobile);
    --header-offset: 4rem;
  }
}

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

html {
  min-width: 20rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + var(--space-4));
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img,
video {
  height: auto;
}

img {
  object-fit: cover;
}

svg {
  fill: currentColor;
}

iframe {
  border: 0;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-mauve-deep);
  text-decoration-thickness: 0.12em;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

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

button,
[type="button"],
[type="submit"],
[type="reset"] {
  min-height: 2.75rem;
  border: 0;
  cursor: pointer;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: var(--border-default);
  border-radius: var(--radius-xs);
  background: var(--color-paper-raised);
  padding: 0.625rem 0.75rem;
  line-height: 1.4;
}

select {
  cursor: pointer;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--color-ink-muted);
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0;
  accent-color: var(--color-mauve-deep);
}

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

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

th,
td {
  border-bottom: var(--border-default);
  padding: var(--space-3) var(--space-2);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: var(--text-sm);
  font-weight: 700;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: var(--text-page-title);
  line-height: var(--leading-page-title);
}

h2 {
  margin-bottom: var(--space-5);
  font-size: var(--text-section-title);
  line-height: var(--leading-section-title);
}

h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
}

h4 {
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
  line-height: 1.2;
}

h5,
h6 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-5);
}

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

li::marker {
  color: var(--color-mauve-deep);
}

blockquote {
  margin: 0 0 var(--space-5);
  border-left: 2px solid var(--color-mauve);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  font-style: italic;
  line-height: var(--leading-lead);
}

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

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

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

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 var(--space-3);
  color: var(--color-ink-muted);
}

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

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code,
kbd {
  border-radius: var(--radius-xs);
  background: rgb(27 26 23 / 7%);
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

pre {
  margin: 0 0 var(--space-5);
  overflow: auto;
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-paper-raised);
  padding: var(--space-4);
}

pre code {
  padding: 0;
  background: transparent;
}

::selection {
  background: rgb(154 140 152 / 35%);
  color: var(--color-ink);
}

:focus {
  outline: none;
}

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

summary {
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: "";
}

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

details > *:last-child {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
}

.container--wide {
  max-width: 90rem;
}

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

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

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

.surface {
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-paper-raised);
}

.surface--raised {
  box-shadow: var(--shadow-surface);
}

.surface--panel {
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

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

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

.stack--1 {
  gap: var(--space-1);
}

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

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

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

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

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

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

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

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

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

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

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

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

.flow > * + * {
  margin-top: var(--flow-space, var(--space-4));
}

.flow--compact {
  --flow-space: var(--space-3);
}

.flow--spacious {
  --flow-space: var(--space-6);
}

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

.content-group > :last-child,
.surface > :last-child,
.surface--panel > :last-child,
.card-content > :last-child,
.flow > :last-child {
  margin-bottom: 0;
}

.eyebrow,
.meta,
.caption {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.eyebrow {
  color: var(--color-mauve-deep);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

.display-title {
  margin-bottom: var(--space-6);
  font-size: var(--text-display);
  line-height: var(--leading-display);
}

.card {
  min-width: 0;
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-paper-raised);
}

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

.card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__content {
  min-width: 0;
  padding: var(--space-5);
}

.card__content > :last-child {
  margin-bottom: 0;
}

.button,
.button-secondary,
.button-quiet {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button {
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper-raised);
}

.button:hover {
  border-color: var(--color-mauve-deep);
  background: var(--color-mauve-deep);
  color: var(--color-paper-raised);
}

.button-secondary {
  border: 1px solid var(--color-mauve-deep);
  background: var(--color-paper-raised);
  color: var(--color-mauve-deep);
}

.button-secondary:hover {
  background: rgb(154 140 152 / 16%);
  color: var(--color-ink);
}

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

.button-quiet:hover {
  border-color: var(--color-line);
  background: var(--color-paper-raised);
  color: var(--color-mauve-deep);
}

.form-field {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.form-field label,
.form-field__label {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-sm);
}

.form-field__hint {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.form-field__error {
  color: var(--color-danger);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-sm);
}

[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  border-radius: var(--radius-xs);
  background: var(--color-ink);
  color: var(--color-paper-raised);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--color-paper-raised);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .card--raised {
    transition: box-shadow 180ms ease, transform 180ms ease;
  }

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

@media (max-width: 56.25rem) {
  .section {
    padding-block: clamp(3.5rem, 8vw, 4.5rem);
  }

  .section--compact {
    padding-block: clamp(3rem, 7vw, 4rem);
  }

  .section--spacious {
    padding-block: clamp(4.5rem, 10vw, 6rem);
  }
}

@media (max-width: 47.9375rem) {
  h1 {
    margin-bottom: var(--space-5);
  }

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

  .section {
    padding-block: clamp(2.5rem, 11vw, 3.5rem);
  }

  .section--compact {
    padding-block: clamp(2.5rem, 9vw, 3rem);
  }

  .section--spacious {
    padding-block: clamp(3.5rem, 12vw, 4.5rem);
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}