/* ImperialLuck base.css — resets, tokens, typography */
:root {
  --bg: #123524;
  --surface: #1B4531;
  --accent: #D99A2B;
  --bg-light: #F6F4EC;
  --text-on-light: #171A15;
  --text-on-dark: #EEF2E9;
  --warning: #B4531F;
  --success: #2C6E5B;
  --font-head: 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.05rem;
}

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text-on-light);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--success); }
a:hover, a:focus { color: var(--warning); }

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

ul, ol { padding-left: 1.4em; }

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

th, td {
  border: 1px solid #cfcabb;
  padding: 0.6em 0.8em;
  text-align: left;
  vertical-align: top;
}

th { background: var(--surface); color: var(--text-on-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--text-on-light);
  padding: 0.6em 1em;
  z-index: 1000;
  font-family: var(--font-body);
}

.skip-link:focus {
  left: 0.5em;
  top: 0.5em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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