:root {
  --pink: #ff4fb3;
  --yellow: #ffd84d;
  --turquoise: #12d6c5;
  --aqua: #7cf2ff;
  --orange: #ff8a3d;
  --ink: #171321;
  --cream: #fff9ef;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(23, 19, 33, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 79, 179, 0.36), transparent 24%),
    radial-gradient(circle at top right, rgba(18, 214, 197, 0.32), transparent 22%),
    linear-gradient(135deg, #fff6d6 0%, #fff9ef 42%, #ffe9fb 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -5rem;
  right: -4rem;
  background: var(--yellow);
}

body::after {
  bottom: -6rem;
  left: -5rem;
  background: var(--aqua);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.status-card,
.page-card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2rem;
  border-radius: 2rem;
  overflow: hidden;
}

.eyebrow,
.status-label,
.page-card__slug {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
.page-card h2,
.section-pill h3 {
  font-family: 'Fraunces', serif;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
}

.lead {
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.button-primary { background: var(--pink); color: white; }
.button-secondary { background: var(--yellow); }

.status-card {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.2rem;
  border-radius: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-card code {
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 19, 33, 0.08);
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.page-card {
  border-radius: 1.6rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.page-card:nth-child(3n + 1) { transform: rotate(-1deg); }
.page-card:nth-child(3n + 2) { transform: rotate(1deg); }
.page-card:nth-child(3n + 3) { transform: rotate(-0.6deg); }

.page-card__header {
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--yellow), #fff0a8);
}

.page-card:nth-child(2) .page-card__header {
  background: linear-gradient(135deg, var(--turquoise), #b5fff8);
}

.page-card:nth-child(3) .page-card__header {
  background: linear-gradient(135deg, var(--pink), #ffc7e7);
}

.page-card h2 {
  margin: 0;
  font-size: 2rem;
}

.page-card__content,
.section-pill p {
  margin: 0;
  line-height: 1.65;
}

.sections-list {
  display: grid;
  gap: 0.85rem;
}

.section-pill {
  padding: 1rem;
  border-radius: 1.1rem;
  color: var(--ink);
}

.section-pill h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

@media (max-width: 980px) {
  .pages-grid { grid-template-columns: 1fr; }
  .page-card { transform: none !important; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 1rem, 100%); }
  .hero { padding: 1.4rem; border-radius: 1.4rem; }
  .status-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-card code { white-space: normal; word-break: break-word; }
}
