:root {
  --bg: #f4efe6;
  --paper: rgba(255, 250, 242, 0.88);
  --ink: #1f1a17;
  --muted: #6a5e56;
  --accent: #b24c2f;
  --accent-dark: #8d361c;
  --border: rgba(31, 26, 23, 0.12);
  --success: #225c3b;
  --error: #8a1d1d;
  --shadow: 0 30px 80px rgba(44, 27, 10, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(178, 76, 47, 0.18), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(34, 92, 59, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8f3eb 0%, #efe6d8 100%);
  font-family: "Georgia", "Times New Roman", serif;
}

.page {
  width: min(56rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  padding: 1rem 0 2rem;
}

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

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-weight: 600;
}

.lede {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.panel {
  background: var(--paper);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.session-email {
  font-size: 0.95rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(31, 26, 23, 0.18);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
}

.field-note {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--accent);
  color: #fff8f1;
  justify-self: start;
}

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

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.secondary-button {
  background: rgba(31, 26, 23, 0.08);
  color: var(--ink);
}

.message {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--error);
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page {
    width: min(100vw - 1rem, 40rem);
    padding-top: 1.5rem;
  }

  .panel {
    padding: 1.15rem;
    border-radius: 1.1rem;
  }

  .panel-header {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
