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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 154, 91, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(245, 242, 233, 0.06), transparent 28%),
    linear-gradient(160deg, var(--navy-900), var(--bg) 42%, var(--navy-800));
  background-attachment: fixed;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 0%, rgba(183, 154, 91, 0.16), transparent 30%),
    linear-gradient(180deg, #fffdf8, var(--brand-ivory) 40%, #ebe6da);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
