/* ============================================================
   Ubuden – delt stil for undersider (guider/artikler).
   Forsiden (index.html) har egen inline-stil; dette arket
   gjenbruker de samme design-tokenene så alt ser likt ut.
   ============================================================ */

:root {
  --paper: #FAF5EE;
  --paper-2: #F3EBDF;
  --ink: #241C15;
  --ink-soft: #574a3c;
  --ink-faint: #857766;
  --kongebla: #2E4FA6;
  --kongebla-bright: #4C7FD8;
  --terracotta: #B85C38;
  --terracotta-soft: #e9d8cc;
  --line: #e6dccd;
  --card: #ffffff;
  --shadow: 0 24px 60px -28px rgba(48,32,18,0.35);
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', -apple-system, sans-serif;
  --body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17130E;
    --paper-2: #1e1912;
    --ink: #f4ece0;
    --ink-soft: #c3b7a6;
    --ink-faint: #8f8271;
    --kongebla: #6f9bea;
    --kongebla-bright: #8bb2f2;
    --terracotta: #d9754e;
    --terracotta-soft: #3a2519;
    --line: #2c251b;
    --card: #1e1912;
    --shadow: 0 24px 60px -28px rgba(0,0,0,0.6);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtil kornstruktur for papirfølelse (som forsiden) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: multiply;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---- Knapper (som forsiden) ---- */
.btn {
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 100px; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease; display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary { background: var(--kongebla); color: #fff; box-shadow: 0 12px 26px -12px rgba(46,79,166,0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(46,79,166,0.75); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--ink-faint); }

/* ---- Toppbjelke på undersider ---- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-lock { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lock img { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.brand-lock .bn { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); }
.topbar .nav-link { font-family: var(--body); font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none; }
.topbar .nav-link:hover { color: var(--terracotta); }

/* ---- Brødsmuler ---- */
.crumbs { font-size: .85rem; color: var(--ink-faint); padding: 22px 0 0; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--terracotta); }
.crumbs .sep { margin: 0 8px; opacity: .6; }

/* ---- Artikkel ---- */
.article { max-width: 720px; margin: 0 auto; padding: 8px 0 20px; }
.article .kicker {
  font-family: var(--body); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta);
  margin: 18px 0 14px;
}
.article h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); margin-bottom: 20px;
}
/* «Svar-først»: framhevet ingress rett under tittelen */
.article .lede {
  font-size: clamp(1.12rem, .8vw + .9rem, 1.32rem); color: var(--ink);
  line-height: 1.55; text-wrap: pretty; margin-bottom: 28px;
  padding-left: 18px; border-left: 3px solid var(--terracotta);
}
.article h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 1.6vw + .8rem, 1.85rem); letter-spacing: -0.01em;
  line-height: 1.2; margin: 40px 0 12px; text-wrap: balance;
}
.article p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; }
.article ul { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 18px; padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--terracotta); }
.article strong { color: var(--ink); font-weight: 700; }
.article a:not(.btn) { color: var(--kongebla-bright); text-decoration: underline; text-underline-offset: 2px; }

/* ---- CTA-boks i artikkel ---- */
.article-cta {
  margin: 44px 0 8px; padding: 30px; border-radius: 20px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.article-cta h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--ink); }
.article-cta p { margin-bottom: 18px; }
.article-cta .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Videre lesning ---- */
.more-reading { max-width: 720px; margin: 40px auto 0; }
.more-reading h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.more-reading a { display: block; color: var(--ink); text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.more-reading a:last-child { border-bottom: 1px solid var(--line); }
.more-reading a:hover { color: var(--terracotta); }
.more-reading a .arrow { color: var(--terracotta); }

/* ---- Hub / guider-oversikt ---- */
.hub-head { max-width: 720px; margin: 0 auto; padding: 8px 0 8px; }
.hub-head h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 14px;
}
.hub-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 34px; }
.hub-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--terracotta-soft); }
.hub-card .tag { font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.hub-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.hub-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Footer (som forsiden) ---- */
footer { background: var(--terracotta); color: rgba(255,255,255,0.9); padding: 40px 28px; text-align: center; font-size: .9rem; margin-top: 56px; }
footer a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); }
footer .brand { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 8px; letter-spacing: -0.01em; }

@media (max-width: 560px) {
  .article-cta { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
