/* Six complete, selectable palettes. The original green logo and yellow editorial notes never change. */
:root,
:root[data-theme="fjord"] {
  --ink:#203D50; --charcoal:#203D50; --accent:#527C93; --blue:#DCE7EB;
  --paper:#F7F6F0; --white:#ffffff; --muted:#496477; --line:#b9ccd5;
  --display:'DM Serif Display',Georgia,serif; --body:Manrope,sans-serif;
  --paper-rgb:247,246,240; --ink-rgb:32,61,80;
}
:root[data-theme="atelier"] {
  --ink:#283C4A; --charcoal:#283C4A; --accent:#526F80; --blue:#E3E9EB;
  --paper:#F7F5F1; --white:#ffffff; --muted:#4A6171; --line:#c5d3da;
  --display:Fraunces,Georgia,serif; --body:'DM Sans',sans-serif;
  --paper-rgb:247,245,241; --ink-rgb:40,60,74;
}
:root[data-theme="skifer"] {
  --ink:#303B43; --charcoal:#303B43; --accent:#8E634F; --blue:#E8DFD7;
  --paper:#F8F5F0; --white:#ffffff; --muted:#505E66; --line:#d1c4ba;
  --display:'Cormorant Garamond',Georgia,serif; --body:Outfit,sans-serif;
  --paper-rgb:248,245,240; --ink-rgb:48,59,67;
}
:root[data-theme="blomme"] {
  --ink:#382D3F; --charcoal:#382D3F; --accent:#80637D; --blue:#ECE4EA;
  --paper:#FAF7F8; --white:#ffffff; --muted:#5E4D61; --line:#d4c3d1;
  --display:'Libre Baskerville',Georgia,serif; --body:'Source Sans 3',sans-serif;
  --paper-rgb:250,247,248; --ink-rgb:56,45,63;
}
:root[data-theme="sand"] {
  --ink:#384044; --charcoal:#384044; --accent:#806C4C; --blue:#E9E5DA;
  --paper:#F8F6F0; --white:#ffffff; --muted:#5B5B54; --line:#cec7b8;
  --display:'Playfair Display',Georgia,serif; --body:'Plus Jakarta Sans',sans-serif;
  --paper-rgb:248,246,240; --ink-rgb:56,64,68;
}
:root[data-theme="nord"] {
  --ink:#293A59; --charcoal:#293A59; --accent:#62769C; --blue:#E2E9F2;
  --paper:#F7F8FB; --white:#ffffff; --muted:#4D5C76; --line:#c7d5e3;
  --display:'Bodoni Moda',Georgia,serif; --body:'Work Sans',sans-serif;
  --paper-rgb:247,248,251; --ink-rgb:41,58,89;
}

/* Hero overlays and image sections pick up the active theme instead of retaining old RGB literals. */
.home-hero{background:var(--blue)}
.hero-image{background-image:linear-gradient(90deg,rgba(var(--paper-rgb),.98) 0%,rgba(var(--paper-rgb),.92) 30%,rgba(var(--paper-rgb),.12) 58%,rgba(var(--paper-rgb),0) 80%),url('assets/leif-hero.jpg')}
.inner-hero{background:var(--blue)}
.inner-hero:before{background-image:linear-gradient(90deg,rgba(var(--paper-rgb),.98) 0%,rgba(var(--paper-rgb),.94) 36%,rgba(var(--paper-rgb),.5) 62%,rgba(var(--paper-rgb),.05) 100%),var(--hero-photo,url('assets/leif-i-samtale.jpg'))}
.statement-photo{background-image:linear-gradient(90deg,rgba(var(--ink-rgb),.9) 0%,rgba(var(--ink-rgb),.76) 38%,rgba(var(--ink-rgb),.05) 85%),url('assets/leif-i-samtale.jpg')}
.mega-feature:after{background:linear-gradient(transparent,rgba(var(--ink-rgb),.85))}
.service-card:hover{background:color-mix(in srgb,var(--accent) 10%,var(--white))}
.contact-dialog::backdrop{background:rgba(var(--ink-rgb),.65)}
.service-card-reveal{background:var(--accent)}

