/* ————— EdelVærk ————— */

/* The fonts are kept with the site (public/fonts, free under the SIL Open Font License):
   Bodoni Moda for headings, the high-contrast letters of jewellers and fashion houses,
   and Instrument Sans for everything else. No visitor is sent to Google for them. */
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ivory: #f5f0e8;
  --paper: #fbf8f3;
  --sand: #e9e1d4;
  --ink: #1c1a17;
  /* Warm greige behind the pictures of the pieces. */
  --greige: #d9cec5;
  --ink-soft: #4a453e;
  --muted: #6b6357; /* 5.2:1 on ivory (WCAG AA) */
  --gold: #a4824a;
  --gold-deep: #73592f; /* 5.8:1 on ivory (WCAG AA) */
  --line: rgba(28, 26, 23, 0.14);
  --serif: 'Bodoni Moda', Didot, 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 72px);
  --max: 1560px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Bodoni Moda can draw its thin strokes finer the larger the letters; on a screen the
     finest ones break up, so the letters keep the sturdier small-size drawing. */
  font-optical-sizing: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ——— Accessibility ——— */

/* Clear focus ring for keyboard users (WCAG 2.4.7). */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.section--dark :focus-visible, .footer :focus-visible, .announce :focus-visible, .hero__art :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; }

/* "Skip to content" link, visible when it receives keyboard focus (WCAG 2.4.1). */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.8rem 1.2rem; font-size: 13px; letter-spacing: 0.08em;
}
.skip-link:focus { top: 12px; }

/* ——— Type ——— */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.6rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1, h2, .philosophy__quote, .countdown__num { font-variation-settings: 'opsz' 18; }
h1 { font-size: clamp(2.9rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.005em; line-height: 1.15; }

em { font-style: italic; color: var(--gold-deep); }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: transparent; color: var(--paper); border-color: rgba(251, 248, 243, 0.6); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease);
}
.link:hover { color: var(--gold-deep); }

/* ——— Announcement + header ——— */

.announce {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65rem var(--gutter);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
}

.nav { display: flex; gap: 2.4rem; }
.nav a, .header__actions button, .header__actions a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
}
.logo--mark { display: flex; align-items: center; gap: 0.7rem; }
.logo__mark { height: 52px; flex: none; }
.logo__text { display: block; }
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
  color: var(--muted);
}

.header__actions { display: flex; justify-content: flex-end; gap: clamp(0.9rem, 2vw, 2rem); align-items: center; }
.header__actions button { background: none; border: 0; padding: 0; }
.header__actions .lang-switch {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 4px 7px 4px 9px;
  border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
}
.header__actions .lang-switch:hover { border-color: var(--ink); }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0;
}
.bag-count[data-empty='true'] { background: transparent; color: inherit; border: 1px solid var(--line); }

.bag-toggle { display: inline-flex; align-items: center; }
.bag-icon { display: none; }
@media (max-width: 860px) {
  .bag-label { display: none; }
  .bag-icon { display: block; }
  .bag-count { margin-left: 4px; }
}
.header__actions .search-toggle { display: inline-flex; align-items: center; background: none; border: 0; padding: 8px; margin: -8px 0; color: inherit; }
.search-toggle:hover { color: var(--gold-deep); }

/* Compact drop-down under the search icon, aligned with the right edge of the page content. */
.search-panel {
  position: absolute; top: calc(100% + 6px);
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(28, 26, 23, 0.1);
  padding: 0.9rem 1.1rem 1rem;
}
.search-panel .wrap { padding: 0; }
.search-form { display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; padding: 0.45rem 0; color: var(--ink); outline: none; }
.search-form:focus-within { border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); }
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-close { background: none; border: 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); padding: 0; }
.search-close:hover { color: var(--ink); }
.search-results { margin-top: 0.3rem; }
.search-results:empty { display: none; }
.search-hit { display: grid; grid-template-columns: 52px 1fr auto; gap: 0.85rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.search-hit:hover strong { color: var(--gold-deep); }
.search-hit__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.search-hit__media .art, .search-hit__media img { width: 100%; height: 100%; object-fit: cover; }
.search-hit__text { display: flex; flex-direction: column; }
.search-hit__text strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.2; transition: color 0.3s; }
.search-hit__text span { font-size: 12px; color: var(--muted); }
.search-hit__price { font-size: 12.5px; letter-spacing: 0.06em; white-space: nowrap; }
.search-all { margin-top: 0.9rem; }
.search-none { color: var(--muted); margin: 0.8rem 0 0; font-size: 14px; }
.search-note { text-align: center; color: var(--ink-soft); margin: -1.5rem 0 2.5rem; }
.search-note a { border-bottom: 1px solid var(--line); }
.search-note a:hover { border-color: var(--gold); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px 6px; margin-left: -6px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 6px 0; transition: transform 0.3s var(--ease); }

