/* City Centre Da'wah holding page.
   Colour, spacing and component tokens copied verbatim from apply.ccdawah.org.
   Outfit is the display voice only, matched to the outlined CCD wordmark; the
   body keeps the house system stack so copy never waits on a download. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f5f1;
  --ink: #1d1b19;
  --muted: #5f5a52;
  --line: #d8d4cb;
  --brand: #982b2e;
  --brand-dark: #7b2124;
  --tint: rgba(152, 43, 46, 0.06);
  --tint-strong: rgba(152, 43, 46, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --display: "Outfit", var(--font);
  color-scheme: light;
  accent-color: var(--brand);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font);
}

/* browser surfaces carry the palette too */
::selection { background: var(--brand); color: #fff; }

a { color: var(--brand-dark); text-underline-offset: 3px; text-decoration-thickness: from-font; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.top { width: 100%; max-width: 42rem; margin: 0 auto; padding: 18px 20px 0; }
.top img { display: block; height: 44px; width: auto; }
@media (min-width: 768px) { .top img { height: 52px; } }

/* The CCD monogram, the house motif, enlarged and bled off both edges so it
   reads as the page's ground rather than a watermark. Decoration only; kept
   faint enough that it does not move any measured text contrast. */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  inset: -8% -30% -6% -34%;
  background: url("monogram.svg") no-repeat 50% 42% / contain;
  opacity: 0.055;
}
@media (min-width: 768px) {
  body::before { inset: -4% 6% -4% -14%; background-position: 32% 50%; }
}

main {
  flex: 1; width: 100%; max-width: 42rem; margin: 0 auto;
  padding: clamp(40px, 9vh, 104px) 20px 40px;
}

h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 34ch;
  margin: 0 0 clamp(30px, 5vh, 52px);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* The one place the page raises its voice: a quiet tinted field whose only
   saturated element is the action itself. */
.ready {
  margin: 0 0 clamp(30px, 5vh, 52px);
  padding: 22px 22px 24px;
  border: 1px solid rgba(152, 43, 46, 0.34);
  border-radius: 10px;
  background: var(--tint);
}
h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.actions { display: flex; flex-direction: column; gap: 10px; margin: 0; }
@media (min-width: 560px) { .actions { flex-direction: row; } .actions > * { flex: 1; max-width: 22rem; } }

.ok {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px;
  border-radius: 6px; background: var(--brand); color: #fff;
  font-size: 1.1rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ok:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16); transform: translateY(-1px); }
.ok:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }

.option {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px;
  border: 1px solid rgba(152, 43, 46, 0.35); border-radius: 8px; background: #fff;
  color: var(--brand-dark); font-size: 1.05rem; font-weight: 600; text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.option:hover { background: var(--tint-strong); border-color: var(--brand); }

.ok:focus-visible, .option:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.body { margin: 0 0 6px; font-size: 1.05rem; text-wrap: pretty; }
.muted { color: var(--muted); }

/* a standalone link in a column needs a real target (WCAG 2.5.8 asks 24px) */
.contact { margin: 0; font-size: 1.15rem; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.foot {
  padding: 16px 20px 26px; color: var(--muted); font-size: 12px;
  letter-spacing: 0.03em; text-align: center; text-wrap: balance;
}

/* One authored moment: the column settles in as a single staged gesture.
   The resting state is visible; only motion-tolerant visitors get the entrance. */
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: settle 0.62s cubic-bezier(0.16, 1, 0.3, 1) both; }
  h1 { animation-name: settle-display; }
  .lead { animation-delay: 0.06s; }
  .ready { animation-delay: 0.12s; }
  .body { animation-delay: 0.18s; }
  .contact { animation-delay: 0.22s; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes settle-display {
  from { opacity: 0; transform: translateY(18px); filter: blur(7px); }
}
