/* ==========================================================================
   Enthrone Capital — reset + accessible defaults
   Framework-free. This file is ONLY the reset/normalize layer.
   Brand tokens and component styles live in site.css.
   ========================================================================== */

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

/* --- Document ----------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;   /* prevent iOS font auto-scaling */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 100%;                  /* respect the user's browser setting */
  line-height: 1.55;                /* accessible default leading */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Headings ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p, ul, ol {
  margin: 0 0 1em;
}

/* --- Media -------------------------------------------------------------- */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Forms inherit typography ------------------------------------------ */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* --- Links -------------------------------------------------------------- */
a {
  color: inherit;
}

/* --- Lists used as nav -------------------------------------------------- */
ul[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Accessible visually-hidden helper --------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Focus visibility (keyboard) --------------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus-ring, #7aa7ff);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.75rem;
}

/* --- Reduced motion ----------------------------------------------------- */
@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;
  }
}
