/* Rise website: one stylesheet for every page.
   Colours come from the app (Rise/Views/Theme.swift and AccentColor). */

:root {
  color-scheme: light dark;
  --accent: #2E5E6E;        /* the teal of the icon's hill */
  --text: #1C1C1E;
  --secondary: #5F6B73;
  --background: #FFFFFF;
  --panel: #F4F6F8;
  --line: #E6EAEE;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4A8FA3;
    --text: #F2F2F7;
    --secondary: #A1ABB3;
    --background: #000000;
    --panel: #1C2329;
    --line: #2A333A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  /* The iPhone's own font (San Francisco) on Apple devices; the system font elsewhere. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main, header.site, footer.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Top bar on the inner pages: small icon + "Rise", back to the home page. */
header.site { padding-top: 1.25rem; }
header.site a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
header.site img { width: 2.25rem; height: 2.25rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.25rem; }
p, ul { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
.updated { color: var(--secondary); margin-bottom: 1.5rem; }

.panel {
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.9375rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.5rem; }

/* The home page: everything centred on the screen. */
body.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
}
body.home main img { width: 8rem; height: 8rem; filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.15)); }
body.home h1 { font-size: 3rem; margin: 1.5rem 0 0.25rem; }
body.home .tagline { font-size: 1.25rem; color: var(--secondary); margin: 0 0 1.5rem; }
body.home .soon {
  display: inline-block;
  background: #2E5E6E;      /* the icon's teal in both modes: white text stays readable */
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
body.home .about { max-width: 30rem; }
body.home footer.site { text-align: center; }
body.home footer.site nav { justify-content: center; }
