/* favrex.me: the app's own look. Navy and ivory from the icon, gold only
   where the icon has it (the star), New York for what people said. */
:root {
  color-scheme: light dark;
  --navy: #13234b;
  --ivory: #f7f2e4;
  --gold: #f2be43;
  --page: #ffffff;
  --ink: #0f1a33;
  --ink2: #4a5368;
  --hair: #dde1e8;
  --card: #ffffff;
  --link: #0b4fb3;
  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0c1530;
    --ink: #eef0f5;
    --ink2: #a9b1c4;
    --hair: #26335a;
    --card: #17244a;
    --link: #8cbcff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* Site bar: the icon and name, as on the app's Home screen. */
.bar { display: flex; align-items: center; gap: 10px; padding: 18px 0; text-decoration: none; color: inherit; width: max-content; }
.bar img { width: 36px; height: 36px; border-radius: 9px; }
.bar span { font-weight: 800; font-size: 21px; letter-spacing: 0.2px; }

/* Hero: a sentence as someone said it, then the rec FavRex filed it as. */
.hero { background: var(--navy); color: var(--ivory); padding-bottom: 56px; }
.hero .bar span { color: var(--ivory); }
.said {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 7.4vw, 46px); line-height: 1.16; letter-spacing: -0.4px;
  margin: 36px 0 0; max-width: 18em;
}
.said::before { content: "\201C"; }
.said::after { content: "\201D"; }
.filed {
  margin-top: 28px; background: var(--card); color: var(--ink);
  border-radius: 18px; padding: 18px 20px; max-width: 420px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filed { background: #22345f; box-shadow: inset 0 0 0 1px rgba(247, 242, 228, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
}
.filed .kind { font-size: 13px; font-weight: 600; color: var(--ink2); }
.filed .title { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.filed dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 10px; margin: 14px 0 0; font-size: 15px; }
.filed dt { color: var(--ink2); }
.filed dd { margin: 0; }
.hero .lede { margin: 28px 0 0; font-size: 19px; max-width: 30em; color: var(--ivory); opacity: 0.92; }
.store { display: inline-block; margin-top: 22px; padding: 12px 20px; border-radius: 12px; background: var(--ivory); color: var(--navy); font-weight: 700; text-decoration: none; }
.store.soon { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(247, 242, 228, 0.5); font-weight: 600; }

/* The one moment: what was said, then what it became. */
@media (prefers-reduced-motion: no-preference) {
  .said { animation: rise 0.6s ease-out both; }
  .filed { animation: rise 0.6s ease-out 0.9s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Body sections */
main section { padding: 40px 0 0; }
h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p { margin: 0 0 12px; }
ul { padding-left: 1.2em; margin: 0 0 12px; }
li { margin-bottom: 6px; }
.quiet { color: var(--ink2); }
.kinds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds li { margin: 0; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; }

/* Long pages: privacy, support */
.doc { padding-top: 8px; }
.doc h1 { font-family: var(--serif); font-size: 36px; line-height: 1.15; margin: 24px 0 6px; }
.doc .updated { color: var(--ink2); font-size: 15px; margin-bottom: 28px; }
.doc h2 { margin-top: 32px; font-size: 23px; }
.doc header { border-bottom: 1px solid var(--hair); }
.doc header .bar span { color: var(--ink); }

footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink2); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
