/* Colors are Reso's Grape pack (tokens/color.tokens.json in the app repo). */
:root {
  --ground: #F4F0FF;
  --ink: #1E1442;
  --muted: #5A5178;
  --link: #6A3DE8;
  --accent: #FF7A2F;
  --on-accent: #1E1442;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17112E;
    --ink: #F4F0FF;
    --muted: #B9B0D9;
    --link: #A88BFF;
    --accent: #FF8F4F;
  }
}

/* Baloo 2 (SIL OFL 1.1, fonts/OFL.txt): the brand display face, headings only. */
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo-2-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: var(--ground); color: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  /* On phones, 100vh is taller than what's visible under the address bar. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 1.125rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  flex: 1;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.res { width: 10rem; height: 10rem; border-radius: 50%; }

h1, .tagline, .soon { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; }

h1 { font-size: 4rem; line-height: 1; margin: 1.5rem 0 0.25rem; }

.tagline { font-size: 1.75rem; line-height: 1.2; margin: 0 0 1.5rem; }

.soon {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.125rem;
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }

/* 44px tap targets around 24px icons. */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
}

.social a:hover, .social a:focus-visible { color: var(--link); }

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

footer p { margin: 0.75rem 0 0; }

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

a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Phones: everything, footer included, fits without scrolling. */
@media (max-width: 600px), (max-height: 760px) {
  main { padding: 2rem 1rem 1rem; }
  .res { width: 7.5rem; height: 7.5rem; }
  h1 { font-size: 3.25rem; margin-top: 1rem; }
  .tagline { font-size: 1.5rem; margin-bottom: 1rem; }
  .soon { margin-top: 0.5rem; }
  footer { padding: 1rem 1rem 1.5rem; }
}
