/*

  --- 01 TYPOGRAPHY SYSTEM

  - Font sizes (px):
  10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

  - Font weights:
  Default: 400
  Medium: 500
  Semi-Bold: 600
  Bold: 700

  - Line heights
  Default: 1
  Small: 1.05
  Medium: 1.2
  Paragraph default: 1.6
  Large: 1.8

  - Letter spacing
  -0.5px
  0.75px

  --- 02 COLORS

  - Primary: #3498db
  - Tints:
  #ebf5fb
  #d6eaf8
  #5dade2
  
  - Shades: 
  #2f89c5
  #102e42

  - Accents: 
  - Greys
  #888
  #767676 (lightest grey allowed on #fff)
  #6f6f6f (lightest grey allowed on  #ebf5fb)
  #555
  #333

  --- 05 SHADOWS
  0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);


  --- 06 BORDER-RADIUS

  Default: 9px
  Medium: 11px

  --- 07 WHITE-SPACE

  - Spacing system (px)
  2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128


  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */

  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;

  overflow-x: hidden;

  /* Does NOT work on Safari */
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;

  /* Only works if there is nothing absolutely 
    positioned in relation to body */
  overflow-x: hidden;
}

/**************************/
/* GENERAL REUSABLE COMPONENTS */
/**************************/

.container {
  /* 1140px, 1200px */
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  row-gap: 9.6rem;
  column-gap: 6.4rem;

  /* margin-bottom: 9.6rem; */
}

/* .grid:last-child {
    margin-bottom: 0;
  } */

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5-cols {
  grid-template-columns: repeat(5, 1fr);
}

.grid--center-v {
  align-items: center;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #333;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.heading-category {
  font-size: 1.6rem;
}

.sub-heading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.75px;
  color: #2f89c5;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  text-decoration: none;

  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  /* Put transition on original "state" */
  /* transition: background-color 0.3s; */
  transition: all 0.3s;
}

.btn--full:link,
.btn--full:visited {
  color: #fff;
  background-color: #3498db;
}

.btn--full:hover,
.btn--full:active {
  background-color: #2f89c5;
}

.btn--outline:link,
.btn--outline:visited {
  color: #333;
  background-color: #fff;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: #ebf5fb;

  /* Trick to add border inside */
  box-shadow: inset 0 0 0 3px #fff;
}

.btn--form {
  color: #ebf5fb;
  background-color: #102e42;
  align-self: end;
  padding: 1.2rem;
}

.btn--form:hover {
  color: #555;
  background-color: #fff;
}

.btn--favorite {
  font-size: 2rem;
  padding: 0.8rem 1.6rem;
}

.btn--favorite:hover {
  background-color: #ffdeeb;
}
.btn--favorite.active {
  background-color: #ffdeeb;
}

.btn--read {
  color: #333;
  background-color: #ebf5fb;
  font-size: 2rem;
  padding: 1.2rem 2.4rem;
}

.btn--read:hover {
  background-color: #c5f6fa;
}

.btn--sign-out {
  font-size: 1.8rem;
  color: #333;
  background-color: #fff;
  align-self: end;
  padding: 1.2rem 2.4rem;
  box-shadow: inset 0 0 0 0.3px #333;
}

.btn--sign-out:hover {
  color: #fff;
  background-color: #102e42;
  box-shadow: none;
}

.link:link,
.link:visited {
  display: inline-block;
  text-decoration: none;
  color: #3498db;

  /* currentColor will take the current text-color */
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;

  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: #2f89c5;
  border-bottom: 1px solid transparent;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.list-item {
  font-size: 1.8rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.list-icon {
  width: 3rem;
  height: 3rem;
  color: #3498db;
}

*:focus {
  outline: none;
  /* outline: 4px dotted #3498db; */
  /* outline-offset: 8px; */

  box-shadow: 0 0 0 0.8rem rgb(52, 152, 219, 0.5);
}

/* HELPER/SETTINGS CLASSES */
.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

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

strong {
  font-weight: 500;
}
