/* W Sticker Store */

@font-face {
  font-family: "W Display";
  src: url("../fonts/w-display-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout: blacked out. Every page is black with white type and the white mark; white is kept for
     buttons and the things you press. Pictures are shown whole, never cropped. */
  --black: #000;
  --white: #fff;
  --grey-on-white: #595959;
  --grey-on-black: #a6a6a6;
  --rule-on-white: #dcdcdc;
  --rule-on-black: #2e2e2e;
  --wash: #1a1a1a;
  --font-display: "W Display", "Avenir Next", "Century Gothic", Futura, "Trebuchet MS", sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --nav-h: 64px;
  --max: 1240px;
  color-scheme: dark;
}
@media (min-width: 860px) {
  :root { --gutter: 40px; --nav-h: 72px; }
}

/* ---------- base ---------- */

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

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--fg, currentColor); outline-offset: 3px; }
/* Headings and regions that script moves focus to (for screen readers) do not need a ring. */
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--white); color: var(--black);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* A field sets the pair of colours everything inside it draws with. */
.field-black {
  --bg: var(--black); --fg: var(--white); --muted: var(--grey-on-black); --rule: var(--rule-on-black); --wash: #1a1a1a;
  background: var(--bg); color: var(--fg);
}
.field-white {
  --bg: var(--white); --fg: var(--black); --muted: var(--grey-on-white); --rule: var(--rule-on-white); --wash: #f3f3f3;
  background: var(--bg); color: var(--fg);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg);
  font: 700 .875rem/1 var(--font-display);
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn--solid { background: var(--fg); color: var(--bg); }
@media (hover: hover) {
  .btn:hover { background: var(--fg); color: var(--bg); }
  .btn--solid:hover { background: transparent; color: var(--fg); }
}
.btn:active { opacity: .7; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .75rem; }

.textbtn {
  padding: 10px 0; border: 0; background: none;
  font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px;
}

.notice {
  padding: 12px 14px; border: 1.5px solid var(--fg);
  font-size: .9375rem; line-height: 1.45;
}
.notice--strong { background: var(--fg); color: var(--bg); }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--rule); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; height: 44px; padding-right: 10px; }
.brand img { width: auto; height: 26px; }
.nav__links { display: none; gap: 44px; }
.nav__link {
  position: relative; padding: 16px 0;
  font: 700 .75rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor;
}
@media (hover: hover) {
  .nav__link:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor;
  }
}
.nav__actions { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; color: inherit;
}
.iconbtn svg { width: 24px; height: 24px; }
.cartbtn__count {
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--fg); color: var(--bg);
  font: 700 .6875rem/20px var(--font-display); text-align: center;
}
.menubtn .icon-close { display: none; }
.menubtn[aria-expanded="true"] .icon-open { display: none; }
.menubtn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .menubtn { display: none; }
  .nav__actions { margin-right: -10px; }
}

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 39;
  overflow-y: auto; padding: 28px var(--gutter) 40px;
  animation: fade-in .16s ease-out;
}
.menu__links { display: grid; }
.menu__link {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font: 700 2rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; text-decoration: none;
}
.menu__minor { display: grid; gap: 4px; margin-top: 28px; }
.menu__minor a { padding: 8px 0; color: var(--muted); text-decoration: none; }
@media (min-width: 860px) { .menu { display: none !important; } }

/* ---------- views ---------- */

.view { display: none; flex: 1 0 auto; }
.view.is-active { display: block; }
/* Only a view the visitor has just switched to fades in; the first view is simply there. */
.view.is-entering { animation: fade-in .22s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- product ---------- */

.product { padding-block: 0 72px; }
.product__grid { display: grid; gap: 28px; }
/* Pictures are shown whole: the frame takes the picture's own shape and nothing is cropped. */
.gallery__stage { margin-inline: calc(-1 * var(--gutter)); background: var(--black); aspect-ratio: 1 / 1; }
/* Each picture gets a frame of its own shape, so it is always shown whole: never cropped, never zoomed. */
.gallery__stage[data-shape="tall"] { aspect-ratio: 1206 / 2110; }
.gallery__stage[data-shape="bike"] { aspect-ratio: 946 / 1682; }
.gallery__stage[data-shape="wide"] { aspect-ratio: 16 / 9; }
.gallery__stage img, .gallery__stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__stage video { background: var(--black); }
.gallery__caption { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: .875rem; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 10px; margin-top: 10px; }
.gallery__thumb {
  padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; background: none;
}
.gallery__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--black); }
.gallery__thumb[aria-pressed="true"] { border-bottom-color: var(--fg); }
/* a play mark on the clip, so it reads as a video before it is tapped */
.gallery__thumb--clip { position: relative; }
.gallery__thumb--clip::before, .gallery__thumb--clip::after { content: ""; position: absolute; left: 50%; top: calc(50% - 3px); }
.gallery__thumb--clip::before { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgb(0 0 0 / .66); }
.gallery__thumb--clip::after {
  margin: -6px 0 0 -3px; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--white);
}

