/* Laura Kruuse: shared styles for every page.
   Light theme only. Mobile first: base rules are for phones,
   larger screens are added with min-width media queries. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory: #f7f4ee;
  --ivory-deep: #ede9df;
  --white: #fffdf9;
  --green-dark: #2d3d2e;
  --green-mid: #4a6741;
  --green-light: #7a9e6e;
  --green-pale: #c8d9b8;
  --warm-brown: #8a6d4b;
  --rose: #a4525f;
  --text: #2a2520;
  --text-muted: #6b6157;
  --line: #ddd6c8;
  --ok: #3d6b35;
  --err: #a33a2c;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
  --gutter: 1.25rem;
  color-scheme: light only;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em { font-style: italic; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-pale);
  transition: background 0.4s, border-color 0.4s;
}
.site-nav.on-hero:not(.scrolled):not(.menu-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-logo,
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-links a { color: var(--ivory); }
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-toggle span { background: var(--ivory); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 0.75rem; width: min(1300px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nav-logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: 0.04em; color: var(--green-dark); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav-links { list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-dark); text-decoration: none; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: currentColor; transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.basket-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px;
  background: var(--white); color: var(--green-dark); border: 1px solid var(--green-dark); border-radius: 999px;
  padding: 0 1rem 0 0.85rem; cursor: pointer; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.basket-btn:hover { background: var(--ivory-deep); }
.basket-btn .bag { width: 20px; height: 20px; flex: none; }
.basket-btn.has-items { background: var(--green-dark); color: var(--ivory); }
.basket-btn .count { display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px;
  background: var(--green-pale); color: var(--green-dark); font-size: 0.75rem; font-weight: 500; line-height: 1; }
.basket-btn.bump { animation: bump 0.45s ease; }
@keyframes bump { 35% { transform: scale(1.12); } }
@media (max-width: 479px) {
  .basket-btn { padding: 0 0.7rem; }
}
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--green-dark); transition: transform 0.3s, opacity 0.3s; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* phone menu */
@media (max-width: 899px) {
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    background: var(--ivory); display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%); visibility: hidden; transition: transform 0.35s, visibility 0.35s;
    overflow-y: auto;
  }
  .menu-open .nav-links { transform: none; visibility: visible; }
  .nav-links a { display: block; font-family: var(--serif); text-transform: none; letter-spacing: 0.01em; font-size: 2rem; font-weight: 300; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--green-mid); font-style: italic; }
  .basket-btn .label { display: none; }
}
@media (min-width: 900px) {
  :root { --nav-h: 76px; --gutter: 3rem; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 2.2rem; margin-right: 1.5rem; }
}
body.menu-locked { overflow: hidden; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-light); margin-bottom: 1rem; }
.h-display { font-family: var(--serif); font-weight: 300; line-height: 1.08; color: var(--green-dark); font-size: clamp(2.5rem, 9vw, 4.6rem); }
.h-section { font-family: var(--serif); font-weight: 300; line-height: 1.15; color: var(--green-dark); font-size: clamp(2rem, 6vw, 3rem); }
.h-section em, .h-display em { color: var(--green-mid); }
.lede { color: var(--text-muted); max-width: 56ch; font-size: 1rem; line-height: 1.85; }
.fineprint { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 62ch; }

.page { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
.page-head { padding: 3rem 0 2.5rem; }
.page-head .lede { margin-top: 1rem; }
@media (min-width: 900px) { .page-head { padding: 5rem 0 3.5rem; } }

section.block { padding: 4rem 0; }
@media (min-width: 900px) { section.block { padding: 6.5rem 0; } }
.block.tint { background: var(--ivory-deep); }
.sec-head { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
/* The description sits directly below the title on every screen size */
.sec-head .lede { max-width: 62ch; }
@media (min-width: 900px) { .sec-head { gap: 1.1rem; margin-bottom: 3rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.6rem; border: 1px solid var(--green-dark);
  background: var(--green-dark); color: var(--ivory); text-decoration: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn.line { background: transparent; color: var(--green-dark); }
.btn.line:hover { background: var(--green-dark); color: var(--ivory); }
.btn.light { background: var(--ivory); color: var(--green-dark); border-color: var(--ivory); }
.btn.light:hover { background: var(--green-pale); border-color: var(--green-pale); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; }
.text-link { color: var(--green-mid); text-decoration: none; border-bottom: 1px solid var(--green-pale); padding-bottom: 2px; font-size: 0.9rem; letter-spacing: 0.04em; }
.text-link:hover { border-color: var(--green-mid); }

/* ---------- Artwork frames and placeholders ---------- */
.art { position: relative; background: var(--green-pale); overflow: hidden; aspect-ratio: 3 / 4; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .ph { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 4vw, 1.8rem); color: var(--green-dark);
  background: linear-gradient(150deg, #dfe8d3 0%, #a9c196 55%, #7a9e6e 100%); }
.art.noimg img { display: none; }
.art.noimg .ph { display: grid; }


/* ---------- Forms ---------- */
.field { display: grid; gap: 0.35rem; }
.field > span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font-size: 16px; /* 16px stops iPhone from zooming in on focus */
  background: var(--white); border: 1px solid var(--line); border-radius: 0; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15); }
.row-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; accent-color: var(--green-mid); }
.msg { font-size: 0.95rem; min-height: 1.5em; }
/* "Did you mean …@gmail.com?" under the e-mail field (checkout) */
.email-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 0.8rem 1rem; background: #fbf3e2; border: 1px solid #e6cf9a; font-size: 0.92rem; margin-top: -0.4rem; }
.email-hint:empty { display: none; }
.email-hint b { font-weight: 500; overflow-wrap: anywhere; }
.email-hint .btn { min-height: 40px; padding: 0 1rem; }

/* Town filled in from the postcode (checkout) */
.field input.auto, .field input[readonly] { background: var(--ivory); color: var(--green-dark); cursor: default; }
.zip-hint { min-height: 0; font-size: 0.88rem; }
.zip-hint:empty { display: none; }
.trust { list-style: none; display: grid; gap: 0.55rem; padding: 0.95rem 1rem; background: var(--ivory); border: 1px solid var(--line); }
.trust li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.88rem; line-height: 1.5; color: var(--text); }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--green-mid); margin-top: 0.05rem; }
.captcha { min-height: 65px; font-size: 0.9rem; color: var(--err); }   /* room for the Turnstile box, so the form does not jump */
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.inline-form input { flex: 1 1 200px; min-height: 48px; padding: 0.7rem 0.85rem; font-size: 16px; border: 1px solid var(--line); background: var(--white); border-radius: 0; }
.inline-form .btn { flex: 0 0 auto; }
@media (max-width: 419px) { .inline-form .btn { flex: 1 1 100%; } }

