:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --panel: #fffdf8;
  --panel-strong: #f0e7d8;
  --ink: #1f1a14;
  --muted: #665b4b;
  --line: #d8ccb9;
  --accent: #a24a2f;
  --accent-dark: #7d331d;
  --shadow: 0 18px 45px rgba(48, 34, 16, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(162, 74, 47, 0.16), transparent 28%),
    linear-gradient(180deg, #efe6d9 0%, var(--bg) 100%);
}

a {
  color: var(--accent-dark);
}

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

.hero {
  margin-bottom: 28px;
}

.consent-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px;
  background: rgba(31, 26, 20, 0.95);
}

.consent-content {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.consent-content p,
.consent-content a {
  color: #f5f1e8;
}

.consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.eyebrow,
.subcopy,
.subtle,
.small,
.preview-header p,
.feedback {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  max-width: 14ch;
}

.subcopy {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-top: 14px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-card,
.preview-card {
  min-height: 560px;
}

label {
  display: block;
  font-size: 0.95rem;
  margin-top: 16px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.actions,
.capture-form,
.preview-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.actions {
  margin-top: 22px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary,
button.ghost {
  background: var(--panel-strong);
  color: var(--ink);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preview-header {
  justify-content: space-between;
  align-items: start;
}

.proposal-preview {
  margin-top: 18px;
  min-height: 430px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: #fff;
  padding: 24px;
}

.proposal-preview.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.proposal-doc h3,
.proposal-doc p,
.proposal-doc ul {
  margin: 0 0 12px;
}

.proposal-doc ul {
  padding-left: 18px;
}

.capture-card,
.privacy-card {
  margin-top: 20px;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: auto;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.capture-form {
  margin-top: 16px;
}

.turnstile-container {
  width: 100%;
}

.feedback {
  min-height: 20px;
  margin: 12px 0 0;
}

.prose-shell {
  max-width: 900px;
}

.prose-card h2 {
  margin-top: 24px;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  line-height: 1.6;
}

#lead-list {
  padding-left: 18px;
}

#lead-list li + li {
  margin-top: 8px;
}

#lead-list a {
  font-weight: 700;
}

code {
  font-family: Consolas, monospace;
}

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

  .preview-header,
  .capture-form,
  .consent-content,
  .consent-actions,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

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