/*
  styles.css — Laser Guided Guillotine
  =====================================
  How the whole site looks. Sections, in order (search for the name):
    FONTS · Settings (colours, fonts, text sizes, page width) · Header ·
    Page intro (page headings) · Gallery wall · Buy page cards · BUY PAGE
    CARD TEXT · Product pages · Buy page categories (and section headings) ·
    Cart page · Back to top button · Confirmation page · Full-size viewer ·
    Footer

  COMMON CHANGES
  - Colours: change the values in the Settings block, e.g. the accent
    colour --aura (buttons, links, highlights).
  - Fonts: --f-display (headings), --f-body (text), --f-data (prices, sizes).
    The font files are stored with the site, in the fonts/ folder (see
    FONTS). To use a different font: put its .woff file in fonts/, add an
    @font-face block for it, and change the name in the variable.
  - Heading sizes: page headings under "Page intro" (.intro h1), product
    names under "Product pages" (.product-info h1), Buy page section
    headings under "Buy page categories" (.category-head h2).
  - Gallery columns: see "Gallery wall" (1 on phones up to 4 on wide
    screens).
  - Buy page cards: see .grid under "Buy page cards": the space between
    rows and columns (gap), the narrowest a card may get (240px), and the
    widest the grid gets (max-width). The card text sizes are together
    under "BUY PAGE CARD TEXT".

  Layout concept: clippings pinned on a white wall. Light by choice.
*/
/* FONTS: stored with the site in the fonts/ folder, so nothing is loaded
   from Google. Each @font-face below gives a font its name and points to
   its file. (Licences for all three are in fonts/licences/.)
     Special Gothic Expanded One  headings          one weight only: 400
     Hanken Grotesk               main text         any weight 100–900
     IBM Plex Mono                sizes and prices  400 and 500
   font-display: swap shows text straight away in a back-up font, then
   switches when the font file arrives. */
