@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 400;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--text-h4);
  font-weight: 600;
}

h5 {
  font-size: var(--text-h5);
  font-weight: 700;
}

h6 {
  font-size: var(--text-h6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: var(--space-md);
  max-width: 68ch;
}

a {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(184, 151, 106, 0.4);
  transition: color var(--transition-default), text-decoration-color var(--transition-default);
}

a:hover {
  color: var(--color-spark);
  text-decoration-color: var(--color-spark);
}

::selection {
  background-color: var(--color-spark-glow);
  color: var(--color-text);
}

::-moz-selection {
  background-color: var(--color-spark-glow);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style-position: inside;
  padding-inline-start: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--color-sage-wash);
  margin: var(--space-xl) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

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