.product__title { font-size: clamp(1.875rem, 7.8vw, 2.75rem); }
.product__price { margin-top: 16px; font: 700 1.375rem/1 var(--font-display); }
.product__price small { margin-left: 4px; color: var(--muted); font: 400 .875rem/1 var(--font-text); }
.product__note { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.product__desc { margin-top: 22px; max-width: 46ch; }
.product__buy { display: grid; gap: 16px; margin-top: 28px; }
.product__line { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.product__subtotal { text-align: right; font-size: .875rem; color: var(--muted); }
.product__subtotal strong {
  display: block; color: var(--fg); font: 700 1.25rem/1.2 var(--font-display); font-variant-numeric: tabular-nums;
}
.product__actions { display: grid; gap: 12px; }
@media (min-width: 420px) { .product__actions { grid-template-columns: 1fr 1fr; } }

.qty__label { display: block; margin-bottom: 8px; font: 600 .875rem/1.2 var(--font-text); }
.qty { display: inline-grid; grid-template-columns: 52px 60px 52px; height: 54px; border: 1.5px solid var(--fg); }
.qty__btn { display: grid; place-items: center; padding: 0; border: 0; background: none; }
.qty__btn svg { width: 18px; height: 18px; }
.qty__btn:disabled { opacity: .3; cursor: default; }
.qty__input {
  width: 100%; padding: 0; border: 0; border-inline: 1.5px solid var(--fg); background: none;
  font: 700 1rem/1 var(--font-display); text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--small { grid-template-columns: 44px 52px 44px; height: 46px; }

.specs { margin-top: 36px; border-top: 1px solid var(--rule); }
.specs__row {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--rule); font-size: .9375rem;
}
.specs dt { color: var(--muted); }
.specs a { text-underline-offset: 3px; }

@media (min-width: 860px) {
  .product { padding-block: 56px 112px; }
  .gallery__stage { margin-inline: 0; }
  .gallery__stage[data-shape="tall"], .gallery__stage[data-shape="bike"] { max-height: calc(100vh - var(--nav-h) - 96px); }
  .product__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
  .product__info { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- text pages ---------- */

.page { padding-block: 44px 80px; }
.page__grid { display: grid; gap: 28px; }
.page__title { font-size: clamp(2.25rem, 10vw, 3.75rem); }
.prose { display: grid; gap: 18px; max-width: 62ch; }
.prose h2 { margin-top: 14px; font: 600 1.125rem/1.3 var(--font-text); }
.prose a { text-underline-offset: 3px; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose--lead p { font-size: 1.25rem; line-height: 1.5; }
.prose .btn { margin-top: 10px; }
.updated { color: var(--muted); font-size: .875rem; }
@media (min-width: 860px) {
  .page { padding-block: 96px 128px; }
  .page__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .prose--lead p { font-size: 1.5rem; }
}

.qa__item { padding: 22px 0; border-top: 1px solid var(--rule); }
.qa__item:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { font: 600 1.0625rem/1.35 var(--font-text); }
.qa dd { margin-top: 8px; max-width: 60ch; color: var(--muted); }
.qa a { color: var(--fg); text-underline-offset: 3px; }

.contact { display: grid; border-top: 1px solid var(--rule); }
.contact li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.contact__label { color: var(--muted); font-size: .9375rem; }
.contact__value { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; text-underline-offset: 3px; }

/* ---------- footer ---------- */

.foot { padding: 52px 0 32px; border-top: 1px solid var(--rule); }
.foot__grid { display: grid; gap: 40px; }
.foot__brand img { width: auto; height: 36px; }
.foot__tag { margin-top: 16px; max-width: 28ch; color: var(--muted); font-size: .9375rem; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot__col { display: grid; align-content: start; }
.foot__head { margin-bottom: 6px; font: 600 .9375rem/1.4 var(--font-text); }
.foot__link { padding: 7px 0; color: var(--muted); font-size: .9375rem; text-decoration: none; }
@media (hover: hover) { .foot__link:hover { color: var(--fg); } }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .8125rem;
}
@media (min-width: 860px) {
  .foot { padding: 72px 0 36px; }
  .foot__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- cart ---------- */

.cart { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.cart__backdrop { position: absolute; inset: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .6); cursor: default; }
.cart__panel {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 460px; height: 100%;
  border-left: 1px solid var(--rule);
  animation: fade-in .16s ease-out;
}
.cart__head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  height: var(--nav-h); padding: 0 calc(var(--gutter) - 10px) 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.cart__title { font-size: 1.125rem; letter-spacing: .04em; }
.cart__body { flex: 1 1 auto; overflow-y: auto; padding: 24px var(--gutter); }
.cart__line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; }
.cart__thumb { background: var(--black); aspect-ratio: 1 / 1; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart__top { display: flex; justify-content: space-between; gap: 12px; }
.cart__name { font: 600 1rem/1.3 var(--font-text); }
.cart__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart__unit { margin-top: 2px; color: var(--muted); font-size: .875rem; }
.cart__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart__empty { display: grid; gap: 20px; justify-items: start; padding-top: 8px; }
.cart__empty p { font-size: 1.125rem; }
.cart__foot { display: grid; gap: 12px; flex: none; padding: 18px var(--gutter) 20px; border-top: 1px solid var(--rule); }
.cart__row { display: flex; justify-content: space-between; font: 600 1.0625rem/1.4 var(--font-text); font-variant-numeric: tabular-nums; }
.cart__hint { color: var(--muted); font-size: .875rem; }
.cart__foot .textbtn { justify-self: center; }

/* ---------- order confirmation ---------- */

.receipt { padding-block: 44px 88px; }
.receipt__inner { display: grid; gap: 28px; max-width: 640px; }
.receipt__title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
.receipt__lead { font-size: 1.125rem; }
.receipt__num { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: .04em; }
.receipt__box { border: 1.5px solid var(--fg); }
.receipt__rows { display: grid; }
.receipt__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.receipt__row:last-child { border-bottom: 0; }
.receipt__row--total { font-weight: 600; font-size: 1.0625rem; }
.receipt__row dt { color: var(--muted); }
.receipt__row--total dt { color: var(--fg); }
.receipt__addr { white-space: pre-line; }
.receipt__label { margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.receipt__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .receipt { padding-block: 88px 128px; } }

/* ---------- order manager ---------- */

.admin { padding-block: 32px 96px; }
.admin__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
.login { display: grid; gap: 18px; max-width: 420px; padding-top: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 .875rem/1.3 var(--font-text); }
.input {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--fg); background: var(--bg); font-size: 1rem;
}
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; font-size: .875rem; }
.status div { display: flex; gap: 6px; }
.status dt { color: var(--muted); }
.status dd { font-weight: 600; }
.checklist { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; background: var(--wash); font-size: .9375rem; }
.checklist strong { font-weight: 600; }
.tabs { display: flex; gap: 26px; margin-top: 28px; border-bottom: 1px solid var(--rule); }
.tab {
  margin-bottom: -1px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); font: 600 .9375rem/1.3 var(--font-text);
}
.tab[aria-selected="true"] { border-bottom-color: var(--fg); color: var(--fg); }
.orders { display: grid; gap: 16px; margin-top: 20px; }
.orders__empty { margin-top: 24px; color: var(--muted); }
.order { display: grid; gap: 16px; padding: 18px; border: 1.5px solid var(--fg); }
.order__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.order__num { font: 700 1.125rem/1.2 var(--font-display); letter-spacing: .04em; }
.order__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.order__date { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
.order__grid { display: grid; gap: 16px; }
.order__label { margin-bottom: 2px; color: var(--muted); font-size: .8125rem; }
.order__value { overflow-wrap: anywhere; white-space: pre-line; }
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order__shipped { font-size: .9375rem; }
.pill { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--fg); font: 600 .75rem/1.4 var(--font-text); }
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--quiet { border-color: var(--muted); color: var(--muted); }
.shipform { display: grid; gap: 12px; padding: 14px; background: var(--wash); }
.shipform__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 700px) {
  .order__grid { grid-template-columns: 1fr 1fr 1fr; }
  .shipform { grid-template-columns: 1fr 1fr; }
  .shipform__actions { grid-column: 1 / -1; }
}
.navtitle { font: 700 .75rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- not found ---------- */

.lost { display: grid; place-items: center; flex: 1; padding: 72px 0 96px; text-align: center; }
.lost__inner { display: grid; justify-items: center; gap: 24px; }
.lost__block { display: grid; place-items: center; width: min(46vw, 190px); }
.lost__block img { width: 100%; }
.lost__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
