/* Fonts */
/* 400 */
@font-face {
  font-family: interCustom;
  src: url(../fonts/static/Inter-Regular.ttf);
  font-weight: 400;
}

/* 700 */
@font-face {
  font-family: interCustom;
  src: url(../fonts/static/Inter-Bold.ttf);
  font-weight: 700;
}

/* 800 */
@font-face {
  font-family: interCustom;
  src: url(../fonts/static/Inter-ExtraBold.ttf);
  font-weight: 800;
}

/* Colors */
:root {
  /* PRIMARY */
  --soft-orange: hsl(35, 77%, 62%);
  --soft-red: hsl(5, 85%, 63%);
  /* NEUTRAL */
  --off-white: hsl(36, 100%, 99%);
  --grayish-blue: hsl(233, 8%, 79%);
  --dark-grayish-blue: hsl(236, 13%, 42%);
  --very-dark-blue: hsl(240, 100%, 5%);
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: interCustom, sans-serif;
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--very-dark-blue);
  background-color: var(--off-white);
  min-width: 28rem;
  position: relative;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

/* Header */
header {
  height: 7rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 2.5rem;
}

header nav {
  display: none;
}

.menu-icon {
  cursor: pointer;
  height: 1.5rem;
}

.menu-icon:hover {
  content: url(../images/icon-menu-red.svg);
}

/* Main */
main {
  padding: 0 1rem 8rem;
  max-width: 50rem;
  min-height: calc(100vh - 12rem);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* hero-section */
.hero-img {
  margin-bottom: 2rem;
}

h1 {
  font-size: 4.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.text-content p {
  color: var(--dark-grayish-blue);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.text-content a:link,
.text-content a:visited {
  display: inline-block;
  padding: 2rem 3rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  font-weight: 700;
  color: var(--off-white);
  text-decoration: none;
  background-color: var(--soft-red);
}

.text-content a:hover {
  background-color: var(--very-dark-blue);
}

/* new-section */
.new-section {
  padding: 3rem;
  background-color: var(--very-dark-blue);
  color: var(--grayish-blue);

  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.new-section article {
  cursor: pointer;
  border-bottom: 0.1rem solid var(--grayish-blue);
  padding-bottom: 3rem;
}

.new-section article:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.new-section h2 {
  padding-bottom: 1rem;
  font-size: 3rem;
  color: var(--soft-orange);
}

.new-section h3 {
  padding-bottom: 2rem;
  font-size: 2rem;
  color: var(--off-white);
}

.new-section article:hover h3 {
  color: var(--soft-orange);
}

.new-section article p {
  line-height: 1.5;
}

/* top-section */
.top-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.top-section img {
  height: 12rem;
}

.top-section article {
  cursor: pointer;

  display: flex;
  gap: 3rem;
}

.top-section .top-article {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-section .top-article h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--grayish-blue);
}

.top-section .top-article h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

.top-section article:hover .top-article h3 {
  color: var(--soft-red);
}

.top-section .top-article p {
  color: var(--dark-grayish-blue);
  line-height: 1.5;
}

/* Aside */
aside {
  /* display: none; */
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #00001a88;
}

.aside-menu {
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--off-white);
  height: 100%;
  width: 20rem;
  padding: 2rem;
}

.aside-menu img {
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 8rem;
}

.aside-menu img:hover {
  content: url(../images/icon-menu-close-red.svg);
}

.aside-menu ul {
  list-style-type: none;

  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aside-menu ul a:link,
.aside-menu ul a:visited {
  text-decoration: none;
  color: inherit;
}

.aside-menu ul a:hover,
.aside-menu ul a:active {
  color: var(--soft-red);
}

/* Footer */
footer {
  height: 5rem;
  min-width: 17rem;
  color: var(--very-dark-blue);
  background-color: transparent;
  font-size: 1.3rem;
  line-height: 1.3;

  gap: 1rem;
}

.attribution {
  font-size: 1.1rem;
}

.attribution a:link,
.attribution a:visited {
  color: var(--soft-red);
  padding: 0.1rem;
  text-decoration: none;
}

.attribution a:hover,
.attribution a:active {
  border-bottom: 0.1rem solid var(--soft-red);
}
