:root {
  --text: #1d1d1f;
  --quiet: #6e6e73;
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0066cc;
  --action: #0071e3;
  --gutter: clamp(16px, 4vw, 40px);
  --cx-bg: #fff;
  --cx-surface: #f5f5f7;
  --cx-text: #1d1d1f;
  --cx-muted: #6e6e73;
  --cx-line: #d2d2d7;
  --cx-accent: #0071e3;
  --cx-on-accent: #fff;
  --cx-radius: 12px;
  --cx-font: var(--font);
  --cx-head-weight: 600;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.47 var(--font); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
main { display: block; outline: none; min-height: 60vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }

.bar { position: sticky; top: 0; z-index: 10; background: rgb(251 251 253 / 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.bar-in { display: flex; gap: 28px; align-items: center; max-width: 1240px; height: 48px; margin: 0 auto; padding: 0 var(--gutter); font-size: 0.875rem; }
.bar a { color: var(--text); }
.bar .logo { margin-right: auto; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.n { display: inline-block; min-width: 20px; padding: 0 5px; text-align: center; border-radius: 10px; background: var(--text); color: #fff; font-size: 0.75rem; line-height: 20px; }

/* Catalog photos have their own white or grey backgrounds: multiply drops the white, feathered edges hide the grey. */
.shot {
  display: block;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  --across: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  --down: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--across), var(--down);
  mask-image: var(--across), var(--down);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero { padding: clamp(40px, 7vw, 64px) var(--gutter) 0; text-align: center; background: var(--mist); overflow: hidden; }
.hero h1 { margin: 0; font-size: clamp(2.75rem, 7.5vw, 5.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.hero p { margin: 8px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.2; }
.hero .shot { max-width: 1040px; height: clamp(280px, 46vw, 600px); margin: 32px auto 0; object-fit: cover; object-position: center 30%; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; border-radius: 24px 24px 0 0; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 20px; }
.pill { display: inline-block; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 980px; background: var(--action); color: #fff; font: inherit; line-height: 24px; cursor: pointer; }
.pill:hover { background: #0077ed; text-decoration: none; }
.pill.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pill.ghost:hover { background: var(--blue); color: #fff; }
.pill[disabled] { background: var(--line); color: var(--quiet); cursor: not-allowed; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; padding: clamp(32px, 5vw, 56px) 24px 0; text-align: center; background: var(--mist); color: var(--text); overflow: hidden; }
.tile:hover { text-decoration: none; }
.tile h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.tile p { margin: 6px 0 0; font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); line-height: 1.25; }
.tile .link { margin-top: 12px; color: var(--blue); }
.tile:hover .link { text-decoration: underline; }
.tile .shot { width: clamp(240px, 30vw, 420px); max-width: 100%; aspect-ratio: 1; margin-top: 20px; }

.statement { padding: clamp(72px, 12vw, 160px) var(--gutter); background: #000; color: #f5f5f7; text-align: center; }
.statement h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.035em; }

.store { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); scroll-margin-top: 48px; }
.store h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; padding: 0; list-style: none; }
.filters a { display: inline-block; padding: 8px 16px; border-radius: 980px; background: var(--mist); color: var(--text); font-size: 0.9375rem; }
.filters a:first-letter { text-transform: uppercase; }
.filters a[aria-current] { background: var(--text); color: #fff; }
.filters a:hover { text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 20px; border-radius: 18px; background: var(--mist); color: var(--text); transition: transform 0.25s ease; }
.card:hover { text-decoration: none; transform: scale(1.015); }
.card .tag { min-height: 1.3em; color: #b64400; font-size: 0.8125rem; font-weight: 500; }
.card .shot { aspect-ratio: 1; margin: 8px 0 16px; }
.card .name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.card .price { margin-top: 4px; }

/* Buy page */
.buy-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 96px); align-items: start; }
.gallery { position: sticky; top: 64px; padding: clamp(16px, 4vw, 48px); border-radius: 18px; background: var(--mist); }
.gallery .shot { aspect-ratio: 1; }
.buy-page h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.buy-price { margin: 12px 0 0; font-size: 1.3125rem; }
.buy-price s { margin-left: 8px; color: var(--quiet); font-size: 1.0625rem; }
fieldset { margin: 32px 0 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
legend::first-letter { text-transform: uppercase; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.opt { min-height: 52px; padding: 10px; border: 1px solid #86868b; border-radius: 12px; background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.opt::first-letter { text-transform: uppercase; }
.opt[aria-pressed='true'] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.stock { margin: 24px 0 16px; color: var(--quiet); }
.notice { min-height: 1.5em; margin: 14px 0 0; }
.desc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.desc p { margin: 0 0 12px; max-width: 62ch; color: #424245; }
.wide { width: 100%; }
.wish-row { margin-top: 10px; }
.wish-row .cx-wish { width: 100%; border-radius: 980px; color: var(--blue); }
.cx-btn { border-radius: 980px; }
.cx-checkout { margin-top: 16px; }
.foot { flex-direction: column; }
.foot [data-footer-links] { width: 100%; }
.foot .cx-foot a { color: var(--text); }

/* Bag */
.bag { max-width: 880px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 96px); }
.bag h1 { margin: 0 0 24px; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.bag ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bag li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.thumb { padding: 8px; border-radius: 12px; background: var(--mist); }
.thumb .shot { aspect-ratio: 1; }
.bag .name { color: var(--text); font-weight: 600; }
.opt-line { color: var(--quiet); }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); color: var(--text); font-size: 1.25rem; cursor: pointer; }
.qty button[disabled] { color: var(--line); cursor: not-allowed; }
.qty span { min-width: 2.5ch; text-align: center; }
.sum { display: flex; justify-content: space-between; margin-top: 24px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.small { color: var(--quiet); }

.state { padding: clamp(64px, 12vw, 140px) var(--gutter); text-align: center; }
.state h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }
.state p { margin: 0; color: var(--quiet); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 20px var(--gutter) 32px; background: var(--mist); color: var(--quiet); font-size: 0.8125rem; }
.foot p { margin: 0; max-width: 70ch; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .buy-page { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .bag li { grid-template-columns: 72px minmax(0, 1fr); }
  .bag li > .line-price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .shot { animation: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
