@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/BigShouldersDisplay_800ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow_500Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow_600SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #0e151e; --card: #131c27; --line: #25334a; --text: #eef2f4; --muted: #9ba8b5;
  --accent: #e0764f; --link: #e88a66; --horse-filter: none;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f7; --card: #ffffff; --line: #d9dfe5; --text: #0e1620; --muted: #5b6772;
    --link: #b4512b; --horse-filter: brightness(0);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.6;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Ordmärke */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { height: 30px; width: auto; display: block; filter: var(--horse-filter); }
.word {
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.accent { color: var(--accent); }

/* Sidhuvud */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.home .wrap { justify-content: flex-end; }
.lang { font-size: 15px; font-weight: 600; }

/* Innehåll */
main { padding: 12px 0 48px; }
h1 {
  font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05;
  letter-spacing: 0.02em; text-transform: uppercase; margin: 8px 0 12px;
}
h1::after { content: ''; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: 14px; }
h2 { font-family: var(--body); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-family: var(--body); font-weight: 600; font-size: 17px; margin: 24px 0 4px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
ol { margin: 0 0 14px; padding-left: 22px; }
strong { font-weight: 600; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.lead { font-size: 20px; line-height: 1.5; margin-bottom: 8px; }

/* Startsida */
.hero { padding: 24px 0 8px; }
.hero-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero-brand .brand-mark { height: 64px; }
.hero-brand h1 { margin: 0; font-size: 56px; letter-spacing: 0.04em; }
.hero-brand h1::after { display: none; }
.rule { width: 48px; height: 3px; background: var(--accent); margin: 0 0 20px; }
.soon { color: var(--muted); margin-top: 12px; }

/* Kort */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin: 0 0 12px;
}
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); }
.cards { margin: 24px 0; }

/* Utkastruta */
.draft {
  background: var(--card); border: 1px solid var(--accent); border-radius: 14px;
  padding: 14px 18px; margin: 0 0 20px; font-weight: 600;
}

/* Tabeller */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); font-size: 14px; }

/* Sidfot */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  .hero-brand h1 { font-size: 44px; }
  .hero-brand .brand-mark { height: 52px; }
  .lead { font-size: 18px; }
}
