/* Rate my Voice — the whole site's styling.
 *
 * One stylesheet, no framework, no build step: this is four pages that change a few times a year,
 * and a toolchain would be a maintenance debt with nothing to show for it.
 *
 * The fonts are SELF-HOSTED rather than pulled from Google Fonts. Two reasons, and the first is the
 * important one: a webfont CDN sees every visitor's IP, and this site's whole job is to host a
 * privacy policy — sending readers to a third party to read about how we handle their data would be
 * a poor look and, in the EU, a contested one. The second is that these are the app's own files, so
 * the site and the app read as the same product. */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #fff6e9;
  --paper2: #fffdf8;
  --ink: #2a1a2e;
  --ink2: #6e5e68;
  --volt: #6d3ae8;
  --tangerine: #ff7a1a;
  --line: rgba(42, 26, 46, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Nunito", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

/* ---- header ---- */

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site .name {
  font: 800 20px/1 "Baloo 2", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
header.site nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
header.site nav a { color: var(--ink2); text-decoration: none; }
header.site nav a:hover,
header.site nav a:focus-visible { color: var(--volt); text-decoration: underline; }

/* ---- type ---- */

h1 {
  font: 800 clamp(30px, 6vw, 42px) / 1.15 "Baloo 2", ui-sans-serif, system-ui, sans-serif;
  margin: 0 0 12px;
  text-wrap: balance;
}
h2 {
  font: 800 22px/1.3 "Baloo 2", ui-sans-serif, system-ui, sans-serif;
  margin: 36px 0 10px;
}
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
p, li { color: var(--ink); }
.lede { font-size: 19px; color: var(--ink2); margin: 0 0 28px; }
a { color: var(--volt); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
small, .meta { color: var(--ink2); font-size: 15px; }

/* ---- pieces ---- */

.card {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}

.steps { display: grid; gap: 14px; margin: 24px 0 8px; padding: 0; list-style: none; }
.steps li {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.steps .n {
  font: 800 18px/1 "Baloo 2", ui-sans-serif, sans-serif;
  color: var(--volt);
  min-width: 20px;
}

.btn {
  display: inline-block;
  background: var(--volt);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
}
.btn:hover, .btn:focus-visible { background: #5a2fd0; }
.btn.ghost { background: transparent; color: var(--volt); border: 1.5px solid var(--volt); }

table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 16px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink2); }
/* Wide content scrolls inside its own box so the page itself never scrolls sideways. */
.scroll-x { overflow-x: auto; }

footer.site {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer.site a { color: var(--ink2); }

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

/* The app is light-only by design; the site follows it rather than inventing a second identity,
 * but a dark-mode reader should not get a glare of cream, so the neutrals soften. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191220;
    --paper2: #221830;
    --ink: #f4ece2;
    --ink2: #a3949e;
    --volt: #9b76f5;
    --line: rgba(244, 236, 226, 0.18);
  }
  .btn { color: #191220; }
  .btn:hover, .btn:focus-visible { background: #b294f8; }
}
