/* =========================================
   VERNGARD 2026 — Redesign
   Estetikk: Varm editorial / nattlig magasin
   Display: Fraunces (optisk serif)
   Body:    Plus Jakarta Sans
   Mono:    JetBrains Mono
   ========================================= */

:root {
  /* Bakgrunnssjikt */
  --bg:         #141210;
  --bg-2:       #1c1916;
  --bg-3:       #232018;
  --surface:    #1c1916;
  --surface-2:  #232018;

  /* Kanter */
  --border:        rgba(240,234,216,0.07);
  --border-bright: rgba(240,234,216,0.14);

  /* Aksentfarger */
  --accent:   #d4a843;          /* Rav/gull — primær */
  --accent-rgb: 212, 168, 67;
  --accent-2: #e86840;          /* Korall — Spill */
  --accent-3: #3db89a;          /* Mynt — Happy */
  --accent-4: #9b7ee8;          /* Lilla — Maskinvare */

  /* Tekst */
  --text:       #f0ead8;
  --text-muted: #b0a890;
  --text-dim:   #6a6050;

  /* Font */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Geometri */
  --radius:    6px;
  --radius-lg: 12px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── GRAIN ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── UTILITIES ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}
.logo em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.logo-bracket { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0;
  text-transform: none;
}
.nav-link::after { display: none; }
.nav-link:hover {
  color: var(--text);
  background: var(--bg-3);
}
.nav-link.active { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* =========================================
   HERO
   ========================================= */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 40% -5%,
    rgba(212,168,67,0.07) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,234,216,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,234,216,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px 48px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(212,168,67,0.7);
  animation: pulse 2.5s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Hero tagline (eyebrow text) */
.hero-eyebrow .mono {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.0;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}
.hero-title span {
  display: block;
  animation: fadeUp 0.7s ease both;
}

/* Hero-tittel: tre linjer med klar hierarki */
.line-1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--text);
  animation-delay: 0.08s;
}
.line-2 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  animation-delay: 0.16s;
}
.line-3 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: -0.01em;
  font-style: normal;
  font-family: var(--font-body);
  animation-delay: 0.24s;
  line-height: 1.5;
}
/* fjern linje-4 hvis finnes */
.line-4 { display: none; }

