:root {
  --pine-950: #0F1A14;
  --pine-900: #16241C;
  --pine-800: #1E3126;
  --ember-500: #D97A2B;
  --ember-300: #F0A85C;
  --felt-700: #1F4D3A;
  --felt-500: #2E7A5A;
  --brass-400: #C9A24B;
  --smoke-100: #F2EDE4;
  --smoke-300: #C9C0B2;
  --smoke-500: #8A8175;
  --error-500: #C24B3A;
  --success-500: #3E8E5A;

  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --text-display: 64px;
  --text-h1: 48px;
  --text-h2: 36px;
  --text-h3: 28px;
  --text-h4: 22px;
  --text-body-large: 20px;
  --text-body: 17px;
  --text-body-small: 15px;
  --text-caption: 13px;
  --text-label: 12px;

  --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;
  --space-10: 128px;

  --container-max: 1200px;
  --container-wide: 1360px;
  --page-padding-mobile: 24px;
  --page-padding-tablet: 40px;
  --page-padding-desktop: 64px;

  --radius-0: 0px;
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;

  --border-subtle: 1px solid var(--pine-800);
  --border-brass-30: 1px solid rgba(201, 162, 75, 0.3);
  --border-brass-20: 1px solid rgba(201, 162, 75, 0.2);
  --border-ember-40: 1px solid rgba(217, 122, 43, 0.4);

  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);

  --transition-color: 200ms ease-out;
  --transition-transform: 300ms ease-out;
  --transition-shadow: 300ms ease-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(--pine-950);
  color: var(--smoke-100);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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(--ember-500);
  text-decoration: none;
  transition: color var(--transition-color);
}

a:hover {
  color: var(--ember-300);
  text-decoration: underline;
  text-decoration-color: var(--ember-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--smoke-100);
  line-height: 1.2;
  margin-block-end: var(--space-4);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(36px, 5vw, var(--text-h1));
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-block-end: var(--space-5);
}

h2 {
  font-size: clamp(28px, 3.5vw, var(--text-h2));
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-block-end: var(--space-5);
}

h3 {
  font-size: clamp(22px, 2.5vw, var(--text-h3));
  line-height: 1.2;
  font-weight: 600;
  margin-block-end: var(--space-4);
}

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

h5 {
  font-size: var(--text-body);
  line-height: 1.3;
  font-weight: 600;
  margin-block-end: var(--space-3);
}

h6 {
  font-size: var(--text-body-small);
  line-height: 1.4;
  font-weight: 600;
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-5);
  overflow-wrap: break-word;
}

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

ul {
  list-style: none !important;
}

ol {
  list-style: decimal;
}

li {
  overflow-wrap: break-word;
}

blockquote {
  margin-block-end: var(--space-5);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--ember-500);
  color: var(--smoke-300);
  font-style: italic;
}

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

figcaption {
  font-size: var(--text-caption);
  color: var(--smoke-300);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-block-start: var(--border-subtle);
  margin-block: var(--space-7);
}

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

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

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

td {
  color: var(--smoke-300);
}

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

fieldset {
  border: var(--border-subtle);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  margin-block-end: var(--space-5);
}

legend {
  font-family: var(--font-heading);
  font-weight: 600;
  padding-inline: var(--space-2);
  color: var(--smoke-100);
}

label {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--smoke-300);
  margin-block-end: var(--space-2);
}

input,
textarea,
select {
  display: block;
  width: 100%;
  background-color: var(--pine-800);
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-1);
  color: var(--smoke-100);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body);
  line-height: 1.5;
  transition: border-color var(--transition-color), box-shadow var(--transition-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--smoke-500);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9C0B2' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-inline-end: var(--space-8);
}

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

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  margin-inline-end: var(--space-2);
  accent-color: var(--ember-500);
}

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

input:disabled,
textarea:disabled,
select:disabled {
  color: var(--smoke-500);
  cursor: not-allowed;
  opacity: 0.6;
}

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

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

.surface {
  background-color: var(--pine-900);
  border: var(--border-subtle);
  border-radius: var(--radius-2);
}

.card {
  background-color: var(--pine-900);
  border: var(--border-subtle);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  transition: border-color var(--transition-color), box-shadow var(--transition-shadow), transform var(--transition-transform);
}

.card:hover {
  border-color: var(--border-ember-40);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-1);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition-color), color var(--transition-color), border-color var(--transition-color), box-shadow var(--transition-shadow), transform var(--transition-transform);
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-primary {
  background-color: var(--ember-500);
  color: var(--smoke-100);
  border-color: var(--ember-500);
}

.btn-primary:hover {
  background-color: var(--ember-300);
  border-color: var(--ember-300);
  color: var(--pine-950);
  text-decoration: none;
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--smoke-100);
  border-color: var(--pine-800);
}

.btn-secondary:hover {
  background-color: var(--pine-800);
  border-color: var(--pine-800);
  color: var(--smoke-100);
  text-decoration: none;
}

.btn-poker {
  background-color: var(--felt-500);
  color: var(--smoke-100);
  border-color: var(--felt-500);
}

.btn-poker:hover {
  background-color: var(--felt-700);
  border-color: var(--felt-700);
  color: var(--smoke-100);
  text-decoration: none;
  transform: scale(1.02);
}

.btn-poker:active {
  transform: scale(0.98);
}

.badge {
  display: inline-block;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-400);
  border: var(--border-brass-30);
  border-radius: var(--radius-1);
  padding: var(--space-1) var(--space-2);
  line-height: 1.4;
}

.divider {
  border: none;
  border-block-start: var(--border-subtle);
  margin-block: var(--space-5);
}

.divider-brass {
  border: none;
  border-block-start: var(--border-brass-20);
  margin-block: var(--space-5);
}

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

.section-alt {
  background-color: var(--pine-900);
}

.section-poker {
  background-color: var(--felt-700);
}

.text-smoke-100 {
  color: var(--smoke-100);
}

.text-smoke-300 {
  color: var(--smoke-300);
}

.text-smoke-500 {
  color: var(--smoke-500);
}

.text-ember-500 {
  color: var(--ember-500);
}

.text-ember-300 {
  color: var(--ember-300);
}

.text-brass-400 {
  color: var(--brass-400);
}

.text-error {
  color: var(--error-500);
}

.text-success {
  color: var(--success-500);
}

.text-label {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-caption {
  font-size: var(--text-caption);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 500;
}

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

.text-body-large {
  font-size: var(--text-body-large);
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10000;
  background-color: var(--ember-500);
  color: var(--smoke-100);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-1);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--transition-transform);
}

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

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

@media (min-width: 768px) {
  .container,
  .container-wide {
    padding-inline: var(--page-padding-tablet);
  }

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

@media (min-width: 1024px) {
  .container,
  .container-wide {
    padding-inline: var(--page-padding-desktop);
  }

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

@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;
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

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