/* ---------- Countdown ---------- */
.clock { display: flex; gap: clamp(0.6rem, 3vw, 1.2rem); }
.clock div { text-align: center; min-width: 2.4ch; }
.clock b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; color: var(--green-dark); font-variant-numeric: lining-nums tabular-nums; }
.clock small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rose); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status.live::before { animation: pulse 1.8s ease-in-out infinite; }
.status.soon { color: var(--warm-brown); }
.status.ended { color: var(--text-muted); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #dcbcab 0%, #c6998a 45%, #9c6b5f 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(90,45,35,0.30), rgba(90,45,35,0.04)); }
.hero-content { position: relative; z-index: 2; padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); padding-top: calc(var(--nav-h) + 2rem); }
.hero .eyebrow { color: #fbeee6; animation: fadeUp 0.8s 0.2s both; }
.hero-title { font-family: var(--serif); font-weight: 300; line-height: 1.02; color: var(--ivory); font-size: clamp(3.4rem, 15vw, 6.5rem); animation: fadeUp 0.8s 0.35s both; }
.hero-title em { color: #fbeee6; }
.hero-sub { margin-top: 1.2rem; color: rgba(247, 244, 238, 0.92); max-width: 34ch; line-height: 1.8; letter-spacing: 0.03em; animation: fadeUp 0.8s 0.5s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; animation: fadeUp 0.8s 0.65s both; }
.hero-actions .btn.line { color: var(--ivory); border-color: rgba(247,244,238,0.7); }
.hero-actions .btn.line:hover { background: var(--ivory); color: var(--green-dark); }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- About strip (home) ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1rem; max-width: 56ch; }
.about-frame { position: relative; }
.about-frame .art { aspect-ratio: 4 / 5; }
.about-frame .art img { object-position: 50% 30%; }
.about-frame::after { content: ""; position: absolute; width: 45%; height: 45%; right: -0.75rem; bottom: -0.75rem; border: 1px solid var(--green-light); z-index: -1; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.social-pill { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 1.1rem; border: 1px solid var(--green-pale); color: var(--green-dark); text-decoration: none; font-size: 0.88rem; letter-spacing: 0.04em; transition: background 0.25s, color 0.25s; }
.social-pill:hover { background: var(--green-dark); color: var(--ivory); border-color: var(--green-dark); }
.social-pill svg { width: 18px; height: 18px; flex: none; }

/* ---------- Auction teaser (home) ---------- */
.teaser { display: grid; gap: 2rem; background: var(--white); border: 1px solid var(--line); padding: 1.25rem; }
@media (min-width: 760px) { .teaser { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; padding: 2rem; align-items: center; } }
.teaser h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: 0.04em; color: var(--green-dark); line-height: 1.05; margin: 0.6rem 0 1rem; }
.teaser .now { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-end; padding: 1.2rem 0; border-block: 1px solid var(--line); margin-bottom: 1.5rem; }
.amount-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.amount { font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.1; color: var(--green-dark); }

/* ---------- Painting and sketch grids ---------- */
.paint-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .paint-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (min-width: 1100px) { .paint-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; } }
.paint-card { background: none; border: 0; text-align: left; cursor: pointer; display: grid; gap: 1rem; padding: 0; }
.paint-card .art { transition: transform 0.4s; box-shadow: 0 18px 40px -24px rgba(45, 61, 46, 0.45); }
.paint-card:hover .art { transform: translateY(-4px); }
.paint-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; letter-spacing: 0.05em; color: var(--green-dark); line-height: 1.1; }
.paint-card p { font-size: 0.9rem; color: var(--text-muted); }

/* "Fra atelieret": every sketch sits on the same white paper mat, so the cards are all one size
   whatever the shape of the picture (nothing is cropped, nothing ends up huge or tiny).
   Two columns on phones and tablets, four on desktop. */
.sketch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
@media (min-width: 1000px) { .sketch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.75rem; } }
.sketch-card { min-width: 0; background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; display: flex; flex-direction: column; color: inherit; font: inherit; }
.sketch-mat {
  aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 9%; contain: size; /* the picture can never stretch the mat */
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 36px -26px rgba(45, 61, 46, 0.5);
  transition: transform 0.4s, box-shadow 0.4s;
}
.sketch-mat img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; box-shadow: 0 6px 16px -8px rgba(42, 37, 32, 0.45); }
.sketch-card:hover .sketch-mat, .sketch-card:focus-visible .sketch-mat { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 26px 44px -24px rgba(45, 61, 46, 0.55); }
.sketch-card:focus-visible { outline: none; }
.sketch-card:focus-visible .sketch-mat { outline: 2px solid var(--green-mid); outline-offset: 4px; }
.sketch-info { display: grid; gap: 0.25rem; margin-top: 1rem; }
.sketch-no { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--green-light); }
.sketch-card .sketch-title { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--green-dark); line-height: 1.2; }
.sketch-card .sketch-medium { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm-brown); }
.sketch-card .sketch-desc { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); margin-top: 0.35rem; }
@media (max-width: 599px) { .sketch-card .sketch-title { font-size: 1.1rem; } .sketch-card .sketch-desc { font-size: 0.82rem; } }
.sketch-more { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.sketch-more p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Coming soon ---------- */
.soon-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .soon-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.soon-item { border-top: 1px solid var(--green-light); padding-top: 1.4rem; display: grid; gap: 0.75rem; align-content: start; }
.soon-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--green-dark); line-height: 1.15; }
.soon-item p { color: var(--text-muted); font-size: 0.95rem; }
.soon-tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm-brown); }

