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

:root {
  --color-dark: #1B3B2F;
  --color-accent: #C8A24A;
  --color-bg: #F7F5EE;
  --color-text: #1C1C1C;
  --color-text-on-dark: #F7F5EE;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
  --radius: 4px;
}

[hidden] { display: none !important; }

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

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

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

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

h3 {
  font-weight: 600;
  font-size: 20px;
  margin-top: 1.2em;
}

p { margin: 0 0 1em; }

.lead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 20px);
  color: var(--color-dark);
}

a {
  color: var(--color-dark);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

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

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

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

li { margin-bottom: 0.4em; }

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

.verify {
  color: var(--color-dark);
  background: rgba(200,162,74,0.18);
  border-bottom: 2px dotted var(--color-accent);
  padding: 0 2px;
  font-style: italic;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

th, td {
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid rgba(27,59,47,0.15);
}

th { font-family: var(--font-head); color: var(--color-dark); }
