:root {
  --color-primary: #0d4f91;
  --color-teal: #14b8a6;
  --color-emerald: #059669;
  --color-navy: #0b1d3a;
  --color-white: #ffffff;
  --color-gray: #f1f3f6;
  --color-gold: #d4af37;
  --color-text: #485663;

  /* Text-safe variants of the accent colours.
     Teal, gold and emerald are below WCAG AA as text on light backgrounds
     (2.49:1, 2.10:1 and 3.77:1). These darker versions of the same hues pass
     AA on white. Use them when the colour is TEXT on a light background; keep
     the originals for fills, borders, icons and anything on navy.
     Measurements: content/accessibility-contrast-audit.md */
  --color-teal-text: #0f766e;    /* 5.47:1 on white */
  --color-emerald-text: #047857; /* 5.48:1 on white */
  --color-gold-text: #8a6d1f;    /* 4.90:1 on white */
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

body.menu-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------
   Accessibility - skip link and visible focus
   --------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   Login gate card (js/auth.js)
   --------------------------------------------------------------- */

.auth-gate {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.08);
  text-align: center;
}

.auth-gate__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.auth-gate__title {
  margin: 0 0 0.65rem;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.25;
}

.auth-gate__copy {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-gate__action {
  display: inline-block;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.auth-gate__action:hover {
  background: #0a3f75;
  transform: translateY(-2px);
}

.auth-gate__note {
  margin: 1.1rem 0 0;
  color: #5c6a78;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .auth-gate__action {
    transition: none;
  }

  .auth-gate__action:hover {
    transform: none;
  }
}