/* ---------- Auction page ---------- */
.auction-grid { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .auction-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; padding-bottom: 6rem; } }
.auction-art { margin: 0 calc(-1 * var(--gutter)); }
.auction-art figcaption { padding: 0.75rem var(--gutter) 0; font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 1rem; }
@media (min-width: 900px) { .auction-art { margin: 0; position: sticky; top: calc(var(--nav-h) + 2rem); } .auction-art figcaption { padding-inline: 0; } }
.art-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 12vw, 4.8rem); letter-spacing: 0.04em; line-height: 1; color: var(--green-dark); margin: 0.7rem 0 1rem; }
.art-meta { color: var(--text-muted); font-size: 0.95rem; }
.art-desc { margin-top: 1rem; line-height: 1.85; max-width: 58ch; }
.bid-now { display: grid; gap: 1.5rem; padding: 1.4rem 0; margin: 2rem 0 1.5rem; border-block: 1px solid var(--line); }
@media (min-width: 520px) { .bid-now { grid-template-columns: 1fr auto; align-items: end; } }
.bid-count { font-size: 0.9rem; color: var(--text-muted); }
.clock-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }

.you { padding: 0.85rem 1rem; border-left: 3px solid var(--ok); background: var(--white); margin-bottom: 1.4rem; font-size: 0.95rem; }
.you.outbid { border-color: var(--rose); }

.bid-form { display: grid; gap: 1rem; }
.amount-field { position: relative; }
.amount-field input { font-family: var(--serif) !important; font-size: 1.5rem !important; padding-right: 3.6rem !important; }
.amount-field .unit { position: absolute; right: 0.9rem; bottom: 0.85rem; font-size: 0.85rem; color: var(--text-muted); }
.quick { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 0.9rem; }
.chip:hover { border-color: var(--green-mid); }

.history { margin-top: 2.5rem; }
.history h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.history ol { list-style: none; }
.history li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.history li:first-child .amt { color: var(--green-mid); font-weight: 500; }
.history .when { display: block; font-size: 0.8rem; color: var(--text-muted); }
.history .empty { color: var(--text-muted); }

.switcher { display: grid; gap: 0.6rem; margin-top: 2.5rem; }
.auction-switcher { margin-top: 1.5rem; }
@media (min-width: 520px) { .switcher { grid-template-columns: 1fr 1fr; } }
.switcher button { display: grid; text-align: left; gap: 0.15rem; border: 1px solid var(--line); background: var(--white); padding: 0.8rem 1rem; cursor: pointer; min-height: 56px; }
.switcher button[aria-pressed="true"] { border-color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green-dark); }
.switcher b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--green-dark); }
.switcher span { font-size: 0.82rem; color: var(--text-muted); }

