:root {
  color-scheme: dark;
  --bg: #101316;
  --panel: #191f23;
  --panel-strong: #20282d;
  --text: #f5f1e8;
  --muted: #b8c0ba;
  --accent: #e6bd63;
  --accent-2: #7fc7bd;
  --line: rgba(245, 241, 232, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(127, 199, 189, 0.2), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(230, 189, 99, 0.24), transparent 28%),
    var(--bg);
  color: var(--text);
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.workspace {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: end;
}

.intro,
.persona-card {
  border: 1px solid var(--line);
  background: rgba(25, 31, 35, 0.86);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.intro {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92;
}

.lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.persona-card {
  min-height: 410px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mood {
  color: var(--accent);
  font-weight: 800;
}

h2 {
  margin: 36px 0 18px;
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
}

#description {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 0;
}

.details div {
  min-height: 112px;
  padding: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.actions {
  grid-column: 2;
  display: flex;
  gap: 12px;
}

.actions button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--accent);
  color: #171511;
  font-weight: 800;
}

.actions .secondary {
  background: rgba(245, 241, 232, 0.12);
  color: var(--text);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px;
    place-items: stretch;
  }

  .workspace {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .persona-card {
    min-height: 0;
  }

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

  .actions {
    grid-column: 1;
    flex-direction: column;
  }
}
