:root {
  --ink: #1c241c;
  --ink-soft: #3d4a3d;
  --paper: #f3f6f1;
  --panel: rgba(255, 252, 247, 0.92);
  --line: rgba(28, 36, 28, 0.14);
  --accent: #2f6b4f;
  --accent-deep: #1f4a36;
  --warn: #8a2f2f;
  --ok: #1f5a38;
  --shadow: 0 18px 50px rgba(20, 32, 22, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 79, 0.28), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(120, 90, 40, 0.18), transparent 55%),
    linear-gradient(180deg, #dce8df 0%, #f3f6f1 42%, #e8efe6 100%),
    repeating-linear-gradient(
      -12deg,
      rgba(28, 36, 28, 0.03) 0 2px,
      transparent 2px 10px
    );
}

.shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.brand {
  margin-bottom: 1.5rem;
  animation: rise 0.7s ease both;
}

.brand__mark {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
}

.brand__lede {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
  backdrop-filter: blur(8px);
  animation: rise 0.8s ease both;
  animation-delay: 0.08s;
}

.panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.panel__help {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.field-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.field small {
  font-weight: 400;
  color: var(--ink-soft);
}

input,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(47, 107, 79, 0.35);
  border-color: var(--accent);
}

.ai-field {
  margin-top: 1.1rem;
}

.ai-field__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ai-actions button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ai-actions button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ai-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.suggestion {
  margin-top: 0.65rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(47, 107, 79, 0.45);
  background: rgba(47, 107, 79, 0.06);
  animation: fade 0.35s ease both;
}

.suggestion__label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

.suggestion__text {
  margin: 0;
  white-space: pre-wrap;
}

.suggestion__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.socials {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.socials legend {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.field-help {
  margin: 0 0 0.45rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.note {
  margin: 1rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.done__message {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ok);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--secondary {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid var(--line);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn--wide {
  width: 100%;
}

.turnstile {
  margin: 1rem 0;
}

.error {
  color: var(--warn);
  margin: 0.75rem 0 0;
}

.success {
  color: var(--ok);
  margin: 0.75rem 0 0;
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
