/* CSS Reset - A more modern and concise version 
* Many thanks to: 
* Josh Comeau - https://www.joshwcomeau.com/css/custom-css-reset/
* Kevin Powell - https://youtu.be/eWmDW4zEXt4?si=S94B0BbGfmo5VZsq/
* Andy Bell - https://piccalil.li/blog/a-more-modern-css-reset/
* Ire Aderinokun - https://bitsofco.de/my-css-reset-base/
*/

/* Remove default margin */
* {
  margin: 0;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body defaults rules */
body {
  line-height: 1.5;
  min-height: 100vh;
}

/* Typography tweaks */
/* Remove built-in form typography styles */
input, 
button, 
textarea, 
select {
  font: inherit;
}

/* Typography tweaks */
/* Avoid text overflows */
p, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  overflow-wrap: break-word;
}

/* Typography tweaks */
/* Balance the number of words*/
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Reset specific element styles */
ol,
ul {
  list-style: none;
  padding: 0;
}

img,
picture, 
video, 
canvas, 
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

a,
a:visited {
  color: inherit;
}

/* Basic styles */
:root {
  --title-color: hsl(0, 0%, 7%);
  --bg-color: hsl(47, 88%, 63%);
  --main-font-size: .875rem;
}

.page {
  background-color: var(--bg-color);
  font-family: "Figtree", sans-serif;
}

.container {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100vh;
  padding: 40px 25px;
  width: 100%;
}

/* Card */
.card {
  background-color: hsl(0, 0%, 100%);
  border: 1px solid var(--title-color);
  border-radius: 20px;
  filter: drop-shadow(8px 8px 0 var(--title-color));
  max-width: 384px;
  padding: 24px;
  width: 100%;
}

.card__hero-img {
  border-radius: 10px;
}

.card__main {
  padding: 24px 0;
}

.card__main-title {
  background-color: var(--bg-color);
  border-radius: 4px;
  color: var(--title-color);
  display: inline-block;
  font-size: var(--main-font-size);
  font-weight: 800;
  padding: 4px 12px;
}

.card__main-datetime {
  color: var(--title-color);
  display: block;
  font-weight: 500;
  font-size: var(--main-font-size);
  margin-top: 12px;
}

.card__main-link {
  color: var(--title-color);
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 12px;
  transition: color .3s;
}

.card__main-link:visited {
  color: var(--title-color);
}

.card__main-link:hover {
  color: hsl(47, 88%, 63%);
}

.card__main-copy {
  color: hsl(0, 0%, 42%);
  font-weight: 500;
  margin-top: 15px;
}

.card__footer {
  align-items: center;
  display: flex;
  gap: 10px;
}

.card__footer-img {
  width: 32px;
  height: 32px;
}

.card__footer-title {
  color: var(--title-color);
  font-size: var(--main-font-size);
  font-weight: 800;
}

/* Responsive design */
@media (max-width: 767px) {
  .card__main-link {
    font-size: 1.25rem;
  }
  
  .card__main-copy {
    font-size: var(--main-font-size);
  }
}