/* Northfold demo shop. Fonts are self-hosted (SIL Open Font License). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(../fonts/bricolage-grotesque.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400 600; font-display: swap; src: url(../fonts/figtree.woff2) format("woff2"); }

:root {
  --bg: #ffffff; --soft: #f4f2ee; --line: #e4e1db; --ink: #141414; --muted: #5f5b55;
  --accent: #1f6b3a; --accent-ink: #fff; --sale: #b3261e;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --text: "Figtree", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px); --max: 1440px; --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-stretch: 94%; }
h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; font-family: var(--text); font-weight: 500; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* demo bar and header */
.demo-bar { background: var(--ink); color: #f3f1ec; font-size: 13px; text-align: center; padding: 9px var(--pad); }
.demo-bar b { color: #9fd3b0; font-weight: 600; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }
.hdr__in { max-width: var(--max); margin: 0 auto; height: var(--hdr); padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.logo { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; }
.logo--light { color: #fff; }
.nav { display: flex; align-items: stretch; gap: 26px; height: 100%; flex: 1; }
.nav__item { display: flex; align-items: center; }
.nav__link { display: flex; align-items: center; height: 100%; font-size: 15px; text-decoration: none; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__item--mega:hover .nav__link::after { transform: scaleX(1); }
.hdr__actions { display: flex; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bag-count[hidden] { display: none; }
.bag-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.hdr__menu { display: none; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__in { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 40px; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 32px; }
.mega__col { display: flex; flex-direction: column; gap: 10px; }
.mega__col a { text-decoration: none; font-size: 15px; } .mega__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega__h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; }
.mega__card { text-decoration: none; display: grid; gap: 10px; }
.mega__card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mega__card span { font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; background: var(--ink); color: #fff; border: 1px solid var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, transform .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--wide { width: 100%; }
.btn--wa { background: var(--accent); border-color: var(--accent); }
.btn--wa:hover { background: #17552d; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }

/* hero */
.hero { position: relative; height: calc(100svh - var(--hdr) - 38px); min-height: 520px; max-height: 900px; overflow: hidden; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__img img { animation: heroZoom 1.8s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
.hero__box { position: absolute; left: var(--pad); bottom: var(--pad); max-width: 560px; background: #fff; padding: clamp(24px, 3vw, 44px); display: grid; gap: 16px; animation: rise 1s .25s var(--ease) both; }
.hero__box p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* sections */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--pad) 0; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec__head--tight { margin-top: clamp(56px, 7vw, 96px); }
.more { font-size: 15px; text-underline-offset: 4px; white-space: nowrap; }

/* categories: a sideways row on small screens */
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat { text-decoration: none; display: grid; gap: 10px; }
.cat__img { overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__name { font-size: 15px; font-weight: 500; }

/* product grid and card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.card { position: relative; }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.card__alt { opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card:hover .card__alt { opacity: 1; }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; letter-spacing: .03em; }
.card__body { padding-top: 12px; display: grid; gap: 3px; }
.card__name a { text-decoration: none; } .card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { font-variant-numeric: tabular-nums; font-weight: 500; }
.card__colour { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; display: inline-block; }
.card__add { position: absolute; right: 10px; top: calc((100% - 70px) - 54px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.card__add svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__add:hover { background: var(--accent); color: #fff; }
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

/* reveal: rows rise once as they arrive (motion off under reduced motion) */
.rv > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.rv.is-in > * { opacity: 1; transform: none; }
.rv.is-in > *:nth-child(2) { transition-delay: .06s; } .rv.is-in > *:nth-child(3) { transition-delay: .12s; } .rv.is-in > *:nth-child(4) { transition-delay: .18s; }
.rv.is-in > *:nth-child(5) { transition-delay: .24s; } .rv.is-in > *:nth-child(6) { transition-delay: .3s; } .rv.is-in > *:nth-child(7) { transition-delay: .36s; } .rv.is-in > *:nth-child(8) { transition-delay: .42s; }

/* evening split */
.split { max-width: var(--max); margin: clamp(64px, 8vw, 120px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split__img { overflow: hidden; aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.split__body { display: grid; gap: 18px; justify-items: start; }
.split__body > p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 8px 0 12px; }
.mini__item { text-decoration: none; display: grid; gap: 6px; font-size: 14px; }
.mini__item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; object-position: 50% 25%; transition: opacity .3s; }
.mini__item:hover img { opacity: .85; }
.mini__item b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* scarves banner */
.banner { position: relative; margin: clamp(64px, 8vw, 120px) auto 0; max-width: var(--max); height: min(70vh, 640px); overflow: hidden; display: flex; align-items: center; }
.banner__img { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: 50% 35%; will-change: transform; }
.banner__box { position: relative; margin-left: auto; margin-right: var(--pad); background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 44px); max-width: 460px; display: grid; gap: 14px; justify-items: start; }
.banner__box p { color: #cfcac2; }

/* perks */
.perks { max-width: var(--max); margin: clamp(64px, 8vw, 120px) auto 0; padding: 40px var(--pad); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perk { display: grid; gap: 8px; align-content: start; }
.perk svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk p { color: var(--muted); font-size: 15px; }

/* shop page */
.shop, .pdp, .page { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.shop__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.shop__count { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.f { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.f select { min-height: 44px; min-width: 190px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; }
.f--range { min-width: 220px; } .f--range output { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.f input[type=range] { accent-color: var(--accent); height: 44px; }
.empty { padding: 60px 0; display: grid; gap: 16px; justify-items: start; }

/* product page */
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery--one { grid-template-columns: 1fr; max-width: 640px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.buy { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 16px; }
.buy__cat { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.buy h1 { font-size: clamp(30px, 3.2vw, 44px); }
.buy__price { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.demo-tag { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; margin-left: 6px; vertical-align: 3px; }
.buy__colour { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.buy__form { display: grid; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.sizes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sizes legend { font-size: 14px; margin-bottom: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; min-width: 54px; height: 46px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.sizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; } .opt { color: var(--muted); }
.field input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; max-width: 220px; }
.err { color: var(--sale); font-size: 13px; }
.one-size { font-size: 14px; color: var(--muted); }
.buy__desc { color: var(--muted); }
.acc { border-top: 1px solid var(--line); padding: 14px 0; }
.acc summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; } .acc[open] summary::after { content: "\2212"; }
.acc p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* about, credits */
.page { max-width: 760px; display: grid; gap: 18px; padding-bottom: 40px; }
.page a:not(.btn) { text-underline-offset: 3px; }
.credits { columns: 2; padding-left: 18px; font-size: 14px; color: var(--muted); }
.credits li { margin-bottom: 6px; break-inside: avoid; }

/* footer */
.ftr { background: var(--ink); color: #cfcac2; margin-top: clamp(72px, 9vw, 140px); padding: 64px var(--pad) 32px; }
.ftr__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.ftr__brand { display: grid; gap: 14px; align-content: start; max-width: 360px; }
.ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr__col a { text-decoration: none; color: #f3f1ec; min-height: 28px; display: flex; align-items: center; } .ftr__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr__h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8f8a83; }
.ftr__legal { max-width: var(--max); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: 13px; color: #8f8a83; }

/* drawers */
.scrim { position: fixed; inset: 0; background: rgba(15,15,15,.45); z-index: 60; opacity: 0; transition: opacity .3s; }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 70; display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--display); font-size: 22px; font-weight: 500; }
.drawer__nav { display: grid; padding: 12px 24px; overflow-y: auto; }
.drawer__nav a { text-decoration: none; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bag__empty { padding: 32px 24px; display: grid; gap: 18px; justify-items: start; }
.bag__list { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; }
.line__name { font-weight: 500; } .line__meta { font-size: 13px; color: var(--muted); }
.line__end { display: grid; justify-items: end; align-content: space-between; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.bag__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bag__total { display: flex; justify-content: space-between; font-size: 18px; } .bag__total b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bag__note { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* tablet and phone */
@media (max-width: 1100px) {
  .nav { display: none; } .hdr__menu { display: grid; } .hdr__in { gap: 8px; }
  .logo { margin-right: auto; }
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .cat { flex: 0 0 140px; scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --hdr: 58px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .card__name { font-size: 14px; } .card__price { font-size: 14px; }
  .card__add { width: 38px; height: 38px; right: 8px; top: auto; bottom: 86px; }
  .hero { height: auto; min-height: 0; max-height: none; display: grid; }
  .hero__img { position: relative; height: 62svh; } .hero__img img { position: absolute; }
  .hero__box { position: relative; left: 0; bottom: 0; max-width: none; padding: 24px var(--pad) 8px; }
  .split, .pdp__grid { grid-template-columns: 1fr; }
  .split__img { aspect-ratio: 4 / 4.4; }
  .banner { height: auto; flex-direction: column; align-items: stretch; }
  .banner__img { position: relative; inset: auto; height: 56svh; }
  .banner__box { margin: 0; max-width: none; }
  .perks { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .buy { position: static; }
  .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; }
  .credits { columns: 1; }
  .filters { gap: 12px; } .f select { min-width: 0; width: 100%; } .f { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .15s !important; }
  .rv > * { opacity: 1; transform: none; }
}
