/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

:root {
  /* Typography */
  --font-base: "Flexend Deca", sans-serif;
  --font-heading: "Big Shoulders", sans-serif;

  /* Font sizes */
  --font-size-body: 15px;

  /* Breakpoints */
  --breakpoint-mobile: 375px;
  --breakpoint-desktop: 1440px;

  /* Primary Colors */
  --color-gold-500: hsl(31, 77%, 52%);
  --color-cyan-800: hsl(184, 100%, 22%);
  --color-green-950: hsl(179, 100%, 13%);

  /* Neutral Colors */
  --color-white-transparent-75: hsla(0, 0%, 100%, 0.75);
  --color-gray-100: hsl(0, 0%, 95%);

  /* Gap */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
}

@font-face {
  font-family: "Flexend Deca";
  src: url("fonts/Lexend_Deca/LexendDeca-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: regular;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/Big_Shoulders/BigShoulders-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: bold;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-base);
  font-size: var(--font-size-body);
  height: 100vh;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  color: var(--color-gray-100);
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
  font-size: var(--font-size-body);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
}
a {
  text-decoration: none;
  /* color: inherit; */
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: var(--space-10) 0;
}

.card-wrapper {
  border-radius: var(--space-2);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 90%;
  max-width: 900px;
}

.card {
  flex: 1 1 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  gap: var(--space-6);
  justify-content: space-around;
}

.btn-primary {
  width: max-content;
  padding: var(--space-3) var(--space-7);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--space-6);
  background-color: var(--color-gray-100);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  color: var(--color-gray-100);
  background-color: transparent;
}

.card-one {
  background-color: var(--color-gold-500);
}
.card-one a {
  color: var(--color-gold-500);
}

.card-two {
  background-color: var(--color-cyan-800);
}
.card-two a {
  color: var(--color-cyan-800);
}

.card-three {
  background-color: var(--color-green-950);
}
.card-three a {
  color: var(--color-green-950);
}

@media (min-width: 376px) {
  .gap-top-8 {
    margin-top: var(--space-8);
  }
}
