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

:root {
  --color-dark: #14213D;
  --color-accent: #7A1F2B;
  --color-bg: #F4F1EA;
  --color-text: #1A1A1A;
  --color-blue: #3E5C76;
  --color-line: #C9C2B2;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', Arial, sans-serif;
  --container-max: 1120px;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }

@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
}

p { margin: 0 0 1em; }

a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-dark); }
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; }

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
