/* KailoRun – gemensam stil */
/* Typsnitten ligger lokalt (ingen Google Fonts = inga uppgifter till Google) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
:root {
  --mist: #eef1ec;
  --paper: #ffffff;
  --pine: #17402f;
  --pine-2: #22573f;
  --ink: #10241b;
  --muted: #56685e;
  --line: #d3dbd4;
  --signal: #f26b1d;
  --signal-ink: #b9480a;
  --moss: #3f8f6b;
  --danger: #b3261e;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.6rem, 6vw, 4.6rem);

  --r-sm: 6px;
  --r-md: 12px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---- Märke: Coach Kailo ---- */
.avatar { display: inline-block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--pine); box-shadow: 0 0 0 2px var(--signal); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; }

/* ---- Sidhuvud ---- */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-decoration: none; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---- Knappar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8em 1.3em; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--mist); font: 600 var(--step-0)/1 var(--body);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--pine); border-color: var(--pine); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.signal:hover { background: var(--signal-ink); border-color: var(--signal-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--mist); }
.btn.small { font-size: var(--step--1); padding: .6em 1.1em; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---- Sidfot ---- */
.site-foot { background: var(--ink); color: #c9d4cd; padding: 48px 0 40px; margin-top: 96px; font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.site-foot .brand { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-foot a { color: #e7ece8; }
.site-foot small { flex-basis: 100%; color: #8fa197; }

/* ---- Textsidor ---- */
.prose { padding: 32px 0 0; }
.prose h1 { font-size: var(--step-3); margin-bottom: .4em; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .4em; }
.prose p, .prose li { max-width: 68ch; }
.prose .todo { background: #fde6d6; padding: 0 .25em; border-radius: 3px; }
