:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --accent-2: #0d9488;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.06), 0 12px 40px rgb(15 23 42 / 0.08);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-elevated: #111827;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #34d399;
    --accent-soft: #064e3b;
    --accent-2: #2dd4bf;
    --border: #1e293b;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 20px 50px rgb(0 0 0 / 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.45rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
  overflow: visible;
}

.logo__tld {
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-main a:hover {
  color: var(--accent);
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% -20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.site-tagline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw + 0.85rem, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.2rem);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2vw + 1rem, 2.25rem);
  letter-spacing: -0.02em;
}

.section-head h2.heading-sub {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
  color: var(--text-muted);
  font-weight: 600;
}

.intro-next {
  margin-top: 1rem;
  color: var(--text-muted);
}

.section-tight-bottom {
  padding-bottom: 0;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.toc h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 1;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover {
  color: var(--accent);
}

.tips-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tip-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.tip-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
}

.tip-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.tip-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  line-height: 1.3;
}

.tip-card p,
.tip-card ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tip-card ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

.tip-card li + li {
  margin-top: 0.25rem;
}

.tip-card--full {
  grid-column: 1 / -1;
}

.sadel-examples-intro {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sadel-examples-outro {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sadel-examples-outro strong {
  color: var(--text);
}

.sadel-examples {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 720px) {
  .sadel-examples {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.sadel-example {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 65%, var(--bg-elevated));
}

.sadel-example__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: color-mix(in srgb, var(--border) 40%, var(--bg-elevated));
}

.sadel-example__img--sport {
  object-position: 50% 42%;
}

.sadel-photo-credits,
.wiki-photo-credits {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.sadel-photo-credits a,
.wiki-photo-credits a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sadel-photo-credits a:hover,
.wiki-photo-credits a:hover {
  text-decoration-thickness: 2px;
}

.svinghjul-intro,
.modstand-intro {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.svinghjul-intro + .svinghjul-intro,
.modstand-intro + .modstand-intro {
  margin-top: 0.65rem;
}

.svinghjul-figure,
.transporthjul-figure {
  margin: 1rem 0 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 35%, var(--bg-elevated));
}

.svinghjul-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1047 / 749;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--border) 30%, var(--bg-elevated));
}

.transporthjul-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 560px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--border) 30%, var(--bg-elevated));
}

.svinghjul-figure__caption,
.transporthjul-figure__caption {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elevated));
}

.transporthjul-intro {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.modstand-gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .modstand-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
  }
}

.modstand-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elevated));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modstand-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--border) 30%, var(--bg-elevated));
  flex-shrink: 0;
}

.modstand-gallery__caption {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.modstand-gallery__caption strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.9rem;
}

.modstand-gallery-credits {
  margin-top: 0.65rem;
}

.modstand-gallery-credits .wiki-photo-credits {
  margin-top: 0;
  margin-bottom: 0;
}

.modstand-gallery-credits .wiki-photo-credits--stack {
  margin-top: 0.4rem;
}

.computer-intro {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.computer-gallery {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.computer-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elevated));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.computer-gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--border) 30%, var(--bg-elevated));
  flex-shrink: 0;
}

.computer-gallery__item--symbol .computer-gallery__img {
  aspect-ratio: auto;
}

.computer-gallery__symbol-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .computer-gallery__symbol-strip {
    background: #f1f5f9;
  }
}

.computer-gallery__img--bluetooth {
  width: min(100%, 17rem);
  max-height: 3.25rem;
  margin-inline: auto;
}

.computer-gallery__caption {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.computer-gallery__caption strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.9rem;
}

.computer-gallery-credits {
  margin-top: 0.65rem;
}

.computer-gallery-credits .wiki-photo-credits {
  margin-top: 0;
  margin-bottom: 0;
}

.computer-gallery-credits .wiki-photo-credits--stack {
  margin-top: 0.4rem;
}

.muskel-gallery-intro {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.muskel-gallery-credits {
  margin-top: 0.65rem;
}

.cykeltype-intro {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cykeltype-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .cykeltype-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.cykeltype-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 65%, var(--bg-elevated));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cykeltype-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--border) 35%, var(--bg-elevated));
  flex-shrink: 0;
}

.cykeltype-card__caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.cykeltype-card__caption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.92rem;
}

.sadel-example figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.sadel-example figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.92rem;
}

.split-panels {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .split-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.panel .panel-subhead {
  margin: 1.15rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
}

.panel p,
.panel ul {
  margin: 0;
  color: var(--text-muted);
}

.panel ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.panel li + li {
  margin-top: 0.35rem;
}

.conclusion {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 80%, var(--bg)), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 1rem;
}

.conclusion h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.conclusion p {
  margin: 0;
  color: var(--text-muted);
  max-width: 65ch;
}

.forhandlere-section {
  margin-top: 2.5rem;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 70%, var(--bg));
}

.forhandlere-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text);
}

.forhandlere-intro {
  margin: 0 0 1.5rem;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.forhandlere-subtitle {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.forhandlere-section .forhandlere-subtitle + .forhandlere-grid {
  margin-bottom: 1.75rem;
}

.forhandlere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.forhandlere-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 7.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.forhandlere-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-1px);
}

.forhandlere-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.forhandlere-card__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: color-mix(in srgb, var(--border) 35%, transparent);
}

.forhandlere-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.25;
}

.forhandlere-card__host {
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
}

.forhandlere-footnote {
  margin: 1.25rem 0 0;
  max-width: 70ch;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--accent);
}

.site-footer .footer-updated {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.site-footer .footer-mail-wrap {
  margin: 1.1rem 0 0;
}

.site-footer a.footer-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, #000 25%);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.site-footer a.footer-mail-btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.site-footer a.footer-mail-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
