/* Between Prayers site. Tokens copied from the approved mockup (screens-v3.html). */
:root {
  color-scheme: dark light;
  --bg: #06282f; --bg2: #031c21; --card: rgba(104,192,200,.08); --line: rgba(104,192,200,.22);
  --fg: #eef8f8; --mut: #93b3b7; --gold: #7fd3d6; --goldfg: #032026; --bar: rgba(0,30,34,.94);
  --paper: #072c34 url(tex-teal.jpg) 0 0/512px 512px;
  --cr-a: #a0f4f4; --cr-b: #7fd3d6; --cr-c: #c8fafa; --cr-d: #5fb9bf; --cr-e: var(--bg); --cr-f: rgba(127,211,214,.12);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f6; --bg2: #e6efee; --card: rgba(15,111,120,.06); --line: rgba(15,111,120,.20);
    --fg: #0b2a30; --mut: #5b7275; --gold: #0f6f78; --goldfg: #ffffff; --bar: rgba(243,247,246,.96);
    --paper: #f5f0e4 url(tex-ivory.jpg) 0 0/512px 512px;
    --cr-a: #0f6f78; --cr-b: #0f6f78; --cr-c: #3f9aa2; --cr-d: #3f9aa2; --cr-f: rgba(15,111,120,.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg2); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg) linear-gradient(180deg, var(--bg), var(--bg2)); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; padding: 8px 16px 40px; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2 { line-height: 1.2; }
.sprite { position: absolute; }

/* Header and footer */
header, footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 16px; max-width: 960px; width: 100%; margin-inline: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); text-decoration: none; }
.star { stroke: var(--gold); fill: none; flex: none; }
header ul, footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
header a, footer a { color: var(--mut); text-decoration: none; }
header a:hover, footer a:hover, [aria-current="page"] { color: var(--fg); }
footer { border-top: 1px solid var(--line); margin-top: 24px; font-size: 13.5px; color: var(--mut); }
footer p { margin: 0; }

/* Icons: one set, one size. Tile and pill copied from the mockup. */
.i { width: 18px; height: 18px; flex: none; }
.ib { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); color: var(--gold); flex: none; }
.ib svg { width: 18px; height: 18px; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; line-height: 1.3; background: var(--card); border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card h2 { font-size: 18px; margin: 12px 0 4px; }
.card p { margin: 0; color: var(--mut); font-size: 15px; }

/* Prose column */
.col { max-width: 600px; margin-inline: auto; }

/* Home */
.home { max-width: 960px; margin-inline: auto; }
.hero { text-align: center; padding-bottom: 12px; }
.crown { display: block; width: min(100%, 400px); height: auto; margin: 10px auto 0; }
.f-a { fill: var(--cr-a); } .f-b { fill: var(--cr-b); } .f-c { fill: var(--cr-c); }
.f-d { fill: var(--cr-d); } .f-e { fill: var(--cr-e); } .f-f { fill: var(--cr-f); }
.s-a { stroke: var(--cr-a); } .s-b { stroke: var(--cr-b); } .s-c { stroke: var(--cr-c); }
.s-d { stroke: var(--cr-d); } .s-e { stroke: var(--cr-e); } .s-f { stroke: var(--cr-f); }
.bism-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; margin: 4px auto 0; }
.bism-panel img { display: block; width: min(100%, 420px); height: auto; margin-inline: auto; }
.hero h1 { font-size: 34px; margin: 22px 0 8px; }
.tagline { color: var(--mut); font-size: 17px; margin: 0 auto; max-width: 34em; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid .wide { grid-column: 1 / -1; }
.platforms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 600px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
.platforms li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.platforms li span:nth-child(2) { flex: 1; }
.platforms .i { color: var(--gold); }

/* Sources & credits */
.sources section { margin-top: 28px; }
.sources .card { margin-top: 12px; }
.sources .card h3 { font-size: 16px; margin: 0 0 8px; overflow-wrap: anywhere; }
.sources dl { margin: 10px 0 0; }
.sources dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); margin-top: 10px; }
.sources dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.sources .own { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--mut); overflow-wrap: anywhere; }
.pill-warn { border-color: var(--gold); color: var(--gold); white-space: normal; }
.sources code { overflow-wrap: anywhere; }

/* Contact form */
form[hidden] { display: none; }
label { font-size: 14.5px; color: var(--mut); }
input[type="email"], textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
textarea { resize: vertical; min-height: 120px; }
input[type="email"]:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button[type="submit"] { font: inherit; font-weight: 600; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--gold); color: var(--goldfg); cursor: pointer; }
button[type="submit"]:disabled { opacity: .6; cursor: progress; }
[role="status"]:empty { display: none; }
[role="status"] { color: var(--fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
