/* ============================================
   265 — DELT STILSETT FOR ALLE UNDERSIDER
   ============================================ */
:root {
  --bg: #0A0A0A;
  --bg-soft: #0E0E0E;
  --ink: #F5F0E8;
  --ink-mute: rgba(245, 240, 232, 0.55);
  --ink-faint: rgba(245, 240, 232, 0.25);
  --gold: #C9A96E;
  --gold-soft: rgba(201, 169, 110, 0.18);
  --line: rgba(245, 240, 232, 0.08);
  --line-strong: rgba(245, 240, 232, 0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
}
html { overflow-x: clip; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Cormorant Garamond", Georgia, serif; }
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ==== NAVIGATION ==== */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 56px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  transition: background 0.3s;
}
nav.top.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.top .nav-group {
  display: flex;
  gap: 44px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}
nav.top .right { justify-content: flex-end; }
nav.top a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s;
}
nav.top a:hover, nav.top a.active { opacity: 1; color: var(--gold); }
/* ==== SEGL-LOGO (auto-injisert SVG fra site.js) ==== */
nav.top .logo {
  position: relative;
  width: 64px;
  height: 64px;
  margin: -10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-decoration: none;
  color: var(--ink);
}
.logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.logo svg .ring-o { fill: none; stroke: var(--gold); stroke-width: 0.8; }
.logo svg .ring-i { fill: none; stroke: var(--gold); stroke-width: 0.4; opacity: 0.4; }
.logo svg text {
  fill: var(--gold);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 400;
}
.logo .num {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  line-height: 1;
  background-image: linear-gradient(
    100deg,
    var(--ink) 0%,
    var(--ink) 38%,
    #E6CFA0 47%,
    #F4E2B5 50%,
    #E6CFA0 53%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.12));
  animation: logo-sheen 9s ease-in-out infinite;
}
nav.top .logo svg text { font-size: 3.6px; letter-spacing: 0.4em; }
nav.top .logo .num { font-size: 17px; }
@keyframes logo-sheen {
  0%   { background-position: 100% 50%; filter: drop-shadow(0 0 6px rgba(201,169,110,0.10)); }
  50%  { background-position: 0%   50%; filter: drop-shadow(0 0 14px rgba(201,169,110,0.22)); }
  100% { background-position: 100% 50%; filter: drop-shadow(0 0 6px rgba(201,169,110,0.10)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo .num { animation: none; background-position: 50% 50%; }
}

/* ==== BREADCRUMB ==== */
.breadcrumb {
  padding: 124px 56px 0;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: 1440px;
  margin: 0 auto;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--ink-mute);
  transition: color 0.25s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 14px; color: var(--ink-faint); }
.breadcrumb .current { color: var(--gold); }

/* ==== TYPOGRAFI ==== */
.page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}
.page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.page-title em { font-style: italic; color: var(--gold); }
.page-lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-bottom: 56px;
  max-width: 680px;
}

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-lede {
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 560px;
  line-height: 1.9;
}

/* ==== PAGE LAYOUT ==== */
.page-shell {
  padding: 140px clamp(24px, 6vw, 96px) 120px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero {
  padding: 60px 0 96px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 96px;
}

/* ==== BUTTONS ==== */
.btn-gold {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  padding: 18px 44px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, color 0.3s, letter-spacing 0.3s;
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--bg);
  letter-spacing: 0.5em;
}
.btn-line {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s, letter-spacing 0.25s;
}
.btn-line:hover {
  color: var(--gold);
  letter-spacing: 0.5em;
}

/* ==== PROSE ==== */
.prose {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mute);
}
.prose h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  margin: 80px 0 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 em { font-style: italic; color: var(--gold); }
.prose h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  margin: 48px 0 16px;
  color: var(--ink);
}
.prose p { margin-bottom: 22px; }
.prose p strong { color: var(--ink); font-weight: 400; }
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
}
.prose ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.prose a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: opacity 0.25s;
}
.prose a:hover { opacity: 0.7; }
.prose blockquote {
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.5;
}

/* ==== FOOTER ==== */
footer {
  padding: 80px 56px 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}
footer .logo {
  /* skjult — logo i footer fjernet på ønske (behold markup for reversibilitet) */
  display: none !important;
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
}
footer .logo svg text { font-size: 5.5px; letter-spacing: 0.5em; }
footer .logo .num { font-size: 32px; letter-spacing: 0.16em; padding-left: 0.16em; }
footer .links {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
footer .links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.25s;
}
footer .links a:hover { color: var(--gold); }
footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
footer .legal-links a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.25s;
}
footer .legal-links a:hover { color: var(--ink-mute); }
footer .social {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.25s;
}
footer .social a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.25s;
}
footer .social a:hover { color: var(--gold); }
footer .social a:hover svg { transform: rotate(-4deg); }
footer .tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
footer .copy {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==== REVEAL ==== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 24px 28px;
  max-width: 540px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner .text {
  flex: 1 1 280px;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
  min-width: 0;
}
.cookie-banner .text a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.cookie-banner .actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.cookie-banner button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.cookie-banner button.primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.cookie-banner button.primary:hover {
  background: transparent;
  color: var(--gold);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  nav.top {
    padding: 20px 24px;
  }
  nav.top .nav-group { display: none; }
  nav.top .logo { width: 54px; height: 54px; margin: -6px 0; }
  nav.top .logo .num { font-size: 14px; }
  nav.top .logo svg text { font-size: 3px; }
  .breadcrumb { padding: 96px 24px 0; font-size: 9px; }
  .page-shell { padding: 120px 24px 80px; }
  .page-hero { padding: 32px 0 56px; margin-bottom: 56px; }
  .prose h2 { font-size: 28px; margin-top: 56px; }
  footer { padding: 60px 24px 40px; }
  footer .links { gap: 20px; font-size: 9px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; padding: 18px 20px; }
}
