:root {
  --color-obsidian: #0a0a0a;
  --color-slate-dark: #1a1a1a;
  --color-slate-mid: #2d2d2d;
  --color-white-high: #ffffff;
  --color-gold-royal: #d4af37;
  --color-copper: #b87333;
  --color-felt-emerald: #046307;

  --font-heading: Georgia, serif;
  --font-body: Arial, sans-serif;

  --text-display: 3rem;
  --text-h1: 2.5rem;
  --text-h2: 2rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;
  --text-body-large: 1.125rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;

  --leading-display: 1.2;
  --leading-h1: 1.3;
  --leading-h2: 1.3;
  --leading-h3: 1.4;
  --leading-h4: 1.4;
  --leading-body-large: 1.6;
  --leading-body: 1.6;
  --leading-caption: 1.5;

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

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.8);

  --border-gold: 1px solid var(--color-gold-royal);

  --transition-fast: 0.2s ease;
  --touch-target-min: 44px;
}

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

html {
  font-size: 100%;
  -webkit-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);
  font-weight: var(--weight-body);
  color: var(--color-white-high);
  background-color: var(--color-obsidian);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-white-high);
  line-height: var(--leading-h1);
  font-weight: var(--weight-h1);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

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

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

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

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

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

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

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

a:hover {
  color: var(--color-copper);
  text-decoration: underline;
}

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

ul,
ol {
  list-style: none !important;
  margin-block-end: var(--space-4);
  padding-inline-start: 0;
}

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

.content-list {
  padding-inline-start: var(--space-5);
  margin-block-end: var(--space-4);
}

.content-list li {
  margin-block-end: var(--space-2);
  padding-inline-start: var(--space-2);
}

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

.content-list ul,
.content-list ol {
  list-style: disc !important;
}

.content-list ol {
  list-style: decimal !important;
}

.content-list ul ul,
.content-list ol ol,
.content-list ul ol,
.content-list ol ul {
  margin-block-start: var(--space-2);
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-inline-start: 3px solid var(--color-gold-royal);
  background-color: var(--color-slate-dark);
  border-radius: var(--radius-small);
  color: var(--color-white-high);
  font-style: italic;
}

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

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

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

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

img {
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

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

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

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

input,
select,
textarea {
  background-color: var(--color-slate-dark);
  border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-small);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white-high);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-gold-royal);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-slate-mid);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  margin-block-end: var(--space-2);
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-white-high);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
  background-color: var(--color-slate-dark);
  border-radius: var(--radius-medium);
  overflow: hidden;
  border: var(--border-gold);
}

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

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  border-bottom: 1px solid var(--color-slate-mid);
}

th {
  font-family: var(--font-heading);
  font-weight: var(--weight-h3);
  color: var(--color-gold-royal);
  background-color: var(--color-slate-mid);
}

tbody tr:nth-child(even) {
  background-color: rgba(45, 45, 45, 0.5);
}

tbody tr:last-child td {
  border-bottom: none;
}

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

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.card {
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

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

.card-elevated {
  background-color: var(--color-slate-mid);
  border: var(--border-gold);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-elevated:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

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

.panel {
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--color-felt-emerald);
  color: var(--color-white-high);
  border: var(--border-gold);
  border-radius: var(--radius-small);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-decoration: none;
  min-height: var(--touch-target-min);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  background-color: #046307;
  color: var(--color-white-high);
  text-decoration: none;
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.btn:active {
  transform: scale(0.98);
  background-color: #034a05;
}

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

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

.btn-secondary:hover {
  background-color: var(--color-slate-mid);
  color: var(--color-gold-royal);
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.btn-secondary:active {
  transform: scale(0.98);
  background-color: var(--color-slate-dark);
}

.btn-copper {
  background-color: var(--color-copper);
  color: var(--color-white-high);
  border: 1px solid var(--color-copper);
}

.btn-copper:hover {
  background-color: #a05e2a;
  color: var(--color-white-high);
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.btn-copper:active {
  transform: scale(0.98);
  background-color: #8a4f22;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.btn-group > * {
  flex-shrink: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  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;
  justify-content: flex-start;
}

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

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

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

.flex-grow {
  flex: 1 0 auto;
  min-width: 0;
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-width: 0;
}

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

.grid-2 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  min-width: 0;
}

.grid-2 > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
}

.grid-3 > * {
  min-width: 0;
}

.grid-4 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(4, 1fr);
  min-width: 0;
}

.grid-4 > * {
  min-width: 0;
}

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

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

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

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

.divider {
  border: none;
  border-top: 1px solid var(--color-gold-royal);
  margin-block: var(--space-5);
  opacity: 0.6;
}

.gold-text {
  color: var(--color-gold-royal);
}

.copper-text {
  color: var(--color-copper);
}

.white-text {
  color: var(--color-white-high);
}

.muted-text {
  color: var(--color-slate-mid);
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--color-gold-royal);
  border-radius: var(--radius-small);
  padding: var(--space-2);
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  background-color: var(--color-slate-mid);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-gold-royal);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold-royal);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.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;
}

@media (max-width: 1024px) {
  :root {
    --text-display: 2.5rem;
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.375rem;
    --text-h4: 1.125rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 2rem;
    --text-h1: 1.875rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-h4: 1.125rem;
    --space-7: 32px;
    --space-8: 48px;
    --space-9: 64px;
  }

  .container,
  .container-wide,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group > * {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --text-display: 1.75rem;
    --text-h1: 1.625rem;
    --text-h2: 1.375rem;
    --text-h3: 1.125rem;
    --text-h4: 1rem;
    --text-body-large: 1rem;
    --space-5: 16px;
    --space-6: 24px;
    --space-7: 24px;
    --space-8: 32px;
    --space-9: 48px;
  }

  .container,
  .container-wide,
  .card {
    padding: var(--space-3);
  }

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

  .panel {
    padding: var(--space-3);
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
