/* Bear Much — one stylesheet for church sites, dashboards and the marketing site.
   Large type, high contrast, mobile-first: many readers are older church members. */
:root {
  --brand: #2f5d50; --brand-ink: #fff; --ink: #1d1d1b; --muted: #5d5a55; --line: #e4e0d8;
  --paper: #fffdf9; --soft: #f5f1e9; --warn: #9a3412; --warn-bg: #fff4ed; --ok: #166534; --ok-bg: #effaf2;
  --danger: #b91c1c; --radius: 10px; --max: 1080px;
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 9; }

/* header / nav */
.site-head { background: var(--brand); color: var(--brand-ink); }
.site-head a { color: var(--brand-ink); text-decoration: none; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.brandmark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: bold; }
.brandmark img { height: 44px; width: auto; border-radius: 6px; background: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-color: currentColor; }
.menu-btn { display: none; background: none; border: 2px solid currentColor; color: inherit; border-radius: 8px; padding: 6px 10px; font-size: 1rem; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 0 20px 14px; max-width: var(--max); margin: 0 auto; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
}

.hero { background: var(--brand) center/cover no-repeat; color: #fff; padding: 80px 20px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero > * { position: relative; }
.hero h1 { font-size: 2.6rem; margin: 0 0 .3em; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.2em; }
.hero.plain::before { background: transparent; }

/* buttons + forms */
.btn, button.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 22px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn.alt { background: #fff; color: var(--brand); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.big { padding: 18px 30px; font-size: 1.2rem; }
.linkbtn { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
label.check input { width: auto; margin-top: 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #c9c3b8; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; }
textarea.tall { min-height: 260px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.hp { position: absolute; left: -9999px; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 18px; margin: 20px 0; }
legend { font-weight: 700; padding: 0 6px; font-family: var(--serif); font-size: 1.1rem; }

/* layout bits */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card.link { text-decoration: none; color: inherit; display: block; } .card.link:hover { border-color: var(--brand); }
.section { padding: 40px 0; } .section.soft { background: var(--soft); }
.flash { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbe5c8; padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert { background: var(--warn-bg); color: var(--warn); border: 1px solid #fed7aa; padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert.stop { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; font-weight: 700; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-family: var(--serif); font-size: 1.1rem; } .prose p { margin: 0 0 1em; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.verses p { margin: .3em 0; } .verses sup { color: var(--muted); font-family: var(--sans); font-size: .7em; margin-right: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.services li { margin-bottom: 6px; }
.site-foot { background: #24221f; color: #ddd; padding: 40px 0 20px; margin-top: 60px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-foot .sub input { margin-bottom: 8px; }
.langtoggle { font-size: .85rem; }

/* hymns */
.hymn .verse { margin: 0 0 1.2em; white-space: pre-line; font-family: var(--serif); font-size: 1.15rem; }
.hymn .chorus { margin: 0 0 1.2em 1.5em; font-style: italic; white-space: pre-line; font-family: var(--serif); font-size: 1.15rem; }

/* dashboard */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: #1f2a26; color: #e8efe9; padding: 18px 0; }
.admin aside a { display: block; color: #e8efe9; text-decoration: none; padding: 9px 22px; font-size: .95rem; }
.admin aside a:hover, .admin aside a.on { background: rgba(255,255,255,.08); }
.admin aside .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: 16px 22px 4px; }
.admin aside .who { padding: 0 22px 12px; font-size: .85rem; opacity: .8; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.admin main { padding: 10px 32px 60px; max-width: 1000px; }
.admin .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin .badge { background: #e11d48; color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.8rem; font-family: var(--serif); }
.checklist li { list-style: none; margin: 8px 0; } .checklist { padding: 0; }
.checklist .done { color: var(--ok); text-decoration: line-through; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.ai-box { background: #f3f6ff; border: 1px dashed #93a5d8; border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-size: .9rem; }
@media (max-width: 820px) { .admin { grid-template-columns: 1fr; } .admin aside { padding: 8px 0; } .admin aside nav { display: flex; flex-wrap: wrap; } .admin aside .grp { display: none; } .admin aside a { padding: 6px 12px; } .admin main { padding: 10px 16px 40px; } }

/* nursery */
.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.room h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.room.bad { border-color: var(--danger); box-shadow: 0 0 0 2px #fecaca; }
.kid { padding: 10px 0; border-top: 1px solid var(--line); }
.kid .flags { margin-top: 4px; }
.flag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; }
.flag.allergy { background: #fef3c7; color: #92400e; } .flag.custody { background: #fee2e2; color: #991b1b; } .flag.med { background: #e0e7ff; color: #3730a3; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; font-weight: 800; letter-spacing: .15em; }
.bigcode { font-family: ui-monospace, Menlo, monospace; font-size: 3rem; font-weight: 800; letter-spacing: .25em; }
.parent-card { max-width: 420px; margin: 30px auto; text-align: center; }
.parent-card img { width: 260px; image-rendering: pixelated; }
#reader { max-width: 420px; }

/* marketing */
.mk-hero { padding: 70px 20px 50px; text-align: center; background: linear-gradient(180deg, #f2ede2, var(--paper)); }
.mk-hero h1 { font-size: 2.8rem; max-width: 820px; margin: 0 auto .4em; }
.mk-hero p.lead { font-size: 1.25rem; max-width: 680px; margin: 0 auto 1.4em; color: var(--muted); }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: bold; }
.ticks { padding-left: 0; } .ticks li { list-style: none; padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; } summary { font-weight: 600; cursor: pointer; }

/* print */
@media print {
  .site-head, .site-foot, .noprint, .share, nav, aside { display: none !important; }
  body { background: #fff; font-size: 12pt; } .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.verse-hero { font-family: var(--serif); font-style: italic; font-size: 1.3rem; max-width: 640px; margin: 0 auto 1.6em; color: var(--brand); }
.verse-hero cite { display: block; font-style: normal; font-size: .9rem; margin-top: 6px; color: var(--muted); letter-spacing: .05em; }
