/* Eerst Amen — site styles. Brand tokens from the app's rebrand spec:
   Linnen (day) #FBF6EF / #C4674A / #3E3229, Kaarslicht (evening) #221A15 /
   #E0A44E / #F2E5D4. Two voices: Nunito (UI/body), Fraunces (sacred text +
   wordmark only). */

:root {
  --linnen: #FBF6EF;
  --ink: #3E3229;
  --ink-muted: #6E6055;
  --terracotta: #C4674A;
  --kaarslicht: #221A15;
  --amber: #E0A44E;
  --cream: #F2E5D4;
  --outline: #E3D9CB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--linnen);
  color: var(--ink);
  line-height: 1.65;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

main { flex: 1; }

/* ---------- landing ---------- */

.hero {
  max-width: 34rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

/* The candle — the app's streak flame, alive on the web. */
.candle {
  width: 14px;
  height: 44px;
  margin: 0 auto 2.2rem;
  position: relative;
  background: linear-gradient(var(--cream), #E8DBC6);
  border-radius: 4px 4px 3px 3px;
}
.candle::before { /* wick */
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: var(--ink);
  border-radius: 1px;
}
.flame {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 14px;
  height: 20px;
  margin-left: -7px;
  background: radial-gradient(closest-side at 50% 70%, #FBEFD3 0%, var(--amber) 55%, rgba(224, 164, 78, 0) 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 90%;
  animation: flicker 2.8s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: rotate(-1.5deg) scale(1); opacity: .95; }
  22%      { transform: rotate(1.8deg) scale(1.05, .97); opacity: 1; }
  47%      { transform: rotate(-1deg) scale(.96, 1.04); opacity: .9; }
  71%      { transform: rotate(1.2deg) scale(1.02); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .flame { animation: none; }
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  letter-spacing: -0.01em;
}

.tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  color: var(--terracotta);
  margin-top: .6rem;
}

.hero .lead {
  margin: 2.4rem auto 0;
  font-size: 1.06rem;
  max-width: 30rem;
}
.hero .lead + .lead { margin-top: 1rem; }

.soon {
  display: inline-block;
  margin-top: 2.6rem;
  padding: .55rem 1.2rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: .95rem;
}

.price-note {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--ink-muted);
}

/* ---------- long-form (privacy) ---------- */

.page-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}
.page-header .wordmark { font-size: 1.15rem; }

article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

article h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.effective-date {
  color: var(--ink-muted);
  font-size: .92rem;
  margin-bottom: 2.2rem;
}

article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.4rem 0 .8rem;
}
article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.8rem 0 .6rem;
}
article p { margin-bottom: 1rem; }
article ul { margin: 0 0 1rem 1.3rem; }
article li { margin-bottom: .45rem; }
article strong { font-weight: 700; }
article code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .86em;
  background: #F1E9DD;
  border-radius: 4px;
  padding: .08em .35em;
}
article a { color: var(--terracotta); }

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: #fff;
}
article table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: .92rem;
}
article th, article td {
  text-align: left;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}
article tr:last-child td { border-bottom: none; }
article th { font-weight: 700; background: #FAF4EA; }

/* ---------- footer (kaarslicht) ---------- */

footer {
  background: var(--kaarslicht);
  color: var(--cream);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: .92rem;
}
footer a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { color: var(--amber); }
footer .sep { opacity: .45; margin: 0 .6rem; }
footer .blessing {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--amber);
  margin-bottom: .9rem;
}

a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
