:root {
  --sky: #f3efe5;
  --mist: #f8f5ee;
  --sage: #dbe7dd;
  --leaf: #748c7a;
  --forest: #31453a;
  --sand: #d6c2a9;
  --sun: #f6ead5;
  --shadow: rgba(79, 94, 83, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--forest);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 35%),
    linear-gradient(160deg, var(--mist) 0%, var(--sky) 45%, var(--sage) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.7;
}

/* body::before {
  width: 18rem;
  height: 18rem;
  top: 6vh;
  left: -5rem;
  background: rgba(246, 234, 213, 0.85);
}

body::after {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: 4vh;
  background: rgba(219, 231, 221, 0.95);
} */

.page-shell {
  min-height: 85vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(100%, 52rem);
  padding: 3rem;
  border: 1px solid rgba(116, 140, 122, 0.2);
  border-radius: 2rem;
  background: rgba(255, 252, 246, 0.72);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(16px);
  animation: float-in 700ms ease-out;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--leaf);
}

.headline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.96;
  font-weight: 600;
}

.divider {
  padding: 0.75rem 5rem;
}

.reference {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--leaf);
}

.reflection {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(49, 69, 58, 0.86);
}

.actions {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.9rem;
}

.share-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  align-self: center;
  justify-items: center;
  text-align: center;
}

.share-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(49, 69, 58, 0.68);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(49, 69, 58, 0.12);
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.72);
  color: var(--forest);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(49, 69, 58, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 140, 122, 0.3);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(49, 69, 58, 0.14);
}

.share-button:active {
  transform: translateY(1px) scale(0.98);
}

.share-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.share-feedback {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(49, 69, 58, 0.72);
}

.refresh-button {
  /* width: fit-content; */
  align-self: center;
  padding: 0.9rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest), #506657);
  color: #fefcf7;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 10px 28px rgba(49, 69, 58, 0.2);
}

.refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(49, 69, 58, 0.24);
}

.refresh-button:active {
  transform: translateY(1px) scale(0.99);
}

.helper {
  margin: 0;
  color: rgba(49, 69, 58, 0.72);
  font-size: 0.95rem;
}

.space-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  margin: 0 0.25rem;
  padding: 0.22rem 0.75rem 0.3rem;
  border: 1px solid rgba(49, 69, 58, 0.18);
  border-radius: 0.7rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(236, 231, 221, 0.92)
  );
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 0 rgba(116, 140, 122, 0.18),
    0 10px 18px rgba(49, 69, 58, 0.08);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 1rem;
  }

  .card {
    padding: 2rem 1.35rem;
    border-radius: 1.5rem;
  }

  .reflection,
  .helper,
  .reference,
  .share-feedback {
    font-size: 1rem;
  }

  .refresh-button {
    width: 100%;
    justify-content: center;
  }

  .share-buttons {
    gap: 0.6rem;
  }

  .share-button {
    width: 2.9rem;
    height: 2.9rem;
  }

  .divider {
    padding: 0.75rem 1.35rem;
  }
}
