/* ------------------- */
/* Custom properties   */
/* ------------------- */
:root {
  --clr-neutral-100: 0 0% 100%;
  --clr-neutral-300: 212 45% 89%;
  --clr-neutral-400: 220 15% 55%;
  --clr-neutral-800: 218 44% 22%;
  --clr-neutral-900: 0 0% 0%;

  --ff-sans: "Outfit", sans-serif;

  --fs-400: 0.9375rem;
  --fs-700: 1.375rem;

  --fw-400: 400;
  --fw-700: 700;
}

/* ------------------- */
/* Reset               */
/* ------------------- */
/* 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:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.25;
  font-family: var(--ff-sans);
  font-size: var(--fs-400);
  font-weight: var(--fw-400);
  color: hsl(var(--clr-neutral-400));
  background-color: hsl(var(--clr-neutral-300));
}

/* 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, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------- */
/* Composition         */
/* ------------------- */
.grid {
  display: grid;
  gap: var(--grid-gap, 1rem);
}

/* ------------------- */
/* Utility             */
/* ------------------- */
.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;
}

.bg-neutral-100 {
  background-color: hsl(var(--clr-neutral-100));
}

.text-neutral-800 {
  color: hsl(var(--clr-neutral-800));
}

.fs-700 {
  font-size: var(--fs-700);
}

.fw-700 {
  font-weight: var(--fw-700);
}

.text-center {
  text-align: center;
}

/* ------------------- */
/* Block               */
/* ------------------- */
.container {
  place-items: center;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas:
    "header"
    "main"
    "footer";
  min-height: 100vh;
  min-width: fit-content;
  padding: 1rem 1.75rem;
}

.container > main {
  grid-area: main;
}

.container > footer {
  grid-area: footer;
  align-self: end;
}

.card {
  width: min(100%, 20rem);
  padding: 1rem 1rem 2.5rem;
  border-radius: 20px;
  margin-inline: auto;
  box-shadow: 0px 25px 25px 0px hsl(var(--clr-neutral-900) / 0.05);
}

.card img {
  border-radius: 10px;
}

.card h2 {
  margin-top: 1.5rem;
}

.card p {
  margin-top: 1rem;
  margin-inline: 1rem;
}
