/* ============================================================
   Lise Fløvik — nettsted
   Visuell identitet: kremhvit, terrakotta, salvie. IBM Plex.
   ============================================================ */

:root {
  --cream: #EDE6DA;
  --cream-light: #F5F1E9;
  --cream-deep: #E3D9C8;
  --ink: #2A2420;
  --ink-soft: #574F46;
  --terracotta: #9A4F26;
  --terracotta-dark: #7F3F1E;
  --terracotta-soft: #C07C4C;
  --sage: #5D7050;
  --tan: #75604F;
  --line-weak: #C9BBA0;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 560px) { .wrap { padding: 0 22px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--terracotta); color: var(--cream-light);
  padding: 12px 20px; z-index: 100; text-decoration: none; font-size: 14px;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta);
}

/* ---------- NAV ---------- */
nav.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 230, 218, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-weak);
}
nav.site .wrap {
  display: flex; align-items: center; justify-content: space-between; min-height: 68px;
}
.logo {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.01em;
}
.navlinks { display: flex; gap: 28px; list-style: none; }
.navlinks a {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.navlinks a:hover { color: var(--terracotta); }
.navlinks a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--terracotta); }

.navtoggle {
  display: none; background: none; border: 1px solid var(--line-weak);
  border-radius: 3px; padding: 7px 12px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
}
@media (max-width: 820px) {
  .navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream-light); border-bottom: 1px solid var(--line-weak);
    padding: 8px 32px 20px;
  }
  .navlinks.open { display: flex; }
  .navlinks a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-weak); }
  .navtoggle { display: block; }
}

/* ---------- KNAPPER ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 13px 24px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--terracotta); color: var(--cream-light); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.textlink {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  color: var(--terracotta); border-bottom: 1px solid var(--terracotta); padding-bottom: 2px;
}
.textlink:hover { color: var(--terracotta-dark); border-color: var(--terracotta-dark); }

/* ---------- SEKSJONER ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--cream-light); }
h1.page-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 16px 0 20px; max-width: 18ch;
}
h2.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 14px 0 18px;
}
h3 { font-family: var(--serif); font-weight: 500; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.prose { max-width: 64ch; }
.prose p { color: var(--ink-soft); margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Sidetopp */
.page-head { padding: 72px 0 44px; }
.page-head .lede { margin-top: 8px; }

/* ---------- HERO (forside) ---------- */
.hero { position: relative; padding: 92px 0 108px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.08;
  letter-spacing: -0.01em; margin: 18px 0 26px;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p.lede { margin-bottom: 38px; max-width: 520px; }
.hero-network { position: absolute; top: 0; right: -60px; width: min(560px, 55vw); height: 100%; z-index: 1; }
@media (max-width: 820px) { .hero-network { opacity: .28; right: -150px; } }
.node { transform-origin: center; animation: pulse 5s ease-in-out infinite; }
.node:nth-child(2n) { animation-delay: -1.4s; }
.node:nth-child(3n) { animation-delay: -2.6s; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .node { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- PORTRETT / PLASSHOLDERE ---------- */
.placeholder {
  background: repeating-linear-gradient(45deg, var(--cream-deep) 0 10px, #DDD2BE 10px 20px);
  border: 1px solid var(--line-weak); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--ink-soft); padding: 16px;
}
.portrait { width: 210px; aspect-ratio: 5/6; }
.portrait-lg { width: 100%; max-width: 340px; aspect-ratio: 5/6; }
.video-frame { aspect-ratio: 16/9; width: 100%; }

/* ---------- OM-TEASER ---------- */
.about-grid { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .portrait { width: 160px; } }

/* ---------- PILARER ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.pillar { padding: 28px 22px 28px 0; position: relative; }
.pillar:not(:last-child) { padding-right: 30px; }
.pillar:not(:last-child)::after {
  content: ''; position: absolute; top: 40px; right: 12px; width: 1px; height: calc(100% - 60px);
  background: repeating-linear-gradient(to bottom, var(--line-weak) 0 4px, transparent 4px 9px);
}
.pillar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); margin-bottom: 16px; }
.pillar:nth-child(2) .pillar-dot { background: var(--sage); }
.pillar:nth-child(3) .pillar-dot { background: var(--tan); }
.pillar:nth-child(4) .pillar-dot { background: var(--terracotta-soft); }
.pillar h3 { font-size: 19px; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .pillar:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; gap: 26px; }
  .pillar::after { display: none !important; }
  .pillar { padding-right: 0; }
}

/* ---------- LISTER / KORT ---------- */
.divider-list { border-top: 1px solid var(--line-weak); margin-top: 36px; }
.divider-row {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 28px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-weak); text-decoration: none;
}
.divider-row .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tan); }
.divider-row h3 { font-size: 19px; transition: color .2s; }
a.divider-row:hover h3 { color: var(--terracotta); }
.divider-row .tag { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 700px) { .divider-row { grid-template-columns: 1fr; gap: 6px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.card {
  background: var(--cream-light); border: 1px solid var(--line-weak);
  border-radius: 4px; padding: 26px 24px;
}
.section-alt .card { background: var(--cream); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.pull {
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px);
  font-style: italic; line-height: 1.4; max-width: 30ch; margin-top: 24px;
}

/* Nøkkeltall / funn */
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line-weak); }
.finding { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line-weak); }
.finding .n { font-family: var(--serif); font-size: 30px; color: var(--terracotta); display: block; margin-bottom: 8px; }
.finding p { color: var(--ink-soft); font-size: 15px; }

/* Tidslinje */
.timeline { margin-top: 44px; border-left: 1px solid var(--line-weak); padding-left: 30px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -35px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta);
}
.tl-item .when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tan); }
.tl-item h3 { font-size: 19px; margin: 4px 0 6px; }
.tl-item p { color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }

/* Skjema */
.form { max-width: 520px; margin-top: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--cream-light); border: 1px solid var(--line-weak);
  border-radius: 3px; padding: 12px 14px;
}
.section-alt .field input, .section-alt .field textarea { background: var(--cream); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--terracotta); outline: none; }

/* Sentrert CTA-blokk */
.center { text-align: center; }
.center .section-title, .center .lede { margin-left: auto; margin-right: auto; }
.center .lede { max-width: 46ch; }
.center .cta-row { justify-content: center; margin-top: 28px; }

/* Todelt seksjon */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FOOTER ---------- */
footer.site { border-top: 1px solid var(--line-weak); padding: 40px 0; background: var(--cream); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-soft); }
footer.site .soc { display: flex; gap: 20px; }
footer.site a { text-decoration: none; }
footer.site .soc a:hover { color: var(--terracotta); }
