/* fireflieslivehere.org
   Built for older adults reading on a phone: large type, high contrast,
   big tap targets, and an adjustable text size. */

:root {
  --green:      #14532D;
  --green-deep: #0E3A20;
  --gold:       #E9B929;
  --gold-dim:   #C79E1F;
  --cream:      #F7F3E3;
  --cream-dim:  #D8D3C2;
  --ink:        #10401F;

  --step: 1;              /* text-size multiplier, set by the A- / A+ buttons */
  --base: calc(1.25rem * var(--step));
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--base);
  line-height: 1.62;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
}

/* ---------- controls ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-deep);
  border-bottom: 2px solid rgba(247, 243, 227, 0.14);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bar .home {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  font-size: calc(1rem * var(--step));
  margin-right: auto;
}

.bar .home:hover { text-decoration: underline; }

.sizer { display: flex; align-items: center; gap: 0.4rem; }

.sizer span {
  font-size: calc(0.85rem * var(--step));
  color: var(--cream-dim);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sizer button {
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 0.5rem;
  border: 2px solid var(--cream-dim);
  background: transparent;
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 700;
}

.sizer button:hover { background: rgba(247, 243, 227, 0.12); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- type ---------- */

h1 {
  font-size: calc(2.3rem * var(--step));
  line-height: 1.1;
  margin: 1.5rem 0 0.5rem;
  text-wrap: balance;
}

h2 {
  font-size: calc(1.6rem * var(--step));
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--gold);
  text-wrap: balance;
}

h3 {
  font-size: calc(1.25rem * var(--step));
  margin: 1.6rem 0 0.4rem;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: calc(1.4rem * var(--step));
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

strong { color: var(--gold); }

a { color: var(--gold); }

ul { margin: 0 0 1.1rem; padding-left: 1.3em; }
li { margin-bottom: 0.7rem; }

/* ---------- sections ---------- */

section {
  border-top: 2px solid rgba(247, 243, 227, 0.16);
  padding-top: 1.8rem;
  margin-top: 2.2rem;
}





/* ---------- big choice buttons on the landing page ---------- */

.choices { display: grid; gap: 1.1rem; margin: 2rem 0; }

.choice {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
}

.choice:hover { background: #F3C63A; }

.choice b {
  display: block;
  font-size: calc(1.5rem * var(--step));
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.choice span {
  display: block;
  font-size: calc(1.05rem * var(--step));
  line-height: 1.4;
  opacity: 0.85;
}

/* ---------- callout / script box ---------- */

.card {
  background: var(--green-deep);
  border: 2px solid rgba(247, 243, 227, 0.18);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  margin: 1.4rem 0;
}

.card h3 { margin-top: 0; }

.script {
  background: rgba(247, 243, 227, 0.08);
  border-left: 5px solid var(--gold);
  padding: 1rem 1.1rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: calc(1.1rem * var(--step));
}

.copy {
  min-height: 3.2rem;
  margin-top: 0.9rem;
  padding: 0 1.3rem;
  border-radius: 0.6rem;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: calc(1.05rem * var(--step));
  font-weight: 700;
}

.copy:hover { background: #F3C63A; }

/* ---------- sources ---------- */

.sources { font-size: calc(0.98rem * var(--step)); color: var(--cream-dim); }
.sources li { margin-bottom: 0.9rem; }
.sources a { word-break: break-word; }

footer {
  border-top: 2px solid rgba(247, 243, 227, 0.16);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--cream-dim);
  font-size: calc(1rem * var(--step));
}

.note {
  color: var(--cream-dim);
  font-size: calc(1rem * var(--step));
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
