@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
/* UNOW, delt stilark for alle sider. Farger og typografi fra designbriefen punkt 5 og 6. */
:root {
  --ink: #1A1A19;
  --paper: #FAF8F4;
  --clay: #A8714A;
  --line: #E3DED4;
  --muted: #6E6A62;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.wordmark {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.27em; /* strek: 30% av versalhøyden luft, så streken selv, se designbrief pkt 3 */
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.06em; /* 8,5% av versalhøyden, samme tykkelse som bokstavstammen */
  background: currentColor;
}
nav.main { display: flex; gap: 28px; }
nav.main a { font-size: 14px; font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--clay); }

/* Varemerker/Produkter er dropdown-undermenyer: hover/fokus på .has-dropdown viser
   .dropdown-panelet rett under menyteksten. Toppmenyteksten selv er en vanlig lenke (til
   det første/flaggskip-elementet), slik at menyen fortsatt virker uten hover (f.eks. på
   berøringsskjerm som åpner lenken direkte), se unow-hjemmeside-saken, 13.11.
   Rettet 13.11 kl 14.25: panelet lå 6px UNDER lenken (margin-top), et tomt felt uten
   noe element i. Når musepekeren beveget seg fra lenken ned til panelet, mistet
   nettleseren :hover midt i det tomme feltet, og panelet (display:none) lukket seg før
   klikket nådde frem, derfor var menypunktene synlige men ikke klikkbare. Luften er nå
   flyttet til padding-top INNI panelet (en del av selve elementet, ikke et tomt felt
   utenfor det), og en usynlig "bro" (::before, samme høyde som luften) tetter resten av
   gapet mellom lenken og panelets synlige kant, slik at hover aldri slipper. */
nav.main .has-dropdown { position: relative; }
nav.main .dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 210px;
  padding: 12px 0 6px;
  z-index: 30;
}
nav.main .dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}
nav.main .has-dropdown:hover .dropdown,
nav.main .has-dropdown:focus-within .dropdown {
  display: flex;
}
nav.main .dropdown a {
  padding: 9px 18px;
  white-space: nowrap;
}
nav.main .dropdown a:hover { background: var(--line); }

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 820px;
  margin: 0 0 16px;
}
.hero p.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 28px;
}
.draft-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.clay { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.btn:hover { opacity: 0.85; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 28px;
}

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cat-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}
.cat-nav a:hover, .cat-nav a.active { border-color: var(--clay); color: var(--clay); }

/* Radbasert, ikke et stivt 3-kolonners rutenett: hvert kort bredde kommer fra bildets
   egen bredde/høyde-forhold (satt per kort som aspect-ratio av tivoli.html), slik at et
   fysisk bredt møbel (Calm rektangulært, Organic, Striha sofa, Kars, Oskar) får bredden
   det trenger for å vises like høyt som et smalere/rundere møbel med samme ekte høyde,
   i stedet for å klemmes flatere i en fast 4:5-ramme. Se unow-hjemmeside-saken,
   retting 2026-11-11. */
.grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
}
@media (max-width: 860px) { .grid { gap: 18px; } }

.cat-heading {
  font-weight: 500;
  font-size: 18px;
  color: var(--muted);
  margin: 40px 0 20px;
  scroll-margin-top: 24px;
}
.cat-heading:first-child { margin-top: 0; }

.card { display: flex; flex-direction: column; flex: 0 0 auto; min-width: 168px; }
.card .thumb {
  /* --h-scale settes per kort inline fra produktets ekte, bekreftede totalhøyde i cm
     (unow/22-standardmal-tivoli-cm.md), så et lavt bord (f.eks. Striha sofabord, 27 cm)
     vises synlig lavere enn et høyere nabobord (Striha sidebord, 57 cm), i stedet for at
     alle kort tvinges til samme høyde uansett ekte størrelse. Standard 1 = uendret. */
  height: calc(280px * var(--h-scale, 1));
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* aspect-ratio settes også per kort inline (fra bildets egne mål, klemt til et fornuftig
     spenn), så bredden blir height × forhold, ikke en fast kolonnebredde. */
}
/* width/height 100% (ikke auto) + object-fit:var(--obj-fit, contain): standard er "contain"
   slik at et lavoppløst kildebilde (f.eks. Calm kvadratisk sitt 270×220 midlertidige bilde)
   skaleres OPP til å fylle boksen i stedet for å vises i sin opprinnelige, for små,
   pikselstørrelse. Et fåtall kort (Organic) overstyrer til --obj-fit:cover med
   --obj-pos:center bottom, for å beskjære bort en tom rekvisitt-sone i VISNINGEN uten å
   endre selve kildebildet, se tivoli.html sin CONTENT_CROP-kommentar. */
