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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@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;
  }
}

:root {
  --ff-primary: "Montserrat", sans-serif;
  --ff-accent: "Oswald", sans-serif;

  --clr-primary-400: #6f737f;
  --clr-primary-500: #3b4050;
  --clr-primary-600: #2e323f;
  --clr-accent-400: #a59678;
  --clr-neutral-100: #fff;

  --fs-400: 1.125rem;
  --fs-500: 1.25rem;
  --fs-600: 1.5rem;
  --fs-700: 1.875rem;
  --fs-xl: clamp(3rem, 1rem + 5vw, 5.75rem);
}

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--clr-primary-600);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-accent);
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: var(--fs-xl);
}
h2 {
  font-size: var(--fs-700);
}
h3 {
  font-size: var(--fs-600);
}

section,
.primary-footer {
  padding: 4rem 0;
}

/*  utility classes */

.container {
  /* padding: 0 1rem;
  max-width: 60rem; */
  width: min(90%, 60rem);
  margin: 0 auto;
  /* border: 1px solid red; */
}

.bg-dark {
  background-color: var(--clr-primary-600);
  color: var(--clr-neutral-100);
}

.bg-light {
  background-color: #eee;
}

.flow-content > * + * {
  margin-top: 1rem;
}

.split {
  display: flex;
  flex-direction: column;
  /* gap: 2em; */
}

.split > * + * {
  margin: 2em 0 0 0;
}

@media (min-width: 50em) {
  .split {
    flex-direction: row;
  }

  .split > * {
    flex-shrink: 1;
    flex-basis: 100%;
  }

  .split > * + * {
    margin: 0 0 0 2em;
  }

  .big-column {
    flex-basis: 250%;
  }
}

/* components */

.widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.widget {
  padding: 1em;
  flex: 1 1 200px;
}
