/* === Variables === */

:root {
  --brown: #806064;
  --beige: #e2dcd6;
  --light: #f9f7f5;
  --white: #ffffff;
  --navy: #16283b;
  --blue: #6c7fb4;
  --sky: #cfd7e7;
  --pink: #e27f9c;
  --coral: #fbdee2;
  --green: #989b4b;
  --lime: #d1c267;
  --tomato: #e95837;
  --skin: #f8eed5;
}

@font-face {
  font-family: "Inria Serif";
  src: url("../fonts/InriaSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inria Serif";
  src: url("../fonts/InriaSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inria Serif";
  src: url("../fonts/InriaSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* === General styles === */

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

body {
  background: var(--light);
  color: var(--navy);
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-size: 1em;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent; 
}
 
::-webkit-scrollbar-thumb {
  background: #c6beb6; 
}

::-webkit-scrollbar-thumb:hover {
  background: #c6beb6; 
}

.article {
  scroll-snap-type: y mandatory;
}

p {
  margin-bottom: 1em;
}

strong {
  /* background-color: #efece8; */
  background-color: var(--skin);
}

ul {
  padding-inline-start: 40px;
  margin-block-end: 1em;
}

/* === Text styles === */

h1 {
  font-weight: 400;
  font-size: 2em;
  line-height: 102%;
  margin-bottom: 1em;
}

h2 {
  font-weight: 400;
  font-size: 2em;
  line-height: 102%;
  margin-bottom: 1em;
}

h3 {
  font-weight: 400;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brown);
  margin-bottom: 1em;
}

.textstyle--lead {
  font-size: 2em;
  font-style: italic;
  text-wrap: balance;
}

a, a:visited {
  color: var(--brown);
  text-decoration: none;
  position: relative;
  transition: .3s;
}

a:focus {
  outline: none;
  color: var(--blue);
}

a:hover {
  color: var(--blue);
}

p a::after,
.footer a::after,
.nav a::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 1px;
  right: 0;
  bottom: -0.2rem;
  border-bottom: 1px solid var(--brown);
  transform: scale(0,1);
  transform-origin: left center;
  transition: .3s;
}

p a:focus,
p a:hover,
.footer a:focus,
.footer a:hover,
.nav a:focus,
.nav a:hover {
  color: var(--brown);
}

p a:hover::after,
.footer a.link--current::after,
.footer a:hover::after,
.nav a.link--current::after,
.nav a:hover::after {
  transform: scale(1,1);
}

p a:focus::after,
.footer a:focus::after,
.nav a:focus::after {
  transform: scale(1,1);
  border-bottom: 1px solid var(--tomato);
}

.tag {
  padding: 0.4em 12px;
  background-color: var(--light);
  border: 1px solid transparent;
  font-weight: 400;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a.tag:focus {
  border: 1px solid var(--blue);
}

a.tag--editorial-design,
span.tag--editorial-design {
  color: var(--brown);
}

a.tag--graphic-design,
span.tag--graphic-design {
  color: var(--pink);
}

a.tag--illustration,
span.tag--illustration {
  color: var(--green);
}

a.tag--photography,
span.tag--photography {
  color: var(--brown);
}

a.tag--web-design,
span.tag--web-design {
  color: var(--tomato);
}

a.tag--web-development,
span.tag--web-development {
  color: var(--blue);
}

a.button--squared,
button.button--squared {
  border: none;
  outline: none;
  padding: 0.8em 2em;
  background-color: var(--brown);
  font-family: inherit;
  font-weight: 400;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light);
  transition: .2s;
}

a.button--squared:focus,
a.button--squared:hover,
button.button--squared:focus,
button.button--squared:hover {
  background-color: var(--blue);
  color: var(--light);
}