/* ============================================================
   Base – Reset, Custom Properties, Element Defaults
   ============================================================ */

:root {
  --color-gold: #FCCA73;
  --color-gold-dark: #E5B45A;
  --color-dark: #0a0a0a;
  --color-bg: #F5F5F5;
  --color-white: #ffffff;
  --color-text: #262626;
  --color-text-muted: #595959;
  --color-border: #EBEBEB;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Lato', sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --container-max: 1200px;
  --header-height: 80px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  /* Dark base so the brief flash during hard navigation
     (homepage ↔ subpage) stays dark instead of white/grey. */
  background: var(--color-dark);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

a:hover {
  color: var(--color-gold-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

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

strong {
  font-weight: 700;
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
