@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,800;1,800&display=swap");

:root {
  --ink: #0d0d0d;
  --paper: #fff;
  --muted: #707070;
  --line: #e6e6e6;
  --soft: #f2f2f0;
  --wrap: 1500px;
  --top-h: 86px; /* announcement + header height */
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.search-open, body.cart-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- Header ---------- */
/* A black bar on every page. Over the homepage slideshow it is see-through. */
.site-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .35s, border-color .35s;
}
.site-top.is-transparent { position: fixed; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); }
.site-top { top: env(safe-area-inset-top, 0px); }
.site-top.is-transparent:not(.is-solid) {
  background: rgba(10,10,10,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-top.is-transparent:not(.is-solid) .announce { background: rgba(10,10,10,.35); }
.announce {
  text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .22em;
  padding: 8px 16px; background: #000; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .35s;
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 54px; padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
}
.nav-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.logo { display: block; }
.logo img { height: 12px; width: auto; }
.nav-right { justify-self: end; display: flex; gap: 4px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count:empty { display: none; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0; color: inherit;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- Slide-out menu (left to right) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: min(420px, 88vw); background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 22px 28px 28px;
  transform: translateX(-100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.drawer-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.drawer-head img { height: 11px; width: auto; }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: baseline;
  text-decoration: none; padding: 10px 0;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  opacity: 0; transform: translateX(-24px);
  transition: opacity .4s, transform .5s var(--ease), color .2s;
}
body.menu-open .drawer-links a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .07s); }
.drawer-links a small { font-size: 12px; letter-spacing: 0; font-style: normal; font-weight: 500; color: var(--muted); }
.drawer-links a:hover, .drawer-links a.active { color: var(--muted); }
.drawer-foot { margin-top: auto; font-size: 11px; letter-spacing: .22em; font-weight: 600; color: var(--muted); }

/* ---------- Search ----------
   A dark overlay grows out from the top centre of the screen, then a rounded
   search bar pops up a third of the way down. Results sit straight on the dark. */
.search {
  position: fixed; inset: 0; z-index: 60; color: #fff;
  background: rgba(0,0,0,0);
  clip-path: inset(24px calc(50% - 9px) calc(100% - 42px) calc(50% - 9px) round 5px); visibility: hidden;
  /* Closing: the tint lightens right away while the square shrinks back, so it fades out instead of staying dark. */
  transition: clip-path .34s cubic-bezier(.5, 0, .2, 1) .1s, background .3s cubic-bezier(.2, .7, .3, 1) .1s, visibility 0s .44s;
}
body.search-open .search {
  clip-path: inset(0 0 0 0 round 0); visibility: visible; background: rgba(0,0,0,.88);
  /* Grows fast from a faint square; the tint deepens as it fills the screen. */
  transition: clip-path .32s cubic-bezier(.5, 0, .2, 1), background .32s cubic-bezier(.7, 0, .9, .4), visibility 0s;
}
.search-bar {
  position: absolute; top: 33vh; left: 50%;
  width: min(560px, calc(100% - 32px)); height: 54px; padding: 0 8px 0 20px;
  display: grid; grid-template-columns: 20px 1fr 38px; align-items: center; gap: 12px;
  background: #3a3a3a; color: #fff; border: 1.5px solid #fff; border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  transition: transform .25s ease-in, opacity .2s;
}
body.search-open .search-bar {
  transform: translate(-50%, -50%) scale(1); opacity: 1;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) .5s, opacity .2s .5s;
}
.search-bar > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-bar .icon-btn { width: 38px; height: 38px; border-radius: 50%; color: #fff; }
.search-bar .icon-btn svg { width: 18px; height: 18px; }
.search-bar input {
  min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; letter-spacing: .02em;
  background: none; color: #fff; caret-color: #fff; text-align: left; text-transform: uppercase;
}
.search-bar input::placeholder { color: #bdbdbd; letter-spacing: .14em; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-results {
  position: absolute; top: calc(33vh + 46px); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); max-height: calc(67vh - 60px); overflow-y: auto;
}
.search-results .empty { color: #bdbdbd; margin: 0; padding: 12px 8px; font-size: 14px; text-align: center; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.search-list a {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 18px;
  padding: 6px 12px 6px 6px; text-decoration: none; transition: background .2s;
}
.search-list a:hover, .search-list a:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.search-list img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.search-name { font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; min-width: 0; }

/* ---------- Home slideshow ---------- */
.hero { position: relative; overflow: hidden; height: 100vh; min-height: 560px; background: var(--ink); }
.track { display: flex; height: 100%; transition: transform .8s var(--ease); }
.slide { position: relative; flex: 0 0 100%; height: 100%; }
.slide-imgs { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.slide-imgs img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 50%, rgba(0,0,0,.65) 100%);
}
.slide-copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 84px; text-align: center; color: #fff; padding: 0 16px;
}
.slide-copy h2 {
  margin: 0; font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -.02em; line-height: .95;
}
.slide-copy p { margin: 10px auto 22px; max-width: 520px; font-size: 15px; line-height: 1.5; }
.btn-light {
  display: inline-block; background: #fff; color: var(--ink); text-decoration: none;
  padding: 16px 38px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-light:hover { background: var(--ink); color: #fff; }
.dots { position: absolute; z-index: 3; bottom: 36px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.dots button.on { background: #fff; }

/* ---------- Sections and product grid ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 64px 16px 80px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-title, .page-title {
  margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -.01em;
}
.link-all { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin: 10px 0 28px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
.grid-search { grid-template-columns: repeat(5, 1fr); }
.card { text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .8s var(--ease); }
.card-img .alt { opacity: 0; }
.card:hover .card-img .alt { opacity: 1; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
.card-name { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card-price { margin-top: 6px; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- Product page ---------- */
.product {
  max-width: 1080px; margin: 0 auto; padding: 48px 16px 90px;
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 420px); justify-content: center; gap: 56px;
}
.gallery #main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs img { width: 70px; aspect-ratio: 4 / 5; object-fit: cover; cursor: pointer; opacity: .5; outline: 1px solid transparent; }
.thumbs img.on { opacity: 1; outline-color: var(--ink); }
.info { align-self: start; padding-top: 8px; } /* stays in place beside the photo while scrolling */
.crumb { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.info h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; margin: 12px 0 14px; }
.price { font-size: 18px; }
.ship-note { margin: 6px 0 26px; font-size: 12px; color: var(--muted); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
/* Pill-shaped size buttons. */
.size {
  min-width: 56px; padding: 9px 16px; border: 1px solid #cfcfcf; border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 500;
}
.size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.size[disabled] { color: #b5b5b5; border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.qty-lg { margin: 0 0 24px; border-color: #cfcfcf; }
.qty-lg button { width: 42px; height: 42px; }
.qty-lg span { min-width: 34px; font-size: 14px; }
.qty button[disabled] { color: #c4c4c4; cursor: not-allowed; }
.buy {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; border: 0; padding: 14px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; font-size: 12px; cursor: pointer;
}
.info .buy { max-width: 320px; }
.buy-small { display: inline-block; width: auto; padding: 14px 34px; margin-top: 10px; }
.buy:hover { opacity: .85; }
.buy[disabled] { background: #c4c4c4; cursor: not-allowed; }
.desc { line-height: 1.7; margin-top: 28px; }

/* ---------- Policy / contact / thank-you pages ---------- */
.page-text { max-width: 720px; }
.prose { line-height: 1.7; font-size: 15px; margin-top: 18px; }
.prose h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 30px 0 6px; }
.prose p { margin: 0 0 12px; }

/* ---------- Cart (slides in from the right) ---------- */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 92vw); background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 18px 24px 24px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
body.cart-open .cart { transform: none; visibility: visible; transition-delay: 0s; }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-head h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cart-body { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; overflow-y: auto; flex: 1; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cart-lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; }
.cart-lines img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.cart-info { min-width: 0; display: grid; gap: 4px; }
.cart-name { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.cart-size { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); width: max-content; margin-top: 4px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.cart-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; margin-top: auto; }
.fine { color: var(--muted); font-size: 13px; }
.ship-to { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.ship-to select { font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid #cfcfcf; background: #fff; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink); color: #fff; padding: 56px max(16px, calc((100% - var(--wrap)) / 2)) 40px;
  display: grid; gap: 26px;
}
.foot-logo { height: 12px; width: auto; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.foot nav.foot-info a { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: #bdbdbd; text-transform: none; }
.foot-small { font-size: 12px; color: #9a9a9a; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .grid, .grid-search { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 28px; }
}
@media (max-width: 760px) {
  .nav { height: 56px; }
  .nav-links { display: none; }
  .logo img { height: 10px; }
  .product { grid-template-columns: 1fr; max-width: 480px; }
  .info { position: static; }
  .hero { height: 86vh; }
  .slide-copy { bottom: 70px; }

}
@media (prefers-reduced-motion: reduce) {
  .track, .drawer, .search, .drawer-links a { transition-duration: .01s !important; }
}
