/* HistoryScope — base.css : reset, tokens, typography */

[hidden]{display:none!important}

:root {
  --color-terracotta: #A85C32;
  --color-dutch-blue: #2E4A62;
  --color-bg: #F2E9DC;
  --color-text: #241A12;
  --color-british: #8C6D46;
  --color-merdeka: #5C7A5E;
  --color-surface: #FFFCF6;
  --color-border: #D9C9AE;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Rubik', system-ui, -apple-system, sans-serif;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 10px rgba(36, 26, 18, 0.12);
  --container-max: 1140px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 40px);
}

h2 {
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 28px);
  margin-top: 2.2em;
}

h3 {
  font-weight: 600;
  font-size: 20px;
}

p { margin: 0 0 1em; }

a {
  color: var(--color-dutch-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

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

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

.era-tag {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 8px;
  top: -60px;
  background: var(--color-terracotta);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

.verify-note {
  font-size: 14px;
  font-style: italic;
  color: var(--color-dutch-blue);
  background: rgba(46,74,98,0.08);
  border-left: 3px solid var(--color-dutch-blue);
  padding: 0.5em 0.8em;
  margin: 0.8em 0;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}
