/* Andy Kemp Photography: emerald brand v1.1
   Warm ivory and charcoal surfaces, emerald with purpose. The photographs lead. */

:root {
  --mat: #F7F4EE;        /* page: warm ivory */
  --paper: #FFFFFF;      /* raised surfaces */
  --ink: #20292C;        /* charcoal */
  --granite: #586367;    /* secondary text, 5.6:1 on ivory */
  --rule: #E2DDD3;
  --brand: #007F5F;      /* emerald */
  --accent: #005E46;     /* deep emerald: buttons and small text, 7.1:1 on ivory */
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEEE7;
  --moss: #007F5F;
  --danger: #A23B32;
  --wall: #E7E2D9;
  --shadow: 0 1px 2px rgba(32, 41, 44, .06), 0 8px 24px -12px rgba(32, 41, 44, .22);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mat: #20292C; --paper: #283337; --ink: #F7F4EE; --granite: #A7B0B2; --rule: #36434A;
    --brand: #00C68E; --accent: #00C68E; --accent-ink: #0E1A16; --accent-soft: #10392E; --moss: #00C68E; --danger: #E58B82; --wall: #2D383C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mat: #20292C; --paper: #283337; --ink: #F7F4EE; --granite: #A7B0B2; --rule: #36434A;
  --brand: #00C68E; --accent: #00C68E; --accent-ink: #0E1A16; --accent-soft: #10392E; --moss: #00C68E; --danger: #E58B82; --wall: #2D383C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mat); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 var(--s4); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 var(--s4); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--mat); padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { top: var(--s4); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.section { padding-block: var(--s7); }
.section + .section { padding-top: 0; }
.lede { font-size: 1.15rem; color: var(--granite); max-width: 60ch; }
.muted, .fine { color: var(--granite); }
.fine { font-size: .875rem; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) var(--gutter); min-height: 72px;
  background: color-mix(in srgb, var(--mat) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.wordmark { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo { display: block; height: 37px; width: auto; }   /* horizontal lockup at 320 px wide */
.logo-mark { height: 38px; }                             /* mountain mark at 140 px wide */
.logo-mark, .logo-dark, .logo-white, .mark-dark, .mark-white { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.is-home .site-header:not(.scrolled) .logo-light, .is-home .site-header:not(.scrolled) .logo-dark { display: none !important; }
.is-home .site-header:not(.scrolled) .logo-white { display: block; }
@media (max-width: 1080px) {
  .logo:not(.logo-mark) { display: none !important; }
  .logo-mark.mark-light { display: block; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark.mark-light { display: none; } :root:not([data-theme="light"]) .logo-mark.mark-dark { display: block; } }
  .is-home .site-header:not(.scrolled) .logo-mark { display: none !important; }
  .is-home .site-header:not(.scrolled) .logo-mark.mark-white { display: block !important; }
}
.wordmark-sub { font-family: var(--sans); font-size: .85rem; color: var(--granite); letter-spacing: .01em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: var(--s2); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; }
.basket-button {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: inherit; font-weight: 500; font-size: .95rem; color: inherit; background: none; border: 0; cursor: pointer; padding: var(--s2);
}
.basket-count { background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; display: inline-grid; place-items: center; padding-inline: .3rem; }
.basket-count[hidden] { display: none; }
.basket-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Over the hero, the header is transparent with light text */
.is-home .site-header { position: absolute; inset: 0 0 auto 0; background: linear-gradient(rgba(10, 16, 20, .45), transparent); border-bottom: 0; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header.scrolled { background: color-mix(in srgb, var(--mat) 90%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.is-home .site-header a:hover { color: inherit; opacity: .8; }

@media (max-width: 860px) {
  .site-header { gap: var(--s3); }
  .nav-toggle { display: grid; place-items: center; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
  .site-nav { order: 3; margin-left: 0; }
  .basket-button { margin-left: auto; }
  .basket-label { display: none; }
  .site-nav ul {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: var(--s3) var(--gutter) var(--s5);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .site-nav ul.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav li a { display: block; padding: var(--s3) 0; font-size: 1.15rem; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 600 .975rem/1 var(--sans); padding: .9rem 1.4rem; min-height: 48px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: filter .15s, transform .1s;
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.button-wide { width: 100%; }
.button-light { background: #fff; color: #23303A; }
.button-light:hover { color: #23303A; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { color: var(--ink); border-color: var(--granite); }
.button-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button-danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.text-link.light { color: #fff; }
.icon-button { background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.icon-button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; color: #fff; background: #1b2329; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s cubic-bezier(.2,.6,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(12,18,22,.72) 0%, rgba(12,18,22,.25) 45%, transparent 70%); pointer-events: none; }
.hero-text { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(48px, 9vh, 110px); max-width: min(680px, calc(100% - 2 * var(--gutter))); }
.hero-text h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 1.5rem + 3vw, 4.1rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: var(--s4); text-wrap: balance; }
.hero-text p { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 46ch; margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.hero-plate {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(48px, 9vh, 110px);
  display: flex; flex-direction: column; text-align: right; text-decoration: none; color: #fff;
  padding-right: var(--s3); border-right: 2px solid rgba(255,255,255,.7);
}
.hero-plate:hover { color: #fff; }
.plate-title { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.plate-loc { font-size: .85rem; color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .hero-plate { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }

.intro-plain { padding-block: var(--s8) var(--s5); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: var(--s6); }
.page-head h1 { margin-bottom: var(--s3); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: .9rem; color: var(--granite); margin-bottom: var(--s3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Justified photo grid ---------- */
.jgrid { --gap: 14px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.jtile { margin: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row)); max-width: calc(var(--r) * var(--row) * 1.75); min-width: 0; }
.jfill { flex-grow: 1000000; flex-basis: 0; }
.jlink { display: block; text-decoration: none; }
.jframe { display: block; position: relative; padding-bottom: calc(100% / var(--r)); background: var(--rule); overflow: hidden; }
.jframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .3s; }
.jlink:hover .jframe img { transform: scale(1.025); }
.jmeta { display: flex; justify-content: space-between; gap: var(--s3); padding-top: var(--s2); font-size: .9rem; }
.jtitle { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jprice { color: var(--granite); white-space: nowrap; }
@media (max-width: 700px) {
  .jgrid { --gap: 8px; --row: 170px !important; }
  .jmeta { flex-direction: column; gap: 0; font-size: .85rem; line-height: 1.35; }
}

/* ---------- Galleries ---------- */
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: thin; }
.gallery-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s5) 14px; }
.gallery-card { scroll-snap-align: start; text-decoration: none; display: grid; grid-template-rows: auto auto auto; }
.gallery-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--rule); margin-bottom: var(--s3); transition: filter .3s; }
.gallery-card:hover img { filter: brightness(1.06); }
.gallery-card.large img { aspect-ratio: 3 / 2; }
.gallery-name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.gallery-card:hover .gallery-name { color: var(--accent); }
.gallery-count { font-size: .875rem; color: var(--granite); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chips a { text-decoration: none; font-size: .9rem; font-weight: 500; padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.chips a[aria-current] { background: var(--ink); color: var(--mat); border-color: var(--ink); }

.about-teaser { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3) var(--s6); background: linear-gradient(var(--rule), var(--rule)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; padding-top: var(--s6) !important; margin-top: var(--s4); }
.about-teaser .prose p { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; max-width: 38ch; margin: 0; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: var(--s6) var(--s7); align-items: start; }
.product-media { position: sticky; top: 88px; }
.mat { display: block; background: var(--paper); padding: clamp(14px, 3.2%, 40px); box-shadow: var(--shadow); cursor: zoom-in; }
.mat img { width: 100%; height: auto; max-height: calc(100svh - 200px); object-fit: contain; }
.photo-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); margin-bottom: var(--s2); text-wrap: balance; }
.photo-loc { color: var(--granite); margin-bottom: var(--s5); }
.photo-caption { margin-bottom: var(--s5); }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; padding-top: var(--s4); }
  .product-media { position: static; }
  .mat img { max-height: none; }
}

.configurator { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.opt-group { border: 0; margin: 0 0 var(--s5); padding: 0; min-width: 0; }
.opt-group legend { font-weight: 600; margin-bottom: var(--s3); padding: 0; }
.opt-cards { display: grid; gap: var(--s2); }
.opt-card { display: block; cursor: pointer; }
.opt-card input, .opt-size input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card-body { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.opt-label { font-weight: 600; }
.opt-desc { font-size: .875rem; color: var(--granite); }
.opt-card input:checked + .opt-card-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-card input:focus-visible + .opt-card-body, .opt-size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-sizes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt-size span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); cursor: pointer; font-variant-numeric: tabular-nums; transition: .15s; }
.opt-size input:checked + span { background: var(--ink); color: var(--mat); border-color: var(--ink); }
[data-size-group][hidden] { display: none; }

/* The wall preview: print shown to scale beside a 5 ft 9 in person */
.wall { position: relative; aspect-ratio: 4 / 3; background: var(--wall); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s2);
  background-image: linear-gradient(to top, color-mix(in srgb, var(--wall) 80%, #000) 0, color-mix(in srgb, var(--wall) 80%, #000) 3.3%, transparent 3.3%); }
.wall-print { position: absolute; left: 42%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); transition: width .45s cubic-bezier(.2,.7,.2,1), height .45s cubic-bezier(.2,.7,.2,1), padding .45s, border-width .45s; border: 0 solid #1c1c1c; box-sizing: border-box; }
.wall-print img { width: 100%; height: 100%; object-fit: cover; }
.wall-print.framed { border-color: #1f1f1f; background: #F4F3EF; }
.wall-person { position: absolute; bottom: 3.3%; right: 9%; height: 63.9%; color: color-mix(in srgb, var(--wall) 55%, #000); opacity: .55; }
.wall-person svg { height: 100%; width: auto; fill: currentColor; }
.wall-sofa { position: absolute; bottom: 3.3%; left: 42%; transform: translateX(-50%); width: 58%; height: 26%; background: color-mix(in srgb, var(--wall) 70%, #000); opacity: .35; border-radius: 10px 10px 2px 2px; }
.wall.digital .wall-print { width: 46% !important; height: auto !important; aspect-ratio: var(--ratio); top: 45% !important; border-width: 0 !important; padding: 0 !important; }
.wall.digital .wall-sofa, .wall.digital .wall-person { opacity: .12; }
.wall-caption { font-size: .85rem; color: var(--granite); margin-bottom: var(--s5); min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .wall-print { transition: none; } }

.buy-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; }
.buy-row .button { grid-column: 1 / -1; }
.price { font-size: 1.75rem; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.qty[hidden] { display: none; }
.qty input { width: 3rem; text-align: center; border: 0; background: transparent; font: inherit; color: inherit; -moz-appearance: textfield; appearance: textfield; padding: 0; height: 44px; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; height: 44px; border: 0; background: none; color: inherit; font-size: 1.2rem; cursor: pointer; }
.qty.small input { width: 2rem; height: 34px; }
.qty.small .qty-btn { width: 30px; height: 34px; font-size: 1rem; }

/* ---------- Basket drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 27, .45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow); outline: none; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--rule); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s2) var(--s5); }
.drawer-foot { border-top: 1px solid var(--rule); padding: var(--s4) var(--s5) var(--s5); }
.drawer-foot:empty { display: none; }
.drawer-empty { text-align: center; padding: var(--s8) var(--s4); color: var(--granite); }
.drawer-empty p { margin-bottom: var(--s5); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; object-fit: cover; background: var(--rule); }
.line-title { font-weight: 600; text-decoration: none; display: block; line-height: 1.3; }
.line-meta { font-size: .85rem; color: var(--granite); display: block; margin-bottom: var(--s2); }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.line-actions { display: flex; align-items: center; gap: var(--s3); }
.line-remove { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--granite); text-decoration: underline; cursor: pointer; }
.line-remove:hover { color: var(--danger); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) 0; margin: 0 0 var(--s4); font-variant-numeric: tabular-nums; }
.totals dt { color: var(--granite); }
.totals dd { margin: 0; text-align: right; padding-left: var(--s4); }
.totals .total { color: var(--ink); font-weight: 700; font-size: 1.1rem; padding-top: var(--s2); border-top: 1px solid var(--rule); margin-top: var(--s2); }
.postage-hint { font-size: .85rem; color: var(--moss); margin: 0 0 var(--s3); }

/* ---------- Forms ---------- */
.stack-form { display: grid; gap: var(--s4); max-width: 560px; }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); }
.optional { font-weight: 400; color: var(--granite); }
.hint { font-size: .85rem; color: var(--granite); margin: 0; }

:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  font: inherit; color: var(--ink); background: var(--paper); width: 100%;
  border: 1px solid color-mix(in srgb, var(--granite) 45%, transparent); border-radius: var(--radius);
  padding: .7rem .85rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
:where(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check[hidden] { display: none; }
.form-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); padding: var(--s3) var(--s4); border-radius: var(--radius); margin: 0; }
.form-error[hidden] { display: none; }
.notice { background: var(--paper); border-left: 3px solid var(--granite); padding: var(--s3) var(--s4); border-radius: 0 var(--radius) var(--radius) 0; }
.notice.success { border-color: var(--moss); }
.notice.error { border-color: var(--danger); }

/* ---------- Checkout ---------- */
.checkout { padding-block: var(--s6) var(--s8); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.checkout-form { display: grid; gap: var(--s6); }
.form-section { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s4); min-width: 0; }
.form-section[hidden] { display: none; }
.form-section legend { font-size: 1.2rem; font-weight: 600; margin-bottom: var(--s4); padding: 0; }
.consent { gap: var(--s3); }
.payment-element { min-height: 80px; }
.summary { background: var(--paper); padding: var(--s5); border-radius: var(--radius); position: sticky; top: 88px; box-shadow: var(--shadow); }
.summary h2 { font-size: 1.2rem; }
.summary .line { grid-template-columns: 56px 1fr auto; }
.summary .line img { width: 56px; height: 56px; }
.button-pay { font-size: 1.05rem; min-height: 54px; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

/* ---------- Order pages ---------- */
.confirm { text-align: center; }
.confirm .lede { margin-inline: auto; }
.confirm-mark { width: 64px; height: 64px; margin: 0 auto var(--s5); }
.confirm-mark svg { fill: none; stroke: var(--granite); stroke-width: 2; }
.confirm-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.confirm.ok .confirm-mark svg { stroke: var(--moss); }
.confirm.ok .confirm-mark path { animation: tick .5s .1s ease forwards; }
.confirm.pending .confirm-mark circle { stroke-dasharray: 40 120; animation: spin 1s linear infinite; transform-origin: center; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.confirm .order-detail, .confirm-detail { text-align: left; margin-top: var(--s6); }
.status-pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--rule); color: var(--ink); margin: 0; }
.status-pill[data-status="paid"], .status-pill[data-status="printing"] { background: var(--accent-soft); color: var(--accent); }
.status-pill[data-status="dispatched"], .status-pill[data-status="delivered"], .status-pill[data-status="completed"] { background: color-mix(in srgb, var(--moss) 18%, transparent); color: var(--moss); }
.status-pill[data-status="refunded"], .status-pill[data-status="cancelled"], .status-pill[data-status="payment_failed"] { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.progress { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: step; }
.progress li { position: relative; padding-top: var(--s5); font-size: .85rem; color: var(--granite); }
.progress li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rule); margin-right: 4px; border-radius: 2px; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before { background: var(--moss); }
.order-items { list-style: none; padding: 0; margin: var(--s5) 0; }
.order-items li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.oi-title { display: block; font-weight: 600; }
.oi-meta { font-size: .875rem; color: var(--granite); }
.downloads { background: var(--paper); padding: var(--s4) var(--s5); border-radius: var(--radius); margin: var(--s5) 0; }
.downloads h2 { font-size: 1.1rem; }
.downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }

/* ---------- Prose and about ---------- */
.prose { max-width: 66ch; }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.legal h2 { font-size: 1.6rem; margin-top: 0; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text .prose p:first-child { font-size: 1.3rem; line-height: 1.5; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-img { aspect-ratio: 3 / 2; } }

.empty { text-align: center; padding: var(--s8) var(--s4); background: var(--paper); border-radius: var(--radius); }
.empty h2 { font-family: var(--display); }
.empty p { color: var(--granite); max-width: 44ch; margin-inline: auto; margin-bottom: var(--s5); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 17, .96); color: #fff; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade .2s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: var(--s3); height: 100svh; padding: var(--s7) 0 var(--s4); align-content: center; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; }
.lb-figure figcaption { display: flex; gap: var(--s5); align-items: baseline; }
.lb-buy { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: #fff; }
.lb-buy:hover { color: #fff; opacity: .8; }
.lb-close { position: absolute; top: var(--s3); right: var(--s3); }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
@media (max-width: 700px) { .lightbox { grid-template-columns: 0 1fr 0; } .lb-prev, .lb-next { position: absolute; bottom: var(--s3); } .lb-prev { left: var(--s3); } .lb-next { right: var(--s3); } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: var(--s5); transform: translateX(-50%); background: var(--ink); color: var(--mat); padding: var(--s3) var(--s5); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 500; animation: rise .25s ease; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.toast button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; margin-left: var(--s3); padding: 0; }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: var(--s8); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s6); }
.footer-name { margin: 0; }
.footer-name img { height: 30px; width: auto; }
.footer-name .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer-name .logo-light { display: none; } :root:not([data-theme="light"]) .footer-name .logo-dark { display: block; } }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s5); list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.footer-links a { text-decoration: none; }
.footer-copy { grid-column: 1 / -1; font-size: .85rem; color: var(--granite); margin: 0; max-width: 70ch; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Stripe test-mode banner */
.test-banner { background: #F2C14E; color: #20292C; text-align: center; font-size: .875rem; font-weight: 500; padding: 6px var(--gutter); position: relative; z-index: 40; }
.test-banner.danger { background: #A23B32; color: #fff; }
.has-test-banner.is-home .site-header { top: 32px; }

/* VAT and seller details */
.totals .vat { font-size: .85rem; color: var(--granite); font-weight: 400; }
.price-note { grid-row: 2; grid-column: 1; margin: -10px 0 0; font-size: .8rem; color: var(--granite); }
.footer-seller { font-size: .8rem; color: var(--granite); max-width: 80ch; margin: var(--s2) 0 0; line-height: 1.5; }

/* ---------- Gift vouchers ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s2); }
.amount-choice { position: relative; }
.amount-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount-choice span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; transition: .12s; }
.amount-choice input:checked + span { background: var(--ink); color: var(--mat); border-color: var(--ink); }
.amount-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 640px) { .delivery-grid { grid-template-columns: 1fr; } }
.option-card { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.option-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.option-card input { margin-top: 3px; accent-color: var(--accent); }
.option-card strong { display: block; }
.option-card small { display: block; color: var(--granite); font-size: .875rem; line-height: 1.45; margin-top: 2px; }
.voucher-preview { display: grid; grid-template-columns: 38% 1fr; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); min-height: 200px; margin-bottom: var(--s3); }
.vp-band { background: #005E46; color: #fff; display: grid; place-content: center; text-align: center; gap: var(--s1); padding: var(--s4) var(--s2); }
.vp-kicker { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.vp-amount { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; line-height: 1; }
.vp-body { background: #F7F4EE; color: #20292C; padding: var(--s4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vp-label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #586367; font-weight: 600; margin-top: var(--s2); }
.vp-label:first-child { margin-top: 0; }
.vp-to { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.vp-from { overflow-wrap: anywhere; }
.vp-msg { font-style: italic; font-size: .875rem; margin: var(--s2) 0 0; color: #20292C; overflow-wrap: anywhere; }
.vp-code { margin-top: auto; padding-top: var(--s3); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #005E46; letter-spacing: .05em; }
.voucher-done { display: grid; justify-items: center; gap: 4px; background: var(--paper); box-shadow: var(--shadow); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: var(--s5); margin: var(--s5) 0; }
.vd-amount { font-family: var(--display); font-size: 2.4rem; font-weight: 700; }
.vd-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); margin-top: var(--s2); }
.vd-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; user-select: all; }
.vd-exp { color: var(--granite); font-size: .875rem; }
/* Voucher box on the basket checkout */
.voucher-apply { margin-top: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.voucher-apply summary { cursor: pointer; font-weight: 500; color: var(--accent); }
.voucher-row { display: flex; gap: var(--s2); margin-top: var(--s3); }
.voucher-row input { flex: 1; min-width: 0; text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; }
.voucher-row .button { flex: none; }
.voucher-apply .hint.error { color: var(--danger); }
.totals .voucher-line { color: var(--accent); }

/* ---------- Home ---------- */
.kicker { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 var(--s2); }
.section-sub { color: var(--granite); margin: 2px 0 0; font-size: .95rem; }
.home-welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.welcome-text .prose p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; margin: 0 0 var(--s3); }
.welcome-links { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.welcome-cta { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); border-top: 4px solid var(--brand); }
.welcome-cta h2 { margin: 0 0 var(--s2); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.welcome-cta p { color: var(--granite); margin: 0 0 var(--s4); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 860px) { .home-welcome { grid-template-columns: 1fr; } }
.strip-section .section-head { align-items: flex-end; }
.strip-controls { display: flex; align-items: center; gap: var(--s2); }
.strip-controls .text-link { margin-right: var(--s2); }
.strip-btn { width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.strip-btn:disabled { opacity: .35; cursor: default; }
.strip-btn[hidden] { display: none; }
.photo-strip { list-style: none; margin: 0; padding: 0 0 var(--s2); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 290px); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.photo-strip > li { scroll-snap-align: start; }
.strip-card { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.strip-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--rule); }
.strip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strip-card:hover .strip-img img { transform: scale(1.04); }
.strip-title { font-weight: 600; margin-top: var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-meta { color: var(--granite); font-size: .875rem; }
.voucher-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; background: #005E46; color: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px); }
.voucher-band h2 { margin: 0 0 4px; color: #fff; }
.voucher-band p { margin: 0; opacity: .9; }
.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s5); }
.post-card { display: grid; gap: var(--s1); text-decoration: none; color: inherit; }
.post-img { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--rule); margin-bottom: var(--s2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-date { color: var(--granite); font-size: .85rem; }
.post-title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.post-excerpt { color: var(--granite); }
.post-card .text-link { margin-top: var(--s1); justify-self: start; }
/* Social and newsletter */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink); background: var(--paper); }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-extra { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; width: 100%; margin-top: var(--s4); }
.newsletter { display: grid; gap: var(--s2); max-width: 460px; flex: 1 1 320px; }
.newsletter label { font-weight: 500; }
.newsletter-row { display: flex; gap: var(--s2); }
.newsletter-row input[type=email] { flex: 1; min-width: 0; }
.newsletter .fine { margin: 0; }
.newsletter .fine.error { color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.footer-extra { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq-section { margin-bottom: var(--s6); }
.faq-section h2 { font-size: 1.35rem; margin: 0 0 var(--s3); }
.faq-item { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: var(--s2); }
.faq-item summary { cursor: pointer; padding: var(--s4) var(--s5); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1; flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding: 0 var(--s5) var(--s4); color: var(--ink); }
.faq-item .prose > :first-child { margin-top: 0; }
.faq-more { text-align: center; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s6) var(--s5); border-top: 4px solid var(--brand); }
.faq-more h2 { margin: 0 0 var(--s2); }
.faq-more p { color: var(--granite); margin: 0 0 var(--s4); }
/* ---------- Adventures ---------- */
.post .page-head h1 { margin-bottom: var(--s2); }
.post-cover { width: 100%; border-radius: var(--radius); margin: 0 0 var(--s5); box-shadow: var(--shadow); }
.post .prose { font-size: 1.075rem; line-height: 1.7; }
.test-banner { height: 32px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.tb-short { display: none; }
@media (max-width: 760px) { .tb-long { display: none; } .tb-short { display: inline; } }
.section-head .text-link { white-space: nowrap; }
.code-section .voucher-row { margin-top: 0; }
.applied-codes { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.applied-codes:empty { display: none; }
.applied-codes li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--accent-soft); border-radius: var(--radius); padding: var(--s2) var(--s3); font-size: .925rem; }
.applied-codes strong { font-family: ui-monospace, Menlo, Consolas, monospace; margin-right: 6px; }
.applied-codes .text-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--accent); }
.code-section .hint.error { color: var(--danger); }
.voucher-row input::placeholder { text-transform: none; font-family: var(--sans); }
.tracking-box { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4) var(--s5); margin: var(--s4) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); } .tracking-box p { margin: 0; }

/* ---------- Home: slideshow ---------- */
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; z-index: 0; }
.hero-slide .hero-img { animation: none; transform-origin: 60% 40%; }
.hero-slide.active .hero-img { animation: kenburns calc(var(--slide-ms, 7000ms) + 2000ms) ease-out forwards; }
.hero[data-hero="single"] .hero-slide.active .hero-img { animation: settle 2.4s cubic-bezier(.2,.6,.2,1) both; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.hero-kicker { font-size: .75rem !important; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.8) !important; margin-bottom: var(--s3) !important; }
.hero-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
.hero-text > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 9vh, 110px); display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.hero-dots button::before { content: ''; grid-area: 1 / 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero-dots button span { grid-area: 1 / 1; height: 3px; border-radius: 2px; background: #fff; width: 0; }
.hero-dots button.active span { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
@keyframes dotfill { to { width: 100%; } }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.8); animation: nudge 2.4s ease-in-out infinite; display: grid; place-items: center; width: 44px; height: 44px; }
.hero-scroll:hover { color: #fff; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 760px) { .hero-dots { left: var(--gutter); right: auto; bottom: 22px; } .hero-text { bottom: 70px; } .hero-scroll { display: none; } }

/* Floating basket once the header has scrolled away */
.float-basket { position: fixed; z-index: 35; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; animation: pop .25s ease; }
.float-basket[hidden] { display: none; }
.float-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--mat); font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Scroll reveal (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Galleries mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 12px; }
.mosaic-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--rule); color: #fff; text-decoration: none; }
.mosaic-tile:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic-3 .mosaic-tile:not(:first-child) { grid-column: span 2; }
.mosaic-2 .mosaic-tile, .mosaic-1 .mosaic-tile { grid-column: span 2; grid-row: span 2; }
.mosaic-1 .mosaic-tile { grid-column: span 4; }
.mosaic-tile img, .mosaic-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.mosaic-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,20,.7), rgba(10,16,20,0) 55%); transition: background .3s; }
.mosaic-tile:hover img { transform: scale(1.06); }
.mosaic-tile:hover::after { background: linear-gradient(to top, rgba(0,60,45,.75), rgba(0,60,45,.05) 65%); }
.mosaic-label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; }
.mosaic-name { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.mosaic-tile:first-child .mosaic-name { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.mosaic-count { font-size: .85rem; opacity: .85; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .mosaic-3 .mosaic-tile:not(:first-child) { grid-column: span 1; }
  .mosaic-2 .mosaic-tile, .mosaic-1 .mosaic-tile { grid-column: span 2; grid-row: span 2; }
}

/* Spotlight */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.spotlight-img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--rule); }
.spotlight-img img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.spotlight-img:hover img { transform: scale(1.03); }
.spotlight-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: 0 0 var(--s2); }
.spotlight-loc { color: var(--granite); margin: 0 0 var(--s3); }
.spotlight-caption { font-size: 1.05rem; line-height: 1.65; margin: 0 0 var(--s4); }
.spotlight-price { font-weight: 600; margin: 0 0 var(--s4); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-img, .hero-text > *, .hero-scroll, .float-basket { animation: none !important; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .mosaic-tile img, .spotlight-img img, .strip-img img, .post-img img { transition: none; }
}

/* ---------- Subjects, places, breadcrumbs, filters (2026-11) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
.crumbs li + li::before { content: '/'; color: var(--rule); }
.crumbs li span[aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }

.lead-subject { display: grid; grid-template-columns: minmax(240px, 1fr) 2.6fr; gap: var(--s7); align-items: start; }
.lead-head { position: sticky; top: 96px; display: grid; gap: var(--s4); justify-items: start; }
.lead-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.05; margin: 0; }
.lead-intro { margin: 0; color: var(--granite); max-width: 42ch; }
@media (max-width: 900px) { .lead-subject { grid-template-columns: 1fr; gap: var(--s5); } .lead-head { position: static; } }

.topic-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.topic-tiles.large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.topic-tiles.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.topic-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--rule); color: #fff; text-decoration: none; }
.topic-tiles.small .topic-tile { aspect-ratio: 3 / 2; }
.topic-tile img, .topic-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.topic-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,20,.72), rgba(10,16,20,0) 58%); }
.topic-tile:hover img { transform: scale(1.05); }
.topic-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.topic-label { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.topic-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.topic-count { font-size: .85rem; opacity: .85; }
.topic-more { margin-top: var(--s7); }
.topic-more h2 { font-size: 1.25rem; }
@media (max-width: 560px) { .topic-tiles, .topic-tiles.large, .topic-tiles.small { grid-template-columns: 1fr 1fr; gap: 8px; } .topic-name { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .topic-tile img { transition: none; } }

.filters { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.filters .chips { margin-bottom: 0; }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3) var(--s4); }
.filter-form label { display: grid; gap: var(--s1); font-size: .85rem; color: var(--granite); }
.filter-form select { min-width: 12rem; max-width: 100%; padding: .5rem .6rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem; }
.js .filter-form [type=submit] { display: none; }
.filter-count { color: var(--granite); font-size: .9rem; margin: 0 0 var(--s4); }
@media (max-width: 560px) { .filter-form label { flex: 1 1 100%; } .filter-form select { width: 100%; } }

.photo-loc a { color: inherit; text-underline-offset: 3px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 var(--s5); padding: 0; }
.tag-list a { display: inline-block; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft, #E3F1EC); color: var(--accent); text-decoration: none; font-weight: 500; }
.tag-list a.tag-quiet { background: transparent; border: 1px solid var(--rule); color: var(--granite); }
.tag-list a:hover { text-decoration: underline; }

.size-guide { margin: var(--s2) 0 var(--s4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.size-guide summary { cursor: pointer; padding: var(--s3) 0; font-weight: 600; font-size: .95rem; }
.size-guide-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s5); align-items: start; padding-bottom: var(--s4); }
.size-guide svg { width: 100%; height: auto; max-height: 260px; }
.sg-rect { fill: none; stroke: var(--granite); stroke-width: 1; }
.sg-rect.sg-0 { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.sg-label { font: 600 9px var(--sans); fill: var(--ink); }
.size-table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { white-space: nowrap; text-align: left; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--rule); }
.size-table th { font-weight: 600; color: var(--granite); }
.size-guide .fine { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .size-guide-body { grid-template-columns: 1fr; } }
