/* Michael Rieu – utkast A «Profesjonell» */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --tile: #ece8e1;
  --ink: #1d1c1a;
  --ink-2: #4f4b45;
  --muted: #7d776e;
  --line: #ddd7cd;
  --accent: #7a2e21;
  --dark: #1f1e1b;
  --dark-ink: #ece8e0;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.lead-sm { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* Knapper og lenker */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.6em; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-block { width: 100%; }
.link-arrow { font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { position: relative; z-index: 2; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.main-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .4rem 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; color: var(--ink); }
.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 0; padding: 10px 0 10px 10px; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; align-items: center; gap: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .wordmark { font-size: 1.3rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 1.5rem var(--gutter); display: none; overflow-y: auto; }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 1rem 0; font-family: var(--serif); font-size: 1.6rem; border: 0; }
  .main-nav a[aria-current="page"] { color: var(--accent); }
  body.nav-open { overflow: hidden; }
}

/* Seksjoner */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: #efece6; }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow { color: #a7a196; }
.section-dark a { color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Hero */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-name { font-size: clamp(3.4rem, 8.4vw, 7.2rem); font-weight: 500; letter-spacing: .02em; line-height: .95; text-transform: uppercase; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2rem; }
.hero-figure { margin: 0; }
.hero-media { display: block; background: var(--tile); padding: clamp(16px, 3vw, 40px); }
.hero-media img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.hero-figure figcaption { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.hero-figure figcaption em { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.hero-figure figcaption a { text-decoration: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: 2; }
}

/* Grid og kort */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2.2vw, 32px); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--tile); padding: 9%; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card-link:hover .card-media img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding-top: .85rem; }
.card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.card-link:hover .card-title { color: var(--accent); }
.card-artist { font-size: .8rem; color: var(--accent); }
.card-meta { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.card-price { font-size: .9rem; font-weight: 500; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.is-request { font-weight: 400; font-style: italic; color: var(--ink-2); }
.is-sold { color: var(--accent); font-weight: 500; }
@media (max-width: 500px) {
  .card-title { font-size: 1.15rem; }
  .card-meta { font-size: .78rem; }
  .card-media { padding: 7%; }
}

/* Verkgrupper */
.groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.group-card { display: block; text-decoration: none; }
.group-media { display: block; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.group-card:hover .group-media img { transform: scale(1.04); }
.group-name { display: block; font-family: var(--serif); font-size: 1.45rem; margin-top: .7rem; line-height: 1.2; }
.group-count { font-size: .85rem; color: var(--muted); }
.aside-line { margin: 2.25rem 0 0; color: var(--ink-2); }
@media (max-width: 1000px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Plassholdere – tydelig merket */
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed #b9b1a3; background: repeating-linear-gradient(135deg, #efebe4 0 12px, #ebe6de 12px 24px); color: var(--muted); font-size: .9rem; padding: 2rem; }
.placeholder-portrait { aspect-ratio: 4 / 5; }
.placeholder-portrait.small { aspect-ratio: 4 / 3; }
.placeholder-text { color: var(--muted); font-size: .92rem; border-left: 2px dashed #b9b1a3; padding-left: 1rem; }
.placeholder-block { border: 1px dashed #b9b1a3; padding: 1.25rem 1.5rem; margin: 2rem 0; background: #f2efe9; }
.placeholder-block h2 { font-size: 1.5rem; }
.placeholder-block p { color: var(--muted); margin: 0; }
.tbc { color: var(--muted); font-style: italic; }

/* Om-teaser */
.about-teaser .placeholder-portrait { aspect-ratio: 5 / 4; }
.about-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text { max-width: 36em; }
@media (max-width: 800px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser .placeholder-portrait { aspect-ratio: 16 / 9; } }

/* Bergen */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.date-tbc { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: #cfc8bc; margin-top: -.25rem; }
.form-card { background: var(--bg); color: var(--ink); padding: clamp(20px, 3vw, 36px); }
.form-card a { color: var(--ink); }
.section-dark .link-arrow { color: #fff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Skjema */
.mail-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 500; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #c9c2b6; background: #fff; font: 400 1rem var(--sans); color: var(--ink); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.checks legend { margin-bottom: .45rem; width: 100%; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-ok { font-size: .9rem; background: #e6efe4; border-left: 3px solid #3f6b3a; padding: .6rem .8rem; margin: 0; }

/* Kontakt-stripe */
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.contact-cols h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Underside-mal */
.page-intro { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 1.25rem; }
.page-intro p { max-width: 44em; }
.prose-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); align-items: start; }
.prose-page.single { grid-template-columns: minmax(0, 1fr); }
.prose-col { max-width: 42em; }
.prose-col h2 { margin-top: 2.25rem; }
.aside-card { background: var(--surface); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.aside-body { padding: clamp(20px, 2.5vw, 32px); }
.aside-card .placeholder { border: 0; border-bottom: 1px dashed #b9b1a3; }
.fact-list { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fact-list span { color: var(--muted); font-size: .9rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .6rem; padding-left: .3rem; }
@media (max-width: 860px) { .prose-page { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Katalogfilter */
.filters-wrap { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters { display: grid; gap: .85rem; padding-top: 1rem; padding-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .45rem 1rem; border: 1px solid #c9c2b6; background: transparent; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-weight: 400; opacity: .65; font-size: .8rem; margin-left: .15rem; }
.selects { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.select { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.select select { min-height: 40px; border: 1px solid #c9c2b6; background: #fff; font: 400 .9rem var(--sans); color: var(--ink); padding: .35rem 2rem .35rem .7rem; border-radius: 0; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231d1c1a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.result-count { margin: 0 0 0 auto; font-size: .9rem; color: var(--ink-2); }
.catalog-section { padding-top: 2rem; }
.catalog-guest { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.guest-head { border-top: 1px solid var(--ink); padding-top: 1.5rem; margin-bottom: 2rem; max-width: 46em; }
.card[hidden], .catalog-section[hidden] { display: none; }
.empty { padding: 3rem 0 5rem; font-size: 1.05rem; }
@media (max-width: 860px) {
  .filters-wrap { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; }
  .selects { display: grid; grid-template-columns: 1fr 1fr; }
  .select { display: grid; gap: .2rem; }
  .select select { width: 100%; }
  .result-count { grid-column: 1 / -1; margin: 0; }
}

/* Verkside */
.crumbs { display: flex; gap: .6rem; font-size: .88rem; color: var(--muted); padding: 1.5rem 0 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 6vw, 88px); }
.work-main { margin: 0; background: var(--tile); padding: clamp(16px, 4vw, 56px); display: flex; justify-content: center; }
.work-zoom { display: block; cursor: zoom-in; }
.work-main img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: block; width: 84px; height: 84px; background: var(--tile); padding: 6px; border: 1px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.work-info { position: sticky; top: calc(var(--header-h) + 24px); }
.work-artist { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.work-title { font-size: clamp(2.3rem, 4vw, 3.2rem); margin-bottom: .4rem; }
.work-price { font-size: 1.3rem; font-weight: 500; margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.work-price.is-request { font-size: 1.15rem; }
.facts { margin: 0 0 1.75rem; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-size: .95rem; }
.facts-inline { margin-top: .5rem; max-width: 32em; }
.work-notes { margin-bottom: 1.75rem; }
.work-notes h2 { font-family: var(--sans); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.work-notes ul { margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.45; color: var(--ink-2); }
.work-notes li + li { margin-top: .2rem; }
.work-contact { font-size: .88rem; color: var(--ink-2); margin-top: .9rem; }
.related { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work-info { position: static; }
  .work-main img { max-height: 64vh; }
  .facts > div { grid-template-columns: 7rem minmax(0, 1fr); }
}

/* Footer */
.site-footer { background: var(--dark); color: #bdb7ac; font-size: .92rem; }
.site-footer a { color: #ece8e0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-top: 56px; padding-bottom: 40px; }
.footer-name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .3rem; }
.footer-tag { max-width: 22em; }
.footer-h { font-family: var(--sans); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #8f897f; margin-bottom: .6rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid #36342f; padding-top: 18px; padding-bottom: 22px; font-size: .82rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.placeholder-block h2 { margin-top: 0; }
