/*
 * karot.love — one stylesheet for the two pages there are.
 *
 * The palette is the app's own (core/designsystem/theme/AppColors.kt): Night #0D1024 under Moon
 * #F6F1EA by night, Paper #FBF6EF under Ink #1F1A2E by day, with the lamp amber the app glows with.
 * Night is the default because that is the face Karot shows on its splash; a phone set to light gets
 * the paper one. No web fonts and no JavaScript on the home page, so the Content-Security-Policy in
 * firebase.json can refuse everything the page does not ask for.
 */

:root {
  color-scheme: dark light;
  --bg: #0D1024;
  --surface: #161A33;
  --line: #2C3160;
  --text: #F6F1EA;
  --soft: #A7A4C2;
  --faint: #75739A;
  --lamp: #FFB36B;
  --lamp-bright: #FFC994;
  --rose: #FF8FA3;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FBF6EF;
    --surface: #F3ECE3;
    --line: #E6DCCF;
    --text: #1F1A2E;
    --soft: #6D6679;
    --faint: #9A93A6;
    --lamp: #E0703A;
    --lamp-bright: #E0703A;
    --rose: #B17502;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 44rem; margin: 0 auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 10px;
}
.skip:focus { left: 20px; top: 20px; }

/* ── The mark, on both pages ─────────────────────────────────────────────── */

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 0 0;
  color: inherit; text-decoration: none;
}
.brand b {
  font: 600 22px/1 Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: .01em;
}

/* ── Home ────────────────────────────────────────────────────────────────── */

h1 {
  margin: 12vh 0 0;
  font: 400 clamp(30px, 7vw, 44px)/1.2 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.lede { margin: 18px 0 0; font-size: clamp(17px, 2.4vw, 19px); color: var(--soft); }

.points { margin: 44px 0 0; padding: 0; list-style: none; }
.points li { margin: 0 0 22px; padding: 0 0 0 26px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lamp);
}
.points li:nth-child(2)::before { background: var(--rose); }
.points b { font-weight: 600; }
.points span { display: block; color: var(--soft); }

/* ── The invite page ─────────────────────────────────────────────────────── */

.invite { margin: 12vh 0 0; }
.invite h1 { margin: 0; }

.code {
  display: inline-block;
  margin: 30px 0 0;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font: 600 clamp(22px, 6vw, 30px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em;
  /* The last letter's tracking would otherwise push the text off centre in its box. */
  text-indent: .18em;
}

.open {
  display: inline-block;
  margin: 26px 0 0;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--lamp);
  color: #1F1A2E;
  font-weight: 600;
  text-decoration: none;
}
.open:hover { background: var(--lamp-bright); }

.after { margin: 26px 0 0; color: var(--soft); }

/* ── Foot ────────────────────────────────────────────────────────────────── */

footer {
  margin: 12vh 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer p { margin: 0 0 6px; }
