:root {
  --paper: #f6ead7;
  --ink: #1a1816;
  --tomato: #ba3f1d;
  --olive: #3d5e2f;
  --gold: #dfb24e;
  --wine: #6f1f2d;
  --panel: rgba(246, 234, 215, 0.78);
  --shadow: rgba(27, 19, 13, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(223, 178, 78, 0.45), transparent 28%),
    radial-gradient(circle at right, rgba(111, 31, 45, 0.18), transparent 25%),
    linear-gradient(135deg, #f2dfc0 0%, #e1c9a5 45%, #d3b188 100%);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero,
.control-panel,
.story-card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(26, 24, 22, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 45px var(--shadow);
}

.hero {
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--wine);
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3rem, 10vw, 6rem);
}

.lede {
  max-width: 45rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.control-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--olive), #688c4e);
  color: #fff9f0;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 10px 18px rgba(61, 94, 47, 0.25);
}

button:nth-child(2n) {
  background: linear-gradient(135deg, var(--tomato), #d2623d);
  box-shadow: 0 10px 18px rgba(186, 63, 29, 0.22);
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.subcopy {
  margin: 1rem 0 0;
  color: rgba(26, 24, 22, 0.72);
}

.story-card {
  margin-top: 1.25rem;
  padding: 1.5rem;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(111, 31, 45, 0.12);
  color: var(--wine);
}

.story-line,
.beat,
.snark {
  font-size: 1.06rem;
  line-height: 1.7;
}

.accent {
  color: var(--tomato);
  font-weight: 700;
}

.beats {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.beat {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid rgba(61, 94, 47, 0.5);
}

.snark {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(223, 178, 78, 0.23);
}

.finale {
  margin-bottom: 0;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 1rem, 1100px);
    padding-top: 0.5rem;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .control-panel,
  .story-card {
    border-radius: 20px;
  }
}