@font-face {
  font-family: "Special Gothic Expanded One";
  src: url("fonts/special-gothic-expanded-one-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-variable.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* Settings: colours, fonts, text sizes and page width, used everywhere below */
:root {
  --card: #ffffff;        /* page: white */
  --card-raised: #f1f0f3; /* behind images while they load */
  --rule: #e3e1e7;        /* hairlines */
  --paper: #16141a;       /* main text: near-black ink */
  --muted: #625d6b;       /* secondary text */
  --aura: #5b3fc4;        /* accent: the violet of the skies, deepened to read on white */

  --f-display: "Special Gothic Expanded One", "Arial Black", "Helvetica Neue", sans-serif; /* headings: one weight only (400) */
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* anything marked hidden stays hidden, whatever its layout */
html { background: var(--card); font-synthesis: none; } /* never fake bold or italic versions of a font */
body {
  margin: 0;
  background: var(--card);
  color: var(--paper);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Artwork photos can't be dragged out or selected, on any page. */
.clip img, .lb-stage img, .item .frame img, .product-media img, .line .thumb {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; /* stops the 'Save image' menu on iPhone long-press */
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aura); outline-offset: 3px; }
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--card);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.mark {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; line-height: 1;
}
.mark-top {
  font: 500 0.66rem/1 var(--f-data);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--aura);
}
.mark-main {
  font: 400 clamp(1.15rem, 1rem + 0.8vw, 1.5rem)/1 var(--f-display);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a {
  font: 600 var(--step--1)/1 var(--f-body);
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: var(--muted);
  padding-block: 10px; /* comfortable tap target */
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--aura); }

/* The category menu under "Buy" (built by layout.js). Hidden until the
   pointer is over "Buy" or the keyboard is on it; never on touch screens,
   where tapping "Buy" opens the Buy page instead. */
.nav-item { position: relative; display: flex; }
.submenu {
  display: none; position: absolute; top: 100%; right: -14px; z-index: 25;
  min-width: 210px; padding: 8px 0; background: var(--card);
  border: 1px solid var(--rule); box-shadow: 0 10px 28px rgb(22 20 26 / 0.10);
}
.nav .submenu a {
  display: block; padding: 9px 16px; box-shadow: none;
  font: 500 var(--step--1)/1.3 var(--f-body); text-transform: none; letter-spacing: 0;
  color: var(--muted); white-space: nowrap;
}
.nav .submenu a:hover, .nav .submenu a:focus-visible { color: var(--paper); background: var(--card-raised); }
.has-menu:focus-within .submenu { display: block; }
@media (hover: hover) { .has-menu:hover .submenu { display: block; } }
.nav .submenu.closed { display: none; } /* briefly, just after choosing a category */

/* Page intro */
.intro { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 44px); }
.intro h1 { /* page headings: Gallery, Buy, Your cart (size: smallest, growth, largest) */
  font: 400 clamp(1.68rem, 1.12rem + 2.8vw, 3.64rem)/0.92 var(--f-display);
  letter-spacing: -0.035em; margin: 0 0 18px;
  text-wrap: balance;
  text-transform: uppercase; /* shown in capitals, whatever the page's text */
}
.intro p { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.intro p a { color: var(--paper); text-underline-offset: 3px; }

/* Gallery wall: masonry by CSS columns so every piece keeps its shape.
   Columns by screen width: 1 on phones, 2 from 560px, 3 from 900px, 4 from
   1240px. To change, edit the numbers below; if you do, also update the
   "sizes" text in site.js (section 3b) so the right image size loads. */
.wall { columns: 1; column-gap: clamp(12px, 2vw, 22px); padding-bottom: 72px; }
@media (min-width: 560px) { .wall { columns: 2; } }
@media (min-width: 900px) { .wall { columns: 3; } }
@media (min-width: 1240px) { .wall { columns: 4; } }
.clip {
  display: block; width: 100%; padding: 0; border: 0; background: var(--card-raised);
  margin: 0 0 clamp(12px, 2vw, 22px); break-inside: avoid; cursor: zoom-in;
  transition: box-shadow .25s ease;
}
.clip img { width: 100%; height: auto; }
.clip:hover { box-shadow: 0 14px 30px -12px rgba(22,20,26,.35); }

/* Buy page cards (also used for the grid of products) */
.grid {
  /* gap: space between rows (first value), then between columns */
  display: grid; gap: clamp(44px, 5vw, 72px) clamp(20px, 3.5vw, 48px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  /* The widest the grid gets: 4 columns of about 280px on laptops and larger.
     Four columns need at least 4 × 240px plus the 3 gaps (about 1100px), so
     don't set this below 1110px or the grid drops to 3 columns. */
  max-width: 1260px;
}
/* BUY PAGE CARD TEXT is kept small and quiet so the artwork leads. The rules
   starting ".item" only affect the product cards (Buy page and "Also
   available"); product pages, the cart and other buttons keep their own sizes.
   gap = space between the photo, the text and the price row. */
.item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.item .frame { position: relative; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden;
  margin-bottom: 10px; } /* extra space between the photo and the collage name (adds to the 8px gap) */
/* The square stays square; the image is scaled to fit entirely inside it and
   centred, with the white page showing around it, so nothing is cropped. */
.item .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.item h3 { font: 400 0.95rem/1.2 var(--f-display); margin: 0; letter-spacing: -0.01em; } /* collage name */
.item h3.untitled { color: var(--muted); } /* "Untitled": grey */
.meta { font: 400 var(--step--1)/1.5 var(--f-data); color: var(--muted); margin: 0; }
.item .meta { font-size: 0.7rem; letter-spacing: -0.01em; } /* "Unframed original · 141 × 206 mm" */
.item .price { font-size: 0.85rem; }                    /* price */
.item .btn { font-size: 0.68rem; padding: 9px 12px; }   /* Yes please! button: text size, then space around it */
.item .added, .item .link-small { font-size: 0.72rem; } /* "In your cart ✓" and "View cart" */
.item .opt-select { font-size: 0.75rem; padding: 7px 8px; } /* size drop-down, to match the button */
/* Keep every card's Yes please! button lined up on the right edge:
   - the "Added ✓ View cart" message sits just under the button without
     taking up space, so it can't push the button sideways;
   - cards with a size drop-down (t-shirts) put the drop-down and button on
     their own full-width line under the price, with the drop-down stretching
     to fill the space and the button on the right. */
.item .card-action { position: relative; }
.item .card-action .added { position: absolute; top: 100%; right: 0; margin-top: 6px; white-space: nowrap; }
.item .card-action.has-options { flex-basis: 100%; flex-wrap: nowrap; }
.item .card-action.has-options .opt-select { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.price { font: 500 var(--step-0)/1 var(--f-data); font-variant-numeric: tabular-nums; }
.card-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 var(--step--1)/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 2px;
  background: var(--aura); color: #ffffff; border: 1px solid var(--aura);
}
.btn:hover { background: var(--paper); border-color: var(--paper); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-wide { width: 100%; }
.added { font: 600 var(--step--1)/1.2 var(--f-body); color: var(--aura); }
.link-small {
  font: 600 var(--step--1)/1.2 var(--f-body); color: var(--muted);
  background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-small:hover { color: var(--paper); }
.tag {
  font: 500 0.7rem/1 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); padding: 6px 8px; border-radius: 2px;
}
.item.is-sold .frame img { opacity: .5; filter: grayscale(.4); }
/* The photo and name on each card link to the product's own page. */
a.frame { display: block; }
a.frame:focus-visible, .item h3 a:focus-visible { outline: 2px solid var(--aura); outline-offset: 3px; }
.item h3 a { color: inherit; text-decoration: none; }
.item h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.line strong a { color: inherit; text-decoration: none; }
.line strong a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Product pages (item.html) */
.product {
  display: grid; gap: clamp(24px, 4vw, 56px); margin: clamp(28px, 5vw, 56px) 0 88px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.product-media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* The large photo sits straight on the white page (no grey panel behind it),
   centred in its column. */
.product-main { display: flex; justify-content: center; }
.product-main img { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.product-thumb {
  width: 76px; height: 76px; padding: 4px; border: 1px solid var(--rule); background: var(--card); cursor: pointer;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-thumb[aria-pressed="true"] { border-color: var(--aura); outline: 1px solid var(--aura); }
.product-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .product-info { position: sticky; top: 100px; } }
.product-info h1 { font: 400 clamp(1.4rem, 0.98rem + 1.82vw, 2.38rem)/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 4px; }
.product-info h1.untitled { color: var(--muted); }
.product-price { font-size: var(--step-1); margin: 10px 0 6px; }
.product-info > .card-action, .product-info > .tag { align-self: flex-start; }
.store-link { align-self: flex-start; color: var(--muted); font: 500 var(--step--1)/1.2 var(--f-data); letter-spacing: 0.04em; text-decoration: none; padding: 4px 0; }
.store-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
/* "Also available": other products with the same design, under the product */
.related { border-top: 1px solid var(--rule); padding-top: 26px; margin-bottom: 88px; }
.related h2 { font: 400 var(--step-1)/1.1 var(--f-display); margin: 0 0 22px; }
.product-details { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 18px; max-width: 60ch; }
.product-details p { margin: 0 0 1em; line-height: 1.6; }
.product.is-sold .product-main img { opacity: .5; filter: grayscale(.4); }
.shop-note { color: var(--muted); font-size: var(--step--1); margin: 40px 0 72px; max-width: 70ch; }

/* Buy page categories: the links at the top and each section */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font: 600 var(--step--1)/1 var(--f-body); letter-spacing: 0.02em;
  padding: 11px 16px; border-radius: 999px; color: var(--paper); border: 1px solid var(--rule);
}
.chip:hover { border-color: var(--paper); }
.chip .n { font: 400 0.78em/1 var(--f-data); color: var(--muted); }
.category { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 64px; }
.category-head { margin-bottom: 26px; max-width: 70ch; }
/* Buy page section headings, e.g. "Unframed Collages" (size: smallest, growth, largest) */
.category-head h2 { font: 400 clamp(1.28rem, 1.04rem + 1.12vw, 1.92rem)/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.category-head p { margin: 0; color: var(--muted); }
.coming-soon {
  margin: 0; padding: 28px 24px; background: var(--card-raised); color: var(--muted);
  font-size: var(--step-1); text-align: center;
}
.sold-head { font: 400 var(--step-0)/1 var(--f-display); color: var(--muted); margin: 40px 0 18px; }
.opt-select {
  font: inherit; font-size: var(--step--1); color: var(--paper); background: var(--card);
  border: 1px solid #c9c5cf; border-radius: 2px; padding: 11px 10px;
}
.added.warn { color: #b42318; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--f-data); }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font: 600 1rem/1 var(--f-body);
  color: var(--paper); background: var(--card); border: 1px solid var(--rule);
}
.qty-btn:hover:not(:disabled) { border-color: var(--paper); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Cart page: items, totals and the step-by-step order request form */
.checkout { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.basket-col { min-width: 0; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding-block: 14px; border-bottom: 1px solid var(--rule);
}
.line .thumb { width: 64px; height: 64px; object-fit: contain; object-position: center; background: var(--card); grid-row: span 2; }
.line-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line .link-small { grid-column: 3; justify-self: end; }
.totals { display: flex; flex-direction: column; gap: 8px; padding-block: 16px 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); }
.summary-row span:last-child { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.summary-row.total { color: var(--paper); font-size: var(--step-1); border-top: 1px solid var(--rule); padding-top: 10px; }
.summary-row.total strong { font-family: var(--f-data); font-weight: 500; }
.empty { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.notice { background: #fff7e0; border: 1px solid #e8d48a; padding: 12px 14px; margin: 0 0 16px; }
.empty a { color: var(--paper); }

.order, .order-step { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* Category notes, e.g. the print-on-demand lead time for t-shirts and tote
   bags: on their product pages and in the cart (productNote in data/categories.js) */
.product-note { font-size: var(--step--1); line-height: 1.5; color: var(--paper);
  border-left: 3px solid var(--aura); background: var(--card-raised); padding: 10px 14px; margin: 8px 0; max-width: 46ch; }
[data-product-notes] .product-note { max-width: none; margin: 12px 0 0; }
.callout { background: var(--card-raised); border-left: 3px solid var(--aura); padding: 18px 20px; }
.callout h2 { font: 400 var(--step-0)/1.2 var(--f-display); margin: 0 0 6px; }
.callout p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font: 400 var(--step-1)/1.2 var(--f-display); padding: 0; margin-bottom: 4px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px;
}
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--aura); box-shadow: inset 0 0 0 1px var(--aura); }
.choice input { margin: 3px 0 0; accent-color: var(--aura); width: 18px; height: 18px; flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.choice small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.order label:not(.choice) { font-weight: 600; font-size: var(--step--1); margin-top: 4px; }
.opt { font-weight: 400; color: var(--muted); }
.order input:not([type=radio]), .order select, .order textarea {
  font: inherit; color: var(--paper); background: var(--card);
  border: 1px solid #c9c5cf; border-radius: 2px; padding: 11px 12px; width: 100%;
}
.order input:focus, .order select:focus, .order textarea:focus { outline: 2px solid var(--aura); outline-offset: 1px; border-color: var(--aura); }
.address { display: flex; flex-direction: column; gap: 10px; }
.field-hint { margin: -4px 0 4px; color: var(--muted); font-size: 0.95em; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.two > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-error { color: #b42318; font-weight: 600; margin: 0; }

.confirmation { max-width: 62ch; padding-block: clamp(40px, 7vw, 88px) 72px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.confirmation h2 { font: 400 clamp(1.68rem, 1.12rem + 2.8vw, 3.64rem)/0.95 var(--f-display); letter-spacing: -0.03em; margin: 0; outline: none; }
.confirmation p { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.confirmation p.meta { font-size: var(--step--1); line-height: 1.5; } /* small grey notes stay small */
.confirmation dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 8px 0; }
.confirmation dt { font: 500 var(--step--1)/1.6 var(--f-data); color: var(--muted); }
.confirmation dd { margin: 0; }
/* Back to top button (Buy page): fixed to the bottom-right corner */
.to-top {
  position: fixed; z-index: 20;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 700 var(--step--1)/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 999px;
  color: var(--paper); background: var(--card); border: 1px solid var(--rule);
  box-shadow: 0 6px 18px -8px rgba(22, 20, 26, .35);
}
.to-top:hover { border-color: var(--paper); }
.to-top:focus-visible { outline: 2px solid var(--aura); outline-offset: 3px; }

/* Confirmation page (thanks.html): the Pay button and the PayID box */
.pay-btn { font-size: var(--step-0); padding: 16px 26px; }
.payid-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  border: 1px solid var(--rule); padding: 14px 18px; background: var(--card);
}
.payid-label { font: 500 var(--step--1)/1 var(--f-data); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.payid-value { font: 500 var(--step-1)/1.2 var(--f-data); }
.preview-note { background: #fff7e0; border: 1px solid #e8d48a; padding: 12px 14px; font-size: var(--step--1) !important; }

/* Full-size viewer ("lightbox") on the Gallery page */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: rgba(255, 255, 255, .98); color: var(--paper);
}
.lightbox::backdrop { background: rgba(255, 255, 255, .98); }
.lb-inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-count { font: 400 var(--step--1)/1 var(--f-data); color: var(--muted); }
.lb-stage { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-block: 12px; }
.lb-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--rule); font: 400 1.3rem/1 var(--f-body);
}
.icon-btn:hover { border-color: var(--paper); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px));
  color: var(--muted); font-size: var(--step--1);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}