:root {
  --color-pearl-050: #fffdf8;
  --color-pearl-100: #f7f4ee;
  --color-sky-100: #ddf3ff;
  --color-sky-500: #4ca9d8;
  --color-amethyst-700: #4b2b72;
  --color-amethyst-900: #241a3a;
  --color-emerald-600: #16856a;
  --color-emerald-900: #0b493b;
  --color-gold-500: #c99432;
  --color-coral-500: #e8754f;
  --color-coral-900: #6b291b;
  --color-glass-white: rgba(255, 253, 248, 0.72);

  --color-text: var(--color-amethyst-900);
  --color-text-muted: #625975;
  --color-link: #15364a;
  --color-border: rgba(75, 43, 114, 0.16);
  --color-border-strong: rgba(75, 43, 114, 0.3);
  --color-focus: var(--color-gold-500);

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

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: 1.25rem;
  --text-h3: clamp(1.625rem, 2.5vw, 1.75rem);
  --text-h2: clamp(2rem, 4vw, 2.375rem);
  --text-h1: clamp(2.75rem, 6vw, 4.75rem);

  --leading-tight: 0.98;
  --leading-heading: 1.12;
  --leading-body: 1.65;
  --leading-label: 1.4;

  --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: 5.5rem;
  --space-10: 7.5rem;

  --container-max: 77.5rem;
  --container-padding: 2rem;
  --container-padding-mobile: 1.25rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.625rem;
  --radius-lg: 1.125rem;
  --radius-xl: 2rem;

  --shadow-card: 0 14px 36px rgba(36, 26, 58, 0.1);
  --shadow-glass: 0 8px 24px rgba(75, 43, 114, 0.08);
  --shadow-float: 0 18px 42px rgba(36, 26, 58, 0.12);

  --transition-fast: 180ms ease;
  --transition-base: 220ms ease;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(221, 243, 255, 0.68), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(233, 221, 247, 0.55), transparent 28rem),
    var(--color-pearl-050);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

img,
video {
  height: auto;
}

svg {
  flex: 0 0 auto;
}

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

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-pearl-050);
  padding: 0.7rem 0.8rem;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: #7b718d;
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--color-amethyst-700);
}

fieldset {
  min-width: 0;
  margin: 0 0 var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

legend {
  padding-inline: var(--space-2);
  color: var(--color-amethyst-700);
  font-weight: 700;
}

label {
  display: inline-block;
  margin-block-end: var(--space-2);
  color: var(--color-amethyst-700);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
}

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

th,
td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-amethyst-700);
  font-weight: 700;
}

a {
  color: var(--color-link);
  text-decoration-color: rgba(201, 148, 50, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-amethyst-700);
  text-decoration-color: var(--color-gold-500);
}

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

::selection {
  background: rgba(201, 148, 50, 0.3);
  color: var(--color-amethyst-900);
}

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

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

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

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

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

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

h6 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-inline-start: 1.35rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-block: var(--space-2);
}

li::marker {
  color: var(--color-gold-500);
}

blockquote {
  margin-bottom: var(--space-5);
  border-inline-start: 3px solid var(--color-gold-500);
  padding: var(--space-3) var(--space-5);
  color: var(--color-amethyst-700);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
}

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

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

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

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

strong {
  font-weight: 700;
}

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

code,
kbd {
  border-radius: var(--radius-sm);
  background: var(--color-pearl-100);
  padding: 0.12em 0.32em;
  color: var(--color-amethyst-700);
  font-size: 0.9em;
}

pre {
  margin: 0 0 var(--space-5);
  overflow: auto;
  border-radius: var(--radius-md);
  background: var(--color-amethyst-900);
  padding: var(--space-5);
  color: var(--color-pearl-050);
  line-height: 1.55;
}

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

details {
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-pearl-100);
  padding: var(--space-4);
}

summary {
  cursor: pointer;
  color: var(--color-amethyst-700);
  font-weight: 700;
}

details[open] summary {
  margin-bottom: var(--space-3);
}

:where(.container) {
  width: min(100% - (var(--container-padding) * 2), var(--container-max));
  margin-inline: auto;
}

