/* fitlink.org: the app's colours (apps/mobile/lib/ui/core/themes/app_colors.dart) and its font,
   served from this site, so no page loads anything from anyone else. */

@font-face {
  font-family: 'Alexandria';
  src: url('fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('fonts/Alexandria-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #f1f0ec;
  --surface: #ffffff;
  --ink: #0a1e24;
  --ink-muted: #4e5f63;
  --rule: #e2e1dc;
  --link: #00737a;
  --cyan: #00c4cc;
  --cyan-soft: #eaf7f8;
  --sea: #08343a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161513;
    --surface: #1f1e1b;
    --ink: #f1f0ec;
    --ink-muted: #b4b9b8;
    --rule: #34322e;
    --link: #5fdde2;
    --cyan-soft: #10302f;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', Tahoma,
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: var(--sea);
}

.lang {
  font-size: 0.9375rem;
}

main {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 32px 16px;
  background: var(--surface);
  border-radius: 20px;
}

@media (min-width: 792px) {
  main {
    padding: 48px 56px;
  }
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.25;
}

h2 {
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
  line-height: 1.4;
}

h3 {
  margin: 24px 0 4px;
  font-size: 1.0625rem;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-inline-start: 1.25em;
}

li {
  margin-bottom: 6px;
}

.updated {
  margin-bottom: 24px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.lead {
  font-size: 1.0625rem;
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--cyan-soft);
}

.note p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 8px;
  padding-inline-start: 1.25em;
  columns: 2 220px;
  column-gap: 32px;
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* The home page: the mark, one line, the links. */
.home {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 16px;
  text-align: center;
}

.home img {
  width: 72px;
  height: 72px;
  padding: 12px;
  border-radius: 20px;
  background: var(--sea);
}

.home h1 {
  margin-top: 16px;
}

.home p {
  max-width: 28em;
  color: var(--ink-muted);
}
