/* ── Tellino — twilight & lantern aesthetic ──────────────────────────
   A bedtime palette: deep dusk blues, a warm lantern glow, soft cream.
   Storybook, hand-crafted, calm. Not a tech-startup page.
   Fonts are self-hosted-friendly system stacks elevated with a
   characterful serif display; swap in self-hosted woodland fonts later. */

:root {
  /* Dusk palette */
  --night-deep: #11173a;     /* deep twilight, page base */
  --night: #1b2350;          /* lifted twilight */
  --night-soft: #2a3470;     /* card / panel */
  --lantern: #f5b85c;        /* warm lantern glow (accent) */
  --lantern-soft: #f8d49a;   /* softer glow */
  --moss: #8fc0a9;           /* gentle green (Mossbie) */
  --cloud: #cdd6f4;          /* soft moonlit text */
  --cream: #f7f3e8;          /* warm paper, headings */
  --mist: rgba(205, 214, 244, 0.62); /* muted body text */

  --maxw: 44rem;
  --radius: 18px;

  /* A distinctive display serif + a calm humanist body.
     Georgia/Iowan are warm, characterful, and ship everywhere —
     deliberately NOT Inter/Roboto. Swap for self-hosted later. */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Palatino", Georgia, "Times New Roman", serif;
  --font-body: ui-rounded, "SF Pro Rounded", "Segoe UI", "Avenir Next", "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cloud);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(245, 184, 92, 0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(143, 192, 169, 0.08), transparent 55%),
    linear-gradient(160deg, var(--night-deep) 0%, var(--night) 70%, #0d1230 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft drifting stars — pure CSS, no JS, very light */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(247, 243, 232, 0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(247, 243, 232, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 45% 60%, rgba(248, 212, 154, 0.6), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(247, 243, 232, 0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(247, 243, 232, 0.4), transparent);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 4rem;
}

/* ── Hero / header ─────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(3rem, 10vw, 6rem);
}
.brand .mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--lantern-soft), var(--lantern) 60%, #d9933a);
  box-shadow: 0 0 24px rgba(245, 184, 92, 0.45);
  font-size: 1.1rem;
}
.brand .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
h1 .glow { color: var(--lantern-soft); }

.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--cloud);
  max-width: 36rem;
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}

/* ── Promise chips ─────────────────────────────────────── */
.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
  list-style: none;
}
.promises li {
  font-size: 0.92rem;
  color: var(--cream);
  background: rgba(42, 52, 112, 0.55);
  border: 1px solid rgba(205, 214, 244, 0.14);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.promises li b { color: var(--lantern-soft); font-weight: 600; }

/* ── Body sections ─────────────────────────────────────── */
section.block { margin-bottom: 2.6rem; }
section.block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
section.block p { color: var(--mist); max-width: 38rem; }
section.block p strong { color: var(--cloud); font-weight: 600; }

/* ── Email capture ─────────────────────────────────────── */
.notify {
  margin-top: 2.6rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(42,52,112,0.7), rgba(27,35,80,0.7));
  border: 1px solid rgba(245, 184, 92, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.notify p { color: var(--cloud); margin-bottom: 1rem; }
.notify a.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--night-deep);
  background: linear-gradient(180deg, var(--lantern-soft), var(--lantern));
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 184, 92, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.notify a.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 184, 92, 0.42);
}
.notify .fineprint {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--mist);
}

/* ── Footer / lang switch ──────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(205, 214, 244, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--mist);
}
footer a { color: var(--cloud); text-decoration: none; border-bottom: 1px solid rgba(245,184,92,0.4); }
footer a:hover { color: var(--lantern-soft); }
.langswitch { display: flex; gap: 0.4rem; }
.langswitch a {
  border: 1px solid rgba(205,214,244,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}
.langswitch a[aria-current="true"] {
  background: rgba(245,184,92,0.18);
  color: var(--lantern-soft);
  border-color: rgba(245,184,92,0.4);
}

/* ── Page-load reveal (CSS only) ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
  .reveal.d1 { animation-delay: 0.05s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.32s; }
  .reveal.d4 { animation-delay: 0.46s; }
  .reveal.d5 { animation-delay: 0.6s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ── Blog (hidden until published) ─────────────────────── */
.post-list { list-style: none; }
.post-list li { margin-bottom: 1.6rem; }
.post-list a { color: var(--cream); font-family: var(--font-display); font-size: 1.25rem; text-decoration: none; }
.post-list a:hover { color: var(--lantern-soft); }
.post-list .meta { font-size: 0.82rem; color: var(--mist); }
article.prose { max-width: 40rem; }
article.prose h1 { margin-bottom: 0.4rem; }
article.prose .meta { color: var(--mist); font-size: 0.85rem; margin-bottom: 2rem; }
article.prose p { color: var(--cloud); margin-bottom: 1.2rem; }
article.prose h2 { font-family: var(--font-display); color: var(--cream); margin: 2rem 0 0.6rem; }
article.prose a { color: var(--lantern-soft); }