:where(.section) {
  padding-block: clamp(var(--space-8), 8vw, var(--space-10));
}

:where(.section--compact) {
  padding-block: clamp(var(--space-7), 6vw, var(--space-9));
}

:where(.surface) {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-pearl-100);
}

:where(.surface--glass) {
  border: 1px solid rgba(255, 253, 248, 0.6);
  border-radius: var(--radius-lg);
  background: var(--color-glass-white);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:where(.surface--dark) {
  border: 1px solid rgba(221, 243, 255, 0.16);
  border-radius: var(--radius-lg);
  background: var(--color-amethyst-900);
  color: var(--color-pearl-050);
}

:where(.surface--dark) :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

:where(.surface--dark) a {
  color: var(--color-sky-100);
}

:where(.card) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-pearl-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

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

:where(.stack) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

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

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

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

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

:where(.content-list) {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

:where(.content-list > li) {
  min-width: 0;
}

:where(.eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-amethyst-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

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

:where(.meta) {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-label);
}

:where(.brand-text) {
  color: var(--color-amethyst-700);
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

:where(.button) {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

:where(.button:hover) {
  text-decoration: none;
  transform: translateY(-1px);
}

:where(.button:active) {
  transform: translateY(0);
}

:where(.button--primary) {
  border-color: var(--color-gold-500);
  background:
    linear-gradient(105deg, transparent 25%, rgba(255, 253, 248, 0.16) 45%, transparent 65%),
    var(--color-amethyst-700);
  background-size: 220% 100%, auto;
  color: #fff!important;
  box-shadow: 0 8px 18px rgba(75, 43, 114, 0.18);
}

:where(.button--primary:hover) {
  background-position: 100% 0, 0 0;
  background-color: var(--color-amethyst-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(76, 169, 216, 0.24);
}

:where(.button--secondary) {
  border-color: var(--color-amethyst-700);
  background: transparent;
  color: var(--color-amethyst-700);
}

:where(.button--secondary:hover) {
  border-color: var(--color-gold-500);
  background: rgba(75, 43, 114, 0.06);
  color: var(--color-amethyst-900);
}

:where(.surface--dark .button--secondary) {
  border-color: var(--color-pearl-050);
  color: var(--color-pearl-050)!important;
}

:where(.surface--dark .button--secondary:hover) {
  border-color: var(--color-gold-500);
  background: rgba(255, 253, 248, 0.1);
  color: #fff!important;
}

:where(.button--gold) {
  border-color: var(--color-gold-500);
  background: var(--color-gold-500);
  color: var(--color-amethyst-900);
}

:where(.button--gold:hover) {
  background: #ddb25e;
  color: var(--color-amethyst-900);
  box-shadow: 0 8px 20px rgba(201, 148, 50, 0.26);
}

:where(.notice) {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-sky-100);
  padding: var(--space-4);
  color: var(--color-amethyst-900);
}

:where(.notice--success) {
  border-color: rgba(22, 133, 106, 0.3);
  background: rgba(22, 133, 106, 0.1);
  color: var(--color-emerald-900);
}

:where(.notice--warning) {
  border-color: rgba(232, 117, 79, 0.34);
  background: rgba(232, 117, 79, 0.12);
  color: var(--color-coral-900);
}

:where(.notice > :last-child) {
  margin-bottom: 0;
}

:where(.skip-link) {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--color-amethyst-900);
  padding: var(--space-3) var(--space-4);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

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

:where(.sr-only) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  white-space: nowrap;
}

:where(.sr-only-focusable:focus) {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  margin: 0;
  white-space: normal;
}

:where(.card, .surface, .notice, .stack) > :last-child {
  margin-bottom: 0;
}

@media (max-width: 47.99rem) {
  :root {
    --container-padding: var(--container-padding-mobile);
  }

  html {
    scroll-padding-top: 5rem;
  }

  fieldset {
    padding: var(--space-4);
  }

  th,
  td {
    padding: var(--space-2);
  }

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

  :where(.button) {
    width: 100%;
  }

  :where(.cluster .button) {
    flex: 1 1 12rem;
  }
}

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

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