/* SoliloQ — warm amber on dark, serif body, minimal chrome. */

/* Literata = "editorial" in the app's font picker. Used on the wordmark
   for parity with the app when users have the Editorial style selected. */
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --bg: #0f0e0b;
  --bg-elev: #171410;
  --text: #e8dfce;
  --text-muted: #9e9380;
  --accent: #d6a557;
  --accent-strong: #e7b868;
  --border: #2a241c;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", "Fraunces", "Lora", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Literata", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark .q {
  color: var(--accent-strong);
}

/* Hover swap: Solilo→amber, Q→cream — the two characters trade colors.
   The .wordmark:hover rule is needed for non-link wordmarks (the hero
   <span> on /), since the global a:hover only fires on <a> elements. */
.wordmark:hover {
  color: var(--accent);
}
.wordmark:hover .q {
  color: var(--text);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent-strong);
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 3rem 0 0.8rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.8rem 0 0.6rem;
  color: var(--accent);
}

p, li {
  color: var(--text);
}

p {
  margin: 0.8rem 0;
}

ul, ol {
  padding-left: 1.3rem;
  margin: 0.8rem 0;
}

li {
  margin: 0.35rem 0;
}

strong {
  color: var(--accent-strong);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--text);
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

code {
  font-family: "DM Mono", "SF Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.tldr {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.tldr h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--accent-strong);
  font-weight: 600;
  font-family: "Cormorant Garamond", Georgia, serif;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent-strong);
}

.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
}

.hero .wordmark {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 0 3rem;
}

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge img {
  display: block;
  width: auto;
}

/* Apple's SVG ships tightly cropped; Google's PNG ships with built-in
   clear space. To make the two badges look the same physical size on
   screen, the Google badge needs to render taller than the Apple one. */
.store-badge[aria-label^="Download"] img { height: 48px; }
.store-badge[aria-label^="Get it"] img { height: 70px; }

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Secondary CTA. Smaller + italicized so it reads as an alternative
   path, not a competing primary action. */
.web-cta {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.web-cta a {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.web-cta a:hover {
  border-bottom-color: var(--accent);
}

.hero .links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero .links a {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-strong);
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero .links a:hover {
  background: var(--bg-elev);
}

/* Ambient embers behind the hero: orbs fade in at random spots, glow,
   fade out, then respawn elsewhere — driven by /particles.js (Web
   Animations API). Decorative (aria-hidden); the script no-ops under
   prefers-reduced-motion, so no static fallback rule is needed. */
.hero,
footer {
  position: relative;
  z-index: 1;
}
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particles span {
  position: absolute;
  /* Pure light: ONE soft radial gradient, hot core feathering all the
     way to transparent at the box edge. No box-shadow (its knockout
     behind the element box left a dark gap between core and bloom —
     the "shadow"), no border, no clip. Like the app's radial glow. */
  background: radial-gradient(circle closest-side,
    rgba(255, 250, 232, 0.95) 0%,
    rgba(255, 235, 193, 0.82) 14%,
    var(--accent-strong) 28%,
    rgba(214, 165, 87, 0.50) 48%,
    rgba(214, 165, 87, 0.20) 68%,
    rgba(214, 165, 87, 0) 100%);
  opacity: 0;
  will-change: opacity, transform;
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  main { padding: 2.5rem 1.2rem 4rem; }
  h1 { font-size: 2.2rem; }
  .hero .wordmark { font-size: 3rem; }
  nav a { margin-left: 1rem; }
}
