/* Coptic Charades website — lapis, gold and Irish Grover, like the app. */

@font-face {
  font-family: "Irish Grover";
  src: url("fonts/IrishGrover-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --lapis: #1C2B78;
  --lapis-deep: #131E5A;
  --lapis-night: #0D1545;
  --surface: #2A3B94;
  --raised: #34479F;
  --border: #4558B5;
  --gold: #FBD539;
  --gold-soft: #FFE680;
  --vermilion: #FF7A59;
  --green: #5FD39A;
  --text: #F4F1E8;
  --text-2: #C5CDF3;
  --text-3: #9FAAE6;

  --display: "Irish Grover", "Marker Felt", fantasy;
  --body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 18px 40px rgba(8, 12, 40, 0.5);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--lapis);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.display { font-family: var(--display); color: var(--gold); font-weight: 400; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  background: var(--gold); color: var(--lapis-deep); padding: 10px 16px; border-radius: 10px; font-weight: 800;
}
.skip:focus { left: 12px; }

/* Header -------------------------------------------------------------------- */

.site-header { border-bottom: 2px solid var(--gold); background: var(--lapis-deep); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.wordmark { font-family: var(--display); color: var(--gold); font-size: 28px; text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--gold-soft); }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-weight: 800; font-size: 16px;
  padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--gold); background: var(--surface); }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: var(--lapis-deep); background: var(--gold); margin-left: 6px; }
.site-nav a.btn-gold:hover { background: var(--gold-soft); }

/* Buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--lapis-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--lapis-deep); }
.btn-outline { color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn-outline:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--text-3); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sections ------------------------------------------------------------------ */

section { padding-block: 88px; }
.band { background: var(--lapis-deep); }
.section-title { font-family: var(--display); color: var(--gold); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.section-lede { color: var(--text-2); font-size: 20px; max-width: 640px; margin-top: 14px; }
.section-head { margin-bottom: 44px; }

/* Hero */

.hero { padding-block: 72px 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); color: var(--gold); font-size: clamp(54px, 8.2vw, 104px); line-height: 0.95; }
.hero .rule { width: 88px; height: 4px; background: var(--gold); margin: 26px 0 24px; border-radius: 2px; }
.hero .lede { font-size: clamp(19px, 2.1vw, 22px); color: var(--text-2); max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .meta { margin-top: 18px; color: var(--text-3); font-size: 15px; font-weight: 700; }

.fan { position: relative; height: 520px; }
.fan img {
  position: absolute; width: 230px; aspect-ratio: 360 / 610; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow); border: 3px solid rgba(251, 213, 57, 0.85);
}
.fan .c1 { left: 4%; top: 64px; transform: rotate(-12deg); }
.fan .c2 { left: 31%; top: 8px; transform: rotate(-1deg); z-index: 2; }
.fan .c3 { left: 58%; top: 70px; transform: rotate(11deg); }

/* Steps (a real sequence, so numbered) */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--lapis); border-radius: 26px; padding: 28px 26px 30px; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--display); color: var(--lapis-deep); background: var(--gold);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px;
}
.steps h3 { font-family: var(--display); color: var(--gold); font-size: 28px; line-height: 1.1; }
.steps p { color: var(--text-2); margin-top: 10px; }

/* Decks */

.decks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.deck figure { margin: 0; }
.deck img { width: 100%; aspect-ratio: 360 / 610; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 22px rgba(8, 12, 40, 0.45); }
.deck figcaption { margin-top: 12px; }
.deck .name { font-family: var(--display); color: var(--gold); font-size: 19px; line-height: 1.1; display: block; }
.deck .count { color: var(--text-3); font-weight: 800; font-size: 14px; }
.note { margin-top: 30px; color: var(--text-2); font-size: 17px; }
.credit { margin-top: 8px; color: var(--text-3); font-size: 15px; font-weight: 700; }

/* Play mockup band */

