@font-face { font-family: Playfair; src: url('/assets/playfair-display.woff2') format('woff2'); font-display: swap }
@font-face { font-family: Playfair; src: url('/assets/playfair-display-italic.woff2') format('woff2'); font-style: italic; font-display: swap }
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif }
[hidden] { display: none !important }
a { color: inherit }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px }
h1, h2, h3, p { margin-block-start: 0 }
h1, h2, h3 { font-family: var(--heading) }
.demo {
  --heading: Playfair, Georgia, serif; --gutter: clamp(1.25rem, 6vw, 7rem);
  --paper: #101012; --ink: #f9f2e8; --accent: #edbd78; --button-ink: #17120d;
  --hero-base: #0a0a0c; --hero-ink: #fff5e6; --veil: #100e0d;
  --header: var(--paper); --header-ink: var(--ink);
  --feature-bg: var(--paper); --feature-ink: var(--ink); --feature-accent: var(--accent);
}
.theme-motebutikk { --paper: #eaddce; --ink: #211712; --header: #161413; --header-ink: #fcf0e4; --hero-base: #51443d; --veil: #332c27; --accent: #e6b985; --feature-accent: #774d28 }
.theme-bakeri { --paper: #fff0e7; --ink: #371b1b; --header: #f3d2d1; --hero-base: #fce7de; --hero-ink: #321c1b; --veil: #fce7de; --accent: #9b2949; --button-ink: #fff; --feature-bg: #f2d5ca }
.theme-bilpleie { --heading: system-ui, sans-serif; --paper: #141313; --accent: #ff8c24; --veil: #0a0807; --feature-bg: #12100e }
.theme-bygg { --heading: system-ui, sans-serif; --paper: #181817; --accent: #e5aa65; --veil: #141313 }
.theme-restaurant { --paper: #11100f; --accent: #f2c582; --veil: #100c0a }
.theme-frisor { --paper: #f2e8db; --ink: #241b16; --accent: #e9b763; --header: #f2e9de; --veil: #1c140d; --feature-accent: #865515 }
.theme-eiendom { --paper: #f7f4ef; --ink: #1a2329; --hero-base: #f4f0eb; --hero-ink: #162028; --veil: #f4f0eb; --accent: #825a2c; --button-ink: white; --feature-bg: #ede8e2 }
.theme-elektriker { --heading: system-ui, sans-serif; --paper: #031b2a; --hero-base: #021524; --accent: #ffd02c; --veil: #021524; --feature-bg: #041f32 }
.theme-trening { --heading: system-ui, sans-serif; --paper: #101115; --accent: #f94036; --button-ink: #190606; --veil: #100e12; --feature-bg: #111215 }
.theme-hotell { --paper: #07303a; --header: #063340; --hero-base: #092e40; --accent: #97dce7; --button-ink: #07212b; --veil: #0a3243 }
.demo-bar { min-height: 3.3rem; padding: .5rem var(--gutter); background: #0a141d; color: #f7eee2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; font-size: .85rem }
.demo-bar > span { color: #dae2e7 }
.demo-bar a { text-underline-offset: .25rem }
.demo-sales { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1px solid #c49257; border-radius: .45rem; background: #15212a; color: #ffdbac; text-decoration: none }
.demo-sales:hover { background: #293842 }
.demo-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 2.5rem; padding: 1rem var(--gutter); color: var(--header-ink); background: var(--header); border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent) }
.demo-brand { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; line-height: 1.03; font: clamp(1.2rem, 2.2vw, 2rem)/1.06 var(--heading) }
.demo-brand > span:first-child { font: 1.25em/1 system-ui; color: var(--feature-accent) }
.theme-motebutikk .demo-brand > span:first-child, .theme-frisor .demo-brand > span:first-child { color: #b17835 }
.demo-brand small { display: block; font: 650 .63rem/1.4 system-ui; letter-spacing: .17em; text-transform: uppercase; padding-top: .35rem }
.demo-header nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(1rem, 2.6vw, 2.3rem) }
.demo-header nav a { font-size: .88rem; padding-block: .36rem; text-decoration: none; border-bottom: 1px solid transparent }
.demo-header nav a:first-child, .demo-header nav a:hover { border-color: currentColor }
.demo-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(30rem, 43vw, 44rem); background: var(--hero-base); color: var(--hero-ink); display: grid; align-items: center }
.demo-hero-photo, .demo-hero::after { position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%; pointer-events: none }
.demo-hero-photo { z-index: -2; object-fit: cover; object-position: center; animation: photo-in .7s ease-out both }
.demo-hero::after { z-index: -1; content: ''; inset-inline-start: 0; width: 100%; background: linear-gradient(90deg, var(--veil) 30%, color-mix(in srgb, var(--veil) 62%, transparent) 45%, transparent 70%) }
.demo-hero-copy { padding: clamp(2.2rem, 6vw, 5.8rem) var(--gutter); animation: copy-in .55s ease-out both }
.demo-kicker { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .23em; margin-bottom: 1.1rem }
.demo-hero h1 { font-size: clamp(2.75rem, 5.3vw, 6.25rem); letter-spacing: -.045em; font-weight: 550; line-height: .99; max-width: 12ch; margin-bottom: 1.3rem }
.demo-hero h1 em { color: var(--accent) }
.theme-motebutikk h1 em, .theme-frisor h1 em, .theme-restaurant h1 em { color: inherit }
.theme-bakeri h1, .theme-restaurant h1, .theme-frisor h1 { max-width: 15ch }
.theme-bakeri h1 { font-style: italic; font-size: clamp(2.65rem, 4.65vw, 5.4rem) }
.theme-bilpleie h1, .theme-trening h1 { text-transform: uppercase; font-weight: 900; font-style: italic; font-size: clamp(2.45rem, 5.1vw, 5.7rem) }
.theme-bygg h1, .theme-elektriker h1 { max-width: 14ch; font-weight: 800; font-size: clamp(2.85rem, 4.9vw, 5.8rem) }
.theme-bygg h1 em, .theme-elektriker h1 em, .theme-restaurant h1 em, .theme-frisor h1 em { font-style: normal }
.demo-hero-copy > p:not(.demo-kicker) { max-width: 38ch; font-size: clamp(1rem, 1.45vw, 1.3rem); margin-bottom: 1.6rem }
.demo-actions { display: flex; flex-wrap: wrap; gap: .7rem }
.demo button, .demo-primary, .demo-outline { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .72rem 1rem; border: 1px solid var(--accent); border-radius: .55rem; background: var(--accent); color: var(--button-ink); text-decoration: none; font: 650 .88rem/1.25 system-ui; cursor: pointer; min-height: 2.75rem; transition: filter .2s }
.demo button:hover, .demo-primary:hover, .demo-outline:hover { filter: brightness(1.14) }
.demo button:disabled { opacity: .48; cursor: default }
.demo-outline { background: transparent; color: inherit }
.demo-features { display: flex; flex-wrap: wrap; justify-content: center; border-block: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); list-style: none; margin: 0; padding: 1.15rem var(--gutter); background: var(--feature-bg); color: var(--feature-ink) }
.demo-features li { flex: 1 1 8rem; display: grid; place-items: center; text-align: center; gap: .35rem; padding: .4rem; font-size: .9rem }
.demo-features li span { color: var(--feature-accent); font-size: 1.65rem; line-height: 1 }
.demo-content { display: grid; gap: 2rem; max-width: 94rem; margin-inline: auto; padding: clamp(1.4rem, 4vw, 4rem) var(--gutter) }
.demo-content h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); margin-bottom: 1rem; line-height: 1.17 }
.demo-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .8rem }
.demo-products article, .demo-tool, .demo-lookbook { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: .8rem; padding: clamp(.9rem, 2vw, 1.5rem); background: color-mix(in srgb, var(--ink) 5%, var(--paper)) }
.demo-products h3 { margin-bottom: .45rem }
.demo-products p { margin-bottom: .7rem; font-size: .9rem }
.product-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-block: 1rem }
.product-filters button[aria-pressed="false"] { background: transparent; color: inherit }
.demo-lookbook { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center }
.demo-lookbook img { width: min(100%, 34rem); border-radius: .5rem }
.demo-form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem }
.demo-form label { display: grid; flex: 1 1 9.5rem; gap: .3rem; font-weight: 650; min-width: 0 }
.demo-form input, .demo-form select { padding: .6rem; width: 100%; min-width: 0; min-height: 2.75rem; background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); border-radius: .4rem; font: inherit }
.theme-hotell .demo-hero { grid-template-rows: 1fr auto }
.theme-hotell .demo-hero .demo-form { --paper: #fffaf1; --ink: #142730; --accent: #0c5263; --button-ink: #fff; margin: 0 var(--gutter) 1.5rem; background: var(--paper); color: var(--ink) }
.theme-hotell .demo-hero-copy { padding-bottom: 1.5rem }
.demo-result { flex-basis: 100%; margin: 0 }
.demo-result:empty { display: none }
#demo-cart li { margin-block: .35rem }
.demo-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.25rem var(--gutter); background: #0a141d; color: #f7eee2; font-size: .85rem }
.demo-footer p { margin: .17rem 0 }
@keyframes copy-in { from { opacity: 0; transform: translateY(.65rem) } }
@keyframes photo-in { from { opacity: .7; transform: scale(1.018) } }
@media (max-width: 680px) {
  .demo-bar > span { order: 1; flex-basis: 100% }
  .demo-hero { min-height: 0; align-items: end; padding-top: min(65vw, 18rem) }
  .demo-hero-photo { width: 100%; height: min(85vw, 23rem); object-position: top center }
  .demo-hero::after { background: linear-gradient(180deg, transparent min(28vw, 7rem), var(--hero-base) min(74vw, 20rem)) }
  .demo-hero-copy { padding-block: .6rem 2rem }
  .demo-hero h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); overflow-wrap: anywhere }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}
