@font-face {
  font-family: 'Archivo';
  src: url(/assets/fonts/archivo.woff2) format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f4f1e9;
  --paper-2: #e9e4d7;
  --ink: #16140f;
  --ink-2: #48443b;
  --blue: #1d22d6;
  --blue-deep: #1418a3;
  --line: rgba(22, 20, 15, .2);
  --pad: clamp(20px, 4vw, 56px);
  --mast-h: 76px;
  --cond: 62%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 420 18px/1.55 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.blue { color: var(--blue); }

/* ---------- display type ---------- */
.mega, .big, .cause-title, .pdp-name, .card-name, .btn, .flag, .foot h2, .prose h2, .fold summary, .bag-head h2 {
  font-stretch: var(--cond);
  text-transform: uppercase;
  word-spacing: .1em;
}
.mega {
  font-weight: 900;
  font-size: clamp(5.2rem, 15.5vw, 15.5rem);
  line-height: .8;
  letter-spacing: -.005em;
  margin: 0;
}
.mega span { display: block; }
.big {
  font-weight: 850;
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: .84;
  letter-spacing: -.005em;
  margin: 0 0 clamp(24px, 3.5vw, 44px);
}

/* ---------- masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  height: var(--mast-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.mast-logo { color: var(--blue); display: block; width: 148px; }
.mast-logo svg { width: 100%; height: auto; display: block; fill: currentColor; }
.mast-logo:hover { color: var(--ink); }
.mast-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.mast-nav a, .bag-btn {
  font-weight: 650; font-size: 18px; font-stretch: 85%;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
}
.mast-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bag-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.bag-btn:hover { color: var(--blue); }
.bag-count {
  min-width: 28px; height: 28px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-stretch: 100%; letter-spacing: 0;
}
.bag-count.has { background: var(--blue); }
.bag-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- knit bands ---------- */
.band { height: 78px; background-repeat: repeat-x; background-position: left center; }
.band-zig { background-image: url(/assets/img/knit-zig-blue.svg); background-size: auto 78px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  background: var(--blue); color: var(--paper);
  border: 0; border-radius: 2px; cursor: pointer;
  font-weight: 800; font-size: 20px; letter-spacing: .04em; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--paper-2); color: var(--ink-2); cursor: not-allowed; }
.link { font-weight: 650; font-size: 18px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding: 24px var(--pad) clamp(40px, 5vw, 72px);
}
.hero-type { display: flex; flex-direction: column; justify-content: flex-start; }
.hero-lede { font-size: clamp(19px, 1.7vw, 23px); max-width: 30ch; margin: 28px 0 0; }
.hero-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin: 28px 0 0; }
.hero-img { margin: 0; position: relative; }
.hero-img img { background: var(--paper-2); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.hero-img figcaption { font-size: 16px; color: var(--ink-2); padding-top: 10px; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    padding-top: 0; padding-bottom: 0; padding-right: 0;
    min-height: max(600px, calc(100svh - var(--mast-h) - 78px));
  }
  .hero-type { padding: clamp(28px, 3vw, 48px) 0; }
  .mega { font-size: clamp(5.2rem, 12.4vw, 14rem); }
  .hero-img { height: 100%; }
  .hero-img img { aspect-ratio: auto; height: 100%; object-position: center 25%; }
  .hero-img figcaption { position: absolute; left: 20px; bottom: 18px; padding: 0; color: var(--ink); font-weight: 600; }
}

/* ---------- sections / cards ---------- */
.sect { padding: clamp(48px, 7vw, 104px) var(--pad); }
.sect-top { padding-top: clamp(36px, 5vw, 72px); }
.cards { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } .cards-one { grid-template-columns: minmax(0, 560px); } }
.card { display: block; text-decoration: none; }
.card:hover { color: inherit; }
.card-img { display: block; position: relative; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.035); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 0; }
.card-name { font-weight: 850; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: .95; }
.card:hover .card-name { color: var(--blue); }
.card-price { font-weight: 650; font-size: 20px; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.sws { display: inline-flex; gap: 6px; }
.sw { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--ink); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.flag {
  position: absolute; left: 14px; top: 14px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 16px; letter-spacing: .05em; padding: 6px 12px;
}

/* ---------- worn rail ---------- */
.worn { padding-right: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 72vw, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 18px 0;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.rail-item { scroll-snap-align: start; text-decoration: none; }
.rail-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); transition: filter .3s ease; }
.rail-item span { display: block; font-size: 16px; padding-top: 10px; color: var(--ink-2); }
.rail-item:hover span { color: var(--blue); }

