/* Base system: font, colors, reset, typography. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oooh Baby";
  src: url("../fonts/OoohBaby-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-font-body: "Poppins", Arial, sans-serif;
  --bg-font-accent: "Oooh Baby", "Segoe Script", cursive;

  --bg-paper: #fffdf9;
  --bg-cream: #f8f4ee;
  --bg-sage-50: #f1f4ef;
  --bg-sage-100: #dfe6dc;
  --bg-sage-400: #8ba090;
  --bg-sage-700: #647965;
  --bg-action: #647965;
  --bg-action-dark: #4f6353;
  --bg-brand-red: #8b1824;
  --bg-blue: #8fb1d4;
  --bg-ink: #23231f;
  --bg-muted: #62665f;
  --bg-white: #ffffff;
  --bg-border: rgba(100, 121, 101, 0.22);
  --bg-shadow: 0 22px 56px rgba(38, 43, 36, 0.11);
  --bg-shadow-soft: 0 14px 34px rgba(38, 43, 36, 0.08);
  --bg-rule: rgba(100, 121, 101, 0.16);

  --bg-container: 1120px;
  --bg-radius-xl: 0.625rem;
  --bg-radius-lg: 0.375rem;
  --bg-radius-md: 0.375rem;
  --bg-header-height: 5.75rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bg-header-height) + 1.5rem);
}

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

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol,
figure {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--bg-ink);
  font-family: var(--bg-font-accent);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  font-size: 2.65rem;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.6rem;
}

p {
  color: var(--bg-muted);
  font-size: 1.02rem;
  font-weight: 300;
}

p strong,
p b {
  font-weight: 600;
}

@media (min-width: 48rem) {
  html {
    font-size: 15.5px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

::selection {
  background: rgba(143, 177, 212, 0.34);
}

.screen-reader-text,
.bg-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  color: var(--bg-white);
  background: var(--bg-action-dark);
  border-radius: var(--bg-radius-lg);
}
