@font-face { font-family: "Freight Big Book"; src: url("../assets/font-freight-big-book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cardo; src: url("../assets/cardo_n4.8d7bdd0369840597cbb62dc8a447619701d8d34a.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("../assets/poppins_n4.0ba78fa5af9b0e1a374041b3ceaadf0a43b41362.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("../assets/poppins_n5.ad5b4b72b59a00358afc706450c864c3c8323842.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #faf6f1;
  --blush: #f3e6e1;
  --ink: #2a2220;
  --soft: #6b5d58;
  --rose: #a4524d;       /* text-safe version of the logo rose */
  --rose-logo: #c4726e;
  --line: rgba(42, 34, 32, 0.14);
  --serif: "Freight Big Book", "Palatino Linotype", Palatino, serif;
  --body: Cardo, "Iowan Old Style", Palatino, serif;
  --sans: Poppins, "Avenir Next", "Segoe UI", sans-serif;
  --wide: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.wrap { width: var(--wide); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--soft); max-width: 40ch; margin: 18px 0 0; }
.muted { color: var(--soft); }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #f6ede8; text-align: center; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.06em; padding: 9px 16px; }
.announce a { color: inherit; text-underline-offset: 3px; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(250, 246, 241, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.logo img { width: 168px; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.bag-link { display: inline-flex; gap: 6px; align-items: center; }
.bag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font-size: 11px; letter-spacing: 0; }
.bag-count[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--rose); border-color: var(--rose); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); }
.link { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(86vh, 860px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px max(24px, calc((100vw - 1240px) / 2)) 64px max(24px, calc((100vw - 1240px) / 2)); padding-right: 64px; background: var(--blush); }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* ---------- stockist badge ---------- */
.stockist { border-bottom: 1px solid var(--line); }
.stockist .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; padding: 22px 0; text-align: center; }
.stockist p { margin: 0; }
.stockist .where { font-family: var(--serif); font-size: 24px; }
.stockist .where strong { font-weight: 400; color: var(--rose); }
.stockist .facts { display: flex; gap: 28px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); list-style: none; margin: 0; padding: 0; }
.stockist .facts li::before { content: "✦"; margin-right: 8px; color: var(--rose-logo); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head p { margin: 10px 0 0; color: var(--soft); max-width: 46ch; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
.card { text-decoration: none; display: block; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.8s ease; }
.card .ph .alt { opacity: 0; }
.card:hover .ph .alt, .card:focus-visible .ph .alt { opacity: 1; }
.card:hover .ph img:first-child { transform: scale(1.03); }
.card .tag { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(255, 255, 255, 0.92); font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; }
.card h3 { font-size: 24px; margin-top: 16px; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--soft); }

/* ---------- worn / editorial ---------- */
.worn { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.worn figure { margin: 0; }
.worn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.worn figcaption { margin-top: 12px; font-family: var(--sans); font-size: 13px; color: var(--soft); }
.worn figcaption a { color: var(--ink); }

.band { position: relative; color: #fff; }
.band img { width: 100%; height: min(70vh, 640px); object-fit: cover; }
.band .over { position: absolute; inset: 0; display: flex; align-items: end; background: linear-gradient(to top, rgba(30, 20, 18, 0.55), rgba(30, 20, 18, 0) 55%); }
.band .over .wrap { padding-bottom: 56px; }
.band h2 { max-width: 18ch; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story p { color: var(--soft); max-width: 48ch; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 48px; }
.points h3 { font-size: 22px; margin-bottom: 6px; }
.points p { margin: 0; color: var(--soft); font-size: 17px; }

/* ---------- knits ---------- */
.knits { background: var(--blush); }
.knits .grid { grid-template-columns: repeat(2, minmax(0, 360px)); }

/* ---------- product page ---------- */
.crumbs { font-family: var(--sans); font-size: 12.5px; color: var(--soft); padding: 24px 0 0; }
.crumbs a { text-decoration: none; }
.piece { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; padding: 24px 0 96px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumbs button { padding: 0; border: 1px solid transparent; background: #fff; cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery .main { background: #fff; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 100px; }
.buy .type { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin: 0 0 10px; }
.buy .price { font-family: var(--serif); font-size: 30px; margin: 14px 0 0; }
.buy .about { color: var(--soft); margin: 22px 0 28px; }
.buy .btn { width: 100%; }
.details { margin: 32px 0 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.details dt { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.details dd { margin: 0; color: var(--soft); }
.trust { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 16px 18px; background: var(--blush); font-size: 16px; }
.trust .star { font-size: 20px; color: var(--rose); }
.trust p { margin: 0; }

/* ---------- bag ---------- */
.bag { max-width: 760px; padding: 56px 0 96px; }
.lines { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; }
.lines a { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.lines p { margin: 2px 0 0; font-size: 15px; color: var(--soft); }
.lines .end { text-align: right; font-family: var(--sans); font-size: 14px; }
.lines button { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0; font-family: var(--sans); font-size: 14px; }
.total strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.form { display: grid; gap: 16px; margin-top: 12px; }
.form label { display: grid; gap: 6px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.form input, .form textarea, .form select { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; text-transform: none; letter-spacing: 0; }
.note { font-size: 15px; color: var(--soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #e9ddd8; padding: 72px 0 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot li { overflow-wrap: anywhere; }
.foot img { width: 120px; opacity: 0.9; margin-bottom: 18px; }
.foot h4 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; color: #cdbfba; font-size: 16px; max-width: 36ch; }
.foot .small { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--sans); font-size: 12px; color: #a99b96; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .piece { grid-template-columns: 1fr; gap: 36px; }
  .buy { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { gap: 16px; font-size: 11.5px; }
  .nav .hide-sm { display: none; }
  .logo img { width: 128px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; aspect-ratio: 4 / 5; }
  .hero-copy { padding: 40px 24px 48px; }
  .grid, .knits .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .card h3 { font-size: 20px; }
  .worn { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .points { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { flex-direction: row; order: 2; }
  .gallery .thumbs button { width: 72px; }
  .foot .cols { grid-template-columns: 1fr; }
  .stockist .facts { flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
}

/* ---------- fixes ---------- */
.nav { align-items: center; }
.grid > * { min-width: 0; }
.card .meta { flex-wrap: wrap; gap: 0 12px; }
.card.visit .ph { display: grid; place-items: end start; background: var(--ink); }
.card.visit .ph img { opacity: 0.55; }
.card.visit .ph span { position: relative; z-index: 1; padding: 22px; color: #fff; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.card.visit:hover .ph img { opacity: 0.7; }
@media (max-width: 760px) {
  .announce { font-size: 11.5px; }
  .stockist .where { font-size: 21px; }
  .hero-copy .actions .btn { flex: 1 1 auto; padding: 0 18px; }
}
@media (max-width: 760px) { .card.visit .ph span { font-size: 19px; padding: 14px; } }
.more-section { background: var(--blush); }

/* ---------- knit & crochet features ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature { display: grid; grid-template-columns: 0.9fr 1fr; gap: 28px; align-items: center; background: var(--paper); padding: 20px; text-decoration: none; transition: box-shadow 0.3s; }
.feature:hover { box-shadow: 0 10px 30px rgba(42, 34, 32, 0.08); }
.feature .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.feature:hover .ph img { transform: scale(1.03); }
.feature h3 { font-size: 28px; margin-bottom: 10px; }
.feature p { margin: 0 0 12px; color: var(--soft); font-size: 16px; }
.feature .eyebrow { margin-bottom: 8px; }
.feature .fprice { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 6px 0 14px; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; } }

/* ---------- shop-by tiles ---------- */
.announce .sep { margin: 0 10px; opacity: 0.6; }
.announce a[href*="pattern"] { color: #f4c9c4; }
.shopby { padding: 56px 0 0; }
.shopby .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: 28px; background: linear-gradient(to top, rgba(30, 20, 18, 0.6), rgba(30, 20, 18, 0) 60%); }
.tile .eyebrow { color: #fff; margin-bottom: 6px; }
.tile .t { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.tile .link { margin-top: 10px; color: #fff; text-decoration: underline; }
@media (max-width: 760px) {
  .shopby { padding-top: 36px; }
  .shopby .wrap { grid-template-columns: 1fr; gap: 14px; }
  .announce .sep { display: block; height: 0; overflow: hidden; }
}

/* ---------- all scarves page ---------- */
.shop-head { background: var(--blush); padding: 56px 0 64px; }
.shop-head .crumbs { margin: 0 0 18px; }
.shop-head h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.shop-head .lede { max-width: 52ch; }
.shop-body { padding: 36px 0 96px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { opacity: 0.6; margin-left: 4px; }
.sort { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: 10px; }
.sort select { font: inherit; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 9px 12px; border-radius: 0; }
.count { font-family: var(--sans); font-size: 13px; color: var(--soft); margin: 18px 0 28px; }
.shop-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.shop-grid .card h3 { font-size: 28px; }
.card .size { font-family: var(--sans); font-size: 13px; color: var(--soft); margin-top: 2px; }
.sizes { background: var(--blush); }
.trust { padding-top: 0; padding-bottom: 72px; }
.trust .points { border-top: 0; }
.sizes + .trust { padding-top: 72px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .shop-head { padding: 32px 0 40px; }
  .shop-grid { gap: 36px 14px; }
  .shop-grid .card h3 { font-size: 20px; }
  .toolbar { align-items: stretch; }
  .sort { justify-content: space-between; width: 100%; }
}

.sums { display: grid; gap: 8px; padding-top: 18px; font-family: var(--sans); font-size: 14px; }
.sums div { display: flex; justify-content: space-between; }
.bag [data-pay] { margin: 8px 0 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.note.error { color: #a3243b; }

/* help page */
.info { max-width: 760px; padding: 56px 0 96px; }
.info h1 { font-size: clamp(36px, 5vw, 52px); }
.info section { margin-top: 48px; scroll-margin-top: 24px; }
.info h2 { font-size: 28px; margin-bottom: 12px; }
.info p { color: var(--soft); }
.info a { color: var(--ink); }
.rates { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.rates th, .rates td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rates th { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.rates td + td, .rates th + th { text-align: right; }
@media (max-width: 1000px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
