/* ============================================================
   Leo the Lion — GTM practice site styles
   ============================================================ */

:root {
  --sand: #f6efe2;
  --sand-dark: #ece0c8;
  --mane: #b5651d;
  --mane-dark: #8a4b12;
  --ink: #2c2116;
  --muted: #6f6353;
  --white: #fffdf8;
  --shadow: 0 8px 24px rgba(70, 45, 10, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

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

.wrap {
  width: min(720px, 92vw);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--mane) 0%, var(--mane-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 0 48px;
}

.lion-emoji { font-size: 64px; line-height: 1; }
.lion-emoji.big { font-size: 72px; }

.hero h1 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 6vw, 44px);
}

.tagline {
  margin: 0 auto;
  max-width: 32ch;
  opacity: 0.95;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 24px 0;
}

.card h2 { margin-top: 0; }
.card.center { text-align: center; }

main.wrap { padding-bottom: 40px; }

code {
  background: var(--sand-dark);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--mane);
  color: var(--white);
}
.btn-primary:hover { background: var(--mane-dark); }

.btn-outline {
  background: transparent;
  color: var(--mane-dark);
  border: 2px solid var(--mane);
}
.btn-outline:hover { background: var(--sand-dark); }

/* ---------- Roar output ---------- */
.roar-output {
  margin-top: 18px;
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roar-word {
  display: inline-block;
  background: var(--sand-dark);
  color: var(--mane-dark);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  animation: pop 0.35s ease;
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--sand-dark);
  border-radius: 10px;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--mane);
  outline-offset: 1px;
  border-color: var(--mane);
}

/* Highlight invalid fields after a blocked submit */
.field input.invalid,
.field select.invalid {
  border-color: #c0392b;
  background: #fdecea;
}

.form-error {
  color: #c0392b;
  font-weight: 600;
  margin: 4px 0 16px;
}

/* ---------- Thank you ---------- */
.thank-you { padding-top: 48px; }
.muted { color: var(--muted); font-size: 0.95em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand-dark);
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}