/* ---------- where the money goes ---------- */
.cause { border-top: 1.5px solid var(--ink); }
.cause-inner {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding: clamp(56px, 7vw, 104px) var(--pad);
}
@media (min-width: 900px) { .cause-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; } }
.cause-title { font-weight: 850; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: .9; margin: 0; }
.cause-text { font-size: 19px; line-height: 1.6; max-width: 38ch; margin: 22px 0 0; color: var(--ink-2); }
.cause-text a { color: var(--ink); }
.shares { list-style: none; margin: 0; padding: 0; border-bottom: 1.5px solid var(--ink); }
.shares li { border-top: 1.5px solid var(--ink); }
.shares a {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name n" "name l";
  align-items: end; column-gap: 24px; padding: 22px 0; text-decoration: none;
}
.share-name { grid-area: name; align-self: center; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; }
.share-n { grid-area: n; font-weight: 850; font-stretch: var(--cond); font-size: clamp(3rem, 5vw, 4.4rem); line-height: .85; color: var(--blue); text-align: right; }
.share-l { grid-area: l; font-size: 16px; color: var(--ink-2); text-align: right; }
.shares a:hover .share-name { color: var(--blue); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr; }
.pdp-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88vw; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pdp-gallery::-webkit-scrollbar { display: none; }
.pdp-shot { margin: 0; scroll-snap-align: start; background: var(--paper-2); }
.pdp-shot img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-info { padding: 28px var(--pad) 0; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); }
  .pdp-gallery { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 6px; }
  .pdp-shot img { aspect-ratio: auto; height: auto; }
  .pdp-info { padding: 0 var(--pad); }
  .pdp-sticky {
    position: sticky; top: var(--mast-h);
    max-height: calc(100svh - var(--mast-h));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 36px 8px 48px 6px; margin: 0 -8px 0 -6px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
}
.pdp-name { font-weight: 900; font-size: clamp(3.4rem, 6.2vw, 6rem); line-height: .82; margin: 0; }
.pdp-price { font-size: 24px; font-weight: 700; margin: 18px 0 0; }
.pdp-share { margin: 10px 0 0; font-size: 18px; }
.pdp-share b { color: var(--blue); font-weight: 850; }
.pdp-lede { margin: 20px 0 0; max-width: 46ch; }
.pdp-credit { font-size: 16px; color: var(--ink-2); margin: 28px 0 0; }