.how { display: grid; gap: 1.8rem; counter-reset: step; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.how li { list-style: none; counter-increment: step; }
.how li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--green-light); line-height: 1; margin-bottom: 0.5rem; }
.how h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--green-dark); margin-bottom: 0.4rem; }
.how p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Prints page ---------- */
.print-grid { display: grid; gap: 3.5rem; }
@media (min-width: 760px) { .print-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (min-width: 1100px) { .print-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.print-card .frame { background: linear-gradient(180deg, #efebe2 0%, #e6e0d3 100%); padding: clamp(0.9rem, 3.5vw, 1.4rem) clamp(1rem, 4.5vw, 1.6rem) clamp(1.1rem, 4vw, 1.7rem); margin-bottom: 1.4rem; }

/* Framed print mockup. The paper sits in the frame's opening, measured from frame.png */
.mock { position: relative; aspect-ratio: 574 / 788; max-width: 460px; margin-inline: auto; }
.mock-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(42, 37, 32, 0.28)); }
.mock-paper { position: absolute; left: 7.6%; right: 7.6%; top: 5.3%; bottom: 5.4%; background: #fbfaf6;
  padding: 9% 8%; display: grid; place-items: center; box-shadow: inset 0 0 12px rgba(42, 37, 32, 0.12); }
.mock-paper img { width: 100%; height: 100%; object-fit: contain; }
.mock-paper .ph { display: none; font-family: var(--serif); font-style: italic; color: var(--green-dark); font-size: 1.3rem; }
.mock-paper.noimg img { display: none; }
.mock-paper.noimg .ph { display: block; }
.print-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: 0.05em; color: var(--green-dark); line-height: 1.1; }
.print-card .stock { font-size: 0.9rem; color: var(--text-muted); margin: 0.3rem 0 1.1rem; }
.print-card .stock.low { color: var(--rose); }
.variant { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 0.9rem; background: var(--white); }
.variant label { display: grid; gap: 0.15rem; padding: 0.8rem 0.9rem; cursor: pointer; position: relative; font-size: 0.85rem; min-height: 64px; align-content: center; }
.variant label + label { border-left: 1px solid var(--line); }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.variant label:has(input:checked) { background: var(--green-dark); color: var(--ivory); }
.variant label:has(input:focus-visible) { outline: 2px solid var(--green-mid); outline-offset: -4px; }
.buy-row { display: flex; gap: 0.6rem; }
.qty { display: flex; border: 1px solid var(--line); background: var(--white); }
.qty button { width: 44px; min-height: 48px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty output { min-width: 2ch; display: grid; place-items: center; font-weight: 500; }
.buy-row .btn { flex: 1; }
.note-box { margin-top: 3rem; padding: 1.4rem; background: var(--ivory-deep); display: grid; gap: 0.5rem; }
/* Daily limit on prints.html: a small line when few are left, a clear box when sold out for today */
.day-box { margin: -1rem 0 2.2rem; padding: 0.8rem 1.1rem; border-left: 3px solid var(--warm-brown, #a0784e); background: var(--white); font-size: 0.95rem; color: var(--text); }
.day-box.out { padding: 1.3rem 1.4rem; border-left-color: var(--rose); display: grid; gap: 0.4rem; }
.day-box h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--green-dark); }
.day-box.out p { color: var(--text-muted); max-width: 62ch; }
.qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.note-box h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--green-dark); }
.note-box p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Painting viewer (home) ---------- */
.viewer { border: 0; padding: 0; margin: auto; width: min(1000px, 100%); max-width: 100%; max-height: 100dvh; background: var(--ivory); color: var(--text); }
.viewer::backdrop { background: rgba(42, 37, 32, 0.6); }
.viewer-inner { display: grid; }
@media (min-width: 800px) { .viewer { max-height: 90dvh; } .viewer-inner { grid-template-columns: 1fr 1fr; } }
/* In the viewer the whole picture is always visible */
.viewer .art { aspect-ratio: auto !important; background: var(--ivory-deep); display: grid; place-items: center; }
.viewer .art img { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; }
@media (min-width: 800px) { .viewer .art { height: 100%; min-height: 60dvh; } .viewer .art img { max-height: 90dvh; } }
.viewer .info { padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1rem; align-content: start; }
@media (min-width: 800px) { .viewer .info { padding: 2.5rem; overflow-y: auto; max-height: 90dvh; } }
.viewer h2 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; letter-spacing: 0.05em; color: var(--green-dark); line-height: 1.05; }
.viewer p { color: var(--text-muted); line-height: 1.85; }
.viewer .actions { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.close-x { position: absolute; top: calc(0.5rem + env(safe-area-inset-top, 0px)); right: 0.5rem; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(247, 244, 238, 0.92); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--green-dark); }

/* ---------- Basket drawer ---------- */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100%); max-width: 100%; background: var(--ivory); color: var(--text); }
.drawer::backdrop { background: rgba(42, 37, 32, 0.5); }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: calc(0.75rem + env(safe-area-inset-top, 0px)) var(--gutter) 0.75rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .drawer-head, .drawer-body { padding-inline: 1.6rem; } }
.drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--green-dark); }
.drawer-head .close-x { position: static; background: none; }
.drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1.25rem; align-content: start;
  grid-auto-rows: max-content; }   /* rows always as tall as their content, also when the drawer is taller than the screen
                                      (otherwise a message with min-height shrinks to one line and runs into the button below) */
.line-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 0.9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.line-item .art { box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); margin: 5px; }
.line-item .art .ph { font-size: 0.7rem; padding: 0.2rem; }
.line-item b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--green-dark); letter-spacing: 0.04em; }
.line-item small { display: block; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.link-btn { background: none; border: 0; color: var(--text-muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; min-height: 44px; padding: 0 0.25rem; }
fieldset { border: 0; display: grid; gap: 0.5rem; }
legend { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
/* Delivery address: street, then postcode (narrow) and town side by side */
fieldset.address { gap: 0.9rem; }
.row-zip { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.radio { display: flex; gap: 0.7rem; align-items: center; min-height: 52px; padding: 0.6rem 0.9rem; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 0.95rem; }
.radio:has(input:checked) { border-color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green-dark); }
.radio input { width: 18px; height: 18px; accent-color: var(--green-mid); flex: none; }
.radio .price { margin-left: auto; color: var(--text-muted); font-size: 0.88rem; white-space: nowrap; }
.totals { display: grid; gap: 0.3rem; font-size: 0.95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 1.5rem; color: var(--green-dark); padding-top: 0.6rem; border-top: 1px solid var(--line); }
.pay-box { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; display: grid; gap: 1rem; }
.pay-box h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--green-dark); line-height: 1.15; }
.pay-row { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row dt { grid-column: 1 / -1; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pay-row dd { font-family: var(--serif); font-size: 1.4rem; color: var(--green-dark); }
.copy { min-height: 36px; padding: 0 0.9rem; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; font-size: 0.82rem; }
.pay-row dd.pay-msg { font-family: var(--sans); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.pay-items { list-style: none; display: grid; gap: 0.2rem; font-size: 0.95rem; }
.pay-steps { padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.order-status { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.55rem; border: 1px solid currentColor; color: var(--warm-brown); white-space: nowrap; justify-self: start; }
.order-status.paid, .order-status.shipped { color: var(--ok); }
.order-status.expired, .order-status.cancelled { color: var(--err); }
#pay-msg:empty, #cancel-msg:empty { display: none; }
/* "Annullér ordren": small and quiet under the buttons, with a yes/no step */
.pay-cancel { display: grid; gap: 0.6rem; justify-items: center; text-align: center; padding-top: 0.2rem; }
.pay-cancel .fineprint { max-width: 36ch; }
.pay-cancel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
.totals .split { font-size: 0.95rem; color: var(--green-dark); }
.totals .split:last-child { color: var(--text-muted); }
.pay-rest { padding: 0.7rem 0.9rem; background: var(--ivory); border-left: 3px solid var(--green-mid); font-size: 0.95rem; }
.my-orders { display: grid; gap: 1rem; margin-top: 2rem; }
.my-orders h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--green-dark); }
.line-item.order-item { grid-template-columns: 1fr auto auto; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 3rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; padding-bottom: 6rem; } }
.contact-links { display: grid; gap: 0.75rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; min-height: 72px; padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s; }
.contact-link:hover { border-color: var(--green-mid); }
.contact-link svg { width: 26px; height: 26px; flex: none; color: var(--green-mid); }
.contact-link b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--green-dark); line-height: 1.2; }
.contact-link span { font-size: 0.88rem; color: var(--text-muted); word-break: break-word; }
.facts { margin-top: 2rem; display: grid; gap: 0.9rem; }
.facts div { display: grid; gap: 0.1rem; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { font-family: var(--serif); font-size: 1.25rem; color: var(--green-dark); }
.contact-form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); padding: 1.25rem; align-content: start; }
@media (min-width: 900px) { .contact-form { padding: 2.2rem; } }
.contact-form h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--green-dark); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; bottom: 1.25rem; border: 5px solid transparent; border-top-color: var(--green-light); pointer-events: none; }

