:root {
  --color-marble-bg: #FBF9F4;
  --color-papyrus-surface: #F3ECE0;
  --color-chocolate-ink: #2B2520;
  --color-antique-gold: #C5A880;
  --color-ivory-text-on-dark: #FBF9F4;
  --color-gold-on-dark: #C5A880;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --text-display: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  --text-h1: clamp(2rem, 3.5vw + 0.75rem, 2.5rem);
  --text-h2: clamp(1.625rem, 2.5vw + 0.5rem, 2rem);
  --text-h3: clamp(1.375rem, 1.5vw + 0.5rem, 1.5rem);
  --text-body: 1rem;
  --text-caption: 0.875rem;
  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.3;
  --leading-h3: 1.4;
  --leading-body: 1.6;
  --leading-caption: 1.5;
  --tracking-headline: 0.02em;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --radius-none: 0px;
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05);
  --border-thin: 1px solid var(--color-antique-gold);
  --transition-smooth: 0.2s ease-in-out;
  --focus-outline: 2px solid var(--color-antique-gold);
  --focus-outline-offset: 2px;
}

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

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

body {
  min-height: 100vh;
  background-color: var(--color-marble-bg);
  color: var(--color-chocolate-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-headline);
  color: var(--color-chocolate-ink);
  line-height: var(--leading-h1);
  margin-block-end: var(--space-sm);
}

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

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

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

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  line-height: 1.4;
}

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

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

blockquote {
  margin-block-end: var(--space-sm);
  padding-inline-start: var(--space-md);
  border-inline-start: 2px solid var(--color-antique-gold);
  font-style: italic;
  color: var(--color-chocolate-ink);
}

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

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-chocolate-ink);
  opacity: 0.8;
  margin-block-start: var(--space-xs);
}

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

img {
  object-fit: cover;
}

a {
  color: var(--color-chocolate-ink);
  text-decoration: none;
  transition: color var(--transition-smooth), text-decoration-color var(--transition-smooth);
}

a:hover {
  color: var(--color-antique-gold);
  text-decoration: underline;
  text-decoration-color: var(--color-antique-gold);
  text-underline-offset: 3px;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: var(--border-thin);
  border-radius: var(--radius-small);
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  color: var(--color-antique-gold);
  transition: background-color var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth);
}

button:hover {
  background-color: var(--color-antique-gold);
  color: var(--color-chocolate-ink);
}

input,
select,
textarea {
  background-color: var(--color-marble-bg);
  border: 1px solid var(--color-antique-gold);
  border-radius: var(--radius-small);
  padding: 0.5rem 0.75rem;
  width: 100%;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-antique-gold);
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.25);
  outline: none;
}

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

label {
  display: block;
  margin-block-end: var(--space-xs);
  font-weight: 500;
}

hr {
  border: none;
  border-top: var(--border-thin);
  margin-block: var(--space-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-sm);
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: start;
  border-bottom: 1px solid var(--color-antique-gold);
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
}

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

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

.surface-dark {
  background-color: var(--color-chocolate-ink);
  color: var(--color-ivory-text-on-dark);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5,
.surface-dark h6 {
  color: var(--color-ivory-text-on-dark);
}

.surface-dark a {
  color: var(--color-ivory-text-on-dark);
}

.surface-dark a:hover {
  color: var(--color-gold-on-dark);
  text-decoration-color: var(--color-gold-on-dark);
}

.divider-gold {
  border: none;
  border-top: var(--border-thin);
  margin-block: var(--space-md);
}

.radius-none {
  border-radius: var(--radius-none);
}

.radius-small {
  border-radius: var(--radius-small);
}

.radius-medium {
  border-radius: var(--radius-medium);
}

.radius-large {
  border-radius: var(--radius-large);
}

.image-frame-gold {
  border: var(--border-thin);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.image-frame-gold img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

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

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

.flex {
  display: flex;
  gap: var(--space-sm);
  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;
}

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

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

.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

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

.flex-grow {
  flex-grow: 1;
}

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

.flex-shrink-1 {
  flex-shrink: 1;
}

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

.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: var(--space-sm);
  z-index: 9999;
  background-color: var(--color-chocolate-ink);
  color: var(--color-ivory-text-on-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  transition: top var(--transition-smooth);
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--color-ivory-text-on-dark);
  text-decoration: none;
}

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

p:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
ul:last-child,
ol:last-child,
blockquote:last-child,
figure:last-child,
hr:last-child,
table:last-child {
  margin-block-end: 0;
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }

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

@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-xxl: 3rem;
  }
}