/**
 * base.css — Design tokens, reset, typography, accessibility
 * Edit colors/fonts here to update the whole site.
 */

/* ========== Design tokens ========== */
:root {
  --color-gold: #d7bb62;
  --color-dark-blue: #0c2a39;
  --color-orange: #d79222;
  --color-teal: #008f87;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-display: "bely-display", serif;
  --font-sans: "montserrat", sans-serif;

  --max-width: 1400px;
  --spacing-section: 6rem;
  --spacing-section-lg: 8rem;

  --shadow-card: 0 1px 3px rgba(12, 42, 57, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(12, 42, 57, 0.12);

  --transition-ui: 200ms ease;
  --transition-hover: 300ms ease;
}

/* ========== Minimal reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-dark-blue);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-gold);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-dark-blue);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
  text-decoration: none;
}

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

/* ========== Shared utilities ========== */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Page title style used on most index pages */
.page-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* Display font for section headlines */
.font-display {
  font-family: var(--font-display);
}

/* Dark blue band with logo watermark (home unorthodoxy, blog section, etc.) */
.bg-brand-dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  background-image: url("/images/uv-logo-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.bg-white {
  background-color: var(--color-white);
}

.bg-gold {
  background-color: var(--color-gold);
}

.bg-dark-blue {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.text-gold {
  color: var(--color-gold);
}

.text-orange {
  color: var(--color-orange);
}

.text-white {
  color: var(--color-white);
}

.text-dark-blue {
  color: var(--color-dark-blue);
}

.hidden {
  display: none !important;
}

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