@font-face {
  font-family: 'Young Serif';
  src: url(../assets/fonts/young-serif/YoungSerif-Regular.ttf);
}

@font-face {
  font-family: 'Outfit';
  src: url(../assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
}

:root {
  --color-white: hsl(0, 0%, 100%);
  --color-stone-one: hsl(30, 54%, 90%);
  --color-stone-two: hsl(30, 18%, 87%);
  --color-stone-three: hsl(30, 10%, 34%);
  --color-stone-four: hsl(24, 5%, 18%);
  --color-headings: hsl(14, 45%, 36%);
  --color-rose-one: hsl(332, 51%, 32%);
  --color-rose-two: hsl(330, 100%, 98%);
}

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

/* Typography */
html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: Outfit;
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: 'Young Serif', serif;
  font-weight: 500;
  line-height: 1.0;
  margin-bottom: 1.4rem;
  margin-top: 3rem;
}

h1 {
  font-size: 3.2rem;
}

h2 {
  font-size: 2.4rem;
  color: var(--color-headings);
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0;
}

/* Cards */
.container {
  background: rgb(241, 200, 206);
  min-height: 100vh;
}

.card {
  background: var(--color-white);
  height: 100%;
}


.card__image {
  width: 100%;
}

.card__body {
  padding: 0 3rem;
}

@media screen and (min-width: 768px) {
  .container {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
  }

  .card {
    height: fit-content;
    margin-top: 8rem;
    max-width: 80vw;
    border-radius: 10px;
  }
  
  .card__header {
    padding: 3rem 3rem 0 3rem;
  }
}

/* Lists */
ul, ol {
  padding: 0 3rem;
}

ul {
  list-style-type: square;
}

li {
  padding-left: 2rem;
  margin-bottom: 1.4rem;
}


li::marker {
  color: var(--color-headings);
  font-weight: 700;
}

/* Block */
.block {
  border-radius: 16px;
  padding: 2.4rem;
  overflow: hidden;
}

.block__header {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.block--colored {
  background: var(--color-rose-two);
}

.block--colored .block__header {
  color: var(--color-rose-one);
}

/* Table */
.table {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.table__item {
  border-bottom: 1px solid var(--color-stone-two);
  padding: 1.6rem 3rem;
}

.table__item:nth-of-type(even) {
  font-weight: 900;
  color: var(--color-headings);
}

.table__last-item {
  border: 0;
}

/* Sections */
.section {
  border-bottom: 1px solid var(--color-stone-two);
  padding-bottom: 3.4rem;
  margin-bottom: 2rem;
}

.section:last-of-type {
  border: 0;
}

/* utilities */
.shift-down {
  margin-top: 4rem;
}

.bolden {
  font-weight: 700;
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }