/* Evoking Healing — static landing (always on; no Phoenix required) */

:root {
  --bg: oklch(0.985 0.008 300);
  --bg-soft: oklch(0.96 0.014 300);
  --text: oklch(0.28 0.03 290);
  --muted: oklch(0.28 0.03 290 / 0.72);
  --primary: oklch(0.52 0.09 300);
  --primary-soft: oklch(0.68 0.09 300);
  --border: oklch(0.58 0.09 300 / 0.18);
  --card: oklch(0.99 0.006 300 / 0.88);
  --shadow: 0 18px 40px oklch(0.45 0.05 300 / 0.12);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  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;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, oklch(0.88 0.04 300 / 0.55), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 5%, oklch(0.9 0.03 320 / 0.45), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, oklch(0.92 0.02 280 / 0.4), transparent 55%),
    var(--bg);
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--text);
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

html.await-live body { visibility: hidden; }
/* Offline / library status banner */
.banner {
  display: none;
  background: color-mix(in oklch, var(--primary) 12%, white);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem var(--gutter);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.banner.is-visible {
  display: block;
}

.banner a {
  font-weight: 600;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.15);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 4px 16px oklch(0.55 0.08 300 / 0.25);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 800px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.nav-links a:hover {
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9999px;
  padding: 0.72rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, oklch(0.68 0.09 300), oklch(0.58 0.1 320));
  color: oklch(0.98 0.01 300);
  box-shadow: 0 10px 28px oklch(0.55 0.08 300 / 0.28);
}

.btn-primary:hover {
  color: oklch(0.98 0.01 300);
  box-shadow: 0 14px 34px oklch(0.55 0.08 300 / 0.36);
}

.btn-ghost {
  background: color-mix(in oklch, var(--text) 4%, transparent);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: color-mix(in oklch, var(--primary) 8%, transparent);
  color: var(--text);
}

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 40rem;
}

/* Sections */
.hero {
  padding-block: clamp(3.5rem, 10vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 3.9rem);
  margin: 0.65rem 0 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.panel {
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(
      155deg,
      color-mix(in oklch, var(--primary) 14%, transparent),
      color-mix(in oklch, var(--primary-soft) 10%, transparent) 45%,
      color-mix(in oklch, var(--bg) 92%, transparent)
    );
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: oklch(0.2 0.02 290);
  border: 1px solid var(--border);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-muted {
  background: color-mix(in oklch, var(--primary) 4%, transparent);
  border-block: 1px solid color-mix(in oklch, var(--primary) 8%, transparent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.35rem 0 0;
}

.grid-3 {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.card {
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
  display: block;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklch, var(--primary) 35%, transparent);
  color: inherit;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.footer a:hover {
  color: var(--primary);
}

.footer-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
