:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #171717;
  --muted: #66615a;
  --line: #ded8cf;
  --soft: #ede8df;
  --button: #171717;
  --button-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.hero {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

p {
  margin: 12px 0 0;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.04);
  margin-bottom: 16px;
}

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

.slide-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head a {
  color: var(--ink);
  white-space: nowrap;
}

.text-panel {
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
}

.prompt-card textarea {
  width: 100%;
  min-height: 460px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #111111;
  color: #f5f5f5;
  font: 0.92rem/1.48 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--button);
  color: var(--button-ink);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

button:active {
  transform: translateY(1px);
}

.status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  button {
    width: 100%;
  }
}