/* ——— Hero ———
   Large type on the left, and on the right the star fort of Gamlebyen drawing itself in
   thin gold lines, with the dot where the shop is. A photo chosen under «Bytt bilde»
   takes the fort's place. */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(4rem, 7vw, 6rem);
}
.hero__text { display: flex; flex-direction: column; justify-content: center; }
.hero__text h1 { font-size: clamp(3rem, 7.6vw, 7.8rem); line-height: 0.96; letter-spacing: -0.025em; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.hero__text .lede { max-width: 27em; margin: 0 0 2.6rem; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__art { position: relative; overflow: hidden; background: #16140f; }
.hero__art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art--fort { background: none; overflow: visible; align-self: stretch; display: grid; align-items: center; }
.hero__art--fort[data-img-set] { overflow: hidden; }

.fort { margin: 0; color: var(--gold-deep); }
.fort svg { width: 100%; height: auto; overflow: visible; }
.fort svg path, .fort svg circle { vector-effect: non-scaling-stroke; }
.fort__dot { fill: var(--ink); }
.fort figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.2rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.fort figcaption span:last-child::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 0.6em; border-radius: 50%; background: var(--ink); vertical-align: 0.05em; }
/* The lines draw themselves in, the outer works first, then the walls, the streets and the dot. */
.fort .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 3.2s var(--ease) forwards; }
.fort .draw--2 { animation-delay: 0.5s; }
.fort .draw--3 { animation-delay: 1s; animation-duration: 2.6s; }
.fort .draw--4 { animation-delay: 1.6s; animation-duration: 2.4s; }
.fort .fort__mark { opacity: 0; animation: fade-in 1s var(--ease) 2.8s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fort .draw { stroke-dasharray: none; animation: none; }
  .fort .fort__mark { opacity: 1; animation: none; }
}

/* Emphasis that looks like the text around it (used for «Edel» and «Værk»). */
em.plain { font-style: normal; color: inherit; }

/* ——— Logo and vignette ———
   The image files are kept exactly as delivered. They have transparent space around
   the motif; .brandimg shows only the motif by placing the whole image inside a box
   with the motif's proportions (logo: 1810×770 at 40,323; vignette: 1255×771 at
   317,323, in a 1890×1417 canvas). */
.brandimg { position: relative; display: block; overflow: hidden; }
.brandimg img { position: absolute; max-width: none; height: auto; }
.brandimg--logo { aspect-ratio: 1810 / 770; }
.brandimg--logo img { width: 104.42%; left: -2.21%; top: -41.95%; }
.brandimg--mark { aspect-ratio: 1255 / 771; }
.brandimg--mark img { width: 150.6%; left: -25.26%; top: -41.89%; }
.split__media.split__media--mark { background: var(--paper); display: grid; place-items: center; padding: clamp(2rem, 6vw, 5rem); }
.split__media--mark .brandimg { width: min(80%, 420px); }
/* A page image chosen under «Bytt bilde»: a photo fills the place, a picture with
   transparent background (PNG) is shown whole. */
[data-img-set] { position: relative; }
[data-img-set='fyll'] { padding: 0 !important; min-height: 420px; }
[data-img-set='fyll'] .slot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-img-set='hele'] .slot-photo { width: min(100%, 600px); height: auto; max-height: 80vh; object-fit: contain; }
.hero__caption {
  position: absolute;
  left: 2rem; bottom: 2rem;
  color: rgba(245, 240, 232, 0.8);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ——— Sections ——— */

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section--paper { background: var(--paper); }
/* «Fra butikken» under a piece: a shorter way down to it */
.product + .section { padding-top: clamp(3.5rem, 7vw, 6rem); }
/* Where one part of the page meets the next: the edge of a ruler, ticks hanging down */
.section + .section, .footer { position: relative; }
.section + .section::after, .footer::after {
  content: ''; position: absolute; top: 0; pointer-events: none;
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  height: 10px;
  --tick: rgba(28, 26, 23, 0.16);
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10px) left top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 50px) left top / 100% 10px no-repeat;
}
.section.section--dark::after, .footer::after { --tick: rgba(233, 225, 212, 0.2); }
.section--dark { background: var(--ink); color: var(--sand); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark em { color: #c9a86e; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.section__head--center { flex-direction: column; align-items: flex-start; text-align: left; }
.contact .section__head--center { align-items: center; text-align: center; }

.rule {
  /* A goldsmith's ruler: a base line with millimetre ticks, every fifth one longer */
  width: 61px; height: 9px;
  border: 0;
  margin: 2.2rem 0;
  background:
    linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 6px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 30px) left bottom / 100% 9px no-repeat;
}

/* ——— Philosophy ——— */

.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.philosophy__quote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.philosophy p { color: var(--ink-soft); margin: 0 0 1.4rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); }

/* ——— Product grid ——— */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.8rem);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Fewer than four pieces chosen for the home page: the heading takes the empty places
   in the row, so the pieces stand beside it instead of leaving a gap. (main.js sets
   data-count; counting with :has() is not updated reliably in Safari.) */
@media (min-width: 1101px) {
  .wrap:is([data-count='1'], [data-count='2'], [data-count='3']) {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.8rem); align-items: start;
  }
  .wrap:is([data-count='1'], [data-count='2'], [data-count='3']) > [data-featured] { display: contents; }
  .wrap:is([data-count='1'], [data-count='2'], [data-count='3']) > .section__head {
    flex-direction: column; align-items: flex-start; gap: 2.4rem; margin: 0; padding-right: 2rem;
  }
  .wrap[data-count='1'] > .section__head { grid-column: 1 / span 3; }
  .wrap[data-count='2'] > .section__head { grid-column: 1 / span 2; }
  .wrap[data-count='3'] > .section__head { grid-column: 1 / span 1; }
}

.ledger > div { border-top: 1px solid var(--ink); padding-top: 1.6rem; }
.ledger h3 { font-size: 1.5rem; }
.ledger p { font-size: 14.5px; margin: 0; }