.play .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.device-land {
  aspect-ratio: 2.05 / 1; border-radius: 44px; background: var(--lapis-night); padding: 14px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(197, 205, 243, 0.85); position: relative;
}
.device-land::before {
  content: ""; position: absolute; left: 22px; top: 50%; translate: 0 -50%;
  width: 12px; height: 74px; border-radius: 8px; background: var(--lapis-night); z-index: 2;
}
.screen { height: 100%; border-radius: 32px; background: var(--lapis); position: relative; overflow: hidden; display: grid; place-items: center; }
.screen .timerbar { position: absolute; left: 0; top: 0; height: 7px; width: 100%; background: var(--lapis-deep); }
.screen .timerbar span { display: block; height: 100%; width: 64%; background: var(--gold); border-radius: 0 4px 4px 0; }
.screen .pill {
  position: absolute; top: 22px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 12px;
  background: var(--lapis-deep); border-radius: 14px; padding: 4px 14px;
}
.screen .pill b { font-family: var(--display); color: var(--gold); font-weight: 400; font-size: clamp(16px, 2.3vw, 26px); }
.screen .pill span { color: #fff; font-weight: 800; font-size: clamp(13px, 1.6vw, 17px); }
.screen .pill span::before { content: "✓ "; color: var(--green); }
.screen .word { text-align: center; padding-top: 12px; }
.screen .word small { display: block; color: var(--text-3); font-weight: 800; letter-spacing: 0.1em; font-size: clamp(9px, 1.1vw, 12px); text-transform: uppercase; }
.screen .word strong { font-family: var(--display); color: var(--gold); font-weight: 400; font-size: clamp(30px, 5.4vw, 66px); line-height: 1.05; }
.screen .zone { position: absolute; bottom: 18%; font-weight: 900; font-size: clamp(9px, 1.1vw, 12px); letter-spacing: 0.06em; text-align: center; }
.screen .zone i { display: block; font-style: normal; font-size: clamp(16px, 2.2vw, 24px); }
.screen .zone.pass { left: 4%; color: var(--vermilion); }
.screen .zone.ok { right: 4%; color: var(--green); }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.checks li strong { color: var(--text); }
.dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: var(--lapis-deep); margin-top: 1px; }
.dot.ok { background: var(--green); }
.dot.pass { background: var(--vermilion); }
.dot.gold { background: var(--gold); }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--lapis-deep); border-radius: 26px; padding: 28px; }
.feature .icon { width: 54px; height: 54px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--display); color: var(--gold); font-size: 26px; line-height: 1.1; }
.feature p { color: var(--text-2); margin-top: 10px; font-size: 17px; }

/* Callout */

.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: var(--surface); border-radius: 32px; padding: 44px; }
.callout h2 { font-family: var(--display); color: var(--gold); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.callout p { color: var(--text-2); margin-top: 12px; max-width: 620px; }

/* Article pages (churches, support, privacy) --------------------------------- */

.page-head { padding-block: 72px 40px; }
.page-head h1 { font-family: var(--display); color: var(--gold); font-size: clamp(44px, 7vw, 76px); line-height: 1; }
.page-head p { color: var(--text-2); font-size: 21px; margin-top: 18px; max-width: 640px; }

.prose { padding-block: 8px 88px; }
.prose h2 { font-family: var(--display); color: var(--gold); font-size: 34px; line-height: 1.1; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 800; font-size: 20px; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 10px; }
.prose li::marker { color: var(--gold); font-weight: 800; }
.prose strong { color: var(--text); }
.prose .meta { color: var(--text-3); font-size: 15px; font-weight: 700; }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: var(--lapis-deep); border-radius: 22px; padding: 24px; }
.card h3 { font-family: var(--display); color: var(--gold); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.card p { font-size: 17px; }

.plan { list-style: none; padding: 0 !important; counter-reset: plan; }
.plan li { counter-increment: plan; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; background: var(--lapis-deep); border-radius: 18px; padding: 18px 20px; }
.plan li .time { font-family: var(--display); color: var(--gold); font-size: 22px; line-height: 1.2; }
.plan li strong { display: block; }

/* FAQ */

.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--lapis-deep); border-radius: 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 800; color: var(--text);
  position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; color: var(--gold); font-size: 26px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 20px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }

.contact { margin-top: 56px; background: var(--surface); border-radius: 26px; padding: 32px; }
.contact h2 { margin-top: 0 !important; }
.contact-actions { margin-top: 20px !important; }

/* Contribute form */

.form { display: grid; gap: 20px; margin-top: 18px; background: var(--lapis-deep); border-radius: 26px; padding: 32px; }
.form p + p { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; color: var(--text); font-size: 16px; padding: 0; }
.field legend { margin-bottom: 8px; }
.field .opt { color: var(--text-3); font-weight: 700; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--lapis-night);
  border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text-2); font-weight: 700 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--gold); }
.form .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-note { color: var(--text-3) !important; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer -------------------------------------------------------------------- */

.site-footer { background: var(--lapis-deep); border-top: 2px solid var(--gold); padding-block: 40px; }
.site-footer .wrap { display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; }
.site-footer .made { font-weight: 800; color: var(--text-2); text-decoration: none; }
.site-footer .made:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-left: auto; }
.site-footer nav a { color: var(--text-3); font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { color: var(--text-3); width: 100%; font-size: 14px; }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero .wrap, .play .wrap { grid-template-columns: minmax(0, 1fr); }
  .fan { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .fan img { width: 190px; }
  .decks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding-block: 64px; }
  .site-header .wrap { gap: 8px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav a { padding: 8px 10px; }
  .hero { padding-block: 48px 64px; }
  .fan { height: 340px; }
  .fan img { width: 150px; border-radius: 14px; }
  .fan .c1 { left: 14px; top: 50px; }
  .fan .c2 { left: calc(50% - 75px); top: 0; }
  .fan .c3 { left: auto; right: 14px; top: 56px; }
  .steps, .features, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; }
  .device-land { border-radius: 28px; padding: 8px; }
  .device-land::before { left: 12px; width: 7px; height: 40px; }
  .screen { border-radius: 22px; }
  .plan li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 24px 20px; }
}

.callout + .callout { margin-top: 20px; }
.callout-alt { background: var(--lapis-deep); }
