:root {
  --sea: #1d3b3f;
  --sea-2: #2f5d62;
  --sea-soft: #dfe9e6;
  --sand: #f3ece0;
  --paper: #fbf8f2;
  --ink: #1f2422;
  --muted: #565d59;
  --wine: #7a2335;
  --wine-dark: #5e1a29;
  --vine: #5f6e33;
  --line: #e1d8c7;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 3px solid var(--sea-2); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--sea); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vine); font-weight: 600; margin-bottom: .6em; }
.empty { color: var(--muted); font-style: italic; }
.intro { max-width: 640px; color: var(--muted); font-size: 1.08rem; }

/* Knapper */
.button { display: inline-block; background: var(--wine); color: var(--white); text-decoration: none; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; border: 2px solid var(--wine); transition: background .15s; }
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: var(--white); }
.button.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.button.ghost:hover { background: rgba(255,255,255,.14); }
.button.small { padding: 8px 16px; font-size: .95rem; }
.text-link { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251,248,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sea); }
.brand-mark { width: 34px; height: 34px; color: var(--wine); }
.brand strong { display: block; font: 600 1.3rem/1 var(--serif); }
.brand em { display: block; font-style: italic; font-family: var(--serif); color: var(--muted); font-size: .95rem; }
#menu { display: flex; gap: 26px; }
#menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
#menu a:hover { border-color: var(--wine); color: var(--wine); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: inherit; color: var(--sea); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--sea); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,34,.05) 30%, rgba(16,32,34,.72) 100%); }
.hero-drawn::after { background: linear-gradient(180deg, rgba(16,32,34,0) 35%, rgba(16,32,34,.6) 100%); }
.hero-text { position: relative; z-index: 1; padding-bottom: 72px; width: 100%; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .eyebrow { color: #fff3d6; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero .lead { font-size: 1.2rem; max-width: 560px; color: #f4efe6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sektioner */
.section { padding: 96px 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.events { background: var(--sand); }
.art { background: var(--sea); color: #e8eeec; }
.art h2, .art h3 { color: var(--white); }
.art .eyebrow { color: #c9d6a4; }
.art a { color: var(--white); }
.art .empty { color: #b9c7c4; }
.art-intro { margin-bottom: 48px; }
.visit { background: var(--sand); }
.eu-support { border-top: 1px solid var(--line); }
.eu-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eu-logos { display: grid; gap: 24px; justify-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.eu-logos img { width: 100%; height: auto; }
.eu-logos img:first-child { max-width: 300px; }
.eu-logos img:last-child { max-width: 360px; }

/* Arrangementer */
.event-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 84px auto 1fr; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-items: start; }
.event:not(:has(.event-img)) { grid-template-columns: 84px 1fr; }
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; color: var(--wine); }
.event-date .day { display: block; font: 600 2.6rem/1 var(--serif); }
.event-date .month { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; }
.event-img { width: 200px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.event h3 { margin-bottom: .2em; }
.meta { color: var(--muted); font-size: .95rem; }
.event-body > :last-child { margin-bottom: 0; }

/* Vin */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img, .card-placeholder { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--sea-soft); }
.card-placeholder { display: grid; place-items: center; color: var(--sea-2); }
.card-placeholder svg { width: 64px; height: 64px; }
.card-body { padding: 20px 22px 22px; }
.card-body > :last-child { margin-bottom: 0; }
.price { font-weight: 700; color: var(--wine); }
.art .price { color: #f2d9a0; }

/* Kunst */
.art-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
.art-item a { text-decoration: none; display: block; }
.art-frame { position: relative; display: block; background: #f5f1e8; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.28); aspect-ratio: 1; }
.art-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.art-item a:hover .art-frame img { transform: scale(1.02); }
.badge { position: absolute; top: 10px; right: 10px; background: var(--wine); color: var(--white); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.status-solgt .badge { background: var(--ink); }
.status-udstillet .badge, .status-reserveret .badge { background: var(--vine); }
.art-caption { display: block; margin-top: 16px; }
.art-caption strong { display: block; font: 600 1.2rem/1.3 var(--serif); color: var(--white); }
.art-caption span { display: block; color: #b9c7c4; font-size: .93rem; }
.art-caption .price { color: #f2d9a0; font-weight: 700; margin-top: 2px; }

/* Værk-side */
.artwork-split { align-items: start; margin-top: 16px; }
.artwork-images { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.artwork-images a:first-child { grid-column: 1 / -1; }
.artwork-images img { width: 100%; background: var(--sand); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.status-line { font-size: 1.1rem; }
.status-line.status-solgt { color: var(--muted); }

/* Galleri */
.gallery-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid a { position: relative; display: block; }
.gallery-grid img, .gallery-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: opacity .2s; display: block; background: var(--sea); }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(16,32,34,.6); border: 2px solid rgba(255,255,255,.9); }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.gallery-grid a:hover img { opacity: .88; }

/* Besøg */
.visit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.visit-card h3:not(:first-child) { margin-top: 24px; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,18,19,.92); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lb img, .lb video { max-height: 84vh; max-width: 100%; object-fit: contain; }
.lb[hidden], .lb [hidden] { display: none; }
.lb p { color: #e8eeec; margin: 12px 0 0; text-align: center; }
.lb button { position: absolute; background: none; border: 0; color: var(--white); font-size: 2rem; cursor: pointer; padding: 10px 16px; }
.lb .lb-close { top: 8px; right: 8px; }
.lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Fod */
.footer { background: #142a2d; color: #c6d2cf; padding: 56px 0 24px; }
.footer a { color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font: 600 1.4rem/1.2 var(--serif); color: var(--white); }
.footer-name em { font-weight: 400; }
.social { display: flex; gap: 18px; }
.footer-small { font-size: .85rem; color: #8ea19d; margin-top: 32px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  #menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  #menu.open { display: flex; }
  #menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .eu-box { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .event, .event:not(:has(.event-img)) { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .event-img { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .event-date { padding-right: 12px; }
  .event-date .day { font-size: 2rem; }
  .hero-text { padding-bottom: 48px; }
}

/* Kontaktformular */
.contact { border-top: 1px solid var(--line); }
.wrap.narrow { max-width: 760px; }
.contact-form { display: grid; gap: 4px; margin-top: 24px; }
.contact-form p { margin: 0 0 12px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #8a7f6b; border-radius: var(--radius); padding: 10px 12px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--sea-soft); border-left: 4px solid var(--sea-2); padding: 14px 18px; border-radius: var(--radius); }
.notice.error { background: #f6e3e6; border-left-color: var(--wine); }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; gap: 0; } }
