/* BullMeadows Ranch — design system
   hayloft gold / muted barn red / worn denim / sunset peach / paper cream */

:root {
  --cream: #FAF3E0;
  --paper: #FFFDF6;
  --gold: #E8B84B;
  --barn: #A63D2F;
  --barn-dark: #7E2C21;
  --denim: #3E5C76;
  --peach: #F2A16B;
  --ink: #2B2118;
  --muted: #8A7B66;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Zilla Slab", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--barn-dark); }

section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.muted { color: var(--muted); }

/* ---------- cover ---------- */
.cover {
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(242,161,107,.35), transparent 70%),
    var(--cream);
}

.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--denim);
  padding: 0.4em 1.1em;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.cover h1 {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  color: var(--barn-dark);
  margin-bottom: 0.4em;
}

.sub {
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 auto 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.stamp {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--barn-dark);
  border: 2px dashed var(--barn);
  border-radius: 999px;
  padding: 0.35em 1em;
  background: rgba(232,184,75,.18);
  transform: rotate(-1.5deg);
}
.stamp:nth-child(2) { transform: rotate(1.2deg); }
.stamp:nth-child(3) { transform: rotate(-0.8deg); }

.closer {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--denim);
  margin: 0 0 1.6rem;
}

.btn {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  background: var(--barn);
  border: none;
  border-radius: 999px;
  padding: 0.8em 2em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--barn-dark); transform: translateY(-2px); }
.btn.ghost {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--gold);
}
.btn.ghost:hover { background: rgba(232,184,75,.25); transform: none; }

.fineprint {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- festa-junina bunting ---------- */
.bunting {
  height: 26px;
  background-image: conic-gradient(from -45deg at 50% 100%, var(--barn) 90deg, transparent 0deg);
  background-size: 38px 26px;
  background-repeat: repeat-x;
  opacity: 0.85;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(166,61,47,.18);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 2px 10px rgba(43,33,24,.06);
}
.card h3 { color: var(--barn-dark); font-size: 1.15rem; }
.card.photo {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(242,161,107,.5), rgba(232,184,75,.35)),
    var(--paper);
}
.card.result { text-align: center; border-color: var(--gold); }

/* ---------- playlist ---------- */
.playlist {
  margin-top: 1.5rem;
  border: 2px dashed var(--denim);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  background: rgba(62,92,118,.06);
}

/* ---------- love notes ---------- */
blockquote {
  background: var(--paper);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 2px 10px rgba(43,33,24,.06);
}
blockquote p { margin: 0 0 0.5rem; font-style: italic; }
blockquote cite { font-style: normal; font-weight: 700; color: var(--denim); font-size: 0.9rem; }

/* ---------- form ---------- */
form label {
  display: block;
  font-weight: 700;
  margin-bottom: 1rem;
}
form input, form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 2px solid rgba(62,92,118,.3);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- portuguese glosses ---------- */
.pt {
  font-style: italic;
  border-bottom: 2px dotted var(--gold);
}
.phrases { margin: 1.5rem 0 0; }
.phrases > div {
  background: var(--paper);
  border: 1px solid rgba(166,61,47,.18);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 10px rgba(43,33,24,.06);
}
.phrases dt {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.1rem;
  color: var(--barn-dark);
}
.phrases dd { margin: 0.3em 0 0; }

/* ---------- footer ---------- */
footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--ink);
  color: var(--cream);
}
footer .muted { color: #B9A88F; }
footer p { margin: 0.4em 0; }

/* ---------- quiz ---------- */
#quiz-box .card { margin-top: 1rem; }

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  section { padding: 2.5rem 1rem; }
  .cover { padding: 3.5rem 1rem 3rem; }
}

/* ---------- bilateral split rows (desktop: side-by-side, mobile: stacked) ---------- */
#field-guide { max-width: 960px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.split:last-child { margin-bottom: 0; }

/* .flip swaps sides on desktop for visual rhythm */
.split.flip > .split-text { order: 2; }
.split.flip > .split-media { order: 1; }

.split-media {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242,161,107,.55), rgba(232,184,75,.35)),
    var(--paper);
  border: 1px solid rgba(166,61,47,.18);
  box-shadow: 0 2px 10px rgba(43,33,24,.06);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.split-media span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,253,246,.9);
  padding: 0.3em 0.9em;
  border-radius: 999px;
}
.split-text h3 { color: var(--barn-dark); font-size: 1.3rem; }
.split-text p { margin: 0.5em 0; }

/* mobile: stack it — image on top, text below */
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .split.flip > .split-text { order: 1; }
  .split.flip > .split-media { order: 2; }
  .split-media { min-height: 180px; }
}
