/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/outfit-v15-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/outfit-v15-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/outfit-v15-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/outfit-v15-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/outfit-v15-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --color-white: #ffffff;
  --color-black: #000000;

  --color-blue-950: #0d192c;
  --color-blue-900: #15263f;
  --color-blue-800: #2e405a;
  --color-blue-500: #8bacd9;

  --color-cyan-400: 0, 255, 248;

  --font-general: "Outfit", "sans-serif";

  --fs-xxs: 0.75rem; /* 12px */
  --fs-xs: 0.875rem; /* 14px */
  --fs-sm: 1rem; /* 16px */
  --fs-md: 1.125rem; /* 18px */
  --fs-lg: 1.5rem; /* 24px */
  --fs-sub: 1.75rem; /* 28px */
  --fs-xl: 1.875rem; /* 30px */
  --fs-2xl: 2.25rem; /* 36px */
  --fs-3xl: 3rem; /* 48px */
  --fs-4xl: 3.5rem; /* 56px */
  --fs-5xl: 4.5rem; /* 72px */

  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-7: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-9: 6rem; /* 96px */
}

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

body {
  font-family: var(--font-general);
}

.content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-blue-950);
}

.card {
  width: 100%;
  max-width: 21.875rem;
  max-height: 37.25rem;

  display: flex;
  flex-direction: column;
  gap: var(--space-5);

  padding: var(--space-5);
  border-radius: 15px;
  background-color: var(--color-blue-900);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 9.53%);
}

.card__image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.card__image {
  display: block;
  width: 100%;
  height: auto;
}

.card__image-container:hover .card__overlay {
  display: flex;
}

.card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background-color: rgba(var(--color-cyan-400), 50.3%);
}

.card__icon {
  width: 3rem;
  height: 3rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card__description {
  color: var(--color-blue-500);
  font-size: var(--fs-md);
  line-height: 145%;
  margin-bottom: var(--space-5);
  font-weight: 300;
}

.card__informations {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  & > * {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
}

.card__eth {
  color: rgb(var(--color-cyan-400));
  font-weight: 500;
}

.card__time {
  color: var(--color-blue-500);
}

.link:link,
.link:visited {
  display: inline-block;
  text-decoration: none;
  transition: 0.3s;
}

.link--title:link,
.link--title:visited {
  font-size: 1.375rem;
  line-height: 125%;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.link--name:link,
.link--name:visited {
  color: var(--color-white);
}

.link--title:hover,
.link--name:hover {
  color: rgb(var(--color-cyan-400));
}

.line {
  display: block;
  border-bottom: 1px solid var(--color-blue-800);
  margin-bottom: var(--space-5);
  font-size: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author__image {
  border: 1px solid var(--color-white);
  border-radius: 50%;
}

.author__name {
  color: var(--color-blue-500);
}
