/* Fonts are served from this site (no third-party requests). Both are SIL OFL; see /fonts/. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

/* WishRaven brand: same tokens as the Android theme (see CLAUDE.md "Design"). */
:root {
  --bg: #FBF7F0;        /* cream */
  --text: #1F2A44;      /* ink */
  --muted: #4A5468;
  --link: #B3364F;      /* cranberry */
  --rule: #E6DFD3;
  --card: #FFFFFF;
  --accent: #E2A93B;    /* gold */
  --danger: #B42318;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151F;      /* night */
    --text: #F3EEE6;
    --muted: #B5B9C4;
    --link: #E8899B;    /* small cranberry text in dark mode */
    --rule: #2A2F3D;
    --card: #1A1E2A;
    --danger: #FF8A7A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Raven circle + wordmark. The mascot image is 432px with its circle spanning the
   middle 264px, so it is drawn larger and clipped to the visible circle. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.raven {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: none;
}
.raven img {
  position: absolute;
  width: calc(var(--size) * 432 / 264);
  height: calc(var(--size) * 432 / 264);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; margin: 2.5rem 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }

p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.35rem; }

a { color: var(--link); text-underline-offset: 0.15em; }

.meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.5rem; }

/* Home page */
.hero { text-align: center; padding-top: 12vh; }
.hero .raven { --size: 140px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin: 1.5rem 0 0.25rem; }
.hero .tagline { font-size: 1.25rem; color: var(--muted); margin: 0 0 2rem; }
.hero footer { text-align: left; }
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.4rem; }
}

/* Home page features and the Play badge */
.features {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 30rem;
  text-align: left;
}
.features li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.features li + li { margin-top: 0; }
.features span { flex: none; }
.play-badge { display: inline-block; }
/* Google's badge image includes padding around the badge itself. */
.play-badge img { height: 72px; width: auto; display: block; margin: 0 auto; }
.legal { font-size: 0.8rem; margin: 0.5rem 0 0; }
