:root {
  --bg: #0e1430;
  --card: rgba(18, 24, 56, 0.76);
  --card-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f4ff;
  --muted: #cbc8f5;
  --accent: #ffd697;
  --accent-strong: #ff9db7;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(10, 14, 32, 0.42), rgba(10, 14, 32, 0.88)),
    url("assets/bg.jpg") center/cover no-repeat,
    radial-gradient(circle at top, #5870c6 0%, #20275f 38%, #0e1430 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 214, 151, 0.14), transparent 24%),
    radial-gradient(circle at 80% 15%, rgba(255, 157, 183, 0.12), transparent 22%);
  pointer-events: none;
}

.shell {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 22px;
}

.spotlight,
.memory-cards,
.reply-box {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.spotlight,
.reply-box {
  padding: 28px;
}

.spotlight {
  min-height: 72vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.spotlight-visual {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}

.spotlight-image {
  width: 100%;
  max-width: 240px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid var(--card-soft);
}

.spotlight-copy {
  flex: 1;
  min-width: 300px;
}

.tiny {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

.quote,
h1,
h2 {
  font-family: "Prata", serif;
}

.quote {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  line-height: 1.35;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.7rem, 6.8vw, 5.2rem);
  line-height: 1.02;
}

.body-text {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.spotlight-actions,
.memory-nav,
.response-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost,
.cta,
.response-button {
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  background: var(--card-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #29131f;
  font-weight: 700;
  border-color: transparent;
}

.memory-cards {
  padding: 24px;
}

.memory-card {
  display: none;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.memory-card.active {
  display: block;
  animation: floatIn 0.45s ease;
}

.card-visual {
  margin: 16px 0;
}

.card-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.memory-card h2,
.reply-box h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
}

.memory-card p,
.reply-form span,
.form-status {
  color: var(--muted);
}

.memory-card p {
  margin: 0;
  line-height: 1.9;
  max-width: 760px;
}

.memory-nav {
  margin-top: 18px;
}

.reply-box {
  display: grid;
  gap: 20px;
}

.response-button.active {
  background: rgba(255, 214, 151, 0.16);
  border-color: rgba(255, 214, 151, 0.42);
}

.reply-form {
  display: grid;
  gap: 16px;
}

.reply-form label {
  display: grid;
  gap: 8px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 18px, 1100px);
    padding: 18px 0 24px;
  }

  .spotlight,
  .memory-cards,
  .reply-box {
    padding: 20px;
    border-radius: 24px;
  }
}
