/* Shared styles for Aven's public pages (home, privacy policy, terms of use).
   Colors follow the app icon: warm gold at the top, Aven blue below. */

:root {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #5f6672;
  --line: #e1e6ee;
  --accent: #1d6fd8;
  --accent-soft: rgba(83, 166, 253, 0.13);
  --glow-gold: rgba(255, 206, 112, 0.42);
  --glow-blue: rgba(83, 166, 253, 0.30);
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.04), 0 12px 32px rgba(20, 30, 50, 0.07);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c11;
    --surface: #12151c;
    --text: #eceef2;
    --muted: #9aa2ae;
    --line: #232834;
    --accent: #53a6fd;
    --accent-soft: rgba(83, 166, 253, 0.14);
    --glow-gold: rgba(255, 196, 92, 0.15);
    --glow-blue: rgba(83, 166, 253, 0.20);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(36rem 20rem at 50% -6rem, var(--glow-gold), transparent 70%),
    radial-gradient(60rem 30rem at 50% 2rem, var(--glow-blue), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
}

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

.page { max-width: 46rem; margin: 0 auto; padding: 0 16px 3.5rem; }

.page-wide { max-width: 60rem; }

/* Header: app icon, name, page title */

.hero { text-align: center; padding: 3.25rem 0 1.75rem; }

/* Icon + name link back to the home page. */
.home-link { display: inline-block; color: inherit; text-decoration: none; }

.hero-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  border-radius: 22.5%;
  box-shadow: 0 10px 28px rgba(30, 80, 160, 0.28);
}

.brand {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.updated { margin: 0; color: var(--muted); font-size: 0.95rem; }

.lead {
  max-width: 34rem;
  margin: 0.6rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: balance;
}

/* Switch between the pages */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 1.5rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.tabs a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* The document itself */

.sheet {
  padding: 2rem 2.25rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sheet-narrow { max-width: 46rem; margin: 0 auto; }

.sheet > :first-child { margin-top: 0; }

.sheet > h2:first-child { padding-top: 0; border-top: 0; }

h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
  line-height: 1.3;
}

.num {
  flex: none;
  min-width: 1.9rem;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

h3 { margin: 1.5rem 0 0.25rem; font-size: 1rem; }

p, ul { margin: 0.75rem 0; }

ul { padding-left: 1.25rem; }

li { margin: 0.4rem 0; }

li::marker { color: var(--accent); }

/* Highlighted box (summary, important notices) */

.callout {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: var(--accent-soft);
}

.callout h2 {
  display: block;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout > :last-child { margin-bottom: 0; }

.contact { font-style: normal; }

.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Home page: illustrated verse card and widgets */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0.75rem 0 3rem;
}

.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}

.shot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 1.4rem;
  overflow: hidden;
  border-radius: 30px;
  background: #1a2233 center / cover no-repeat;
  box-shadow: var(--shadow);
  color: #fff;
  text-align: center;
}

/* The same top-to-bottom scrim the app lays over theme photos. */
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.55));
}

.shot > * { position: relative; }

.shot blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
  text-wrap: balance;
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.shot-card { background-image: url("img/clouds.jpg"); }

.shot-card blockquote { font-size: 1.75rem; }

.shot-card figcaption { margin-top: 1.1rem; font-size: 0.78rem; }

.shot-medium {
  grid-column: span 2;
  aspect-ratio: 2.1 / 1;
  background-image: url("img/peaks.jpg");
}

.shot-medium blockquote { font-size: 1.3rem; }

.shot-small { aspect-ratio: 1; background-image: url("img/aurora.jpg"); }

.shot-gradient {
  aspect-ratio: 1;
  background-image: linear-gradient(165deg, #f6c66f, #86b9f4 52%, #3d84e0);
}

.shot-gradient::before { background: rgba(0, 0, 0, 0.14); }

/* Home page: feature cards */

.section-title {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.feature {
  margin: 0;
  padding: 1.25rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }

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

/* Home page: languages */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
}

footer {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer a { color: inherit; }

.credits { margin: 0.4rem 0 0; font-size: 0.8rem; }

@media (max-width: 820px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .showcase { grid-template-columns: 1fr; }
  .shot-card { aspect-ratio: 4 / 5; }
}

@media (max-width: 560px) {
  .hero { padding-top: 2.5rem; }
  .hero-icon { width: 76px; height: 76px; }
  h1 { font-size: 1.85rem; }
  .tabs a { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
  .sheet { padding: 1.4rem 1.15rem 1.75rem; border-radius: 18px; }
  h2 { gap: 0.55rem; font-size: 1.12rem; }
  .section-title { font-size: 1.4rem; }
  .features { grid-template-columns: 1fr; }
  .shot { border-radius: 24px; }
  .shot-medium blockquote { font-size: 1.1rem; }
  .shot-small, .shot-gradient { padding: 0.9rem; }
  .shot-small blockquote, .shot-gradient blockquote { font-size: 1rem; }
}