.hero-sub {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.7s ease 0.32s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.7s ease 0.4s both;
  flex-wrap: wrap;
}
.scroll-hint { color: var(--text-dim); font-size: 0.8rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* TICKER */
.hero-ticker {
  background: var(--accent);
  color: #141210;
  overflow: hidden;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #141210;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  clip-path: none;
}
.btn-primary:hover {
  background: #e8bb55;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.3);
}

/* =========================================
   KATEGORI-PILLER (under hero)
   ========================================= */
.cat-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 56px;
}
.cat-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.cat-pill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--pill-color, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.cat-pill:hover::after { transform: scaleX(1); }
.cat-pill:hover {
  border-color: rgba(240,234,216,0.14);
  background: var(--bg-3);
}
.cat-emoji { font-size: 1.7rem; flex-shrink: 0; }
.cat-name {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  display: block;
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* =========================================
   SECTION DIVIDER
   ========================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider .mono {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
  text-transform: uppercase;
}

/* =========================================
   SECTION LABEL
   ========================================= */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* =========================================
   FEATURED GRID
   ========================================= */
.featured { padding: 64px 0 40px; }
.featured-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
.card-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── CARDS ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}
.card:hover {
  border-color: rgba(212,168,67,0.28);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.card-img-wrap { position: relative; }
.card-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card--big .card-img  { height: 260px; }
.card--small .card-img { height: 110px; }

.placeholder-img { background: var(--bg-3); }
.gaming-bg { background: linear-gradient(135deg, #1e1208 0%, #2a1a0a 50%, #181208 100%); }
.ai-bg     { background: linear-gradient(135deg, #0d120e 0%, #0d1e16 50%, #0a1610 100%); }
.ai-bg2    { background: linear-gradient(135deg, #121a0d 0%, #1a2d10 50%, #0d1a08 100%); }
.pc-bg     { background: linear-gradient(135deg, #160e0a 0%, #221408 50%, #160e08 100%); }

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.35;
}
.card--small .placeholder-icon { font-size: 1.7rem; }

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(20,18,16,0.85);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  color: var(--text-muted);
}

.card-body { padding: 22px; }
.card--big .card-body { padding: 28px; }

.card-meta {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.22;
  margin-bottom: 12px;
}
.card--big .card-title  { font-size: 1.65rem; margin-bottom: 14px; }
.card--small .card-title { font-size: 1.15rem; margin-bottom: 8px; }

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 12px; }
.arrow { transition: transform var(--transition); }
.card-link:hover .arrow { transform: translateX(4px); }

/* =========================================
   CATEGORY SECTIONS
   ========================================= */
.cat-section { padding: 56px 0; }
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.cat-label { display: flex; align-items: center; gap: 12px; }
.cat-label h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text);
}
.cat-icon { font-size: 1.5rem; }
.see-all {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent); }

/* ARTICLE LIST */
.article-list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.list-item:hover {
  padding-left: 8px;
  border-color: var(--border-bright);
}
.list-item:hover .list-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.list-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.list-tag.gaming {
  background: rgba(232,104,64,0.12);
  color: #e87858;
  border: 1px solid rgba(232,104,64,0.2);
}
.list-tag.ai {
  background: rgba(61,184,154,0.12);
  color: #3db89a;
  border: 1px solid rgba(61,184,154,0.2);
}
.list-tag.pc {
  background: rgba(155,126,232,0.12);
  color: #9b7ee8;
  border: 1px solid rgba(155,126,232,0.2);
}

.list-body { flex: 1; min-width: 0; }
.list-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.list-body h3 a:hover { color: var(--accent); }
.list-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.list-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}
.footer-top {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand .logo { font-size: 1.7rem; margin-bottom: 10px; display: block; font-weight: 300; }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* =========================================
   ARTICLE PAGE
   ========================================= */
.article-hero {
  padding: 120px 32px 60px;
  max-width: 820px;
  margin: 0 auto;
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.article-hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.article-img {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #1e1208 0%, #2a1a0a 100%);
  margin: 48px 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 14px;
  color: var(--text);
}
.article-body p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 22px;
}
.article-body strong { color: var(--text); }
.article-body .highlight {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: rgba(212,168,67,0.05);
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =========================================
   OM OSS / SIDE-SIDER
   ========================================= */
.page-hero {
  padding: 140px 32px 80px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 580px;
  margin: 0 auto;
}
.about-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.about-section h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.about-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 22px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .cat-pills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  html { font-size: 17px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .section-divider { padding: 0 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  .cat-pills { padding: 0 20px 48px; gap: 10px; }
  .hero-content { padding: 64px 20px 40px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .btn-primary { width: 100%; justify-content: center; }
  .line-1 { font-size: clamp(2.6rem, 11vw, 5rem); }
  .line-2 { font-size: clamp(2rem, 9vw, 4rem); }
  .line-3 { font-size: clamp(1.1rem, 4vw, 1.8rem); }
}
@media (max-width: 520px) {
  .cat-pills { grid-template-columns: 1fr 1fr; }
  .list-tag { display: none; }
  .cat-label h2 { font-size: 1.8rem; }
}

/* ── Eksperimenter kategori-tagger ── */
.list-tag.tag-kurs {
  background: rgba(212,168,67,0.12);
  color: #d4a843;
  border: 1px solid rgba(212,168,67,0.3);
}
.list-tag.tag-verkoy {
  background: rgba(155,126,232,0.12);
  color: #9b7ee8;
  border: 1px solid rgba(155,126,232,0.3);
}
.list-tag.tag-musikk {
  background: rgba(240,112,85,0.12);
  color: #f07055;
  border: 1px solid rgba(240,112,85,0.3);
}
.list-tag.tag-interaktivt {
  background: rgba(61,184,154,0.12);
  color: #3db89a;
  border: 1px solid rgba(61,184,154,0.3);
}

.list-tag.tag-ai {
  background: rgba(0,200,255,0.10);
  color: #00c8ff;
  border: 1px solid rgba(0,200,255,0.28);
}
