.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(132, 193, 255, 0.14), transparent 33%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.96));
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  left: 20rem;
  bottom: 3rem;
  width: 8.5rem;
  height: 13rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(18, 33, 51, 0.05);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(123, 139, 163, 0.08) 0 1px,
      transparent 1px 0.55rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 249, 251, 0.88));
  transform: rotate(13deg);
  transform-origin: bottom left;
  box-shadow: 0 28px 50px rgba(20, 33, 53, 0.08);
}

.hero-card::after {
  right: -4rem;
  top: 8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 122, 210, 0.1), transparent 72%);
}

.hero-grid,
.mini-links {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(16rem, 0.72fr) minmax(24rem, 1.28fr);
  align-items: center;
  gap: 1.9rem;
}

.hero-copy,
.viewer-shell {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 7.4ch;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3rem, 5.3vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.95rem;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-points span {
  position: relative;
  padding-left: 1rem;
}

.hero-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.22rem rgba(47, 122, 210, 0.11);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.55rem 0 0;
}

.mini-links {
  gap: 0.7rem;
}

.mini-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(57, 88, 131, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.mini-links a:hover,
.mini-links a:focus-visible {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 8ch;
  }

  .hero-card::before {
    display: none;
  }

}

@media (max-width: 720px) {
  .hero-card::after {
    top: 17rem;
    right: -6rem;
  }

  .hero-copy h1 {
    max-width: 8.6ch;
    font-size: clamp(2.65rem, 11.1vw, 3.9rem);
  }

  .hero-grid {
    gap: 0.9rem;
  }

  .hero-points {
    gap: 0.6rem 0.85rem;
    font-size: 0.88rem;
  }

  .hero-actions {
    margin-top: 0.95rem;
  }

  .lede {
    max-width: 18ch;
    font-size: 1rem;
  }

  .mini-links a {
    min-height: 2.8rem;
  }

  .viewer-shell {
    border-radius: 1.45rem;
  }

  .viewer-topbar {
    min-height: 2.55rem;
    padding: 0 0.85rem;
    font-size: 0.74rem;
  }

  .viewer-toolbar {
    min-height: 1.9rem;
    padding: 0 0.65rem;
  }

  .viewer-body {
    grid-template-columns: 1fr;
    min-height: 16rem;
  }

  .viewer-sidebar {
    display: none;
  }

  .viewer-canvas {
    min-height: 16rem;
  }

  .viewer-chip {
    font-size: 0.68rem;
  }

  .viewer-chip-accent {
    top: 0.9rem;
    left: 0.8rem;
  }

  .viewer-page {
    width: min(11.6rem, 62%);
    border-radius: 0.8rem;
  }

  .viewer-page-front {
    top: 3.3rem;
    left: 1rem;
    padding: 0.9rem;
  }

  .viewer-page-side {
    top: 3.6rem;
    right: -1.5rem;
  }

  .viewer-page-shadow {
    width: 10rem;
    left: 0.9rem;
    bottom: 0.7rem;
  }
}