/* ---------- About page ---------- */
.about-hero { display: grid; gap: 2.5rem; padding: 2.5rem 0 1rem; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end; padding-top: 4.5rem; } }
.about-hero p { color: var(--text-muted); line-height: 1.95; margin-top: 1.2rem; max-width: 52ch; }
.about-hero .art { aspect-ratio: 3 / 4; }
.about-hero .art img { object-position: 24% 45%; }
.about-hero figcaption { margin-top: 0.7rem; text-align: right; font-family: var(--serif); font-style: italic; color: var(--text-muted); }
.story { max-width: 680px; margin-inline: auto; }
.story p { color: var(--text-muted); line-height: 2; margin-top: 1.3rem; }
/* "Med mine egne ord": heading and a taped-up photo of Laura beside the text */
.story-grid { display: grid; gap: 2rem; }
.story-grid .story { max-width: 720px; margin: 0; }
.story-grid .story p:first-child { margin-top: 0; }
.story-photo {
  position: relative; width: min(260px, 70%); margin: 1.6rem 0 0.5rem 0.4rem;
  background: var(--white); padding: 0.7rem 0.7rem 0; transform: rotate(-2.5deg); transform-origin: 50% 0;   /* hangs from the tape */
  box-shadow: 0 1px 2px rgba(42, 37, 32, 0.12), 0 10px 24px rgba(42, 37, 32, 0.14);
  transition: box-shadow 0.4s ease;
}
/* On hover it sways gently from the tape, like the sketches on the board in the portfolio */
@keyframes photo-sway {
  0%, 100% { transform: rotate(-2.5deg); }
  25% { transform: rotate(-0.3deg); }
  75% { transform: rotate(-4.7deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story-photo:hover { animation: photo-sway 1.8s ease-in-out infinite; box-shadow: 0 2px 4px rgba(42, 37, 32, 0.12), 0 16px 32px rgba(42, 37, 32, 0.18); }
}
.story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; }
.story-photo figcaption { padding: 0.55rem 0 0.75rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-muted); }
/* A strip of washi tape holding the photo */
.story-photo::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(3deg);
  background: rgba(200, 217, 184, 0.75); box-shadow: 0 1px 2px rgba(42, 37, 32, 0.08);
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(240px, 0.75fr) 1.5fr; gap: 4.5rem; align-items: start; }
  .story-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .story-photo { width: min(290px, 100%); margin-top: 2.2rem; }
  .story-grid .story { padding-top: 0.6rem; }
}
.pull-quote { background: linear-gradient(180deg, #fbf5e2 0%, #f5ebcd 100%); padding: 4rem 0; text-align: center; }
@media (min-width: 900px) { .pull-quote { padding: 6rem 0; } }
.pull-quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 5.5vw, 2.3rem); line-height: 1.5; color: var(--green-dark); max-width: 700px; margin-inline: auto; }
.pull-quote cite { display: block; margin-top: 1.5rem; font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm-brown); }
.steps { display: grid; gap: 2rem; margin-top: 2.5rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { list-style: none; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-size: 3rem; color: var(--green-pale); line-height: 1; margin-bottom: 0.7rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.steps p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.85; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .social-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory-deep); border-top: 1px solid var(--line); padding: 3rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; } }
.footer-logo { font-family: var(--serif); font-size: 1.6rem; color: var(--green-dark); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-mid); text-decoration: none; display: inline-block; padding: 0.4rem 0; }
.footer-nav a:hover { color: var(--green-dark); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-credit a { color: var(--green-mid); }
.footer-credit a:hover { color: var(--green-dark); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.4rem; font-size: 0.82rem; color: var(--text-muted); }
.footer-legal a { color: var(--green-mid); padding: 0.3rem 0; }
.footer-legal a:hover { color: var(--green-dark); }
.fineprint a { color: var(--green-dark); }

/* ---------- Terms and privacy (betingelser.html) ---------- */
.legal { padding-bottom: 4rem; }
.legal .page-head, .legal-sec, .legal-updated { max-width: 760px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.legal-toc a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--green-dark); text-decoration: none; font-size: 0.88rem; }
.legal-toc a:hover { border-color: var(--green-mid); }
.legal-sec { padding: 2.4rem 0 0.6rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.legal-sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.4rem); color: var(--green-dark); line-height: 1.15; margin-bottom: 1rem; }
.legal-sec h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--green-dark); margin: 1.6rem 0 0.4rem; }
.legal-sec p, .legal-sec li, .legal-sec td, .legal-sec th { font-size: 0.97rem; line-height: 1.75; }
.legal-sec p + p { margin-top: 0.7rem; }
.legal-sec ol, .legal-sec ul { padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.legal-sec a { color: var(--green-dark); }
.legal-form { margin-top: 1.8rem; padding: 1.2rem 1.3rem; background: var(--white); border: 1px dashed var(--line); }
.legal-form h3 { margin-top: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
/* On phones each row becomes a small card, so nothing scrolls sideways */
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; gap: 0.2rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .legal-table td { padding: 0; border: 0; }
  .legal-table td:first-child { font-weight: 500; color: var(--green-dark); }
}
.legal-updated { margin-top: 2.4rem; }

/* ---------- Toast and reveal ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300;
  background: var(--green-dark); color: var(--ivory); padding: 0.75rem 1.3rem; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; max-width: calc(100% - 2rem); text-align: center; }
.toast.show { opacity: 1; pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 1rem; width: max-content; text-align: left; }
.toast span { flex: 1; }
.toast-action { flex: none; min-height: 36px; padding: 0 0.9rem; background: var(--ivory); color: var(--green-dark); border: 0; cursor: pointer; font-size: 0.85rem; letter-spacing: 0.04em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: none; }

.demo-bar { background: var(--green-pale); color: var(--green-dark); font-size: 0.85rem; padding: 0.6rem 0; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.demo-bar button { background: none; border: 1px solid currentColor; padding: 0.2rem 0.8rem; cursor: pointer; font-size: 0.8rem; min-height: 32px; }

/* ---------- Language switch ---------- */
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; min-width: 44px;
  padding: 0 0.7rem; background: transparent; border: 1px solid var(--line); cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--green-dark); white-space: nowrap;
}
.lang-btn:hover { border-color: var(--green-mid); }
.lang-btn .flag { display: block; width: 24px; height: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); flex: none; }
.lang-btn .flag svg { width: 100%; height: 100%; display: block; }
.lang-btn .lang-long { display: none; }
@media (min-width: 900px) { .lang-btn .lang-long { display: inline; } .lang-btn .lang-short { display: none; } }
.site-nav.on-hero:not(.scrolled):not(.menu-open) .lang-btn { color: var(--ivory); border-color: rgba(247,244,238,0.5); }
@media (max-width: 380px) { .lang-btn .lang-short { display: none; } .nav-logo { font-size: 1.25rem; } }
.teaser .lede { margin-bottom: 1.25rem; }

