/* Frekulio user documentation. Colors, spacing and radii come from lib/theme/tokens.dart. */
:root {
  --coral: #ff7d95;
  --violet: #b5a8ff;
  --mint: #64e0c8;
  --amber: #ffc783;
  --ink: #151720;

  --background: #151720;
  --surface: #1f222e;
  --raised: #292d3b;
  --text: #f8f7fc;
  --muted: #a9abbe;
  --border: #2e3242;
  --link: #ff7d95;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #faf9fc;
    --surface: #ffffff;
    --raised: #f1eff6;
    --text: #242532;
    --muted: #62647a;
    --border: #e7e5ee;
    /* Coral itself is too pale for text on white. */
    --link: #c2334f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page { max-width: 720px; margin: 0 auto; padding: 16px 20px 40px; }

a { color: var(--link); text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { margin: 32px 0 4px; font-size: 2.1rem; font-weight: 800; }
h2 { margin: 0 0 12px; font-size: 1.45rem; font-weight: 800; }
h3 { margin: 24px 0 4px; font-size: 1.05rem; font-weight: 700; }
p { margin: 8px 0; }
ul, ol { margin: 8px 0; padding-left: 24px; }
li { margin: 4px 0; }

/* Names of buttons and screens, as they read in the app. */
b { font-weight: 700; }

.top { display: flex; align-items: center; gap: 8px; min-height: 48px; }

.wordmark { color: var(--text); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; border-radius: 999px; }
.wave i:nth-child(1) { height: 7px; background: var(--coral); }
.wave i:nth-child(2) { height: 16px; background: var(--violet); }
.wave i:nth-child(3) { height: 10px; background: var(--mint); }
.wave i:nth-child(4) { height: 13px; background: var(--amber); }

.language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.tagline { margin: 0 0 24px; color: var(--muted); font-size: 1.1rem; }

.contents, section { margin: 16px 0; padding: 16px; border-radius: 24px; background: var(--surface); }

.contents h2 { margin-bottom: 8px; font-size: 1.05rem; }
.contents ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contents li { margin: 0; }
.contents a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.note {
  margin: 12px 0;
  padding: 12px;
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  background: var(--raised);
}
.note.careful { border-left-color: var(--amber); }

footer { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  section, .contents { margin-left: -8px; margin-right: -8px; }
}