.card { display: block; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--greige);
}
.card__media .art, .card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media .art, .card:hover .card__media img { transform: scale(1.02); }
/* With more than one photo, the second shows when hovering the card. */
.card__media .card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.card:hover .card__media .card__alt { opacity: 1; }
@media (hover: none) { .card__media .card__alt { display: none; } }
.card__body {
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "stamp name price" "stamp meta meta";
  gap: 0.15rem 0.9rem;
  align-items: baseline;
}
.card__body--plain { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "meta meta"; }
.card__body .stamp { grid-area: stamp; align-self: start; margin-top: 0.1rem; }
.card__name { grid-area: name; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.card__meta { grid-area: meta; font-size: 12.5px; color: var(--muted); }
.card__price { grid-area: price; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* Sold pieces stay visible, softened, with «Solgt» in place of the price. */
.card--sold .card__media img { opacity: 0.55; }
/* Empty image on a sold piece: a light veil over the tone, «Bilde kommer» stays readable. */
.card--sold .art--empty::after { content: ""; position: absolute; inset: 0; background: rgba(245, 240, 232, 0.5); }
.sold-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
/* Hallmark stamp: the oval mark with the metal's fineness (925, 585, 750). */
.stamp {
  flex: none;
  align-self: center;
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-variant: small-caps;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
  padding: 0.32rem 0.6rem 0.36rem;
}

/* ——— Reviews ——— */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.6rem); }
.review { margin: 0; padding: 2.2rem 2rem; background: var(--ivory); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.2rem; }
.review__stars { color: var(--gold); letter-spacing: 0.2em; font-size: 14px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; flex: 1; }
.review figcaption { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ——— Craft ——— */

.craft { border-top: 1px solid rgba(233, 225, 212, 0.22); }
.craft__item {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: 0.6rem clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid rgba(233, 225, 212, 0.22);
}
.craft__num { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); font-style: italic; }
.craft__item h3 { margin: 0; color: var(--paper); font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.craft__item p { color: rgba(233, 225, 212, 0.72); margin: 0; font-size: 15px; max-width: 34em; }

/* ——— Split feature ——— */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split__media { position: relative; overflow: hidden; background: var(--sand); min-height: 420px; }
.split__media .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.split__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vw, 8rem);
  background: var(--paper);
}
.split__text p { color: var(--ink-soft); max-width: 30em; }
.split__text h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }

/* ——— Atelier / contact ——— */

.atelier { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.atelier dl { position: relative; justify-self: center; margin: 0; display: grid; gap: 1.8rem; align-content: center; }
.atelier dt { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.atelier dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.atelier dd a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.atelier dd a:hover { border-color: var(--gold); }
.section--dark .atelier dt { color: rgba(233, 225, 212, 0.62); }
.section--dark .atelier dd { color: var(--paper); }
.section--dark .atelier dd a:hover { border-bottom-color: var(--gold); }

/* ——— Image placeholder («Bilde kommer») ——— */

.art--empty {
  --tone: var(--sand);
  --frame: rgba(28, 26, 23, 0.1);
  position: relative;
  display: block;
  width: 100%; height: 100%;
  background: var(--tone);
}
.art--empty::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--frame);
  transition: inset 0.5s var(--ease);
}
.art__sketch {
  position: absolute; left: 50%; top: 46%;
  width: 64%; max-width: 320px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--gold-deep); opacity: 0.45;
}
.art--dark .art__sketch { color: var(--sand); opacity: 0.32; }
.art__sketch * { vector-effect: non-scaling-stroke; }
.art__caption {
  position: absolute;
  left: 0; right: 0; bottom: 1.3rem;
  padding-inline: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f584d; /* 5:1 or more on every tone (WCAG AA) */
  z-index: 1;
}
.art--dark { --tone: #24211c; --frame: rgba(233, 225, 212, 0.18); }
.art--dark .art__caption { color: rgba(233, 225, 212, 0.75); }
.card:hover .art--empty::before { inset: 16px; }
/* Small thumbnails (search, bag): a thinner frame and a small caption in the middle. */
.search-hit__media .art--empty::before, .line__media .art--empty::before { inset: 4px; }
.search-hit__media .art__caption, .line__media .art__caption {
  top: 50%; bottom: auto; transform: translateY(-50%);
  padding-inline: 6px;
  font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.12em; line-height: 1.35;
}

/* Gift box under a piece in the bag. */
.line__box { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.line__box input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }

/* ——— Contact form ——— */

/* Anchored sections start right below the sticky header, tucked 1px under it so no dark seam shows. */
section[id] { scroll-margin-top: 84px; }
@media (max-width: 860px) { section[id] { scroll-margin-top: 68px; } }


.contact { max-width: 720px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.contact-form label { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form__wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none;
  color: var(--ink); padding: 0.75rem 0.85rem; border: 1px solid var(--line); background: var(--ivory);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--ink); }
.contact-form [aria-invalid='true'] { border-color: #9b3b2b; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.contact-form__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; color: var(--ink-soft); }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ——— Footer ——— */

.footer { background: var(--ink); color: rgba(233, 225, 212, 0.7); padding: 5rem 0 2.5rem; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer .logo { color: var(--paper); display: inline-block; }
.footer__logo { display: block; width: min(100%, 300px); }
/* The logo, light on the dark footer. */
.footer__logo img { filter: invert(1) sepia(0.25) brightness(0.92); }
.footer .footer__title { font-family: var(--sans); line-height: 1.4; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin: 0 0 1.4rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer a:hover { color: var(--paper); }
.social { margin-top: 2.4rem; }
.social a { display: inline-flex; align-items: center; gap: 0.7rem; transition: color 0.3s; }
.social svg { flex: none; color: var(--gold); }
.social small { font-size: 12px; color: rgba(233, 225, 212, 0.62); margin-left: 0.2rem; }
.footer__org { white-space: nowrap; }
.footer__org::before { content: '·'; margin: 0 0.6em; }
@media (max-width: 520px) {
  .footer__org { display: block; }
  .footer__org::before { content: none; }
}
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 4.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(233, 225, 212, 0.14);
  font-size: 12px; letter-spacing: 0.08em;
}

/* ——— The star fort of Gamlebyen, drawn in thin lines ———
   Behind the address («Se smykkene i virkeligheten», «Kom og hils på»), with the
   address standing in the middle of it, and, fainter, in the footer. The dot by the
   river is Færgeporten, where the shop is. */
.atelier, .footer { position: relative; isolation: isolate; }
.footer, .section:has(> .atelier) { overflow: hidden; }
.atelier dl::before, .footer::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  aspect-ratio: 649 / 679;
  background: var(--gold);
  -webkit-mask: url('/images/festning.svg') center / contain no-repeat;
  mask: url('/images/festning.svg') center / contain no-repeat;
}
.atelier dl::before { width: min(620px, 48vw); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.2; }
.section--dark .atelier dl::before { background: var(--sand); opacity: 0.1; }
.footer::before { width: 620px; right: -140px; top: -60px; background: var(--sand); opacity: 0.05; }
@media (max-width: 860px) {
  .atelier dl { padding: 3.5rem 0 1rem; }
  .atelier dl::before { width: min(115vw, 520px); opacity: 0.14; }
  .footer::before { width: 520px; right: -260px; top: auto; bottom: -80px; }
}

/* ——— Shop page ——— */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0 clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3.25rem);
}
.page-head .eyebrow { grid-column: 1 / -1; }
.page-head h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.98; }
.page-head .lede { max-width: 26em; margin: 0 0 0.6rem; }

