:root {
  --emerald: #138B6B;
  --emerald-deep: #0C5F49;
  --gold: #F3C84B;
  --gold-soft: #F8E3A3;
  --ruby: #D94B61;
  --turquoise: #69C9C0;
  --ivory: #FFF7E7;
  --ivory-deep: #F5EAD4;
  --sapphire: #263A67;
  --sapphire-deep: #1A2A4D;
  --ink: #1F2A3D;
  --ink-muted: #5A6478;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --text-display: clamp(2.25rem, 5vw + 1rem, 3.5rem);
  --text-h1: clamp(1.875rem, 3.5vw + 0.75rem, 2.625rem);
  --text-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  --text-h4: 1.25rem;
  --text-body-large: 1.1875rem;
  --text-body: 1.0625rem;
  --text-body-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-nav: 0.9375rem;
  --text-button: 0.9375rem;

  --leading-display: 1.05;
  --leading-h1: 1.12;
  --leading-h2: 1.18;
  --leading-h3: 1.25;
  --leading-h4: 1.3;
  --leading-body-large: 1.65;
  --leading-body: 1.7;
  --leading-body-small: 1.6;
  --leading-caption: 1.5;
  --leading-nav: 1.2;
  --leading-button: 1.2;

  --tracking-display: -0.02em;
  --tracking-h1: -0.01em;
  --tracking-h4: 0.01em;
  --tracking-body-small: 0.01em;
  --tracking-caption: 0.04em;
  --tracking-nav: 0.08em;
  --tracking-button: 0.06em;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --container-max: 1180px;
  --container-pad-mobile: 1.5rem;
  --container-pad-desktop: 2.5rem;
  --measure-editorial: 760px;
  --measure-sidebar: 280px;

  --surface-page: var(--ivory);
  --surface-alt: var(--ivory-deep);
  --surface-dark: var(--sapphire);
  --surface-darkest: var(--sapphire-deep);
  --surface-card: var(--ivory);

  --border-emerald: rgba(19, 139, 107, 0.35);
  --border-emerald-strong: rgba(19, 139, 107, 0.6);
  --border-gold: var(--gold);
  --border-gold-soft: rgba(243, 200, 75, 0.35);
  --border-divider: rgba(19, 139, 107, 0.2);

  --shadow-card: 0 2px 8px rgba(38, 58, 103, 0.08);
  --shadow-modal: 0 8px 24px rgba(38, 58, 103, 0.12);
  --shadow-cta-hover: 0 4px 16px rgba(243, 200, 75, 0.35);

  --radius-input: 4px;
  --radius-card: 8px;
  --radius-panel: 12px;
  --radius-image: 6px;
  --radius-pill: 999px;

  --focus-ring: 0 0 0 2px var(--ivory), 0 0 0 4px var(--emerald);
  --transition-fast: 180ms ease;
  --transition-fade: 200ms ease;
}

*,
*::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 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background-color: var(--surface-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  border-radius: var(--radius-image);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: var(--leading-button);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
}

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

a:hover {
  color: var(--emerald-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-input);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--sapphire);
  line-height: var(--leading-h2);
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: var(--tracking-h1);
  margin-block-end: var(--space-lg);
}

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

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

h4 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  letter-spacing: var(--tracking-h4);
  margin-block-end: var(--space-sm);
}

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

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

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

ul,
ol {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-lg);
}

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

blockquote {
  margin-block-end: var(--space-lg);
  padding-inline-start: var(--space-lg);
  border-inline-start: 3px solid var(--gold);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-style: italic;
  line-height: var(--leading-h3);
  color: var(--sapphire);
}

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

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

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

figcaption {
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-block-start: var(--space-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-lg);
  font-size: var(--text-body-small);
  line-height: var(--leading-body-small);
}

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

th,
td {
  text-align: start;
  padding: var(--space-sm) var(--space-md);
  border-block-end: 1px solid var(--border-divider);
}

th {
  font-weight: 600;
  background-color: var(--ivory-deep);
  color: var(--sapphire);
  font-variant-numeric: tabular-nums;
}

td {
  font-variant-numeric: tabular-nums;
}

tr:nth-child(even) td {
  background-color: var(--ivory-deep);
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--sapphire-deep);
  color: var(--ivory);
  padding: var(--space-md);
  border-radius: var(--radius-card);
  overflow-x: auto;
  margin-block-end: var(--space-lg);
}

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

mark {
  background-color: var(--gold-soft);
  color: var(--ink);
  padding-inline: 0.2em;
}

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

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-emerald-strong);
  border-radius: var(--radius-input);
  background-color: var(--ivory);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px var(--border-emerald);
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: var(--ivory-deep);
  color: var(--ink-muted);
  cursor: not-allowed;
}

label {
  display: block;
  font-size: var(--text-body-small);
  font-weight: 600;
  line-height: var(--leading-body-small);
  letter-spacing: var(--tracking-body-small);
  color: var(--sapphire);
  margin-block-end: var(--space-xs);
}

fieldset {
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-block-end: var(--space-lg);
}

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

legend {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--sapphire);
  padding-inline: var(--space-sm);
}

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

.container--editorial {
  max-width: var(--measure-editorial);
}

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

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

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

.surface-panel {
  background-color: var(--surface-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: var(--leading-button);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background-color: var(--emerald);
  color: var(--ivory);
  border: 1px solid var(--emerald);
}

.btn--primary:hover {
  background-color: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: var(--ivory);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  background-color: var(--emerald-deep);
  border-color: var(--emerald-deep);
  box-shadow: none;
  transform: translateY(0);
}

.btn--secondary {
  background-color: var(--ivory);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.btn--secondary:hover {
  background-color: var(--ivory-deep);
  border-color: var(--emerald-deep);
  color: var(--emerald-deep);
}

.btn--secondary:active {
  background-color: var(--ivory-deep);
  border-color: var(--emerald-deep);
  color: var(--emerald-deep);
}

.btn--tertiary {
  background-color: transparent;
  color: var(--gold);
  border: none;
  padding-inline: var(--space-xs);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--tertiary:hover {
  color: var(--gold-soft);
}

.btn--tertiary:active {
  color: var(--gold-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ivory);
  background-color: var(--turquoise);
}

.tag--ruby {
  background-color: var(--ruby);
}

.tag--emerald {
  background-color: var(--emerald);
}

.tag--gold {
  background-color: var(--gold);
  color: var(--sapphire-deep);
}

.callout {
  background-color: var(--gold-soft);
  border-inline-start: 4px solid var(--emerald);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-block-end: var(--space-lg);
}

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

.callout--ruby {
  border-inline-start-color: var(--ruby);
}

.callout--turquoise {
  border-inline-start-color: var(--turquoise);
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-block: var(--space-xl);
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background-color: var(--border-divider);
}

.divider-ornament__diamond {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-lg);
}

.content-list > li {
  padding-inline-start: var(--space-lg);
  position: relative;
  margin-block-end: var(--space-sm);
}

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

.content-list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
}

.content-list--gold > li::before {
  background-color: var(--gold);
}

.content-list--ruby > li::before {
  background-color: var(--ruby);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding-inline-start: 0;
  margin-block-end: var(--space-lg);
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: var(--space-2xl);
  margin-block-end: var(--space-lg);
}

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

.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--emerald);
  color: var(--ivory);
  font-size: var(--text-body-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

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

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

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

.flex--between {
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

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

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

.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;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: 9999;
  background-color: var(--emerald);
  color: var(--ivory);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-input);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-button);
  font-size: var(--text-button);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

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

@media (min-width: 1024px) {
  .container--editorial {
    max-width: var(--measure-editorial);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}