.buy { margin-top: 28px; }
.colours { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.colours legend { font-weight: 750; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; font-stretch: 85%; padding: 0; margin-bottom: 10px; }
.colours legend span { font-weight: 450; text-transform: none; letter-spacing: 0; font-stretch: 100%; margin-left: 8px; color: var(--ink-2); }
.colour {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 16px;
  border: 1.5px solid var(--line); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.colour:hover { border-color: var(--ink); }
.colour input { position: absolute; opacity: 0; pointer-events: none; }
.colour .sw { width: 28px; height: 28px; }
.colour-name { flex: 1; font-size: 18px; }
.colour-out { font-size: 15px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; font-stretch: 85%; color: var(--ink-2); }
.colour:has(input:checked) { border: 2px solid var(--ink); background: var(--paper-2); padding: 9.5px 15.5px; }
.colour:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.colour.is-out .colour-name { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-2); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: stretch; height: 54px; border: 1.5px solid var(--ink); }
.qty button { width: 46px; background: none; border: 0; font-size: 22px; cursor: pointer; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 44px; border: 0; background: none; text-align: center; font-weight: 700; font-size: 19px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy .btn { min-width: 220px; }
.buy-note { min-height: 28px; margin: 12px 0 0; font-size: 17px; }
.buy-note a { font-weight: 700; }

.fold { border-top: 1.5px solid var(--ink); }
.fold:last-of-type { border-bottom: 1.5px solid var(--ink); }
.fold summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-weight: 800; font-size: 21px; letter-spacing: .03em;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; font-size: 26px; font-weight: 500; transition: transform .2s ease; }
.fold[open] summary::after { transform: rotate(45deg); }
.fold ul { margin: 0 0 18px; padding-left: 20px; }
.fold p { margin: 0 0 18px; }
.fold:first-of-type { margin-top: 32px; }

/* ---------- prose pages ---------- */
.prose-wrap { padding: clamp(36px, 5vw, 72px) var(--pad) clamp(64px, 8vw, 120px); }
.prose { max-width: 720px; font-size: 19px; line-height: 1.65; }
.prose-lede { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; font-weight: 500; }
.prose h2 { font-weight: 850; font-size: 2.1rem; line-height: 1; margin: 48px 0 12px; }
.prose-fig { margin: 40px 0; }
.contact-big { font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; word-break: break-word; }
.rates { width: 100%; border-collapse: collapse; font-size: 18px; }
.rates th, .rates td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1.5px solid var(--line); }
.rates th { font-weight: 750; border-bottom-color: var(--ink); }
.thanks .btn { margin-top: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 0; }
.foot-band { height: 78px; background: url(/assets/img/knit-zig-ink.svg) repeat-x left center / auto 78px; }
.foot-inner { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 88px) var(--pad) 36px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--paper); }
.foot-logo { display: block; width: min(56vw, 300px); color: var(--paper); }
.foot-logo svg { width: 100%; height: auto; fill: currentColor; display: block; }
.foot-line { font-size: clamp(19px, 1.7vw, 23px); margin: 28px 0 0; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1.5px solid rgba(244, 241, 233, .3); }
.foot h2 { font-weight: 800; font-size: 20px; letter-spacing: .05em; margin: 0 0 12px; color: #c9c2b1; }
.foot-cols a { display: block; padding: 5px 0; font-size: 18px; }
.foot-small { margin: 56px 0 0; font-size: 16px; color: #c9c2b1; }

/* ---------- bag drawer ---------- */
.bag-scrim { position: fixed; inset: 0; background: rgba(22, 20, 15, .45); z-index: 40; animation: fade .2s ease; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(460px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper); border-left: 1.5px solid var(--ink);
  animation: slide .28s cubic-bezier(.2, .7, .2, 1);
}
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.bag-head { display: flex; justify-content: space-between; align-items: center; height: var(--mast-h); padding: 0 24px; border-bottom: 1.5px solid var(--ink); }
.bag-head h2 { margin: 0; font-weight: 900; font-size: 34px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }
.icon-btn:hover { color: var(--blue); }
.bag-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-empty { padding: 40px 0; font-size: 19px; }
.bag-empty .btn { margin-top: 20px; }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.line img { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-name { font-weight: 750; font-size: 18px; line-height: 1.25; text-decoration: none; }
.line-var { font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.line-price { font-weight: 650; white-space: nowrap; }
.line-ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.line .qty { height: 42px; }
.line .qty button { width: 38px; font-size: 19px; }
.line .qty span { min-width: 30px; display: grid; place-items: center; font-weight: 700; }
.line-rm { background: none; border: 0; padding: 6px 0; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); }
.line-rm:hover { color: var(--blue); }
.line-warn { grid-column: 1 / -1; font-size: 16px; font-weight: 650; color: #8f1d1d; margin: 0; }
.bag-foot { padding: 20px 24px max(24px, env(safe-area-inset-bottom)); border-top: 1.5px solid var(--ink); }
.ship { display: grid; gap: 6px; margin-bottom: 16px; }
.ship label { font-weight: 750; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; font-stretch: 85%; }
.ship select {
  height: 50px; padding: 0 40px 0 14px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper);
  font-size: 18px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316140f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sums { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 18px; font-size: 18px; }
.sums dt, .sums dd { margin: 0; }
.sums .total { font-weight: 850; font-size: 22px; padding-top: 8px; }
.pay { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay small { font-size: 15px; color: var(--ink-2); max-width: 16ch; line-height: 1.35; }
.pay-err { color: #8f1d1d; font-weight: 650; font-size: 16px; margin: 12px 0 0; }
body.bag-open { overflow: hidden; }

@media (max-width: 520px) {
  :root { --mast-h: 64px; }
  .mast-logo { width: 100px; }
  .mast-nav a, .bag-btn { font-size: 17px; }
  .buy .btn { flex: 1; min-width: 0; }
}

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