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

body {
  font-family: var(--font-subheading);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
}

.site-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.75rem;
  text-decoration: none;
  color: var(--color-accent);
}

nav a {
  text-decoration: none;
  color: var(--color-text-muted); /* soft grey-navy, 4.9:1 */
  transition: color 0.2s ease;
  margin-left: 32px;
}

/* hover: turns the site pink */
nav a:hover {
  color: var(--color-accent);
}

main.grid {
  --entry-max: 340px; /* widest a home-page card (and its cover) can get */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;               /* 48px */
  padding: 0 3.75rem 5rem; /* 60px sides, 80px bottom */
}

.about {
  font-size: 1.25rem;
  font-weight: 100;
  color: var(--color-text);
}

.entry {
  position: relative;
  max-width: var(--entry-max); /* so cards don't balloon on wide screens */
  display: block;
  color: inherit;
  text-decoration: none;
}

.thumb {
  display: block; /* no hidden text-line gap under the image */
  aspect-ratio: 3 / 3;
  width: 100%;
  object-fit: cover;
  margin-bottom: 1rem;   /* 16px */
  border-radius: 0.5rem; /* 8px */
}

/* shows the whole image at its own shape instead of cropping it to a
   square (for covers like a polaroid, where the frame is part of the
   picture) */
.thumb--whole {
  aspect-ratio: auto;
  height: auto;
}

.flower {
  --g: /30.26% 30.26% radial-gradient(#000 calc(71% - 1px), #0000 71%) no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  aspect-ratio: 1;
  background: #ED96B3;
  -webkit-mask: 99.275% 58.486% var(--g), 74.088% 93.815% var(--g), 30.762% 96.151% var(--g), 1.923% 63.734% var(--g), 9.287% 20.975% var(--g), 47.309% 0.072% var(--g), 87.357% 16.766% var(--g), radial-gradient(100% 100%, #000 31.417%, #0000 calc(31.417% + 1px));
  mask: 99.275% 58.486% var(--g), 74.088% 93.815% var(--g), 30.762% 96.151% var(--g), 1.923% 63.734% var(--g), 9.287% 20.975% var(--g), 47.309% 0.072% var(--g), 87.357% 16.766% var(--g), radial-gradient(100% 100%, #000 31.417%, #0000 calc(31.417% + 1px));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12%;
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  translate: -18% -82%;
  scale: 0.85;
  transform: translate(0px, 0px);
  z-index: 5;
  transition: opacity 0.35s ease, scale 0.35s ease;
}

.entry:hover .flower {
  opacity: 1;
  scale: 1;
}

/* home card type: an elegant thin title, a quiet smaller subtitle and a
   tiny spaced-out date. All spacing (and line heights) sit on a 4px grid,
   written in rem: 0.25rem = 4px */
.entry h2 {
  font-family: var(--font-subheading);
  font-weight: 100;
  font-size: 1.75rem;
  line-height: 2rem;        /* 32px */
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;   /* 4px */
  color: var(--color-text-strong);
}

.entry p {
  font-family: var(--font-subheading);
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.5rem;      /* 24px */
  margin-bottom: 0.75rem;   /* 12px */
  color: var(--color-text-muted); /* 4.9:1 */
}

.tags {
  display: flex; /* keeps the date line exactly 16px tall */
  line-height: 1rem; /* 16px */
}

.tags span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1rem;        /* 16px */
  color: var(--color-text-muted);
  margin-right: 0.75rem;    /* 12px */
}

@media (max-width: 700px) {
  header {
    padding: 24px;
  }

  .site-name {
    font-size: 2.5rem;
  }

  main.grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px 60px;
  }


  .flower {
    display: none;
  }
}
