/* VANDAL — site styles
   Colours, type and spacing come from the VANDAL brand book:
   black + silver run the brand, red is the one shout colour, everything is sharp-cornered. */

@font-face { font-family: "Anton"; src: url(../fonts/Anton-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(../fonts/ArchivoBlack-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  --ground: #f2f2f2;
  --surface: #ffffff;
  --ink: #111113;
  --muted: #5c5f66;
  --rule: #d4d5d8;
  --dark: #0d0d0f;
  --dark-rule: #2c2d31;
  --dark-muted: #9a9ca1;
  --accent: #c41a1f;
  --display: Anton, Impact, sans-serif;
  --label: "Archivo Black", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --max: 1280px;
  --gutter: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; }

/* Each main section is one screen: at least the height under the header, content centred,
   and normal scrolling settles on its top edge. A section with more than a screen of content
   just grows and scrolls as usual. */
.screen {
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; scroll-margin-top: var(--header-h);
}
.screen > .wrap { width: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/22px var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .red :focus-visible { outline-color: #ffffff; }

/* Every section clears the sticky header when jumped to */
section[id], [data-jump] { scroll-margin-top: var(--header-h); }
/* Elements a link lines up under the header get the same 32px breathing room when the browser jumps to them itself */
section[id][data-anchor], [data-anchor] { scroll-margin-top: calc(var(--header-h) + 32px); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.label { font-family: var(--label); font-size: 12px; line-height: 16px; letter-spacing: .18em; text-transform: uppercase; }
.label.accent { color: var(--accent); }
.label.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; }
.h-xl { font-size: clamp(84px, 12vw, 184px); line-height: .88; }
.h-l { font-size: clamp(56px, 7vw, 96px); line-height: .92; }
.h-m { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.lede { font-size: 17px; line-height: 26px; max-width: 440px; margin: 32px 0 0; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: #ffffff; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--label); font-size: 13px; letter-spacing: .18em;
  transition: background .2s var(--ease);
}
.btn:hover { background: var(--ink); color: #ffffff; }
.btn[aria-disabled="true"] { background: var(--rule); color: var(--muted); cursor: default; }

/* ---------- Header (fixed height, never resizes) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(242, 242, 242, .94); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: block; flex: none; line-height: 0; }
.wordmark img { height: 40px; width: auto; }
.footer-logo { height: 110px; width: auto; }
.nav { display: flex; gap: 28px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; display: flex; align-items: center; height: 100%; flex: none;
  font-family: var(--label); font-size: 12px; letter-spacing: .18em; text-decoration: none; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a.nav-order { color: var(--accent); }
.nav a.nav-order::after { background: var(--accent); }

/* ---------- Hero (current drop) ---------- */
.hero .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-drawing { flex: 1 1 420px; min-width: 0; position: relative; max-width: clamp(300px, calc((100svh - var(--header-h) - 250px) / 1.1), 600px); margin: 0 auto; }

/* Cap lift on hover: transform only, so nothing around it moves */
.cap { transition: transform .3s var(--ease), filter .3s var(--ease); filter: drop-shadow(0 4px 4px rgba(13, 13, 15, .18)); }
.cap:hover, .lift:hover .cap { transform: translateY(-6px); filter: drop-shadow(0 16px 14px rgba(13, 13, 15, .24)); }

/* ---------- Dark "the cap" slab ---------- */
.dark { background: var(--dark); color: #f2f2f2; }
.dark a { color: #f2f2f2; }
.about { padding: 64px 0; }
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.spec { margin: 0; flex: 1 1 280px; font-family: var(--label); font-size: 12px; letter-spacing: .18em; line-height: 16px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--dark-rule); }
.spec div:last-child { border-bottom: 1px solid var(--dark-rule); }
.spec dt { color: var(--dark-muted); }
.spec dd { margin: 0; }

/* ---------- Shop ---------- */
.shop { padding: 32px 0; }
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.tabs { display: flex; gap: 0; margin-top: 24px; }
.tabs[hidden] { display: none; }
.tab {
  min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-family: var(--label); font-size: 12px; letter-spacing: .18em; transition: background .2s var(--ease), color .2s var(--ease);
}
.tab + .tab { border-left: 0; }
.tab[aria-selected="true"] { background: var(--ink); color: #ffffff; }

.shop-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 32px; align-items: flex-start; }
.preview { flex: 1 1 380px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .preview { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Fixed square frame; two stacked images cross-fade so the frame never resizes */
.frame { position: relative; width: clamp(220px, calc(100svh - var(--header-h) - 420px), 460px); max-width: 100%; aspect-ratio: 1 / 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease); }
.frame img.is-on { opacity: 1; }
.frame img.is-photo { object-fit: cover; }

/* Every possible product text is stacked in one grid cell; the cell is as tall as the longest, so switching never changes height */
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.stack > .is-on { visibility: visible; }

.preview-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price { font-family: var(--display); font-size: 26px; line-height: 1; white-space: nowrap; }

.options { display: flex; flex-wrap: wrap; gap: 0; min-height: 44px; }
.opt {
  min-height: 44px; min-width: 112px; padding: 0 20px; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-family: var(--label); font-size: 12px; letter-spacing: .18em; transition: background .2s var(--ease), color .2s var(--ease);
}
.opt + .opt { border-left: 0; }
.opt[aria-pressed="true"] { background: var(--ink); color: #ffffff; }

.frame-link { display: block; width: fit-content; max-width: 100%; }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.view-link { text-decoration: none; padding: 12px 0; }
.view-link:hover { color: var(--accent); }

.products { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.product {
  width: 100%; display: flex; gap: 24px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink);
}
.product .thumb { width: 72px; height: 72px; flex: none; object-fit: contain; }
.product .info { flex: 1; min-width: 0; }
.product .short { display: block; margin-top: 4px; color: var(--muted); }
/* Reserved space: the arrow is always laid out, only shown on the row being previewed */
.product .go { flex: none; width: 72px; text-align: right; font-family: var(--label); font-size: 11px; letter-spacing: .18em; color: var(--accent); visibility: hidden; }
.product.is-current .go, .product:hover .go, .product:focus-visible .go { visibility: visible; }
.product:hover { color: var(--ink); }

/* ---------- Motto ---------- */
.red { background: var(--accent); color: #ffffff; }
.motto { padding: 48px 0; }
.motto .display { font-size: clamp(80px, 15vw, 232px); line-height: .86; }

/* ---------- Order + fit ---------- */
.order .wrap {
  padding-top: 32px; padding-bottom: 32px; display: grid; gap: 32px 64px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-areas: "copy buy" "fit buy";
}
.order-copy { grid-area: copy; }
.order-buy { grid-area: buy; }
.order .fit { grid-area: fit; }
@media (max-width: 800px) {
  .order .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "buy" "fit"; }
}
.fit { flex: 1 1 400px; min-width: 0; border-top: 2px solid var(--ink); }
.fit dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.fit dt { font-weight: 700; }
.fit dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- Checkout ---------- */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.buy-card { background: var(--surface); border: 2px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.buy-img { aspect-ratio: 4 / 3; width: 100%; }
.buy-img img { width: 100%; height: 100%; object-fit: contain; }
.buy-name { font-size: 28px; line-height: 1.05; }
.buy-price { margin: 0; color: var(--muted); }
.buy-sub { margin: -4px 0 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.buy-btn { width: 100%; margin-top: auto; }
.buy-img { display: block; }
.buy-name a { color: inherit; text-decoration: none; }
.buy-name a:hover { color: var(--accent); }
.btn.is-muted { background: var(--rule); color: var(--muted); }
.btn.is-muted:hover { background: var(--ink); color: #ffffff; }
.buy-note { margin: 20px 0 0; font-size: 11px; }

/* ---------- Product page ---------- */
.pdp .wrap { padding-top: 24px; padding-bottom: 80px; }
.crumbs { margin: 0 0 24px; font-size: 11px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 64px; align-items: start; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* Fixed square frame, cross-fading images: switching finish never changes the layout */
.pdp-frame { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; background: var(--surface); border: 2px solid var(--ink); }
.pdp-frame img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease); }
.pdp-frame img.is-on { opacity: 1; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs[hidden] { display: none; }
.pdp-thumbs button { flex: none; width: 72px; height: 72px; padding: 6px; background: var(--surface); border: 2px solid var(--rule); cursor: pointer; transition: border-color .2s var(--ease); }
.pdp-thumbs button:hover { border-color: var(--muted); }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pdp-info h1 { margin: 0; }
.pdp-price { margin: 0; font-size: 32px; }
.pdp-block { padding-top: 16px; border-top: 1px solid var(--rule); }
.opt.is-sold { text-decoration: line-through; color: var(--muted); }
.opt.is-sold[aria-pressed="true"] { color: #ffffff; }
.pdp-stock { margin: 10px 0 0; min-height: 22px; color: var(--accent); font-size: 14px; }
.pdp-buy { width: 100%; max-width: 440px; }
.pdp-secure { margin: -4px 0 0; font-size: 10px; letter-spacing: .14em; }
.pdp-fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px; background: var(--surface); border: 1px solid var(--rule); font-size: 14px; line-height: 20px; max-width: 440px; }
.pdp-fit a { text-decoration: none; font-size: 11px; }
.pdp-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .pdp-more { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 64px; } }
.pdp-more h2 { margin: 0 0 12px; font-weight: 400; }
.pdp-more p { margin: 0; max-width: 560px; }
.pdp-details { margin: 0; padding: 0; list-style: none; max-width: 560px; }
.pdp-details li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--rule); }
.pdp-details li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 24px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; background: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 2px; background: var(--rule); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--accent); }
.also { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--ink); }
.also[hidden] { display: none; }
.also-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 16px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.also-row::-webkit-scrollbar { display: none; }
.also-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); padding: 12px; }
.also-card:hover { color: var(--ink); }
.also-img { display: block; aspect-ratio: 1 / 1; }
.also-img img { width: 100%; height: 100%; object-fit: contain; }
.also-price { font-family: var(--display); font-size: 20px; line-height: 1; }
@media (max-width: 640px) {
  .pdp .wrap { padding-top: 16px; }
  .also-row { grid-auto-columns: 46%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { font-family: var(--label); font-size: 12px; letter-spacing: .18em; text-decoration: none; }

/* ---------- Policies page ---------- */
.policies { padding: 72px 0 96px; }
.policy { display: flex; flex-wrap: wrap; gap: 16px 64px; margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--ink); }
.policy h2 { flex: 1 1 280px; font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.policy-body { flex: 2 1 480px; min-width: 0; max-width: 680px; }
.policy-body p { margin: 0 0 16px; }
.policy-body p:last-child { margin-bottom: 0; }
/* Room under the last policy so its link can bring it to the top like the others */
.policy:last-of-type { min-height: calc(100vh - var(--header-h) - 32px); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border: 0; cursor: pointer;
  background: var(--ink); color: #ffffff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 56px; }
  .wordmark img { height: 34px; }
  .site-header .wrap { gap: 16px; }
  .nav { gap: 12px; }
  .nav a { font-size: 11px; letter-spacing: .08em; }
  /* On phones the selected-row tag shrinks to a small square so the text keeps its width */
  .product { gap: 16px; }
  .product .thumb { width: 64px; height: 64px; }
  .product .go { width: 20px; font-size: 0; visibility: visible; }
  .product .go::after { content: '→'; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.buy-terms { margin: 8px 0 0; font-size: 13px; line-height: 18px; }
