/* ==========================================================================
   base.css — tokens, reset, typography, container, accessibility helpers
   New design layer (base_v2). Do not load together with Bootstrap pages.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f1eee7;
  --surface: #e5e0d6;
  --surface-raised: #efece5;
  --ink: #181714;
  --muted: #6e695f;
  --line: rgba(24, 23, 20, 0.14);

  --accent: #f59527;
  --accent-strong: #e0830f;
  --accent-2: #d8db00;

  --content-max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: clamp(12px, 1.4vw, 18px);
  --radius-sm: clamp(8px, 1vw, 12px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

/* Layout ------------------------------------------------------------------ */

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

.page-main {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

/* Lead text --------------------------------------------------------------- */

.lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}

/* Accessibility ----------------------------------------------------------- */

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translate(-50%, -120%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #fff;
  outline-offset: -2px;
}

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
