@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

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

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--white { background: var(--rsh-white); }
.section--beige { background: var(--rsh-beige); }
.section--purple { background: var(--rsh-purple-dark); color: var(--rsh-off-white); }
.section--black { background: var(--rsh-black); color: var(--rsh-off-white); }

.section--purple h2,
.section--purple h3,
.section--black h2,
.section--black h3 { color: var(--rsh-off-white); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--rsh-gold);
  color: var(--rsh-black);
  padding: .7rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 700;
}

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

:focus-visible {
  outline: 3px solid var(--rsh-gold);
  outline-offset: 4px;
}

::selection {
  background: rgba(192, 153, 101, 0.35);
}
