/* Shared tokens and primitives for the website and the web app. */
:root {
  /* Defaults. A church's own colours in church/settings.js replace these (see js/church.js). */
  --teal-900: #0b2f3a;
  --teal-900-rgb: 11, 47, 58;
  --teal-700-rgb: 18, 64, 78;
  --clay-rgb: 181, 96, 44;
  --teal-700: #12404e;
  --teal-500: #2c6b7c;
  --teal-100: #dcebed;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f3ead8;
  --line: #e6dac3;
  --clay: #b5602c;
  --clay-dark: #94491d;
  --gold: #d9a441;
  --gold-soft: #f6e6c2;
  --sage: #5f8361;
  --sage-soft: #e3ecdf;
  --rose-soft: #f6e1d8;
  --ink: #2a2824;
  --muted: #6c665a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 8px 24px rgba(60, 40, 10, .08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-500); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal-700); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--clay); color: #fff; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn.teal { background: var(--teal-700); }
.btn.teal:hover { background: var(--teal-900); }
.btn.ghost { background: transparent; color: var(--teal-700); border-color: var(--line); }
.btn.ghost:hover { background: var(--sand); }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.light:hover { background: rgba(255, 255, 255, .26); }
.btn.sm { padding: .42em .9em; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--clay); margin: 0 0 .6em; }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .18em .65em; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip.teal { background: var(--teal-100); color: var(--teal-700); }
.chip.sage { background: var(--sage-soft); color: #3f6142; }
.chip.gold { background: var(--gold-soft); color: #7a5510; }
.chip.clay { background: var(--rose-soft); color: var(--clay-dark); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Large text: one switch, top right on every page. It scales every size set in rem or em. */
html.big { font-size: 125%; }
.bigbtn { display: inline-flex; align-items: center; gap: .55em; border: 1.5px solid var(--line); background: var(--paper); color: var(--teal-700); border-radius: 999px; padding: .3em .4em .3em .85em; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; flex: none; line-height: 1.2; }
.bigbtn:hover { border-color: var(--teal-500); }
.bigbtn .aa { display: none; font-family: var(--serif); font-size: 1.1em; }
.bigbtn .sw { position: relative; width: 2.5em; height: 1.4em; border-radius: 999px; background: #cfc5b0; transition: background .15s; flex: none; }
.bigbtn .sw i { position: absolute; top: .18em; left: .18em; width: 1.04em; height: 1.04em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.bigbtn[aria-checked="true"] .sw { background: var(--teal-700); }
.bigbtn[aria-checked="true"] .sw i { transform: translateX(1.1em); }
