/* Sirin website: the same mosaic look as the app (lib/theme.dart).
   Grace's colours only: sky, gold and deep blue, with white or black text.
   No icons anywhere: words only. */

:root {
  --sky: #8EC6E8;
  --gold: #D4AF37;
  --deep: #2E5E9E;
  --white: #FFFFFF;

  --panel: rgba(46, 94, 158, 0.72);
  --panel-strong: rgba(46, 94, 158, 0.88);
  --line: rgba(255, 255, 255, 0.55);
  --gold-glass: rgba(212, 175, 55, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  color: var(--white);
  background: var(--deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Where the sun sits: behind the dove on Home, behind the title elsewhere. */
  --dove: min(420px, 82vw);
  --sunY: calc(102px + var(--dove) * 0.246);
  --skyW: min(108.5vw, 1300px);
}

body.page { --sunY: 20px; }

/* One sunburst whose rays fade into deep blue, like the app's backdrop
   (lib/theme.dart): the art is 108.5% of the screen wide, the sun is 47% of
   the way down it, and only the part below the sun fades out. */
.sky {
  --skyH: calc(var(--skyW) * 2.02);
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--sunY) + var(--skyH) * 0.53);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.sky img {
  position: absolute;
  left: 50%;
  width: var(--skyW);
  transform: translateX(-50%);
  top: calc(var(--sunY) - var(--skyH) * 0.47);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* Deep blue settling over the lower tiles so the words stay readable. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 94, 158, 0) 30%, rgba(46, 94, 158, 0.45) 60%, var(--deep) 100%);
}

h1, h2, h3, .brand, .eyebrow, .nav a, .btn {
  font-family: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(3rem, 11vw, 5.5rem); letter-spacing: 0.12em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: 0.04em; }
h3 { font-size: 1.5rem; letter-spacing: 0.03em; }

p { margin: 0 0 1em; }
strong { font-weight: 700; }
a { color: var(--white); }

.glow { text-shadow: 0 0 4px rgba(46, 94, 158, 0.9), 0 0 14px rgba(46, 94, 158, 0.7); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(46, 94, 158, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { background: var(--gold-glass); border-color: var(--gold); }

@media (max-width: 560px) {
  .brand { font-size: 1.25rem; letter-spacing: 0.1em; }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 4px 7px; font-size: 0.9rem; }
}

/* ── Hero: the dove in the middle of the sun ────────────────────────────── */

.hero { text-align: center; padding: 40px 0 72px; }

.hero .dove {
  width: var(--dove);
  height: auto;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 24px rgba(46, 94, 158, 0.55));
}

.hero .lead { font-size: 1.45rem; max-width: 620px; margin: 0 auto 30px; }

.hero.compact { padding: 64px 0 48px; }
.hero.compact h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); letter-spacing: 0.06em; }

.eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--sky);
  margin-bottom: 10px;
}

/* ── Buttons: see-through gold for the main action ──────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 26px;
  margin: 6px 4px;
  border-radius: 999px;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--white);
  background: var(--gold-glass);
  border: 1px solid var(--gold);
}

.btn:hover { background: rgba(212, 175, 55, 0.75); }

.btn.ghost { background: rgba(46, 94, 158, 0.45); border-color: var(--line); }
.btn.ghost:hover { background: rgba(46, 94, 158, 0.75); }

/* ── Sections and panels ────────────────────────────────────────────────── */

section.block { padding: 40px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.section-head p { color: var(--sky); font-size: 1.2rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel.strong { background: var(--panel-strong); }
.panel p:last-child { margin-bottom: 0; }
.panel h3 { color: var(--white); }
.panel .tag { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.08em; font-family: "Cormorant SC", serif; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.mission {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission strong { color: var(--gold); font-weight: 700; }

/* Scores, in the app's colours: sky is real, white is unsure, gold is fake. */
.scale { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.scale span { padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 1.1rem; }
.scale .real { background: rgba(142, 198, 232, 0.35); border-color: var(--sky); }
.scale .unsure { background: rgba(255, 255, 255, 0.18); }
.scale .fake { background: var(--gold-glass); border-color: var(--gold); }

/* ── Questions ──────────────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-size: 1.25rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "Open"; color: var(--gold); font-size: 1rem; white-space: nowrap; padding-top: 3px; }
.faq details[open] summary::after { content: "Close"; }

/* ── Privacy policy text ────────────────────────────────────────────────── */

.policy { max-width: 780px; margin: 0 auto; }
.policy h2 { font-size: 1.7rem; margin-top: 1.4em; color: var(--white); }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: 0.4em; }
.policy .date { color: var(--sky); }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact { text-align: center; }

.contact .email {
  display: inline-block;
  font-size: 1.45rem;
  margin: 4px 0 16px;
  word-break: break-all;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 40px;
  background: rgba(46, 94, 158, 0.92);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 1.05rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.hero .eyebrow { color: var(--white); }

/* Reading pages: stronger deep blue so the words stay readable, like the
   app's reading screens. */
body.page .sky::after {
  background: linear-gradient(180deg, rgba(46, 94, 158, 0.35) 0, rgba(46, 94, 158, 0.6) 25%, rgba(46, 94, 158, 0.85) 50%, var(--deep) 80%);
}

/* Home: the title and tagline sit on the brightest part of the sun. */
.hero h1.glow, .hero .lead.glow {
  text-shadow: 0 0 3px var(--deep), 0 0 8px var(--deep), 0 0 18px rgba(46, 94, 158, 0.95), 0 0 34px rgba(46, 94, 158, 0.8);
}

/* Home tagline on a see-through deep blue panel, like the app's panels. */
body:not(.page) .hero .lead {
  display: block;
  width: fit-content;
  padding: 8px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
