:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 247, 0.86);
  --paper-strong: #fffaf2;
  --ink: #1f2b24;
  --muted: #56665d;
  --accent: #d8704c;
  --accent-soft: #f2c7a5;
  --border: rgba(31, 43, 36, 0.12);
  --shadow: 0 24px 60px rgba(72, 51, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 112, 76, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(140, 170, 150, 0.2), transparent 24%),
    linear-gradient(135deg, #f6f0e8 0%, #ece6da 100%);
}

button,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.control-panel,
.prompt-card {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  border-radius: 32px;
  padding: 38px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.lede {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-card {
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(216, 112, 76, 0.14);
}

.hero-card-title {
  margin: 0 0 18px;
  font-weight: 700;
}

.timeline {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.timeline span {
  display: inline-block;
  min-width: 56px;
  color: var(--ink);
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
}

.control-panel,
.prompt-card {
  border-radius: 28px;
  padding: 28px;
}

.panel-intro h2,
.prompt-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.panel-intro p,
.scenario,
.prompt-section p {
  color: var(--muted);
  line-height: 1.7;
}

.controls {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.controls label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.controls select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--paper-strong);
  color: var(--ink);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary {
  background: var(--ink);
  color: white;
}

.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.prompt-card {
  position: relative;
  overflow: hidden;
}

.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 220px;
  height: 220px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(180deg, rgba(216, 112, 76, 0.18), transparent);
  pointer-events: none;
}

.prompt-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(216, 112, 76, 0.12);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.scenario {
  margin-top: 14px;
  font-size: 1.05rem;
}

.prompt-section {
  margin-top: 26px;
}

.prompt-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-list,
.word-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li,
.word-list li {
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--border);
  line-height: 1.45;
}

.word-list li {
  background: rgba(140, 170, 150, 0.14);
}

@media (max-width: 920px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero-copy,
  .hero-card,
  .control-panel,
  .prompt-card {
    border-radius: 22px;
    padding: 22px;
  }

  .prompt-topline {
    align-items: flex-start;
  }

  .actions > * {
    flex: 1 1 100%;
  }
}
