:root {
  --bg: #130f1d;
  --panel: rgba(23, 16, 31, 0.55);
  --panel-strong: rgba(35, 21, 39, 0.82);
  --text: #fff5ef;
  --muted: #f6d7c9;
  --accent: #ffb36b;
  --accent-strong: #ff7a6b;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 7, 18, 0.25), rgba(13, 7, 18, 0.82)),
    url("assets/bg.jpg") center/cover no-repeat,
    radial-gradient(circle at top, #ffb98a 0%, #472d56 45%, #130f1d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 202, 124, 0.28), transparent 26%),
    radial-gradient(circle at 85% 16%, rgba(255, 118, 118, 0.22), transparent 24%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
  display: grid;
  gap: 24px;
}

.glass,
.letter-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.hero,
.response-panel {
  padding: 28px;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-image-container {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 200px 200px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-text-container {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand,
.section-label,
.letter-head span {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.73rem;
  color: var(--muted);
}

.music-toggle,
.primary-button,
.secondary-button,
.choice-button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.music-toggle,
.secondary-button {
  width: fit-content;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.primary-button {
  width: fit-content;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #210d11;
  font-weight: 700;
}

.primary-button:hover,
.secondary-button:hover,
.music-toggle:hover,
.choice-button:hover {
  transform: translateY(-2px);
}

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

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

h1 {
  font-size: clamp(2.8rem, 8vw, 5.7rem);
  line-height: 0.94;
  max-width: 900px;
  margin: 0;
}

.lede {
  margin: 0;
  max-width: 640px;
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--muted);
}

.letter-panel {
  background: var(--panel-strong);
  padding: 28px;
}

.letter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.message-stage {
  min-height: 280px;
}

.message-card {
  display: none;
  animation: fadeUp 0.5s ease;
}

.message-card.active {
  display: block;
}

.message-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
}

.message-card p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.message-actions,
.response-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.response-panel {
  display: grid;
  gap: 22px;
}

.response-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.choice-button {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid transparent;
}

.choice-button.active {
  background: rgba(255, 179, 107, 0.18);
  border-color: rgba(255, 179, 107, 0.48);
}

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

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

.reply-form span {
  color: var(--muted);
}

.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.08);
  color: var(--text);
  font: inherit;
}

.reply-form input::placeholder,
.reply-form textarea::placeholder {
  color: rgba(255, 245, 239, 0.54);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 28px;
  }

  .hero,
  .response-panel,
  .letter-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .letter-head {
    flex-direction: column;
  }
}
