/* VIRALA — viralahealth.com
   One appearance on every device: the approved Light variant (15 October 2026).
   Colours are VIRALA's app Theme tokens (Light). The mark is the approved
   Life chapters geometry; nothing here redraws it. */

:root {
  --bg: #EFE2DD;
  --surface: #FFFCFA;
  --primary: #6B3E5E;
  --accent: #D8A7A0;
  --text: #2B2226;
  --text-2: #574950;
  --border: #B9A3AB;
  --glow-2: #FFFCFA;
  --glow-strength: .5;
  --mark-front: #6B3E5E;
  --mark-back: #D8A7A0;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmosphere: the app's OrganicBackdrop (a rose circle and a second, smaller one offset
   below-left, softly blurred), at page scale, with a faint paper grain. Decorative. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  border-radius: 50%;
  filter: blur(clamp(48px, 9vw, 110px));
  opacity: var(--glow-strength);
}
.atmosphere::before {
  width: clamp(300px, 62vw, 820px);
  aspect-ratio: 1;
  background: var(--accent);
  transform: translate(-30%, -58%);
}
.atmosphere::after {
  width: clamp(240px, 50vw, 660px);
  aspect-ratio: 1;
  background: var(--glow-2);
  transform: translate(-82%, -22%);
}
.grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Home */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 10vh, 120px) 24px clamp(40px, 7vh, 80px);
}

.mark {
  display: block;
  width: auto;
  height: clamp(92px, 15vh, 148px);
  margin-bottom: clamp(28px, 4.5vh, 44px);
}
.mark .front, .mark-small .front { fill: var(--mark-front); }
.mark .back, .mark-small .back { fill: var(--mark-back); }

h1 { margin: 0; font-weight: inherit; }

.wordmark {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  letter-spacing: .34em;
  margin-right: -.34em; /* keep the spaced word optically centred */
  color: var(--primary);
}

.tagline {
  display: block;
  margin-top: clamp(18px, 3vh, 28px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--primary);
  text-wrap: balance;
}

.lede {
  max-width: 30ch;
  margin: clamp(20px, 3.2vh, 30px) auto 0;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: balance;
}

/* Coming soon: shaped like a store badge, but plainly not a link or a download */
.availability {
  margin-top: clamp(36px, 6vh, 56px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--primary);
  text-align: left;
}
.availability svg { width: 22px; height: 22px; flex: none; }
.availability .label { display: flex; flex-direction: column; line-height: 1.2; }
.availability .soon {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.availability .store {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Footer */
.site-footer {
  padding: 24px 24px max(28px, env(safe-area-inset-bottom));
  font-size: .875rem;
  color: var(--text-2);
}
.site-footer ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 28px;
  row-gap: 6px;
}
.site-footer li { display: flex; align-items: center; }
.site-footer .origin {
  margin: 4px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: .9375rem;
  letter-spacing: .01em;
  color: var(--text-2);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
a:hover { color: var(--primary); text-decoration-color: currentColor; }
.site-footer a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--primary);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 16px; }

/* Arrival: a quiet, staggered fade */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .rise:nth-child(2) { animation-delay: .12s; }
  .rise:nth-child(3) { animation-delay: .24s; }
  .rise:nth-child(4) { animation-delay: .36s; }
  .site-footer { animation: fade 1.2s .6s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 32px; padding-bottom: 24px; }
  .mark { height: 72px; margin-bottom: 18px; }
  .tagline { font-size: 2.25rem; margin-top: 10px; }
  .availability { margin-top: 22px; }
}

/* Reading pages (not found) */
.page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) 24px 32px;
}
.page-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--primary);
}
.page-home svg { height: 34px; width: auto; }
.page-home .wordmark { font-size: 1rem; }
.page h1 {
  margin: clamp(36px, 6vh, 56px) 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  color: var(--primary);
}
.page .updated { margin: 0 0 32px; color: var(--text-2); font-size: .9375rem; }
.page h2 {
  margin: 36px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3125rem;
  color: var(--primary);
}
.page p, .page li { font-size: 1.0625rem; line-height: 1.65; }
.page p { margin: 0 0 14px; }
.page ul { padding-left: 1.2em; margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.page a:not(.page-home) { color: var(--primary); text-decoration: underline; }
.page.center { text-align: center; }
.page.center .page-home { justify-content: center; }
