/* The watch room: the watch pages' house style (theme assets/theme.css: Libre Caslon for display, small uppercase
   Archivo, square corners, hairlines, a dim warm ground) with the workshop's lamp in it: a warm pool behind each watch. */
:root {
  --bg: #121110; --bg-2: #1b1916; --bg-3: #23201c;
  --text: #ece6dc; --muted: rgba(236, 230, 220, 0.62); --line: rgba(236, 230, 220, 0.14);
  --lamp: #e3b878; --sale: #d0283e;
  --serif: 'Libre Caslon Text', Georgia, serif; --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --small: 12px; --tracking: 0.02em; --header-h: 64px; --gutter: clamp(16px, 3vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; } main:focus { outline: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.35em; }
h1 { font-size: clamp(36px, 6vw, 64px); } h2 { font-size: clamp(24px, 3.2vw, 34px); } h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow, .small { font-size: var(--small); letter-spacing: var(--tracking); color: var(--muted); }
.eyebrow { text-transform: uppercase; margin-bottom: 10px; }
.lede { color: var(--muted); font-size: 16px; max-width: 34em; }
.lede i { font-family: var(--serif); color: var(--text); }
.note { border-left: 2px solid var(--lamp); padding: 8px 12px; background: var(--bg-2); max-width: 40em; }
.note.err { border-color: var(--sale); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  font: 500 var(--small)/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 0; }
.button:hover { background: #fff; }
.button--ghost { background: transparent; color: var(--text); } .button--ghost:hover { background: var(--text); color: var(--bg); }
.button.small { min-height: 36px; padding: 0 14px; }
.button[disabled] { opacity: .4; cursor: default; }
.link { background: none; border: 0; padding: 8px 0; min-height: 36px; color: var(--muted); font: 400 var(--small)/1 var(--sans); letter-spacing: var(--tracking); text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: rgba(18, 17, 16, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header__logo { justify-self: center; text-decoration: none; font: 400 26px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.site-header__nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-size: var(--small); letter-spacing: var(--tracking); text-transform: uppercase; }
.site-header__nav--right { justify-self: end; }
.site-header__nav a, .site-header__nav .link { text-decoration: none; color: var(--muted); white-space: nowrap; padding: 0; }
.site-header__nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); color: var(--muted); font-size: var(--small); text-transform: uppercase; letter-spacing: var(--tracking); display: flex; justify-content: space-between; }
.site-footer a { text-decoration: none; }
@media (max-width: 599px) { .hide-mobile { display: none; } .site-header { gap: 8px; } .site-header__nav { gap: 12px; font-size: 11px; } .site-header__logo { font-size: 20px; } }

.room { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.room[aria-busy] { display: grid; place-items: center; min-height: 60vh; }
.room > section + section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row h2 { margin: 0; }

/* builds: a grid of cards, each watch in its own lamp-lit square */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 24px; }
/* phones: two to a row (Will, 2026-11-05: "instead of having the full-size, full-screen image ... particularly on mobile"),
   the card's words a size down so two fit */
@media (max-width: 599px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .grid .meta { padding-top: 10px; gap: 4px; }
  .grid .meta h3 { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
  .grid .specs { font-size: 12px; }
  .grid .blurb { font-size: 13px; }
  .grid .acts { gap: 8px 12px; }
  .grid .acts .button { width: 100%; justify-content: center; padding-left: 8px; padding-right: 8px; }
}
.card { display: flex; flex-direction: column; }
.pic-link { display: block; }
.pic { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(70% 60% at 50% 42%, #3a2f22 0%, #1d1915 55%, #121110 100%); border: 1px solid var(--line); display: grid; place-items: center; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.pic.in img { opacity: 1; } .pic.in .wl { display: none; }
.pic.none .wl { display: none; } .pic.none::after { content: 'No picture yet'; font-size: var(--small); color: var(--muted); text-transform: uppercase; letter-spacing: var(--tracking); }
.pic-link:hover .pic img { transform: scale(1.03); }
.meta { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meta h3 { margin: 0; }
.meta form { display: flex; gap: 8px; } .meta input { flex: 1; min-width: 0; }
.specs { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 13px; }
.specs b { font-weight: 500; color: var(--text); margin-right: 4px; }
.acts { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.empty { border: 1px dashed var(--line); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty p { max-width: 30em; margin: 0 auto 18px; }

/* builds as products */
.meta h3 a { text-decoration: none; } .meta h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.price { font: 500 16px/1.2 var(--sans); letter-spacing: var(--tracking); margin: 0; }
.price.big { font: 400 28px/1.1 var(--serif); margin: 4px 0 12px; }
.acts.quiet { margin-top: 0; padding-top: 0; }
.product .back { display: inline-block; margin-bottom: 20px; }
.product__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__buy h1 { font-size: clamp(32px, 4.4vw, 52px); }
.product__buy .acts { gap: 12px; margin: 16px 0 8px; } .product__buy .acts .button { flex: 1 1 200px; }
.product__buy .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* signed out: the builds are this browser's; a quiet strip offers to keep them */
.keep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--lamp); max-width: 46em; }
.keep p { margin: 0; flex: 1 1 22em; color: var(--muted); } .keep b { color: var(--text); font-weight: 500; }
.spec-list { margin: 28px 0 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: var(--small); text-transform: uppercase; letter-spacing: var(--tracking); color: var(--muted); padding-top: 2px; }
.spec-list dd { margin: 0; }
@media (max-width: 760px) { .product__in { grid-template-columns: 1fr; } .spec-list div { grid-template-columns: 7em 1fr; } }

/* taste */
.ask { max-width: 40em; } .ask p { color: var(--muted); }
.picks { margin-top: 12px; }

/* sign-in gate */
.gate { max-width: 34em; margin: 4vh auto 0; text-align: center; }
.gate .lede { margin: 0 auto 24px; }
.gate .button { min-width: 200px; margin-bottom: 12px; }
.sample { display: grid; gap: 12px; text-align: left; max-width: 340px; margin: 0 auto; }
input { min-height: 44px; padding: 0 12px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 0; font: 15px var(--sans); width: 100%; }
label { display: grid; gap: 6px; font-size: var(--small); color: var(--muted); text-transform: uppercase; letter-spacing: var(--tracking); }

/* the quiz sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(8, 7, 6, 0.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.sheet__in { width: min(640px, 100%); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); }
.sheet__top, .sheet__foot { display: flex; justify-content: space-between; align-items: center; }
.sheet__foot { margin-top: 20px; min-height: 44px; }
.bar { height: 2px; background: var(--line); margin: 8px 0 24px; } .bar i { display: block; height: 100%; background: var(--lamp); transition: width .3s ease; }
.opts { display: grid; gap: 10px; margin-top: 16px; } .opts.many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.opt { text-align: left; min-height: 52px; padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line); cursor: pointer; font: 15px/1.3 var(--sans); display: flex; flex-direction: column; gap: 3px; border-radius: 0; }
.opt small { color: var(--muted); font-size: 12px; }
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--lamp); background: #2a231a; }

/* the loading sign: a balance wheel swinging on its hairspring (as the watch pages') */
.wl { width: 34px; height: 34px; border: 1.5px solid rgba(227, 184, 120, 0.7); border-radius: 50%; position: relative; animation: wl-swing 1.1s ease-in-out infinite alternate; }
.wl::before { content: ''; position: absolute; inset: 45% -1px; background: rgba(227, 184, 120, 0.7); }
.wl::after { content: ''; position: absolute; inset: 30%; border: 1px solid rgba(227, 184, 120, 0.5); border-radius: 50%; }
@keyframes wl-swing { from { transform: rotate(-150deg); } to { transform: rotate(150deg); } }
@media (prefers-reduced-motion: reduce) { .wl { animation: none; } .pic img { transition: none; } }

/* the snapping frame (pics.js): in the viewport and drawn, so the browser keeps it running, but under a panel of the
   page's own color, behind everything, and never touched */
.snapper { position: fixed; left: 0; bottom: 0; width: 960px; height: 960px; pointer-events: none; z-index: -1; } /* (square: snap.html's 1200 px still is drawn from it) */
.snapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.snapper::after { content: ''; position: absolute; inset: 0; background: var(--bg); }

/* a build's rarity and a few words on it (stats.js): the count in the lamp's colour, the words in the body sans,
   upright (Will, 2026-11-05: no italic); until they arrive, two quiet lines */
.rarity { margin: 0; font-size: var(--small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lamp); }
.product__buy .rarity { margin: -4px 0 4px; }
.kin { margin: 0 0 4px; }
.blurb { margin: 4px 0 0; font: 400 14px/1.55 var(--sans); color: var(--muted); max-width: 36em; }
.blurb.big { font-size: 15px; margin: 10px 0 16px; padding-left: 12px; border-left: 2px solid var(--lamp); }
.blurb.wait { display: grid; gap: 9px; padding-top: 6px; }
.blurb.big.wait { padding-top: 4px; padding-bottom: 4px; }
.blurb .ph { display: block; height: 9px; background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%) 0 0 / 200% 100%; animation: ph-glow 1.8s ease-in-out infinite; }
.blurb .ph:last-child { width: 62%; }
@keyframes ph-glow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .blurb .ph { animation: none; } }

/* "Real life" (reallife.js): a build's photoreal pictures under its own, in a strip that scrolls sideways and snaps
   (on a phone it runs to the screen's edges and shows the next one's edge), each opening full screen */
.product__pics { display: grid; gap: 28px; min-width: 0; }
.real { min-width: 0; --real-h: min(66vw, 300px); }
.real__head { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 10px; }
.real__head h2 { margin: 0; font: 400 var(--small)/1.5 var(--sans); letter-spacing: var(--tracking); }
.real__n { margin-left: auto; }
.real__arrows { display: none; gap: 6px; } .real__arrows .lb__btn { width: 36px; height: 36px; }
@media (hover: hover) and (pointer: fine) { .real__arrows { display: flex; } }
.real__strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.real__strip::-webkit-scrollbar { display: none; }
.real__item { margin: 0; flex: 0 0 auto; max-width: 86%; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.real__strip.one .real__item { max-width: 100%; }
.real__shot { display: block; height: var(--real-h); max-width: 100%; padding: 0; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; cursor: zoom-in; border-radius: 0; }
.real__shot img, .gcard__pic img, .pgrid__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.real__shot:hover img, .gcard__pic:hover img, .pgrid__pic:hover img { transform: scale(1.03); }
.real__item figcaption { text-transform: uppercase; }
.real__note { margin: 12px 0 0; font-size: 11px; letter-spacing: var(--tracking); color: rgba(236, 230, 220, 0.5); }
@media (min-width: 761px) { .real { --real-h: 360px; } .real__strip { margin: 0; padding: 0; scroll-padding: 0; } }

/* the full-screen viewer (viewer.js): the picture on near-black, captions and buttons over it, all of it fading as a
   swipe down takes the picture away */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 80; --lb-fade: 1; opacity: 0; transition: opacity .2s ease; touch-action: none; -webkit-user-select: none; user-select: none; }
.lb::before { content: ''; position: absolute; inset: 0; background: #0a0908; opacity: var(--lb-fade); }
.lb--in { opacity: 1; } .lb.lb--out { opacity: 0; pointer-events: none; }
.lb__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.lb__track { position: absolute; inset: 0; will-change: transform; }
.lb__track.anim { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.lb__slide { position: absolute; top: 0; width: 100%; height: 100%; margin: 0; display: grid; place-items: center; }
.lb__slide.anim { transition: transform .25s ease; }
.lb__img { display: block; max-width: none; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; }
.lb__img.anim { transition: transform .25s ease; }
.lb--zoomed .lb__stage { cursor: grab; }
.lb__slide .wl { position: absolute; right: 18px; bottom: 18px; width: 20px; height: 20px; opacity: .8; }
.lb__slide.hd .wl { display: none; }
.lb__top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px var(--gutter); background: linear-gradient(rgba(10, 9, 8, 0.6), transparent); }
.lb__count { margin: 0; font-size: var(--small); letter-spacing: 0.08em; color: var(--muted); }
.lb__btn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: rgba(18, 17, 16, 0.55); color: var(--text); border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.lb__btn:hover { background: var(--bg-3); }
.lb__nav { position: absolute; top: 50%; margin-top: -22px; } .lb__nav--prev { left: var(--gutter); } .lb__nav--next { right: var(--gutter); }
.lb__nav[disabled] { opacity: .25; cursor: default; }
@media (hover: none) { .lb__nav { display: none; } }
.lb__foot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end;
  padding: 40px var(--gutter) max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(10, 9, 8, 0.78)); pointer-events: none; }
.lb__foot > * { pointer-events: auto; }
.lb__cap { grid-column: 1; margin: 0; font: 400 18px/1.25 var(--serif); }
.lb__note { grid-column: 1; margin: 4px 0 0; font-size: 11px; letter-spacing: var(--tracking); color: rgba(236, 230, 220, 0.55); }
.lb__foot .button { grid-column: 2; grid-row: 1 / span 2; }
.lb__top, .lb__foot, .lb__nav { transition: opacity .2s ease; }
.lb--bare .lb__top, .lb--bare .lb__foot, .lb--bare .lb__nav, .lb--zoomed .lb__foot { opacity: 0; pointer-events: none; }
.lb--bare .lb__foot > *, .lb--zoomed .lb__foot > * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lb, .lb__track.anim, .lb__slide.anim, .lb__img.anim, .real__shot img, .gcard__pic img, .pgrid__pic img { transition: none; } }

/* /gallery (gallery-page.js): the builds as cards, each its studio shot; the parts in small squares by group */
.gal .hello .real__note { margin-top: 4px; }
.ggrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gcard__pic, .pgrid__pic { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; cursor: zoom-in; border-radius: 0; }
.gcard__pic { aspect-ratio: 3 / 2; }
.pgrid__pic { aspect-ratio: 1; }
.pgroup + .pgroup { margin-top: 28px; }
.pgroup h3 { font: 400 var(--small)/1.5 var(--sans); letter-spacing: var(--tracking); }
.pgrid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(44%, 190px), 1fr)); gap: 18px 14px; }
.pgrid p { margin: 8px 0 0; }
.parts .lede { margin-bottom: 28px; }