/* Laura's photo on the contact page */
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--green-pale); }
@media (min-width: 900px) { .avatar { width: 112px; height: 112px; } }

/* Six menu items: keep them on one line on smaller desktops */
.nav-links a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-links { gap: 1.25rem; margin-right: 0.5rem; }
  .nav-links a { letter-spacing: 0.1em; }
  .lang-btn .lang-long { display: none; }
  .lang-btn .lang-short { display: inline; }
}

[hidden] { display: none !important; }
/* Only one print type (signed and numbered): shown as a price line, not a choice */
.variant.single { grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.8rem 0.9rem; min-height: 64px; font-size: 0.85rem; }

/* ---------- One-page front page ---------- */
.hero-price { margin-top: 1.1rem; font-size: 0.85rem; letter-spacing: 0.08em; color: rgba(247, 244, 238, 0.85); animation: fadeUp 0.8s 0.75s both; }
.print-card h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: 0.05em; color: var(--green-dark); line-height: 1.1; }
.print-card .print-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin: 0.5rem 0 1.1rem; }
.print-card .frame-btn { display: block; width: 100%; border: 0; cursor: zoom-in; font: inherit; color: inherit; }
.print-card .frame-btn:focus-visible { outline-offset: -4px; }
.variant.single span { display: grid; gap: 0.1rem; }
.variant.single small { font-size: 0.78rem; color: var(--text-muted); }
.contact-form .form-title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--green-dark); }
#prints, #kontakt { scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
/* (sketch text sizes: see "Fra atelieret" above) */

/* Print cards: the description takes the spare room, so the price and the
   buy buttons always line up at the bottom, however long each text is */
.print-card { display: flex; flex-direction: column; }
.print-card .print-desc { flex: 1 0 auto; }

/* "Om mig": on desktop the photo is exactly as tall as the text beside it */
@media (min-width: 900px) {
  .about-hero { align-items: stretch; }
  .about-hero figure { display: flex; flex-direction: column; }
  .about-hero .art { aspect-ratio: auto; flex: 1 1 0; min-height: 320px; }
}

/* Japper studio logo in the menu */
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: 40px; height: 40px; flex: none; }
@media (max-width: 479px) { .nav-logo { gap: 0.45rem; } .nav-logo img { width: 34px; height: 34px; } }
@media (max-width: 380px) { .nav-logo img { width: 30px; height: 30px; } }