.filters {
  display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem 2.2rem;
  padding: 1.4rem 0; margin-bottom: 3.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filters button {
  background: none; border: 0; padding: 0.3rem 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--gold); }
.dept-tabs { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0.5rem clamp(1.5rem, 4vw, 3rem); margin-bottom: 1.6rem; }
.dept-tabs button {
  background: none; border: 0; padding: 0.3rem 0 0.4rem;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--muted);
  border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.dept-tabs button:hover { color: var(--ink); }
.dept-tabs button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--gold); }
.filters[hidden] { display: none; }
.coming-soon { grid-column: 1 / -1; text-align: left; padding: clamp(2rem, 6vw, 4rem) 0; }
.coming-soon .lede { max-width: 30em; margin: 0; }
.product__artist { margin: -1rem 0 1.6rem; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.product__artist a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color 0.3s; }
.product__artist a:hover { border-color: var(--gold); }

.notice {
  text-align: center; padding: 1rem var(--gutter);
  background: var(--sand); font-size: 14px; color: var(--ink-soft);
}

/* ——— Terms of sale and privacy (kjopsvilkar.html, personvern.html) ——— */

.legal { padding-bottom: clamp(5rem, 9vw, 8rem); }

/* ——— Samarbeidspartnere ——— */
.partners { padding-bottom: clamp(5rem, 9vw, 8rem); }
.partners__group + .partners__group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.partners__group h2 { margin: 0 0 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--ink); font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.2rem; }
.partner > a, .partner > div { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease); }
.partner > a:hover, .partner > a:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.partner__logo { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.6rem; background: #fff; border-bottom: 1px solid var(--line); }
.partner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner__word { font-family: var(--serif); font-size: 1.6rem; text-align: center; line-height: 1.15; color: var(--ink); }
.partner__body { display: grid; align-content: start; gap: 0.45rem; padding: 1.1rem 1.2rem 1.3rem; }
.partner__body strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.partner__body > span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.partner__body .partner__go { margin-top: 0.3rem; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.partners__none { padding: 2rem 0 0; color: var(--muted); }
.partners__ask { margin-top: clamp(3.5rem, 7vw, 5rem); padding: clamp(1.8rem, 4vw, 2.6rem); background: var(--paper); border: 1px solid var(--line); max-width: 46rem; }
.partners__ask h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.partners__ask p { margin: 0 0 1rem; color: var(--ink-soft); }
.partners__ask p:last-child { margin: 1.4rem 0 0; }
.legal__part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal__part h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.legal__text { max-width: 42em; }
.legal__text p, .legal__text li { color: var(--ink-soft); }
.legal__text p { margin: 0 0 1rem; }
.legal__text p:last-child { margin-bottom: 0; }
.legal__text ul { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.legal__text a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal__text a:hover { border-color: var(--gold); }
.legal__seller { margin: 0 0 1.6rem; border-top: 1px solid var(--line); }
.legal__seller > div { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 2.5fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.legal__seller dt { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal__seller dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; }
.legal__seller dd a { color: inherit; }
.legal__date { margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .legal__part { grid-template-columns: 1fr; }
  .legal__seller > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ——— Product page ——— */

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 6.5rem); align-items: start; padding-top: clamp(1.5rem, 3vw, 2.75rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.product > * { min-width: 0; }
/* The photo takes the larger part, the whole width of its column; the text beside it stays
   in view while scrolling. More photos stand as a column of thumbnails to its left. */
.product__gallery { display: grid; gap: 0.8rem; align-content: start; }
.product__media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 861px) {
  .product__gallery:has(.product__thumbs) { grid-template-columns: 76px minmax(0, 1fr); column-gap: 1rem; }
  .product__gallery:has(.product__thumbs) .product__media { grid-column: 2; grid-row: 1; }
  .product__gallery:has(.product__thumbs) .product__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; flex-wrap: nowrap; align-self: start; }
  .product__gallery:has(.product__thumbs) .product__thumb { width: 76px; }
  .product__gallery:has(.product__thumbs) .product__videos { grid-column: 2; }
  /* The text stays in view beside the photos. */
  .product__info { position: sticky; top: 104px; max-width: 36rem; }
}
.product__thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); background: var(--sand); cursor: pointer; overflow: hidden; opacity: 0.7; transition: opacity 0.25s, border-color 0.25s; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__thumb:hover { opacity: 1; }
.product__thumb[aria-pressed='true'] { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product__media .art, .product__media img { width: 100%; height: 100%; object-fit: cover; }
/* Videos of the piece, under the photos. */
.product__videos { display: grid; gap: 0.8rem; margin-top: 0.4rem; }
.product__video { margin: 0; }
.product__video video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--greige); }
.product__video figcaption { margin-top: 0.45rem; font-size: 12.5px; color: var(--muted); }
.product__info { padding-top: 0.4rem; }
.crumbs { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem); }
.crumbs a:hover { color: var(--ink); }
.product__info h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); line-height: 0.98; }
.product__type { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); margin: 0.5rem 0 1.6rem; }
.product__stamp { display: flex; align-items: center; gap: 0.8rem; margin: -0.6rem 0 1.6rem; font-size: 13px; color: var(--ink-soft); }
.product__price { font-size: 1.1rem; font-variant-numeric: tabular-nums; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.product__desc { color: var(--ink-soft); margin-bottom: 2.4rem; }

.sizes { margin-bottom: 2rem; }
.sizes__label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.3rem 1rem; }
.sizes__label span { color: var(--muted); letter-spacing: 0.1em; text-transform: none; font-size: 12.5px; }
.sizes__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sizes__opts button {
  width: 52px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  font-size: 13px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.sizes__opts button:hover { border-color: var(--ink); }
.sizes__opts button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sizes__error { color: #9b3b2b; font-size: 13px; margin-top: 0.6rem; min-height: 1.2em; }

.product__add { width: 100%; }
.product__add:disabled { background: transparent; color: var(--ink-soft); border-color: var(--line); cursor: not-allowed; }
.product__status { margin: 1rem 0 0; font-size: 14px; color: var(--ink-soft); }
.product__status a { color: var(--ink); border-bottom: 1px solid var(--line); }
.assurances { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 0.6rem; font-size: 13.5px; color: var(--ink-soft); }
.assurances li::before { content: ''; display: inline-block; width: 14px; height: 1px; background: var(--gold); vertical-align: 0.3em; margin-right: 0.8rem; }

.accordion { margin-top: 3rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 16px; line-height: 1; transition: transform 0.3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 1.5rem; color: var(--ink-soft); font-size: 15px; }
.accordion ul { margin: 0; padding-left: 1.1rem; }

/* ——— Bag drawer ——— */

.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(28, 26, 23, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100vw);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
body.bag-open .scrim { opacity: 1; pointer-events: auto; }
body.bag-open .drawer { transform: none; }
body.bag-open { overflow: hidden; }

.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 2rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.7rem; }
.drawer__close { background: none; border: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.drawer__items { flex: 1; overflow-y: auto; padding: 0.5rem 2rem; }
.drawer__empty { text-align: center; padding: 4rem 0; color: var(--muted); }
.drawer__empty p { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-soft); margin: 0 0 1.8rem; }

.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.line__media { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.line__media .art, .line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.line__meta { font-size: 12.5px; color: var(--muted); }
.line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 13.5px; }
.line__remove { background: none; border: 0; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 0; }
.line__remove:hover { color: var(--ink); }

.drawer__foot { padding: 1.6rem 2rem 2rem; border-top: 1px solid var(--line); }
.ship-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.2rem; }
.ship-choice button {
  display: flex; flex-direction: column; gap: 0.15rem; align-items: flex-start;
  text-align: left; padding: 0.75rem 0.9rem;
  background: transparent; border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.ship-choice button:hover { border-color: var(--ink); }
.ship-choice button[aria-checked='true'] { border-color: var(--ink); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.ship-choice strong { font-weight: 400; font-size: 13.5px; }
.ship-choice__note { font-size: 11.5px; color: var(--muted); }
.reserve-fields[hidden] { display: none; }
.reserve-email { grid-column: 1 / -1; }
.reserve-fields .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reserve-manual[hidden] { display: none; }
.reserve-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.2rem; }
.reserve-fields label { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.reserve-fields input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--ink); padding: 0.6rem 0.7rem; border: 1px solid var(--line); background: var(--paper); }
.reserve-fields input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--ink); }
.reserve-done { padding: 1.6rem 2rem 2rem; border-top: 1px solid var(--line); }
.reserve-done[hidden] { display: none; }
.drawer__items:empty { flex: 0; padding: 0; }
.drawer__items:empty + .drawer__foot[hidden] + .reserve-done { border-top: 0; padding-top: 2.4rem; }
.reserve-done p { margin: 0 0 1rem; color: var(--ink-soft); }
/* The pickup code after reserving: shown in the shop when collecting */
.reserve-code { margin: 0 0 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--sand, #f1ebe1); text-align: center; }
.reserve-code[hidden] { display: none; }
.reserve-done .reserve-code p { margin: 0; }
.reserve-done .reserve-code__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.reserve-done .reserve-code__value { margin: 0.35rem 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.2rem; letter-spacing: 0.3em; color: var(--ink); }
.reserve-done .reserve-code__help { font-size: 13px; }
.reserve-text { width: 100%; font: inherit; font-size: 13px; padding: 0.7rem; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); resize: vertical; margin-bottom: 1rem; }
.reserve-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.reserve-actions .link { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 6px; }
@media (max-width: 520px) { .reserve-fields { grid-template-columns: 1fr; } .reserve-done { padding-left: 1.4rem; padding-right: 1.4rem; } }
.drawer__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 0.35rem; }
.drawer__total { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0.8rem 0 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.drawer__total strong { text-transform: none; font-weight: 400; font-size: 15px; letter-spacing: 0.06em; }
.drawer__small { font-size: 12.5px; color: var(--muted); margin: 0 0 1.4rem; }
.drawer__foot .btn { width: 100%; }
.drawer__terms { margin: 0.8rem 0 0; font-size: 12px; color: var(--muted); }
.drawer__terms[hidden] { display: none; }
.drawer__terms a { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.drawer__terms a:hover { border-color: var(--gold); }
.drawer__error { color: #9b3b2b; font-size: 13px; margin-top: 0.8rem; min-height: 1.2em; }
.drawer__notice { margin: 2rem 0 -2rem; text-align: center; color: #9b3b2b; font-size: 14px; }

/* ——— Toast ——— */

.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 80;
  transform: translate(-50%, 150%);
  background: var(--ink); color: var(--paper);
  padding: 0.9rem 1.6rem;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.5s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ——— Confirmation / 404 ——— */

.centered { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 6rem var(--gutter); }
.centered .lede { max-width: 30em; margin: 1.6rem auto 2.8rem; }

/* ——— Reveal on scroll ——— */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ——— Responsive ——— */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__inner { height: 68px; grid-template-columns: auto 1fr auto; }
  .logo { font-size: 1.4rem; }
  .announce { font-size: 9.5px; letter-spacing: 0.1em; }
  .logo small { display: none; }
  .logo--mark { gap: 0.45rem; }
  .logo__mark { height: 38px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header__actions .hide-sm { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; padding-top: 2.5rem; }
  .hero__art--fort { width: min(78%, 340px); justify-self: end; }
  .hero__art--fort[data-img-set] { width: auto; justify-self: stretch; min-height: 100vw; }
  .page-head { grid-template-columns: 1fr; }
  .page-head .lede { margin-top: 1.4rem; }
  .craft__item { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .craft__item p { grid-column: 2; }

  .philosophy, .atelier, .split, .product { grid-template-columns: 1fr; }
  .split { min-height: 0; }
  .split__media { min-height: 90vw; }
  .split__media.split__media--mark { min-height: 0; padding: 3rem var(--gutter); }
  .hero__art[data-img-set='fyll'], .split__media[data-img-set='fyll'] { min-height: 100vw; }
  .product__thumb { width: 60px; }

  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ledger { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 520px) {
  .grid, .grid--3 { gap: 2rem 0.9rem; }
  .card__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stamp" "name" "meta" "price"; gap: 0.3rem; }
  .card__body--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meta" "price"; }
  .card__body .stamp { justify-self: start; font-size: 13px; margin-bottom: 0.2rem; }
  .card__name { font-size: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .drawer__head, .drawer__items, .drawer__foot { padding-left: 1.4rem; padding-right: 1.4rem; }
  .btn { padding: 1rem 1.6rem; }
}

/* ——— Staff login (/ansatt-logg-inn) ——— */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.staff [hidden] { display: none !important; }
/* Logged in in this tab: the login form is never shown while the page loads. */
.is-in .staff__login { display: none !important; }
.staff__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); }
.staff__brand { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.staff__brand em { color: var(--gold-deep); }
.staff__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem; font-size: 13px; color: var(--ink-soft); }
.staff__logout { white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 4px; cursor: pointer; }
.staff__main { max-width: 900px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) 5rem; }
.staff h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 0.6rem; }
.staff .lede { margin: 0 0 2rem; max-width: 36em; font-size: 1.15rem; }

.staff__login { max-width: 380px; display: grid; gap: 0.6rem; }
.staff__login label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.staff__login input, .staff__tools input { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 0.8rem 0.9rem; }
.staff__login .btn { margin-top: 0.8rem; }
.staff__error { color: #9b3b2b; font-size: 14px; min-height: 1.4em; margin: 0; }

.staff__tools { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin-bottom: 1rem; }
.staff__tools input { flex: 1 1 260px; }
.staff__filter { display: flex; gap: 1.2rem; }
.staff__filter button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0.3rem 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.staff__filter button[aria-pressed='true'] { color: var(--ink); border-color: var(--ink); }
.staff__status { min-height: 1.5em; margin: 0 0 0.8rem; font-size: 14px; color: var(--gold-deep); }

.staff__list { list-style: none; margin: 0; padding: 0; }
.staff__item { display: grid; grid-template-columns: minmax(0, 1fr) auto 12rem 13.5rem; gap: 0.6rem 1.4rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.staff__info { display: grid; min-width: 0; }
.staff__info strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.staff__info span { font-size: 13px; color: var(--muted); }
.staff__info .staff__codes { font-size: 12px; letter-spacing: 0.04em; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.staff__price { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff__chip { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.staff__chip--free { color: var(--ink-soft); }
.staff__chip--held { color: #8a4b12; }
.staff__chip--sold { color: var(--gold-deep); }
.staff__item--sold .staff__info strong { color: var(--ink-soft); }
.staff__action .btn { width: 100%; padding: 0.9rem 0.8rem; white-space: nowrap; }
.staff__none { padding: 2rem 0; color: var(--muted); }

/* «Varer» and «Elever og koder» on the staff page */
.staff__views { display: flex; gap: 2rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
.staff__views button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.7rem 0; font: inherit; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.staff__views button[aria-selected='true'] { color: var(--ink); border-color: var(--ink); }
.staff__views button span { color: var(--muted); letter-spacing: 0.06em; }
.makers__intro { margin: 0 0 1.2rem; font-size: 14px; color: var(--muted); max-width: 40em; }
:is(.makers__classes, .staff__depts) { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
:is(.makers__classes, .staff__depts):empty { display: none; }
:is(.makers__classes, .staff__depts) button { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
:is(.makers__classes, .staff__depts) button span { margin-left: 0.25rem; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
:is(.makers__classes, .staff__depts) button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:is(.makers__classes, .staff__depts) button[aria-pressed='true'] span { color: inherit; opacity: 0.7; }
.staff__depts { margin-bottom: 1.2rem; }
.staff__dept h2 { margin: 2.2rem 0 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); font-size: 1.5rem; font-weight: 400; }
.staff__dept:first-child h2 { margin-top: 1rem; }
.staff__dept h2 span { margin-left: 0.3rem; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); vertical-align: middle; }
.mgroup { margin-bottom: 2rem; }
.mgroup h2 { margin: 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); font-size: 1.5rem; font-weight: 400; }
.mgroup h2 span { margin-left: 0.4rem; font-family: var(--sans, inherit); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); vertical-align: middle; }
.mgroup ul { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.mrow__code { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.mrow__main { min-width: 0; }
.mrow__main strong { font-weight: 500; font-size: 15.5px; }
.mrow__main em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 0.3rem; }
.mrow__pieces { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.mrow__pieces button { display: inline-flex; gap: 0.45rem; align-items: baseline; max-width: 100%; background: var(--paper); border: 1px solid var(--line); padding: 0.35rem 0.65rem; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__pieces button b { font-weight: 500; letter-spacing: 0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mrow__pieces button:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 720px) {
  .staff__item { grid-template-columns: minmax(0, 1fr) auto; }
  .staff__chip { grid-column: 1 / -1; }
  .staff__action { grid-column: 1 / -1; }
  .staff__action:empty { display: none; }
}

/* ——— Launch page (lansering.html, en/launch.html) ——— */
.launch { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, var(--paper) 0%, var(--ivory) 65%); }
.launch [hidden] { display: none !important; }
.launch__lang { position: absolute; top: 1.2rem; right: var(--gutter); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.launch__lang:hover { color: var(--ink); border-color: var(--ink); }
.launch__main { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) 3rem; text-align: center; }
.launch__inner { width: min(100%, 860px); display: grid; justify-items: center; }
.launch__logo { width: min(78vw, 400px); margin-bottom: clamp(1.2rem, 4vh, 2.2rem); }
.launch h1 { margin: 0.3rem 0 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; }
.launch__lede { max-width: 32em; margin: 1.2rem auto 0; }
.countdown { margin-top: clamp(2rem, 5vh, 3rem); display: grid; justify-items: center; gap: 1.1rem; width: 100%; }
.launch__date { margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 620px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown__unit { display: grid; gap: 0.45rem; padding: 1.3rem 0.4rem; }
.countdown__unit + .countdown__unit { border-left: 1px solid var(--line); }
.countdown__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 9vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.countdown__label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.countdown__open { margin: 0; font-family: var(--serif); font-size: 1.7rem; }
.countdown__open a { color: var(--gold-deep); text-underline-offset: 4px; }
.launch__info { margin-top: clamp(2.4rem, 6vh, 3.6rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: min(100%, 620px); }
.launch__info p:not(.eyebrow) { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.launch__info .eyebrow { margin-bottom: 0.7rem; }
.launch__info a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.launch__info a:hover { text-decoration-color: var(--ink); }
/* Lines broken evenly, so no word is left alone on a line. */
.launch h1, .launch__lede, .launch__date { text-wrap: balance; }
@media (max-width: 560px) {
  /* On a phone: smaller logo and tighter spacing, so the countdown is on the first screen. */
  .launch__main { padding-top: 3.4rem; padding-bottom: 2.4rem; place-items: start center; }
  .launch__logo { width: min(66vw, 250px); margin-bottom: 0.9rem; }
  .launch h1 { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
  .launch__lede { font-size: 1.02rem; margin-top: 0.8rem; }
  .countdown { margin-top: 1.4rem; gap: 0.8rem; }
  .launch__date { font-size: 11px; letter-spacing: 0.14em; }
  .launch .clock { width: 150px; margin: 0; }
  .countdown__unit { padding: 0.9rem 0.15rem; }
  .countdown__num { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .launch__info { margin-top: 2.2rem; }
  .launch__info { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .countdown__unit { padding: 1rem 0.15rem; }
  .countdown__label { font-size: 9.5px; letter-spacing: 0.14em; }
}

/* Shown to those logged in on /intern while customers still see the launch page. */
.preview-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; max-width: calc(100vw - 2rem); padding: 0.65rem 0.95rem; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.4; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(28, 26, 23, 0.5); }
.preview-note:hover { background: var(--gold-deep); }

/* The dial on the launch page: the hands go backwards towards the opening. */
.clock { width: clamp(170px, 34vw, 230px); aspect-ratio: 1; margin: 0.4rem 0 0.6rem; filter: drop-shadow(0 18px 30px rgba(28, 26, 23, 0.12)); }
.clock svg { display: block; width: 100%; height: 100%; overflow: visible; }
.clock__face { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.clock__ring { fill: none; stroke: var(--gold); stroke-width: 0.6; }
.clock__mark { stroke: var(--muted); stroke-width: 0.7; }
.clock__mark--hour { stroke: var(--ink); stroke-width: 1.6; }
.clock__name { font-family: var(--serif); font-size: 13px; font-style: italic; fill: var(--ink); }
.clock__place { font-family: var(--sans); font-size: 5.5px; letter-spacing: 0.32em; text-transform: uppercase; fill: var(--muted); }
.clock__hand { transform-origin: 0 0; } /* the centre of the dial */
.clock__hand--h path, .clock__hand--m path { fill: var(--ink); }
.clock__hand--s line { stroke: var(--gold-deep); stroke-width: 1.1; stroke-linecap: round; }
.clock__hand--s circle, .clock__cap { fill: var(--gold-deep); }
.clock__pin { fill: var(--paper); }
/* Each second the hand steps back with a small bounce, like a watch. */
.clock.is-ticking .clock__hand--s { transition: transform 0.32s cubic-bezier(0.35, 1.9, 0.55, 0.85); }
.clock.is-ticking .clock__hand--m, .clock.is-ticking .clock__hand--h { transition: transform 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .clock.is-ticking .clock__hand { transition: none; }
}

/* The moving background on the launch page (see js/lansering-bakgrunn.js). */
/* On the page itself, as tall as the page (set by the script), so it scrolls with the text. */
.launch__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
/* The dust blown off the text drifts in front of it. */
.launch__bg--front { z-index: 3; }
.launch__top { position: relative; z-index: 2; }

/* «Send en forespørsel» on the jewellery: for a piece that is sold, or more than one. */
.request { margin: 0.9rem 0 0; font-size: 14px; color: var(--ink-soft); }
.request__open { font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 0 0 2px; cursor: pointer; }
.request__open:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.request__open:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.request-dialog { width: min(600px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.request-dialog::backdrop { background: rgba(28, 26, 23, 0.45); }
.request-dialog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.request-dialog__head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.request-dialog__close { font: inherit; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 3px; cursor: pointer; }
.request-dialog__lede { margin: 0; color: var(--ink-soft); }
.request-form textarea { min-height: 6rem; }

/* Paying for an accepted request (/betal, /en/pay.html) */
.pay { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 5rem; }
.pay__inner { max-width: 820px; margin: 0 auto; }
.pay__inner > h1 { margin: 0.3rem 0 0.6rem; }
.pay__status { margin: 1rem 0 0; color: var(--ink-soft); }
.pay__status:empty { display: none; }
.pay__card { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.pay__media .card__media, .pay__media { aspect-ratio: 4 / 5; }
.pay__media > * { width: 100%; height: 100%; }
.pay__body { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.pay__name { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.pay__line { margin: -0.4rem 0 0; font-size: 15px; color: var(--ink-soft); }
.pay__line span { color: var(--muted); }
.pay__delivery { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pay__delivery legend { padding: 0; margin-bottom: 0.5rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.pay__opt { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 0.9rem; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; font-size: 15px; }
.pay__opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.pay__opt input { margin: 0.2rem 0 0; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.pay__opt span { display: grid; gap: 0.15rem; }
.pay__opt small { font-size: 13px; color: var(--muted); }
.pay__sum { margin: 0; display: grid; gap: 0.35rem; font-size: 15px; }
.pay__sum div { display: flex; justify-content: space-between; gap: 1rem; }
.pay__sum dt { color: var(--ink-soft); }
.pay__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.pay__total { padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 16px; }
.pay__total dt, .pay__total dd { color: var(--ink); }
.pay__go { justify-self: start; }
.pay__secure { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .pay__card { grid-template-columns: minmax(0, 1fr); }
  .pay__media { max-width: 220px; }
  .pay__go { justify-self: stretch; }
}

/* ——— A little life: light and airy, never in the way ——— */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes soft-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
/* The home page opens gently: the words one after another, the picture softly. */
.hero__text > * { animation: rise-in 1.2s var(--ease) both; }
.hero__text > :nth-child(1) { animation-delay: 0.1s; }
.hero__text > :nth-child(2) { animation-delay: 0.25s; }
.hero__text > :nth-child(3) { animation-delay: 0.42s; }
.hero__text > :nth-child(4) { animation-delay: 0.58s; }
.hero__art > .slot-photo { animation: soft-in 1.8s var(--ease) 0.2s both; }
/* Cards and columns appear one after another as they come into view. */
.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
/* Glans: the gold words in the headings shine now and then, like gold leaf. */
h1 em:not(.plain), h2 em:not(.plain) {
  background: linear-gradient(110deg, var(--gold-deep) 0%, var(--gold-deep) 42%, #b08a4a 47%, #d6b36a 50%, #b08a4a 53%, var(--gold-deep) 58%, var(--gold-deep) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Room for the slant of the italic letters, so no part of them is cut off. */
  padding: 0 0.12em;
  margin: 0 -0.12em;
  animation: foil 9s ease-in-out 1.5s infinite;
}
@keyframes foil { 0%, 60% { background-position: 100% 0; } 90%, 100% { background-position: 0 0; } }
/* On the dark sections the gold is lighter, and so is its shine. */
.section--dark h1 em:not(.plain), .section--dark h2 em:not(.plain) {
  background-image: linear-gradient(110deg, #c9a86e 0%, #c9a86e 42%, #dcc08a 47%, #f2e0b4 50%, #dcc08a 53%, #c9a86e 58%, #c9a86e 100%);
}
/* The thin gold lines draw themselves in. */
.reveal hr.rule, .reveal .rule { transform-origin: left center; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.35s; }
.reveal.is-in hr.rule, .reveal.is-in .rule { transform: none; }
/* Pictures on the product page fade in. */
.product__media { animation: soft-in 1.2s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__art > .slot-photo, .product__media { animation: none; }
  h1 em:not(.plain), h2 em:not(.plain) { animation: none; background: none; color: var(--gold-deep); padding: 0; margin: 0; }
  .section--dark h1 em:not(.plain), .section--dark h2 em:not(.plain) { background: none; color: #c9a86e; }
  .reveal hr.rule, .reveal .rule { transform: none; transition: none; }
}

/* Short phones (like iPhone SE): a little smaller still. */
@media (max-width: 560px) and (max-height: 700px) {
  .launch__main { padding-top: 2.8rem; }
  .launch__logo { width: min(56vw, 200px); }
  .launch .clock { width: 118px; }
  .countdown { margin-top: 1rem; gap: 0.6rem; }
}

/* ——— Enlarging product photos (zoom.js) ——— */
.product__media--zoom { cursor: zoom-in; }
.product__media--zoom img { transition: transform 0.35s var(--ease); }
.product__media--zoom.is-loupe img { transform: scale(2.2); }
.product__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(251, 248, 243, 0.92); color: var(--ink); cursor: pointer;
  transition: opacity 0.3s;
}
.product__media--zoom.is-loupe .product__zoom { opacity: 0; }
.product__zoom:hover { border-color: var(--ink); }
html.zoom-open { overflow: hidden; }
.zoom {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #16140f; color: var(--paper);
}
.zoom::backdrop { background: #16140f; }
.zoom :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.zoom__stage { position: absolute; inset: 60px 0 16px; touch-action: none; overflow: hidden; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom__stage.is-zoomed { cursor: grab; }
.zoom__stage.is-zoomed:active { cursor: grabbing; }
.zoom__img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; }
.zoom__img.is-smooth { transition: transform 0.3s var(--ease); }
.zoom__bar { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 12px; letter-spacing: 0.18em; color: rgba(233, 225, 212, 0.85); }
.zoom__close { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.95rem; border: 1px solid rgba(233, 225, 212, 0.35); background: none; color: var(--paper); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.zoom__close:hover { border-color: var(--paper); }
.zoom__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(233, 225, 212, 0.35); border-radius: 50%; background: rgba(22, 20, 15, 0.6); color: var(--paper); cursor: pointer; }
.zoom__nav:hover { border-color: var(--paper); }
.zoom__nav[hidden] { display: none; }
.zoom__nav--prev { left: 14px; }
.zoom__nav--next { right: 14px; }
@media (min-width: 900px) { .zoom__stage { inset: 60px 80px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .product__media--zoom img, .zoom__img.is-smooth { transition: none; }
}
