:root {
  --color-ink: #111111;
  --color-crimson: #8E2635;
  --color-crimson-hover: #6E1B28;
  --color-champagne: #F1E9DA;
  --color-gold: #9B805C;
  --color-gold-translucent: rgba(155, 128, 92, 0.2);
  --color-graphite: #292929;
  --color-focus-outline: #8E2635;
  --color-shadow-subtle: rgba(0, 0, 0, 0.3);
  --color-overlay-scrim: rgba(17, 17, 17, 0.8);

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --text-display-size: clamp(3rem, 6vw, 4.5rem);
  --text-h1-size: clamp(2.25rem, 4.5vw, 3rem);
  --text-h2-size: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-h3-size: clamp(1.5rem, 2.5vw, 1.75rem);
  --text-h4-size: clamp(1.25rem, 2vw, 1.375rem);
  --text-body-large-size: 1.125rem;
  --text-body-size: 1rem;
  --text-small-size: 0.875rem;
  --text-caption-size: 0.75rem;

  --text-display-line-height: 1.1;
  --text-h1-line-height: 1.15;
  --text-h2-line-height: 1.2;
  --text-h3-line-height: 1.3;
  --text-h4-line-height: 1.4;
  --text-body-large-line-height: 1.6;
  --text-body-line-height: 1.6;
  --text-small-line-height: 1.5;
  --text-caption-line-height: 1.4;

  --text-display-weight: 700;
  --text-h1-weight: 700;
  --text-h2-weight: 600;
  --text-h3-weight: 600;
  --text-h4-weight: 600;
  --text-body-large-weight: 400;
  --text-body-weight: 400;
  --text-small-weight: 400;
  --text-caption-weight: 400;

  --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: 6rem;
  --space-10: 8rem;

  --container-content-max: 75rem;
  --container-wide-max: 100rem;
  --container-gutter: 1.5rem;
  --container-gutter-mobile: 1rem;

  --surface-primary: var(--color-ink);
  --surface-secondary: var(--color-graphite);
  --surface-elevated: var(--color-champagne);
  --surface-elevated-text: var(--color-ink);

  --border-thin: 1px solid var(--color-gold);
  --border-thin-translucent: 1px solid var(--color-gold-translucent);
  --shadow-subtle: 0 2px 8px var(--color-shadow-subtle);

  --radius-button: 2px;
  --radius-card: 4px;
  --radius-image: 0px;
  --radius-modal: 8px;
  --radius-badge: 50%;

  --transition-color: 0.3s ease-in-out;
  --transition-image-scale: 0.5s ease-in-out;
  --transition-reveal: 0.5s ease-in-out;
}

*,
*::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;
}

body {
  min-height: 100vh;
  background-color: var(--surface-primary);
  color: var(--color-champagne);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--text-h1-weight);
  letter-spacing: -0.01em;
  color: var(--color-champagne);
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

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

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

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--text-h4-weight);
  margin-block-end: var(--space-2);
}

h5,
h6 {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--text-h4-weight);
  margin-block-end: var(--space-2);
}

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

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

blockquote {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-style: italic;
  font-weight: var(--text-body-large-weight);
  margin-block-end: var(--space-5);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--color-crimson);
  color: var(--color-champagne);
}

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

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

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

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

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

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

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

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

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  color: var(--color-gold);
  margin-block-start: var(--space-2);
}

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

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

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  border-block-end: var(--border-thin-translucent);
}

th {
  font-family: var(--font-heading);
  font-weight: var(--text-h4-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  font-size: var(--text-small-size);
}

hr {
  border: none;
  border-block-start: var(--border-thin-translucent);
  margin-block: var(--space-6);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--surface-secondary);
  border-radius: var(--radius-card);
}

code {
  padding: 0.2em 0.4em;
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  margin-block-end: var(--space-5);
}

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

mark {
  background-color: var(--color-crimson);
  color: var(--color-champagne);
  padding: 0.1em 0.2em;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

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

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

.container-full {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

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

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

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

.surface-elevated a {
  color: var(--color-crimson);
}

.surface-elevated a:hover {
  color: var(--color-crimson-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-crimson);
  color: var(--color-champagne);
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-size: var(--text-small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--transition-color), color var(--transition-color);
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.btn:hover {
  background-color: var(--color-crimson-hover);
  color: var(--color-champagne);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-champagne);
  border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-crimson);
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
}

.btn-link:hover {
  color: var(--color-crimson-hover);
  background: none;
}

.card {
  background-color: var(--surface-secondary);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  border: 1px solid transparent;
  transition: border-color var(--transition-color);
}

.card:hover {
  border-color: var(--color-gold);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-badge);
  font-family: var(--font-heading);
  font-size: var(--text-caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  background-color: var(--color-crimson);
  color: var(--color-champagne);
  white-space: nowrap;
}

.badge-gold {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.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-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-crimson);
  color: var(--color-champagne);
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-size: var(--text-small-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-champagne);
}

:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-crimson);
  color: var(--color-champagne);
}

@media (max-width: 768px) {
  :root {
    --container-gutter: var(--container-gutter-mobile);
  }

  .container,
  .container-wide {
    padding-inline: var(--container-gutter-mobile);
  }

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

  blockquote {
    padding-inline-start: var(--space-4);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-caption-size);
  }
}