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

:root {
  --brand-color-light: #60a5fa;
  --brand-color-dark: #1d4ed8;
  --bg-color: #0f172a;
  --stroke-color: #1e293b;
  --text-color-primary: #f1f5f9;
  --text-color-secundary: #cbd5e1;

  --font-family: "Archivo", sans-serif;
  --h1: 800 clamp(1.25rem, 1.06rem + 0.94vw, 1.5rem) / 135% var(--font-family);
  --h2: 800 clamp(0.875rem, 0.78rem + 0.47vw, 1rem) / 140% var(--font-family);
  --h3: 800 clamp(0.75rem, 0.65rem + 0.47vw, 0.875rem) / 140% var(--font-family);
  --text-span: 600 clamp(12px, 1.1vw, 16px) / 145% var(--font-family);
  --text: 400 clamp(14px, 1.25vw, 18px) / 140% var(--font-family);
  --text-sm: 400 clamp(12px, 1.1vw, 14px) / 160% var(--font-family);
}

body {
  font: var(--text);
  background-color: var(--bg-color);
  color: var(--text-color-primary);
}

h1,
h2,
h3 {
  font: inherit;
}

.text-2xl {
  font: var(--h1);
}

.text-xl {
  font: var(--h2);
}

.text-lg {
  font: var(--h3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.4em * 3);
}

.text-sm {
  font: var(--text-sm);
}

.container {
  max-width: 1280px !important;
  padding-inline: 2rem !important;
  margin-inline: auto !important;
}

/* header */

/* nav primary */
#primary {
  display: flex;
  justify-content: space-between;
  padding-block: 1.2rem;
}

#menu img,
#search img {
  cursor: pointer;
  margin-right: 0.5rem;
}

@media (max-width: 426px) {
  #menu span {
    display: none;
  }

  #search span {
    display: none;
  }
}

/* nav secundary */
#secundary {
  padding-block: 0.8rem;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--stroke-color);
  border-inline: none;
}

#secundary a {
  text-decoration: none;
  color: var(--text-color-secundary);
}
#secundary a:hover {
  color: var(--brand-color-light);
}

@media (max-width: 769px) {
  .link-none-md {
    display: none;
  }
}

@media (max-width: 426px) {
  .link-none-sm {
    display: none;
  }
}

/* main */

/* section featured */
#featured {
  margin-top: 2.5rem;
}

.img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cards {
  position: relative;
  border-radius: 4px;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 50%;
    background: linear-gradient(180deg, transparent 0%, #020617 100%);
  }

  figcaption {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;

    span {
      display: inline-block;
      background-color: var(--brand-color-dark);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      text-transform: uppercase;
      font: 500 clamp(12px, 0.75vw, 16px) / 1.2 var(--font-family);
      color: var(--text-color-primary);
      margin-bottom: 8px;
    }

    &:has(.text-lg) {
      padding: 0.7rem;
    }
  }
}

@media (max-width: 768px) {
  .text-2xl-md {
    font: var(--h2);
  }
}

/* section weckly */
#weckly {
  margin-top: 5rem;
}

section#weckly header {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--stroke-color);
  padding-top: 12px;
}

section#weckly header h3,
a {
  font: var(--text-span);
}

section#weckly header a {
  text-decoration: none;
  color: var(--text-color-secundary);
  gap: 4px;
}

section#weckly header a:hover {
  color: var(--brand-color-light);
}

section#weckly main {
  padding-top: 1.5rem;
}

section#weckly main img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

section#weckly main figure {
  position: relative;
}

section#weckly main figure span {
  display: inline-block;
  background-color: var(--brand-color-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font: 500 clamp(12px, 0.75vw, 16px) / 1.2 var(--font-family);
  color: var(--text-color-primary);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}

section#weckly main figure p {
  font-weight: 800;
  margin-top: 0.5rem;
}

/* section ia */
section#ia {
  margin-top: 5rem;
}

#highlights {
  header {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--stroke-color);
    padding-top: 12px;
    margin-bottom: 1.5rem;

    h3 {
      font: var(--text-span);
    }

    a {
      text-decoration: none;
      color: var(--text-color-secundary);
      gap: 4px;
      font: var(--text-span);
    }
    a:hover {
      color: var(--brand-color-light);
    }
  }

  article {
    display: flex;
    margin-bottom: 2rem;
    gap: 1rem;

    span {
      display: inline-block;
      background-color: var(--brand-color-dark);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      text-transform: uppercase;
      font: 500 clamp(12px, 0.75vw, 16px) / 1.2 var(--font-family);
      color: var(--text-color-primary);
      margin-bottom: 8px;
    }

    h3 {
      margin-bottom: 4px;
    }

    img {
      width: 11rem;
      height: auto;
      object-fit: cover;
    }
  }
}

@media (max-width: 425px) {
  #highlights header a span {
    display: none;
  }

  #ia article div img {
    width: 100%;
  }
}

#apart {
  #ads img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 2rem;
  }

  header {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--stroke-color);
    padding-top: 12px;
    margin-bottom: 1.5rem;

    h3 {
      font: var(--text-span);
    }

    a {
      text-decoration: none;
      color: var(--text-color-secundary);
      gap: 4px;
      font: var(--text-span);
    }
    a:hover {
      color: var(--brand-color-light);
    }
  }

  article {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;

    img {
      width: 4.5rem;
      object-fit: cover;
      height: auto;
    }

    span {
      display: inline-block;
      background-color: var(--brand-color-dark);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      text-transform: uppercase;
      font: 500 clamp(12px, 0.75vw, 16px) / 1.2 var(--font-family);
      color: var(--text-color-primary);
      margin-bottom: 8px;
    }
  }
}
