@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@500&display=swap");

:root {
  color-scheme: light;
  --ink: #261f1b;
  --muted: #746b64;
  --line: rgba(87, 66, 52, .14);
  --blue: #3d68d5;
  --rose: #d9547d;
  --paper: #fffaf5;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 80px) 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(193, 224, 255, .78), transparent 38%),
    radial-gradient(circle at 86% 20%, rgba(255, 203, 178, .65), transparent 38%),
    linear-gradient(135deg, #f8fbff, var(--paper));
  font-family: "DM Sans", sans-serif;
}

.hub {
  width: min(900px, 100%);
}

.hub__header {
  max-width: 620px;
  margin: 0 auto clamp(30px, 5vw, 50px);
  text-align: center;
}

.hub__logo {
  display: block;
  width: 190px;
  height: 76px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.hub__eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
}

.hub__intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(.9rem, 2vw, 1.02rem);
  font-weight: 300;
}

.templates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-card {
  position: relative;
  min-height: 225px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 20px 55px rgba(66, 52, 43, .08);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.template-card:hover,
.template-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(61, 104, 213, .35);
  box-shadow: 0 25px 65px rgba(66, 52, 43, .14);
  outline: none;
}

.template-card--featured {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(239, 245, 255, .9));
}

.template-card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.template-card__number {
  color: rgba(61, 104, 213, .24);
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  line-height: 1;
}

.template-card__content {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}

.template-card__content strong {
  font-size: 1.08rem;
  font-weight: 500;
}

.template-card__content > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 300;
}

.template-card__action {
  margin-top: auto;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  body { padding-inline: 16px; }
  .templates { grid-template-columns: 1fr; }
  .template-card { min-height: 190px; padding: 23px; }
  .hub__logo { width: 170px; height: 68px; }
}