@media(max-width:960px){
  .hero-image{background-image:linear-gradient(180deg,rgba(var(--paper-rgb),.98) 0%,rgba(var(--paper-rgb),.94) 43%,rgba(var(--paper-rgb),.37) 68%,rgba(var(--paper-rgb),.02) 94%),url('assets/leif-hero.jpg')}
  .inner-hero:before{background-image:linear-gradient(180deg,rgba(var(--paper-rgb),.98) 0%,rgba(var(--paper-rgb),.94) 55%,rgba(var(--paper-rgb),.76) 76%,rgba(var(--paper-rgb),.2) 100%),var(--hero-photo,url('assets/leif-i-samtale.jpg'))}
  .statement-photo{background-image:linear-gradient(90deg,rgba(var(--ink-rgb),.87),rgba(var(--ink-rgb),.4)),url('assets/leif-i-samtale.jpg')}
  .service-card-reveal{background:var(--ink)}
}

.theme-choice[data-theme-choice="fjord"] .theme-choice-title{font-family:'DM Serif Display',Georgia,serif}
.theme-choice[data-theme-choice="atelier"] .theme-choice-title{font-family:Fraunces,Georgia,serif}
.theme-choice[data-theme-choice="skifer"] .theme-choice-title{font-family:'Cormorant Garamond',Georgia,serif}
.theme-choice[data-theme-choice="blomme"] .theme-choice-title{font-family:'Libre Baskerville',Georgia,serif}
.theme-choice[data-theme-choice="sand"] .theme-choice-title{font-family:'Playfair Display',Georgia,serif}
.theme-choice[data-theme-choice="nord"] .theme-choice-title{font-family:'Bodoni Moda',Georgia,serif}

/* The selector is a preview control, not part of the published brand system. */
.theme-picker{position:fixed;z-index:80;right:24px;bottom:24px}.theme-gear{display:grid;place-items:center;width:62px;height:62px;margin-left:auto;border:1px solid var(--white);border-radius:50%;background:var(--ink);color:var(--white);box-shadow:0 12px 28px rgba(var(--ink-rgb),.3);cursor:pointer}.theme-gear svg{width:28px;height:28px;transition:transform .5s}.theme-gear:hover svg{transform:rotate(45deg)}.theme-gear:focus-visible{outline:3px solid var(--accent)}.theme-panel{position:absolute;right:0;bottom:82px;width:min(460px,calc(100vw - 34px));max-height:min(73vh,680px);overflow:auto;padding:23px;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 70px rgba(var(--ink-rgb),.28)}.theme-panel[hidden]{display:none}.theme-panel-head{display:flex;justify-content:space-between;gap:15px;align-items:start}.theme-panel h2{font-size:36px;margin:0 0 7px}.theme-panel>p{font-size:12px;color:var(--muted);margin-bottom:21px}.theme-close{border:0;background:none;color:var(--ink);cursor:pointer;font-size:12px;font-weight:800;padding:8px}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.theme-choice{display:flex;flex-direction:column;align-items:flex-start;min-height:136px;padding:13px 14px;border:1px solid var(--line);background:var(--white);color:var(--ink);text-align:left;cursor:pointer;transition:transform .2s,box-shadow .2s}.theme-choice:hover{transform:translateY(-2px);box-shadow:0 5px 13px rgba(var(--ink-rgb),.12)}.theme-choice[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:-2px}.theme-choice-title{font-size:21px;line-height:1.25}.theme-choice-fonts{font:600 10px/1.4 var(--body);color:var(--muted);margin-top:5px}.theme-swatches{display:flex;gap:3px;margin-top:auto;padding-top:11px}.theme-swatches i{width:27px;height:16px;border:1px solid #0002}
.home-hero>.section-note,.inner-hero>.section-note{right:136px}
@media(max-width:960px){.home-hero>.section-note,.inner-hero>.section-note{right:108px}.theme-picker{right:17px;bottom:17px}.theme-gear{width:54px;height:54px}.theme-gear svg{width:26px;height:26px}.theme-panel{bottom:70px;padding:18px}.theme-choice{min-height:119px;padding:10px}.theme-choice-title{font-size:18px}.theme-choice-fonts{font-size:9px}}
@media(max-width:420px){.theme-choices{grid-template-columns:1fr 1fr}.theme-panel{max-height:68vh}}
@media(prefers-reduced-motion:reduce){.theme-gear svg,.theme-choice{transition:none}.theme-gear:hover svg{transform:none}}
.theme-panel>p,.theme-close{font-size:16px}
.theme-choice-fonts{font-size:16px}
@media(max-width:960px){.theme-choice-fonts{font-size:16px}}
