/* Stillfive site, brand "Five skies" (ADR 0029): one flat field per prayer, its
   own ink, the lamp as the only accent. Tokens match mobile/lib/core/sky.dart. */
@font-face {
  font-family: "Readex Pro";
  src: url("/fonts/readexpro.woff2") format("woff2");
  font-weight: 160 700;
  font-display: swap;
}
:root {
  --fajr: #36475C; --fajr-ink: #EEF0EE;
  --dhuhr: #ECE7DC; --dhuhr-ink: #1C1A16;
  --asr: #C98B3E; --asr-ink: #1D150C;
  --maghrib: #A5533D; --maghrib-ink: #FBF3EC;
  --isha: #11161D; --isha-ink: #ECE7DE;
  --lamp: #E8AE52;
  --stone: #F6F3EC; --stone-ink: #1C1A16;
  --wrap: 1080px;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 380;
  line-height: 1.55;
  font-size: 17px;
  background: var(--isha);
  color: var(--isha-ink);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lamp); color: #1C1A16; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 560; font-size: 18px; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; opacity: .78; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: rgba(236, 231, 222, .08); }
.nav a.opt { display: none; }

/* Home: the day from Fajr to Isha, one field per section */
.home { background: var(--fajr); color: var(--fajr-ink); }
.home .top { position: relative; z-index: 2; }
.sky { padding: clamp(72px, 12vw, 140px) 0; }
.sky-fajr { background: var(--fajr); color: var(--fajr-ink); padding-top: clamp(40px, 8vw, 96px); }
.sky-dhuhr { background: var(--dhuhr); color: var(--dhuhr-ink); }
.sky-asr { background: var(--asr); color: var(--asr-ink); }
.sky-maghrib { background: var(--maghrib); color: var(--maghrib-ink); }
.sky-isha { background: var(--isha); color: var(--isha-ink); }
.kicker { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .72; margin: 0 0 18px; font-weight: 480; }
.display { font-size: clamp(48px, 9vw, 108px); line-height: .96; font-weight: 280; letter-spacing: -.035em; margin: 0; max-width: 11ch; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; max-width: 34ch; margin: 28px 0 0; opacity: .9; }
.title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 300; letter-spacing: -.025em; margin: 0 0 18px; max-width: 16ch; }
.body { max-width: 52ch; margin: 0; opacity: .88; }
.split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; } }
.times { list-style: none; margin: 0; padding: 10px; border-radius: 28px; background: rgba(0, 0, 0, .07); max-width: 420px; }
.sky-fajr .times, .sky-isha .times, .sky-maghrib .times { background: rgba(255, 255, 255, .06); }
.times li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; font-size: 19px; }
.times .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid currentColor; flex: none; display: grid; place-items: center; }
.times .dot.on { background: currentColor; }
.times .dot.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--fajr); border-bottom: 2px solid var(--fajr); transform: rotate(-45deg) translate(1px, -1px); }
.times .t { margin-left: auto; }
.times .now { font-weight: 560; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 520; border: 1.4px solid currentColor; }
.pill.solid { background: var(--lamp); color: #1C1A16; border-color: var(--lamp); }
.soon { font-size: 15px; opacity: .72; margin-top: 14px; }
.free { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 520px; }
.free li { display: flex; gap: 12px; align-items: baseline; }
.free li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); }
.bands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; max-width: 420px; }
.day { display: grid; gap: 4px; }
.day i { display: block; height: 10px; border-radius: 4px; background: rgba(29, 21, 12, .14); }
.day i.f { background: var(--fajr); } .day i.d { background: var(--dhuhr-ink); } .day i.a { background: #8A5A22; } .day i.m { background: var(--maghrib); } .day i.i { background: var(--isha); }
.day span { font-size: 12px; text-align: center; opacity: .7; margin-top: 4px; }
.lamp { color: var(--lamp); }

/* Text pages: stone, like the Quran reader in the app */
.doc-page { background: var(--stone); color: var(--stone-ink); }
.doc-page .nav a:hover, .doc-page .nav a[aria-current="page"] { background: rgba(28, 26, 22, .07); }
.doc { max-width: 720px; padding: 32px 0 96px; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.05; font-weight: 300; letter-spacing: -.025em; margin: 24px 0 8px; }
.doc h2 { font-size: 21px; font-weight: 560; margin: 40px 0 8px; letter-spacing: -.005em; }
.doc p, .doc li { max-width: 66ch; }
.doc .updated { opacity: .62; font-size: 15px; margin: 0 0 28px; }
.doc .lede { font-size: 19px; line-height: 1.5; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.card { background: rgba(28, 26, 22, .05); border-radius: 22px; padding: 22px 24px; margin: 18px 0; }
.card h2 { margin-top: 0; }

/* Footer */
.foot { padding: 40px 0 56px; font-size: 15px; background: var(--isha); color: var(--isha-ink); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; opacity: .82; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .times li { font-size: 17px; padding: 12px 12px; }
}
.times .dot.gap { border-color: transparent; }