/* ---------- Museum teaser on the front page ---------- */
.museum-cta { background: var(--ivory-deep); padding: 4rem 0; overflow: hidden; }
@media (min-width: 900px) { .museum-cta { padding: 6rem 0; } }
.mcta { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .mcta { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.museum-cta .eyebrow { color: var(--green-light); }
.museum-cta .h-section { color: var(--green-dark); }
.museum-cta .h-section em { color: var(--green-mid); }
.museum-cta .lede { margin: 1.1rem 0 1.8rem; }
/* the wall: paintings and the visitor are side by side, so the visitor never covers a painting */
/* A small copy of the real portfolio: green wall with ceiling light, dark wooden frames,
   a cream-on-green wall label, a visitor, and the oak floor */
.mcta-wall {
  --floor: 24%;
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.7rem, 2vw, 1.4rem);
  padding: 2.4rem clamp(1rem, 3vw, 2.2rem) 0; text-decoration: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 45% 0%, rgba(255, 250, 240, 0.13), transparent 72%),
    linear-gradient(to bottom, #3f4c3e 0, #364235 55%, #2e392e 100%);
  box-shadow: 0 24px 50px -30px rgba(30, 40, 30, 0.6);
}
/* oak floor and the dark skirting board */
.mcta-wall::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor); z-index: 0;
  background:
    linear-gradient(to bottom, #242d24 0, #242d24 5px, rgba(0,0,0,0.3) 5px, rgba(0,0,0,0) 30%),
    linear-gradient(to bottom, rgba(30,20,12,0.05), rgba(30,20,12,0.32)),
    url("../images/general/floor-oak.jpg?v=5") 0 0 / auto 100% repeat-x;
}
.mcta-frames { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.4rem); margin-bottom: calc(var(--floor) + 1.6rem); }
.mcta-frame { display: block; padding: clamp(4px, 0.7vw, 7px);
  background: linear-gradient(180deg, #4a3728, #33261c);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.mcta-frame img { display: block; height: clamp(90px, 12vw, 165px); width: auto; max-width: none; }
.mcta-label {
  align-self: center; display: grid; gap: 0.25rem; padding: 0.7rem 0.8rem; min-width: 0;
  background: rgba(20, 28, 20, 0.28); border: 1px solid rgba(239,232,218,0.28);
  color: #efe8da; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.mcta-label b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; letter-spacing: 0.02em; text-transform: none; }
.mcta-label i { font-style: normal; opacity: 0.72; letter-spacing: 0.08em; text-transform: none; font-size: 0.7rem; }
.mcta-visitor { position: relative; z-index: 1; height: clamp(150px, 21vw, 270px); width: auto; flex: none; opacity: 0.9; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); margin-bottom: calc(var(--floor) * 0.35); }
@media (max-width: 599px) { .mcta-label { display: none; } }
@media (max-width: 479px) { .mcta-wall { padding-inline: 0.6rem; } .mcta-frame img { height: 72px; } .mcta-visitor { height: 120px; } }

/* Japper studio logo beside the title (above it on phones) */
.hero-content { display: grid; gap: 1.5rem; }
.hero-logo-pic { display: contents; }   /* the <picture> around the logo must not change the layout */
.hero-logo { order: -1; width: clamp(130px, 36vw, 180px); margin-block: 0; height: auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.25)); animation: fadeUp 0.8s 0.1s both; }
@media (min-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
  .hero-logo { order: 0; width: clamp(260px, 28vw, 400px); margin-block: 0; }
}

/* Japper studio logo in the footer */
.footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-logo img { width: 36px; height: 36px; flex: none; }

/* ---------- Instagram carousel ---------- */
.ig-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.ig-gate p { flex: 1 1 28ch; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.ig-carousel { position: relative; }
.ig-track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding: 0.5rem 0.25rem 1.25rem; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--green-pale) transparent;
}
.ig-slide { flex: 0 0 min(360px, 86%); min-width: 326px; scroll-snap-align: start; }
.ig-slide .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
.ig-slide blockquote.instagram-media { background: var(--white); border: 1px solid var(--line); padding: 2rem 1rem; text-align: center; min-height: 420px; display: grid; place-items: center; }
.ig-nav {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer; background: var(--white); color: var(--green-dark); border: 1px solid var(--line);
  box-shadow: 0 6px 16px -8px rgba(42, 37, 32, 0.4);
}
.ig-nav:hover { background: var(--green-dark); color: var(--ivory); }
.ig-nav svg { width: 20px; height: 20px; }
.ig-nav.prev { left: -0.5rem; }
.ig-nav.next { right: -0.5rem; }
@media (min-width: 760px) { .ig-nav { display: grid; } .ig-nav.prev { left: -1.4rem; } .ig-nav.next { right: -1.4rem; } }
.ig-profile { margin-top: 2rem; display: flex; justify-content: center; }
.ig-btn { gap: 0.7rem; padding-inline: 1.6rem; min-height: 54px; font-size: 0.9rem; }
.ig-btn svg { width: 20px; height: 20px; flex: none; }
.ig-btn .ig-handle { opacity: 0.75; text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 479px) { .ig-btn { width: 100%; justify-content: center; } }

/* Contact: Laura's name beside her photo */
.contact-person { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.contact-person .avatar { margin-bottom: 0; flex: none; }
.contact-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--green-dark); display: grid; gap: 0.2rem; }
.contact-name span { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-light); }

/* Language button: just the flag and the word, no box around it */
.lang-btn, .lang-btn:hover,
.site-nav.on-hero:not(.scrolled):not(.menu-open) .lang-btn { border: 0; background: transparent; padding-inline: 0.4rem; }
.lang-btn:hover .lang-long, .lang-btn:hover .lang-short { text-decoration: underline; text-underline-offset: 4px; }
.lang-btn .flag { box-shadow: none; border-radius: 2px; }