.card .thumb img { width: 100%; height: 100%; object-fit: var(--obj-fit, contain); object-position: var(--obj-pos, center); }
@media (max-width: 860px) { .card .thumb { height: calc(220px * var(--h-scale, 1)); } }
@media (max-width: 540px) {
  .grid { flex-direction: column; }
  .card { width: 100% !important; }
  .card .thumb { height: auto; max-height: 60vh; }
}
.card .name { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.card .price { color: var(--muted); font-size: 14px; }
.card .price .from { color: var(--muted); }

.skel { background: var(--line); border-radius: 2px; }
.skel.text { height: 14px; margin-bottom: 8px; width: 70%; }

.empty, .error {
  color: var(--muted);
  font-size: 15px;
  padding: 40px 0;
}

.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.pdp .gallery-main {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 10px;
  max-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pdp .gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.pdp .thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp .thumbs button {
  width: 64px; height: 80px; padding: 0; border: 1px solid var(--line); background: var(--paper); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pdp .thumbs button img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.pdp .thumbs button.active { border-color: var(--clay); }

.pdp h1 { font-weight: 500; font-size: 28px; margin: 0 0 10px; }
.pdp .price { font-size: 22px; margin: 0 0 20px; }
.pdp .price .from { color: var(--muted); font-size: 14px; display: block; margin-bottom: 2px; }
.pdp .desc { font-size: 15px; color: var(--ink); margin-bottom: 28px; }
.pdp .desc p { margin: 0 0 8px; }
.pdp .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.pdp .meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--clay); }
.notfound { padding: 80px 0; text-align: center; color: var(--muted); }

.colorgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 700px) { .colorgrid { grid-template-columns: repeat(2, 1fr); } }
.colorcard .swatch { aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; background: var(--line); }
.colorcard .swatch img { width: 100%; height: 100%; object-fit: cover; }
.colorcard .name { font-weight: 500; font-size: 14px; }
.colorcard .code { color: var(--muted); font-size: 13px; }
.colorcard .missing { font-size: 13px; color: var(--muted); font-style: italic; }

.textile-group { margin-bottom: 20px; }
.textile-group .label { font-weight: 500; margin-bottom: 4px; }
.textile-group .note { color: var(--muted); font-size: 14px; }

.note-box {
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 24px; } }
.intro .copy h2 { margin-bottom: 14px; }
.intro .copy p { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 0 20px; }
.intro .photo { overflow: hidden; }
.intro .photo img { width: 100%; height: auto; display: block; }
.intro.reverse { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 860px) { .intro.reverse { grid-template-columns: 1fr; } }
.intro.reverse .photo { order: -1; }
@media (max-width: 860px) { .intro.reverse .photo { order: 0; } }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 14px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}
footer.site .bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }


/* Lanseringsrunde 20.11: bunntekst, tilgjengelighet, Om UNOW, personvern */
a:focus-visible, button:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
footer.site .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; line-height: 1.7; }
footer.site .fname { font-weight: 500; color: var(--ink); letter-spacing: 0.08em; }
footer.site a:hover { color: var(--clay); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.page-title { font-weight: 500; font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.lede-text { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 0 40px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; max-width: 900px; }
@media (max-width: 620px) { .people { gap: 32px; } }
.person .portrait { aspect-ratio: 4 / 5; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; margin-bottom: 16px; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-weight: 500; font-size: 20px; margin: 0 0 2px; }
.person .role { color: var(--clay); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 12px; }
.person p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 620px) { .person p { font-size: 13px; } .person h2 { font-size: 17px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 15px; margin: 0 0 10px; }
.prose ul { padding-left: 20px; margin: 0 0 10px; }
.prose a { color: var(--clay); text-decoration: underline; }
.brandlist { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.brandlist li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.brandlist li:last-child { border-bottom: 1px solid var(--line); }
.brandlist a { color: var(--ink); font-weight: 500; }
.brandlist a:hover { color: var(--clay); }
/* Mobilmeny: hamburger under 860px */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  header.site .bar { flex-wrap: wrap; padding: 16px 24px; }
  .wordmark { font-size: 22px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); }
  nav.main {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    padding: 8px 0 4px;
  }
  header.site.nav-open nav.main { display: flex; }
  nav.main a { font-size: 17px; padding: 12px 0; }
  nav.main .has-dropdown > a { font-weight: 500; }
  nav.main .dropdown,
  nav.main .has-dropdown:hover .dropdown {
    display: flex;
    position: static;
    border: 0;
    background: none;
    min-width: 0;
    padding: 0 0 6px 16px;
  }
  nav.main .dropdown::before { display: none; }
  nav.main .dropdown a { padding: 8px 0; font-size: 15px; font-weight: 400; color: var(--muted); }
}

/* Nyhetsbrev-popup */
.nl-overlay { position: fixed; inset: 0; background: rgba(26,26,26,0.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.nl-box { position: relative; background: var(--paper); max-width: 440px; width: 100%; padding: 32px 28px 26px; border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.nl-box h2 { font-size: 22px; margin: 0 0 10px; }
.nl-box p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.nl-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); width: 44px; height: 44px; }
.nl-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.nl-form input[type=email] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; margin-bottom: 14px; }
.nl-form .nl-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.nl-form .nl-consent input { margin-top: 3px; flex: none; }
.nl-form .nl-consent a { text-decoration: underline; }
.nl-submit { width: 100%; cursor: pointer; }
.nl-msg { min-height: 1.2em; font-size: 13px !important; margin: 12px 0 0 !important; color: var(--clay) !important; }

footer.site .foot-note { padding-bottom: 28px; }
footer.site .foot-note p { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.7; max-width: 720px; }
