:root {
  --bg: #F0EDE8;
  --bg-warm: #F5F3F0;
  --text: #4A4A4A;
  --text-light: #8A8A8A;
  --text-dark: #2A2A2A;
  --accent: #C4A882;
  --border: rgba(74, 74, 74, 0.1);
  --side: clamp(20px, 6vw, 120px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --heading: 'Clash Display', 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(74, 74, 74, 0.15);
  color: var(--text-dark);
}

/* ═══════════════════════════════════════
   NAV — Rhode style: Libre Franklin uppercase, spaced
   ═══════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px var(--side);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 28px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
  align-items: center;
}

.nav-link {
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-dark);
}

.nav-logo {
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0 40px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 20px;
}

.lang-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.lang-btn.active {
  color: var(--text-dark);
  font-weight: 600;
}

.lang-btn:hover {
  color: var(--text-dark);
}

.lang-sep {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 300;
  user-select: none;
}

.mobile-lang {
  display: none;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px var(--side) 120px;
}

/* ═══════════════════════════════════════
   ARTICLE HEADER — Playfair Display, light weight
   ═══════════════════════════════════════ */

.article-meta {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════
   HEADER IMAGE — full-width post hero
   ═══════════════════════════════════════ */

.article-header-image {
  margin: 0 0 48px 0;
  overflow: hidden;
}

.article-header-image img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   SECTION HEADINGS — Playfair Display, light
   ═══════════════════════════════════════ */

.section-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 80px;
  margin-bottom: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   ARTICLE BODY — Libre Franklin, regular weight
   ═══════════════════════════════════════ */

.article-body p {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.85;
}

.article-body .fade-in + .fade-in {
  margin-top: 16px;
}

.article-body .section-break {
  margin-top: 64px;
  margin-bottom: 32px;
  border: none;
  border-top: 1px solid var(--border);
}

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

.article-body .emphasis {
  font-weight: 600;
  color: var(--text-dark);
}

.article-body .pull-quote {
  font-family: var(--font);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 56px 0;
  padding-left: 24px;
  border-left: 3px solid var(--text-light);
}

.article-body .affiliate-disclosure {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-light);
  background: var(--bg-warm);
  border-left: 2px solid var(--text-dark);
  padding: 14px 18px;
  margin: 32px 0;
  border-radius: 2px;
}

.article-body .affiliate-disclosure strong {
  font-weight: 600;
  color: var(--text-dark);
}

.article-body .affiliate-disclosure p { margin: 0 0 8px 0; font-size: 13px; line-height: 1.55; }
.article-body .affiliate-disclosure p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   IMAGES
   ═══════════════════════════════════════ */

.article-image {
  margin: 48px 0;
  overflow: hidden;
}

.article-image img,
.article-image video {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* l1ft0ff — Mission Liftoff — kill native overlay play-button dim */
/* Browsers render a translucent dark backdrop behind the big center play-button */
/* over the poster. Hide that overlay so JPEG poster shows clean. Bottom controls stay. */
.article-image video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}
.article-image video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.article-image figcaption {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* Image grid for gym photos */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 48px 0;
}

.image-pair img {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.image-pair figcaption {
  grid-column: 1 / -1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   SIGN OFF
   ═══════════════════════════════════════ */

.sign-off {
  margin-top: 64px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   POST NAV — cross-link to other post
   ═══════════════════════════════════════ */

.post-nav {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-nav-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px 0;
  transition: opacity 0.2s ease;
}

.post-nav-link:hover {
  opacity: 0.6;
}

.post-nav-label {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.post-nav-title {
  display: block;
  font-family: var(--font-display, var(--font));
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.post-nav-date {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .post-nav { margin-top: 64px; padding-top: 32px; }
  .post-nav-title { font-size: 22px; }
}

/* ═══════════════════════════════════════
   TAGLINE — Rhode editorial statement
   ═══════════════════════════════════════ */

.tagline {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.tagline-code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 40px;
}

.tagline-statement {
  font-family: var(--heading);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 48px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

footer {
  text-align: center;
  padding: 60px var(--side) 40px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.footer-sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   FADE-IN ANIMATIONS
   ═══════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   SIDEBAR PROMO — Desktop only
   ═══════════════════════════════════════ */

.sidebar-promo {
  position: fixed;
  right: clamp(16px, 2.5vw, 40px);
  top: 38%;
  transform: translateY(-50%);
  z-index: 50;
  width: 160px;
}

.sidebar-promo a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-promo a:hover {
  border-color: rgba(74, 74, 74, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-promo-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.sidebar-promo a:hover .sidebar-promo-img {
  filter: grayscale(0%);
}

.sidebar-promo-body {
  padding: 14px 14px 16px;
}

.sidebar-promo-label {
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  line-height: 1.3;
}

.sidebar-promo-sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

.sidebar-promo-cta {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.sidebar-promo a:hover .sidebar-promo-cta {
  color: var(--text-dark);
}

.sidebar-promo-cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.sidebar-promo a:hover .sidebar-promo-cta svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════
   INLINE PROMO — Mobile only (injected by JS)
   ═══════════════════════════════════════ */

.inline-promo {
  display: none;
}

.inline-promo + .inline-promo {
  margin-top: 32px;
}

.inline-promo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
  transition: border-color 0.3s ease;
  margin: 56px auto;
  max-width: 260px;
}

.inline-promo a:hover {
  border-color: rgba(74, 74, 74, 0.25);
}

.inline-promo-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
}

.inline-promo-body {
  padding: 10px 16px 12px;
  text-align: center;
}

.inline-promo-label {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  line-height: 1.3;
}

.inline-promo-sub {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
}

/* Hide sidebar when main content would overlap, show inline instead */
@media (max-width: 1100px) {
  .sidebar-promo {
    display: none;
  }
  .inline-promo {
    display: block;
  }
}

@media (max-width: 768px) {

  nav {
    padding: 16px 20px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .nav-logo {
    padding: 0;
    font-size: 16px;
  }

  .desktop-lang {
    display: none;
  }

  .mobile-lang {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  main {
    padding: 110px 24px 80px;
  }

  .article-title {
    margin-bottom: 36px;
  }

  .pull-quote {
    margin: 40px 0;
  }

  .article-header-image {
    margin: 0 -24px 36px;
  }

  .article-header-image img {
    border-radius: 0;
  }

  .article-image {
    margin: 36px -24px;
  }

  .article-image img,
  .article-image video {
    border-radius: 0;
  }

  .article-image figcaption {
    padding: 0 24px;
  }

  .image-pair {
    margin: 36px -24px;
    gap: 8px;
    padding: 0;
  }

  .image-pair img {
    border-radius: 0;
  }

  .image-pair figcaption {
    padding: 0 24px;
  }

  .section-label {
    margin-top: 56px;
    padding-top: 36px;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 100px 20px 60px;
  }

  .article-header-image {
    margin: 0 -20px 32px;
  }

  .article-header-image img {
    border-radius: 0;
  }

  .article-image {
    margin: 32px -20px;
  }

  .article-image figcaption {
    padding: 0 20px;
  }

  .image-pair {
    margin: 32px -20px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .image-pair img {
    border-radius: 0;
  }

  .image-pair figcaption {
    padding: 0 20px;
  }
}

/* ═══════════════════════════════════════
   VARIANT: VEGA (forste-kamp.html-mønsteret)
   Scoped overrides — dokumentert CSS-drift mellom de to
   originale stilblokkene. Default over = index.html-blokken
   (live på /, pakken-kom.html, fotball). body.v-vega = de
   avvikene som er live på forste-kamp.html i dag.
   Kilde: /tmp/css-drift-index-vs-vega.diff (Krav 5).
   ═══════════════════════════════════════ */

body.v-vega {
  line-height: 1.7;
  min-height: 100vh;
}

.v-vega .article-header-image figcaption {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.v-vega .tagline-code {
  font-size: 13px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 32px;
}

.v-vega .article-image {
  overflow: visible;
  position: relative;
}

.v-vega .post-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}

.v-vega .post-nav-title {
  font-family: var(--heading);
}

@media (max-width: 768px) {
  .v-vega .article-title {
    font-size: 34px;
  }

  .v-vega .pull-quote {
    font-size: 20px;
  }
}

/* ═══════════════════════════════════════
   BILINGUAL — statisk NO/EN i samme dokument
   Templaten emitter begge språk som .l-no/.l-en
   inni samme element. Bryteren bytter data-lang
   på body; CSS skjuler det inaktive språket.
   ═══════════════════════════════════════ */

body[data-lang="no"] .l-en { display: none; }
body[data-lang="en"] .l-no { display: none; }
