/* ------------------- */
/* Custom properties   */
/* ------------------- */
:root {
  --clr-orange-400: 31 77% 52%;
  --clr-cyan-400: 184 100% 22%;
  --clr-cyan-500: 179 100% 13%;
  --clr-neutral-100: 0 0% 100%;
  --clr-neutral-200: 0 0% 95%;
  --clr-neutral-900: 0 0% 0%;

  --ff-heading: "Big Shoulders Display", cursive;
  --ff-body: "Lexend Deca", sans-serif;

  --fs-400: 0.9375rem;
  --fs-600: 2.5rem;

  --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.67;
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  font-weight: var(--fw-400);
  background-color: hsl(var(--clr-neutral-200));
}

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

h1,
h2,
h3 {
  line-height: 1.19;
}

/* ------------------- */
/* Composition         */
/* ------------------- */
.flex {
  display: flex;
  gap: var(--flex-gap, 1rem);
}

.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-orange-400 {
  background-color: hsl(var(--clr-orange-400));
}
.bg-cyan-400 {
  background-color: hsl(var(--clr-cyan-400));
}
.bg-cyan-500 {
  background-color: hsl(var(--clr-cyan-500));
}

.text-neutral-100-75 {
  color: hsl(var(--clr-neutral-100) / 0.75);
}
.text-neutral-200 {
  color: hsl(var(--clr-neutral-200));
}

.ff-heading {
  font-family: var(--ff-heading);
}

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

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

.uppercase {
  text-transform: uppercase;
}

.mt-24 {
  margin-top: 1.5rem;
}
.mt-36 {
  margin-top: 2.25rem;
}
.mb-auto {
  margin-bottom: auto;
}
@media (min-width: 50em) {
  .md-mt-84 {
    margin-top: 5.25rem;
  }
}

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

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

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

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

.car-options {
  --flex-gap: 0;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  max-width: 20.4375rem;
  margin-inline: auto;
}

.car-options > div {
  --flex-gap: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem;
}

@media (min-width: 50em) {
  .car-options {
    flex-direction: row;
    max-width: 57.5rem;
  }
}

/* ------------------- */
/* Exception           */
/* ------------------- */
.link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-size: var(--fs-400);
  font-weight: var(--fw-400);
}

.link[data-type="primary"] {
  background-color: hsl(var(--clr-neutral-200));
  border: 0.133em solid transparent;
  border-radius: 25px;
  color: hsl(var(--clr-neutral-900));
  mix-blend-mode: screen;
  padding: 0.75rem 2rem;
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out,
    color 200ms ease-in-out;
}

.link[data-type="primary"]:hover,
.link[data-type="primary"]:focus {
  background-color: transparent;
  border-color: hsl(var(--clr-neutral-100));
  color: hsl(var(--clr-neutral-100));
}