/* ---------- Front section: whitish light yellow, dark text ---------- */
.hero-bg { background: linear-gradient(165deg, #fffdf6 0%, #fbf5e2 50%, #f5ebcd 100%); }
.hero::before { background: none; }
.hero .eyebrow { color: var(--green-light); }
.hero-title { color: #3f5440; }
.hero-title em { color: #6a8660; }
.hero-sub { color: var(--text-muted); }
.hero-price { color: var(--text-muted); }
.hero-actions .btn.light { background: var(--green-dark); color: var(--ivory); border-color: var(--green-dark); }
.hero-actions .btn.light:hover { background: var(--green-mid); border-color: var(--green-mid); }
.hero-actions .btn.line { color: var(--green-dark); border-color: var(--green-dark); }
.hero-actions .btn.line:hover { background: var(--green-dark); color: var(--ivory); }
.hero-logo { filter: drop-shadow(0 10px 22px rgba(120, 100, 60, 0.14)); }
/* the menu over the light top section uses dark text too */
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-logo,
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-links a,
.site-nav.on-hero:not(.scrolled):not(.menu-open) .lang-btn { color: var(--green-dark); }
.site-nav.on-hero:not(.scrolled):not(.menu-open) .nav-toggle span { background: var(--green-dark); }

/* Pictures can't be dragged out, selected or long-press saved (see "Protect the pictures" in js/site.js) */
img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Phones: no logo in the top section, and pictures don't open larger (they already fill the screen) */
@media (max-width: 699px) {
  .hero-logo { display: none; }
  .print-card .frame-btn, .sketch-card { cursor: default; }
}

/* ---------- White flowers: photo behind the quote (taken by Laura) ---------- */
.pull-quote.has-photo { position: relative; overflow: hidden; isolation: isolate; background: #1f2a1f; padding: 5rem 0; }
@media (min-width: 900px) { .pull-quote.has-photo { padding: 8rem 0; } }
.pull-quote .pq-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pull-quote.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(24, 34, 24, 0.72) 0%, rgba(24, 34, 24, 0.5) 60%, rgba(24, 34, 24, 0.35) 100%); }
.pull-quote.has-photo blockquote { color: #fbf7ec; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.pull-quote.has-photo cite { color: #f1dc9a; }

.pull-quote .pq-credit { position: absolute; right: 1rem; bottom: 0.8rem; margin: 0; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(251, 247, 236, 0.75); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* ---------- Back to top: a hand-drawn arrow on a light green, slightly uneven "painted" disc.
   Appears from "Hej, jeg hedder Laura". No visible text; the aria-label names it for screen readers. ---------- */
.to-top {
  position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 54% 46% 52% 48% / 47% 55% 45% 53%;
  background: var(--green-pale); color: var(--green-dark); text-decoration: none;
  box-shadow: 0 4px 16px rgba(45, 61, 46, 0.18), inset 0 0 0 1px rgba(74, 103, 65, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(12px) rotate(-4deg);
  transition: opacity 0.3s, transform 0.35s, visibility 0.3s, background 0.2s, border-radius 0.6s;
}
.to-top.show { opacity: 1; visibility: visible; transform: rotate(-4deg); }
.to-top:hover { background: #b6cda3; border-radius: 47% 53% 46% 54% / 54% 46% 55% 45%; }
.to-top:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }
.to-top svg { width: 44px; height: 44px; overflow: visible; }
.to-top svg .stem, .to-top svg .head, .to-top svg .leaf { transition: transform 0.35s ease; }
.to-top:hover svg .head, .to-top:hover svg .stem { transform: translateY(-2px); }
.to-top:hover svg .leaf { transform: translateY(-2px) rotate(-6deg); transform-origin: 16.6px 21.6px; }
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top svg * { transition: opacity 0.2s, visibility 0.2s; }
}

/* ---------- Section headings: a hand-drawn vine underneath (added by js/site.js) ---------- */
.vine { display: block; width: clamp(150px, 42vw, 230px); margin: 0.35rem 0 1rem; transform: rotate(var(--tilt, 0deg)); transform-origin: left center; pointer-events: none; }
/* In .sec-head the grid gap already gives space above; inside the inner div it does not */
.sec-head > .vine { margin: -0.6rem 0 0; }
.sec-head > div > .vine { margin: 0.35rem 0 0; }
.vine.center { margin-inline: auto; transform-origin: center; }
.vine svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Painted look: slightly rough, bristly edges (filter is added once to the page by js/site.js) */
.vine .v-art { filter: url(#vine-paint); }
/* Lines (stems, twigs, ground) are drawn in by the brush: js/site.js sets the dash offset.
   Hidden until their turn, or the round cap shows up as a dot. */
.vine .v-line, .vine .v-tendril {
  fill: none; stroke: var(--green-mid); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.vine .v-line.go { opacity: 1; }
/* A thin, lighter streak beside the stem, like a dry edge of the brush */
.vine .v-streak { stroke: var(--green-light); stroke-width: 0.8; }
.vine .v-streak.go { opacity: 0.75; }
.vine .v-tendril { stroke-width: 1.2; transition: stroke-dashoffset 0.7s ease-out; }
/* Everything else appears when the brush reaches it (.on is set by paintVine in js/site.js) */
.vine .v-leaf, .vine .v-grow, .vine .v-pop {
  transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
  transition: transform 0.4s cubic-bezier(.2, .8, .3, 1), opacity 0.25s ease-out;
}
.vine .v-leaf { transform-origin: left center; transform: scale(0, 0.4); transition-duration: 0.5s, 0.3s; }  /* swiped out from the stem */
.vine .v-grow { transform-origin: 50% 100%; transform: scale(0.5, 0); }                                     /* petals, ginkgo: pulled out from the base */
.vine .on { transform: scale(1); opacity: 1; }
.vine .v-tendril.on { stroke-dashoffset: 0; }
.vine .v-flower { transform-box: fill-box; transform-origin: center; }
.vine.painted .v-flower { animation: vine-sway 5s ease-in-out 0.6s infinite; }
@keyframes vine-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
/* The little paintbrush that does the painting */
.vine .v-brush { transition: opacity 0.3s; }
.vine .v-brush .handle { stroke: #8b5e3c; stroke-width: 2.6; stroke-linecap: round; }
.vine .v-brush .ferrule { stroke: #c9a74a; stroke-width: 3.2; stroke-linecap: butt; }
.vine .v-brush .bristles { fill: var(--green-mid); transition: fill 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .vine .v-line, .vine .v-tendril { stroke-dashoffset: 0 !important; opacity: 1; transition: none; }
  .vine .v-streak { opacity: 0.75; }
  .vine .v-leaf, .vine .v-grow, .vine .v-pop { transform: none; opacity: 1; transition: none; }
  .vine .v-brush { display: none; }
  .vine.painted .v-flower { animation: none; }
}
