/* RRRz shop. Minimal gallery: the ground is the cloth, the product is the picture, the words are few. */
@font-face { font-family: 'Exo 2'; src: url('../fonts/exo-2-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    color-scheme: dark;
    --ground: #0A0A0C;               /* brand.json GROUND: the renders sit on this exact colour */
    --panel: #131418;                /* brand.json PANEL */
    --bone: #E9E6DD;                 /* brand.json BONE */
    --soft: #A3A098;                 /* bone at ~66% on ground: 7.4:1 */
    --line: #26262B;                 /* brand.json LINE */
    --blue: #4A74CC;                 /* brand.json BLUE, the one accent, used for focus only */
    --ui: 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Space Mono', ui-monospace, Menlo, monospace;
    --gutter: clamp(16px, 5vw, 48px);
    --rail: 1320px;
    --head: 60px;
    --plate: var(--ground);            /* the colour behind every garment photo */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
body { margin: 0; background: var(--ground); color: var(--bone); font: 400 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -- the header: the mark, the machine, the cart --------------------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--head); display: flex; align-items: center; justify-content: space-between;
       padding: 0 var(--gutter); background: rgba(10, 10, 12, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
       border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.mark { display: inline-flex; padding: 10px 0; color: var(--bone); }
.mark svg { width: 76px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 36px); font-size: 14px; letter-spacing: .01em; }
.nav a, .cart-btn { min-height: 44px; display: inline-flex; align-items: center; color: var(--soft); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"], .cart-btn:hover { color: var(--bone); }
.cart-btn { background: none; border: 0; padding: 0; cursor: pointer; gap: 6px; }
.cart-btn .n { font-family: var(--mono); font-size: 12px; min-width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 10px;
               display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; color: var(--bone); }

/* -- the home: a gallery, one thing at a time ----------------------- */
.home { max-width: var(--rail); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.lede { margin: clamp(20px, 5vw, 48px) 0 0; text-align: center; font-size: clamp(15px, 1.6vw, 18px); color: var(--soft); }
.lede b { color: var(--bone); font-weight: 600; }
.plate { display: block; margin: clamp(12px, 3vw, 32px) auto 0; }
.plate .pic { margin: 0 auto; }
.plate.hero .pic { width: min(100%, 860px); }
.cap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; text-align: center; }
.cap .n { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -.005em; }
.cap .s { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.plate:hover .n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.plate.app { margin-top: clamp(72px, 12vw, 140px); }
.plate.app .cap { margin-top: 20px; }
.section-label { margin: clamp(88px, 14vw, 160px) 0 0; text-align: center; font: 700 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 3vw, 48px); max-width: 980px; margin: 8px auto 0; }
.grid2 .plate { margin-top: 0; }
.grid2 .cap .n { font-size: 16px; }

/* -- the product page ----------------------------------------------- */
/* the product module: the one way a product is shown, on its page or set into the home */
.product { display: grid; gap: 8px; }
.product-page, .product.machine { max-width: var(--rail); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.gallery { display: grid; gap: 8px; align-content: start; }
.gallery .stage { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* every side, as a row of thumbnails; the pressed one is on the stage */
.gallery .cap { margin: 2px 0 0; font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gallery .th { display: flex; flex-direction: column; min-width: 0; padding: 0; cursor: pointer;
  background: var(--plate); border: 1px solid var(--line); border-radius: 2px; color: var(--soft); }
.gallery .th img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .th span { padding: 6px 0 7px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.gallery .th[aria-pressed="true"] { border-color: var(--bone); color: var(--bone); }
.gallery .th:hover { border-color: var(--soft); }
.gallery img { width: 100%; }
.info { padding-top: 8px; }
.info h1, .info h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.code { margin: 6px 0 0; font: 400 13px/1 var(--mono); letter-spacing: .08em; color: var(--soft); }
.state { margin: 18px 0 0; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.price { margin: 18px 0 0; font: 400 16px/1 var(--mono); }
.blurb { margin: 16px 0 0; color: var(--soft); max-width: 46ch; }
.size { margin: 24px 0 0; display: flex; align-items: center; gap: 12px; }
.size .k { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.chip { min-width: 48px; height: 44px; padding: 0 14px; border: 1px solid var(--bone); background: none; border-radius: 2px; font: 700 14px/1 var(--mono); }
.size .note { font-size: 14px; color: var(--soft); }
.act { margin-top: 20px; display: grid; gap: 10px; max-width: 440px; }
.btn { height: 52px; border-radius: 2px; border: 1px solid var(--bone); background: var(--bone); color: var(--ground); font: 700 13px/1 var(--mono);
       letter-spacing: .16em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn.ghost { background: none; color: var(--bone); }
.btn:disabled { opacity: .45; cursor: default; }
.notify { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.notify input { height: 52px; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.notify input::placeholder { color: #7C7A74; }
.notify .btn { padding: 0 18px; }
.said { margin: 0; font-size: 14px; color: var(--soft); min-height: 21px; }
.facts { margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 12px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.facts dd { margin: 0; font-size: 15px; }
details.more { border-bottom: 1px solid var(--line); }
details.more summary { cursor: pointer; list-style: none; padding: 14px 0; font: 400 12px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
                       display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; color: var(--bone); }
details.more[open] summary::after { content: '\2212'; }
details.more p { margin: 0 0 14px; font-size: 15px; color: var(--soft); max-width: 52ch; }
.strip { margin-top: 36px; }
.strip .k { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.strip .row { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.strip figure { margin: 0; }
.strip figcaption { margin-top: 4px; font: 400 11px/1 var(--mono); color: var(--soft); text-align: center; }

/* the machine's own page: its App Store frames, as Apple has them */
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 12px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter);
         scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; width: min(62vw, 300px); height: auto; scroll-snap-align: center; }   /* each image carries its own phone */

@media (min-width: 900px) {
    .product { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
    .product-page { padding-top: 24px; }
    .info { position: sticky; top: calc(var(--head) + 32px); padding-top: 40px; }
    .product.machine { grid-template-columns: 1fr; max-width: 1180px; }
    .product.machine .info { position: static; padding-top: 24px; text-align: center; }
    .product.machine .blurb, .product.machine .act { margin-left: auto; margin-right: auto; }
    .shots { overflow: visible; justify-content: center; margin: 0; padding: 0; }
    .shots img { width: calc((100% - 36px) / 4); }
}

/* -- the cart ------------------------------------------------------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .56); }
.cartpanel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--ground); border-left: 1px solid var(--line);
             display: flex; flex-direction: column; padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); }
.cartpanel header { height: var(--head); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cartpanel h2 { margin: 0; font-size: 16px; font-weight: 600; }
.x { min-height: 44px; background: none; border: 0; color: var(--soft); cursor: pointer; font-size: 14px; }
.lines { flex: 1; overflow-y: auto; padding: 8px 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; }
.line .t { font-size: 15px; }
.line .m { font: 400 12px/1.6 var(--mono); color: var(--soft); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 1px solid var(--line); background: none; cursor: pointer; }
.empty { margin: 40px 0 0; color: var(--soft); text-align: center; }
.lines:empty { display: none; }
.cartpanel .empty { flex: 1; }
.cartfoot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.sub { display: flex; justify-content: space-between; font: 400 14px/1 var(--mono); }
.cartfoot .note { margin: 0; font-size: 13px; color: var(--soft); text-align: center; }

/* -- the foot ------------------------------------------------------- */
.foot { max-width: var(--rail); margin: 0 auto; padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
        display: grid; gap: 28px; }
.foot .list h2 { margin: 0; font-size: 16px; font-weight: 600; }
.foot .list p { margin: 4px 0 12px; color: var(--soft); font-size: 14px; }
.foot .list .notify { max-width: 440px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--soft); }
.foot .links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot .links a:hover { color: var(--bone); }
.foot .mark svg { width: 56px; opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
    .pic, .gallery img, .shots img { animation: rise .6s ease both; }
    @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* -- the hero: the machine and the tagline -- */
.hero { display: grid; gap: 28px; padding: clamp(28px, 6vw, 72px) 0 0; align-items: center; }
.tag { margin: 0; font-size: clamp(34px, 7.4vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
.hero-sub { margin: 18px 0 0; max-width: 40ch; color: var(--soft); font-size: clamp(16px, 1.5vw, 18px); }
.hero-sub b { color: var(--bone); font-weight: 600; }
.hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
/* two across when both fit, else each the full width: never two ragged widths stacked */
.hero-cta .btn { flex: 1 1 200px; padding: 0 22px; }
.hero-phone { display: block; justify-self: center; }
.hero-phone .device { display: block; width: min(66vw, 320px); height: auto; }
@media (min-width: 900px) {
    .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; padding-top: 64px; }
    .hero-phone { justify-self: end; margin-right: 4%; }
}

/* -- the shelf: product cards, bone on black -- */
.shelf { margin-top: clamp(72px, 12vw, 140px); }
.shelf .section-label { margin: 0 0 20px; text-align: left; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(12px, 2.4vw, 32px); }
/* two products, two columns at every width: a row is never half empty */
.card { position: relative; display: flex; flex-direction: column; gap: 3px; }
/* the whole card is the link: the name's box stretches over it, and the flip sits above that */
.card .c-n::after { content: ''; position: absolute; inset: 0; }
.card .c-n { color: var(--bone); text-decoration: none; }
.card .c-n:focus-visible { outline: none; }
.card:has(.c-n:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }
.card .flip { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--ground) 78%, transparent); color: var(--bone);
  font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.card .flip::before { content: ''; position: absolute; inset: -6px; }
.card .flip:hover { border-color: var(--bone); }
.card.flipped .ph .alt { opacity: 1; }
.card .ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--plate); overflow: hidden; margin-bottom: 12px; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .ph .alt { opacity: 0; }
@media (hover: hover) { .card:not(.flipped):hover .ph .alt { opacity: 1; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card .ph .alt { transition: opacity .35s ease; } }
.card .c-n { font-size: 16px; font-weight: 600; }
.card .c-d { font-size: 14px; color: var(--soft); }
.card .c-s { margin-top: auto; padding-top: 4px; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
.card:hover .c-n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* the photographs are shot on a bone wall: wherever one appears, the plate behind it is bone */
.gallery img, .line img { background: var(--plate); }

/* -- the home's bands: the rashguard, the small batch, the machine -- */
.gallery .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gallery .pair img { aspect-ratio: 1 / 1; object-fit: cover; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--bone);
             text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.band { margin-top: clamp(72px, 12vw, 140px); }
.band > .section-label { margin: 0 0 20px; text-align: left; }
.lead { margin: clamp(28px, 6vw, 64px) 0 clamp(20px, 3vw, 36px); }
.band.rest { padding-top: clamp(8px, 2vw, 24px); border-top: 1px solid var(--line); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin: 0 0 20px; }
.shelf .shelf-head .section-label { margin: 0; }
.shelf-sub { margin: 0; font-size: 14px; color: var(--soft); }

/* -- LANDING, 2026-09-26 ---------------------------------------------
   The one size, said rather than offered; the line under every box that
   says where the address goes; and THE SPEC under the rashguard and the
   rugby: the open numbers, then the factory's fold, carried word for word
   from the pages that stood live and drawn here in the shop's own type. */
.size .v { font: 700 14px/1 var(--mono); }
.fine { margin: 6px 0 0; font-size: 13px; }
.fine a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--bone); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rz-spec, .ru-spec { margin-top: clamp(56px, 9vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.rz-spec + .rz-spec, .ru-spec + .ru-spec { margin-top: 28px; }
.spec-head { margin: 0 0 16px; font: 700 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.spec-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.spec-toggle:hover { color: var(--bone); }
.spec-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.spec-sign::before { content: '+'; font-size: 16px; }
.spec-toggle[aria-expanded="true"] .spec-sign::before { content: '\2212'; }

.lot-spec, .ru-nums { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 28px; }
.lot-spec div, .ru-nums div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lot-spec dt, .ru-nums dt { font: 400 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.lot-spec dd, .ru-nums dd { margin: 4px 0 0; font: 400 15px/1.4 var(--mono); }
.lot-size, .ru-size { margin-top: 12px; }

.spec-fold { display: grid; gap: 28px; margin-top: 8px; }
.spec-fold figure { margin: 0; }
.spec-fold img { display: block; width: 100%; height: auto; }
.lot-two, .ru-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lot-two img, .ru-two img, .lot-sheet img, .ru-parts img { background: var(--panel); }
.lot-backflat, .ru-backflat { position: relative; }
.spec-fold .lot-back-art, .spec-fold .ru-back-art { position: absolute; width: auto; background: none; }
.lot-cap, .ru-cap { margin-top: 6px; font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

.lot-what, .lot-plate, .ru-plate, .rz-facts, .rz-marks { margin: 0; border-top: 1px solid var(--line); }
.lot-what div, .lot-plate div, .ru-plate div, .rz-facts div, .rz-marks div {
  display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lot-what dt, .lot-plate dt, .ru-plate dt, .rz-facts dt, .rz-marks dt, .ru-built dt {
  font: 400 11px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.lot-what dd, .lot-plate dd, .ru-plate dd, .rz-facts dd, .rz-marks dd, .ru-built dd { margin: 0; font-size: 14px; }
.lot-flat-head, .rz-h, .ru-built h3 { margin: 0; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.drop-how { display: block; margin-top: 2px; font-size: 13px; color: var(--soft); }
.drop-fit, .rz-note { margin: 0; max-width: 60ch; font-size: 14px; color: var(--soft); }
.rz-code { margin-right: 6px; font-family: var(--mono); color: var(--soft); }
.ru-built dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(96px, 30%) 1fr; border-top: 1px solid var(--line); }
.ru-built dt, .ru-built dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ru-built dd { padding-left: 16px; }
.rz-table-wrap { overflow-x: auto; }
.rz-table { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--mono); }
.rz-table th, .rz-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rz-table thead th { font-weight: 400; letter-spacing: .08em; color: var(--soft); }
.rz-table tbody th { font-weight: 400; min-width: 200px; }
.rz-table td { color: var(--soft); white-space: nowrap; }
.rz-table .rz-run { color: var(--bone); }
@media (max-width: 560px) { .lot-two, .ru-two { grid-template-columns: 1fr; } }
/* The box's field is named above it rather than inside it (Ric 09-08: the field says nothing more than the
   button), and the promise stands under it in the words he ruled. */
.notify .k { grid-column: 1 / -1; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.drop-note { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
