/* ==========================================================================
   Made by Nigora: «Ishlar daftari» / «Тетрадь работ»
   A small-press needlework notebook: sections are numbered like crochet rows,
   every piece has an edition number, details are sewn in like a care label.
   Phone first (most visitors arrive from Telegram); 700px tablet; 1100px desktop.
   ========================================================================== */

/* ---------- fonts ----------
   Self-hosted static files, each pinned to one weight and optical size and split into Cyrillic and Latin
   (made by src/web/tools/subset-fonts.mjs; keep the list in sync). A page downloads only what it uses.
     Literata          body text: 400, 500, italic (optical size 18)
     Literata Display  headlines: 400, italic 300 (optical size 72)
     Commissioner      labels and buttons: 400, 500 */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/literata-cyrillic.woff2?v=e-ogEUWELS) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/literata-latin.woff2?v=6Hi7DYDXFN) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-cyrillic-500.woff2?v=IbxyhMulEp) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-latin-500.woff2?v=8CzZz8BIsk) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/assets/fonts/literata-cyrillic-italic.woff2?v=oCyfSoDYC0) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/assets/fonts/literata-latin-italic.woff2?v=xTP9OEUQMZ) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Literata Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/literata-display-cyrillic.woff2?v=fUSUEJu6Be) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/literata-display-latin.woff2?v=Br8g5DiAMI) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Literata Display";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/assets/fonts/literata-display-cyrillic-italic.woff2?v=TvYI3xAgwR) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata Display";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/assets/fonts/literata-display-latin-italic.woff2?v=RYPQcg2JI5) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/commissioner-cyrillic.woff2?v=Z3TfNb7A-y) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/commissioner-latin.woff2?v=CsyNMYHazk) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/commissioner-cyrillic-500.woff2?v=prt-SboEp4) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/commissioner-latin-500.woff2?v=tlthb-o6Tm) format("woff2");
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+02BB-02BC, U+2010-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2191, U+2193;
}

/* Size-matched stand-ins while the web fonts load (and for the odd glyph they lack), so the swap doesn't reflow:
   Georgia (Apple, Windows) or Noto Serif (Android) for Literata; Arial or Roboto for Commissioner. */
@font-face {
  font-family: "Literata Fallback";
  src: local("Georgia");
  size-adjust: 106.8%;
  ascent-override: 110.2%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Literata Fallback";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 106.8%;
  ascent-override: 110.2%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Literata Fallback Noto";
  src: local("Noto Serif"), local("NotoSerif-Regular");
  size-adjust: 98.5%;
  ascent-override: 119.5%;
  descent-override: 31.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Literata Fallback Noto";
  font-style: italic;
  src: local("Noto Serif Italic"), local("NotoSerif-Italic");
  size-adjust: 98.5%;
  ascent-override: 119.5%;
  descent-override: 31.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Commissioner Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 99.5%;
  ascent-override: 102.2%;
  descent-override: 20.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Commissioner Fallback Roboto";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 98.7%;
  ascent-override: 103.1%;
  descent-override: 20.9%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  --paper: #f3ede3;
  --paper-2: #eae0cf; /* about band, labels */
  --paper-3: #e1d4be; /* photo placeholder */
  --ink: #2b211a; /* 13.4:1 on paper */
  --ink-2: #64554a; /*  6.0:1 on paper, 5.5:1 on paper-2 */
  --ink-3: #9a8877; /* decoration only: chains, leaders, seams */
  --clay: #a04e2c; /*  5.0:1 on paper: text and the primary button */
  --clay-deep: #8e4224; /*  5.4:1 on paper-2 */
  --clay-light: #e3a68a; /* accent on the dark ink band */
  --sage: #6f7b5e;
  --sage-deep: #56634b; /*  5.6:1 on paper */
  --line: #d6c9b5;
  --line-2: #bdac94;

  --serif: "Literata", "Literata Fallback", "Literata Fallback Noto", Georgia, serif;
  --display: "Literata Display", var(--serif);
  --sans: "Commissioner", "Commissioner Fallback", "Commissioner Fallback Roboto", system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --maxw: 1320px;
  --head-h: 56px;

  --chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cellipse cx='6' cy='4' rx='4.4' ry='2.3' fill='none' stroke='%239A8877' stroke-width='1'/%3E%3C/svg%3E");
  /* paper grain: on backgrounds only, never over photos; ~6% alpha */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .12 0 0 0 0 .08 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --seam:
    linear-gradient(90deg, var(--ink-3) 58%, transparent 0) top left / 9px 1.2px repeat-x,
    linear-gradient(90deg, var(--ink-3) 58%, transparent 0) bottom left / 9px 1.2px repeat-x,
    linear-gradient(var(--ink-3) 58%, transparent 0) top left / 1.2px 9px repeat-y,
    linear-gradient(var(--ink-3) 58%, transparent 0) top right / 1.2px 9px repeat-y;
}

@media (min-width: 700px) {
  :root {
    --gutter: 36px;
    --head-h: 60px;
  }
}
@media (min-width: 1100px) {
  :root {
    --gutter: 60px;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--grain) var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
mark {
  background: none;
  color: inherit;
}
main:focus {
  outline: none;
}

::selection {
  background: var(--clay);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nobr {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- small type ---------- */

.label,
.eyebrow,
.btn,
.head-nav a,
.tag,
.card-price,
.crumbs {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .row-no {
  color: var(--clay);
}

/* crochet chain divider (воздушные петли), only under the masthead and above the footer */
.chain {
  height: 8px;
  margin: 0;
  border: 0;
  background: var(--chain) left center / 12px 8px;
  background-repeat: round no-repeat;
}

/* the hand-drawn yarn loop */
.loop {
  width: 40px;
  height: 20px;
  flex: none;
  color: var(--clay);
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--clay);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--clay-deep);
}
.btn-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-block {
  display: flex;
  width: 100%;
}

.link {
  display: inline-block;
  padding-block: 11px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}
.link:hover {
  color: var(--clay);
}
.link .arr {
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.25s ease;
}
.link:hover .arr {
  transform: translateX(3px);
}

/* ---------- header (sticky on every page) ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--grain) var(--paper);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.site-head--home {
  border-bottom-color: transparent;
}
.site-head--home.is-stuck {
  border-bottom-color: var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--head-h);
}
.head-left {
  display: grid;
  align-items: center;
  min-width: 0;
}
.head-left > * {
  grid-area: 1 / 1;
}
.head-wm {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  padding-block: 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}
.head-wm i {
  font-weight: 300;
  color: var(--clay);
}
.head-issue {
  display: none;
  white-space: nowrap;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}
.site-head--home .head-wm {
  visibility: hidden;
  opacity: 0;
}
.site-head--home.is-stuck .head-wm {
  visibility: visible;
  opacity: 1;
}
.site-head--home.is-stuck .head-issue {
  visibility: hidden;
  opacity: 0;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.head-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.head-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.head-nav a:hover {
  color: var(--clay);
}
.head-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.head-nav .wide {
  display: none;
}

/* language switcher: "UZ · RU", the current one in clay and underlined */
.lang {
  display: flex;
  align-items: center;
  margin-right: -8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: lining-nums;
}
.lang-sep {
  color: var(--ink-3);
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 44px;
  padding: 0 6px 0 calc(6px + 0.12em);
  color: var(--ink-2);
  text-decoration: none;
}
.lang-opt:hover {
  color: var(--clay);
}
.lang-opt.is-active {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* Phones: wordmark, catalog and the language switcher must fit in 320px (a 360px Android); the channel link
   joins them from 460px. */
@media (max-width: 699.98px) {
  .head-wm {
    font-size: 20px;
  }
  .head-nav a {
    padding: 0 8px;
  }
  .lang {
    padding-left: 6px;
    margin-right: -6px;
  }
  .lang-opt {
    min-width: 30px;
    padding: 0 4px 0 calc(4px + 0.12em);
  }
}
@media (max-width: 459.98px) {
  .head-nav .head-chan {
    display: none;
  }
}
/* The narrowest phones (320-359px): wordmark, "KATALOG" / "КАТАЛОГ" and "UZ · RU" only fit in 280px with a smaller
   wordmark, tighter letter-spacing and no negative margin, so the page never scrolls sideways. */
@media (max-width: 359.98px) {
  .head-row {
    gap: 8px;
  }
  .head-wm {
    font-size: 18px;
  }
  .head-right {
    gap: 0;
  }
  .head-nav a {
    padding: 0 6px;
    letter-spacing: 0.06em;
  }
  .lang {
    margin-right: 0;
    padding-left: 4px;
    letter-spacing: 0.06em;
  }
  .lang-opt {
    min-width: 26px;
    padding: 0 3px 0 calc(3px + 0.06em);
  }
}

@media (min-width: 700px) {
  .head-issue {
    display: block;
  }
  .head-wm {
    font-size: 23px;
  }
}
@media (min-width: 900px) {
  .head-nav {
    gap: 10px;
  }
  .head-nav .wide {
    display: inline-flex;
  }
}

/* ---------- masthead (home) ---------- */

.masthead {
  padding-top: 4px;
}
.masthead .chain {
  margin-bottom: 18px;
}
.np {
  margin: 0;
  padding-bottom: 0.27em;
  font-family: var(--display);
  font-size: 11.8vw;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.np i {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--clay);
}
.np .loop {
  display: inline-block;
  width: 0.5em;
  height: 0.25em;
  margin-left: 0.05em;
  vertical-align: 0.04em;
}
.subline {
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.subline span {
  display: none;
}
.subline span:first-child {
  color: var(--ink);
}

@media (min-width: 700px) {
  .np {
    font-size: 12vw;
  }
  .subline {
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .subline span {
    display: block;
  }
  .subline span:nth-child(2) {
    text-align: center;
  }
  .subline span:nth-child(3) {
    text-align: right;
  }
}
@media (min-width: 1100px) {
  .masthead .chain {
    margin-bottom: 30px;
  }
  .np {
    font-size: min(11.4vw, 164px);
  }
}

/* ---------- cover (home hero) ---------- */

.cover {
  display: grid;
  padding-block: 18px 48px;
}
.cover-title {
  font-size: clamp(34px, 9.7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-family: var(--display);
  text-wrap: balance;
}
.cover-title em {
  display: block;
}
.cover-title em,
.page-title em,
.oops-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}
.lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.58;
  text-wrap: pretty;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 24px;
}
@media (max-width: 699.98px) {
  .cover-actions .btn {
    padding-inline: 20px;
  }
}

/* phones: the photo comes first, right under the nameplate; the headline follows it */
.cover-text {
  margin-top: 34px;
}
.cover-figure {
  order: -1;
  margin: 0 calc(var(--gutter) * -1) 0 52px;
}
.cover-stage {
  position: relative;
}
.cover-main {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.cover-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* the inset: the lifestyle photo of the same piece (or, without one, a real close-up of the main photo) */
.cover-detail {
  position: absolute;
  left: -52px;
  bottom: -40px;
  width: 36%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
  outline: 6px solid var(--paper);
}
.cover-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* a slightly closer crop than the photo itself, so it reads as a second look rather than a thumbnail */
  transform: scale(1.3);
  transform-origin: 50% 42%;
}
.cover-detail.is-zoom img {
  transform: scale(var(--zoom, 6));
  transform-origin: var(--focus, 50% 45%);
}
.cover-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin: 12px var(--gutter) 0 calc(36% - 52px + 14px);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.cover-cap-price {
  font-style: normal;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.cover-cap-no {
  flex: none;
  display: none;
  /* 44px tap target without moving the line */
  padding: 14px 4px;
  margin: -14px -4px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
}

.now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 34em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.now-label {
  padding-top: 2px;
  color: var(--clay);
}
.now-body {
  display: grid;
  gap: 6px;
}
.now-count {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
}

@media (min-width: 700px) {
  .cover {
    padding-block: 30px 64px;
  }
  .cover-text {
    margin-top: 0;
  }
  .cover-figure {
    order: 0;
    margin: 44px calc(var(--gutter) * -1) 0 30%;
  }
  .cover-detail {
    left: -22%;
    bottom: -48px;
    width: 38%;
  }
  .cover-cap {
    min-height: 48px;
    margin-left: calc(38% - 22% + 20px);
  }
  .cover-cap-no {
    display: inline-block;
  }
}
@media (min-width: 1100px) {
  .cover {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    padding-block: 44px 120px;
  }
  .cover-text {
    grid-column: 1 / span 6;
    grid-row: 1;
    padding-top: 10px;
  }
  .cover-title {
    font-size: clamp(52px, 4.9vw, 70px);
  }
  .lede {
    margin-top: 28px;
    font-size: 19px;
  }
  .cover-actions {
    margin-top: 32px;
  }
  .cover-figure {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .cover-detail {
    left: -22%;
    bottom: -40px;
    width: 40%;
    outline-width: 10px;
  }
  .cover-cap {
    margin: 14px 0 0 calc(18% + 22px);
  }
  .now {
    grid-column: 1 / span 5;
    grid-row: 2;
    align-self: start;
    margin-top: 64px;
  }
}

/* ---------- section heads ---------- */

.section {
  padding-block: 48px;
}
/* same paper above and below: one gap, not two */
.contents-sec + .section {
  padding-top: 0;
}
.sec-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.sec-title {
  max-width: 15em;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: var(--display);
  text-wrap: balance;
}
.sec-aside {
  max-width: 30em;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 700px) {
  .section {
    padding-block: 64px;
  }
}
@media (min-width: 1100px) {
  .section {
    padding-block: 112px;
  }
  .sec-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    margin-bottom: 56px;
  }
  .sec-head .eyebrow {
    grid-column: 1 / -1;
  }
  .sec-title {
    grid-column: 1 / span 7;
  }
  .sec-aside {
    grid-column: 9 / span 4;
    align-self: end;
  }
}

/* ---------- Ряд 01: contents (categories as a table of contents) ---------- */

.contents-sec {
  padding-top: 8px;
}
.contents {
  display: grid;
  gap: 40px;
  margin-top: 18px;
}
.toc {
  border-top: 1px solid var(--ink);
}
.toc li {
  border-bottom: 1px solid var(--line);
}
.toc a {
  display: grid;
  grid-template-columns: 48px 20px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb no name count"
    "thumb no sub sub";
  align-content: center;
  align-items: baseline;
  column-gap: 10px;
  min-height: 92px;
  padding-block: 12px;
  text-decoration: none;
  color: var(--ink);
}
.toc-thumb {
  grid-area: thumb;
  align-self: center;
  width: 48px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.toc-thumb picture {
  display: contents;
}
.toc-thumb img,
.toc-thumb .ph-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.toc-no {
  grid-area: no;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--clay);
  font-variant-numeric: lining-nums tabular-nums;
}
.toc-name {
  grid-area: name;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 21.5px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.toc-name::after,
.f-name::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: radial-gradient(circle, var(--ink-3) 0.9px, transparent 1.2px) left center / 7px 2px repeat-x;
  transform: translateY(-4px);
}
.toc-count {
  grid-area: count;
  padding-left: 6px;
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink-2);
}
.toc .is-empty .toc-count {
  font-size: 15px;
}
.toc .is-empty .toc-name {
  color: var(--ink-2);
}
.toc-sub {
  grid-area: sub;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.toc a:hover .toc-name {
  color: var(--clay);
}
.toc-preview {
  display: none;
}

@media (min-width: 700px) {
  .toc a {
    grid-template-columns: 64px 40px minmax(0, 1fr) auto;
    column-gap: 14px;
    min-height: 108px;
  }
  .toc-thumb {
    width: 64px;
  }
  .toc-name {
    font-size: 34px;
  }
  .toc-count {
    font-size: 26px;
  }
  .toc-sub {
    font-size: 14px;
  }
}

/* desktop with a mouse: rows lose the thumbnail; hovering a row swaps the photo on the right */
@media (min-width: 1100px) and (hover: hover) {
  .contents {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    margin-top: 28px;
  }
  .toc {
    grid-column: 1 / span 7;
  }
  .toc a {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "no name count"
      "no sub sub";
    min-height: 0;
    padding-block: 22px 20px;
  }
  .toc-thumb {
    display: none;
  }
  .toc-name {
    font-size: 44px;
  }
  .toc-count {
    font-size: 30px;
  }
  .toc-preview {
    display: block;
    grid-column: 9 / span 4;
    position: sticky;
    top: calc(var(--head-h) + 32px);
  }
  .toc-preview .stack {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-3);
  }
  .toc-preview .stack > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
  }
  .toc-preview .stack img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .toc-preview .stack > :first-child {
    opacity: 1;
  }
  .toc-preview p {
    margin-top: 10px;
    font-style: italic;
    font-size: 14px;
    color: var(--ink-2);
  }
  .contents:has(.toc li:nth-child(2):hover) .stack > :nth-child(1),
  .contents:has(.toc li:nth-child(3):hover) .stack > :nth-child(1),
  .contents:has(.toc li:nth-child(4):hover) .stack > :nth-child(1),
  .contents:has(.toc li:nth-child(5):hover) .stack > :nth-child(1) {
    opacity: 0;
  }
  .contents:has(.toc li:nth-child(2):hover) .stack > :nth-child(2),
  .contents:has(.toc li:nth-child(3):hover) .stack > :nth-child(3),
  .contents:has(.toc li:nth-child(4):hover) .stack > :nth-child(4),
  .contents:has(.toc li:nth-child(5):hover) .stack > :nth-child(5) {
    opacity: 1;
  }
}

/* ---------- product cards & grids ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 34px;
}
@media (min-width: 700px) {
  .works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 48px;
  }
}
@media (min-width: 1100px) {
  .works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 64px;
  }
  /* the home strip is staggered like a pinned lookbook; catalog grids stay even. A transform (not a margin) moves
     columns 2 and 4 down without stretching their rows, so the gap between rows is the same in every column. */
  .works--stagger {
    padding-bottom: 64px;
  }
  .works--stagger > :nth-child(4n + 2),
  .works--stagger > :nth-child(4n + 4) {
    transform: translateY(64px);
  }
}
/* tablet: three columns, so the home strip shows two full rows */
@media (min-width: 700px) and (max-width: 1099px) {
  .works--stagger > :nth-child(n + 7) {
    display: none;
  }
}

.card-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.ph img,
.ph .ph-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.ph-empty {
  display: block;
  background: var(--paper-3);
}
/* a gentle warm grade so busy home snapshots sit calmly together (cards only, never the gallery) */
.card .ph img,
.toc-thumb img,
.toc-preview img,
.post .ph img {
  filter: saturate(0.9) sepia(0.05);
}
.card .ph img {
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@media (hover: hover) {
  .card-link:hover .ph img {
    transform: scale(1.025);
  }
  .card-link:hover .card-title {
    color: var(--clay);
  }
}
.card.is-sold .ph img {
  filter: saturate(0.45) sepia(0.12) contrast(0.95) brightness(1.03);
}
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 7px 10px 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-title {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.card-price {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card-price .is-ask {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-2);
}
.card-price.is-lead {
  font-size: 14.5px;
  color: var(--clay);
}
@media (min-width: 1100px) {
  .card-title {
    margin-top: 14px;
    font-size: 21px;
  }
}

.works-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
@media (min-width: 700px) {
  .works-foot {
    margin-top: 44px;
  }
}
@media (min-width: 1100px) {
  .works-foot {
    margin-top: 80px;
  }
}

/* ---------- Ряд 03: about the maker ---------- */

.about {
  background: var(--grain) var(--paper-2);
}
.about > .wrap > .eyebrow {
  margin-bottom: 28px;
}
/* clay is 4.4:1 on the oat band; the deeper clay passes 4.5:1 */
.about .eyebrow .row-no {
  color: var(--clay-deep);
}
.about-grid {
  display: grid;
  gap: 32px;
}
.about-photo {
  width: 78%;
}
.about-photo .ph img {
  object-position: 50% 22%;
}
.about-photo figcaption {
  margin-top: 10px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.about-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-family: var(--display);
  text-wrap: balance;
}
.about-text .eyebrow {
  margin-bottom: 18px;
}
.prose {
  display: grid;
  gap: 14px;
  max-width: 34em;
  margin-top: 22px;
  text-wrap: pretty;
}
.about-quote {
  max-width: 28em;
  margin-top: 26px;
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-style: italic;
  font-size: 19px;
}
.about-more {
  margin-top: 22px;
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 36px;
    align-items: start;
  }
  /* home: a short introduction, set against the middle of the portrait rather than hanging from its top edge */
  .about:not(.about--page) .about-text {
    align-self: center;
    padding-top: 0;
  }
  .about-photo {
    width: auto;
  }
}
@media (min-width: 1100px) {
  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .about-photo {
    grid-column: 1 / span 5;
  }
  .about-text {
    grid-column: 7 / span 6;
    padding-top: 8px;
  }
  .about-quote {
    font-size: 22px;
  }
}

.about--page {
  padding-bottom: 48px;
}
@media (min-width: 700px) {
  .about--page {
    padding-bottom: 64px;
  }
}
.about--page .crumbs {
  margin-bottom: 8px;
}
@media (min-width: 1100px) {
  .about--page {
    padding-bottom: 112px;
  }
  .about--page .about-photo {
    position: sticky;
    top: calc(var(--head-h) + 32px);
  }
}

/* /about: how I work: yarn, timings, delivery */
.craft .sec-head {
  margin-bottom: 18px;
}
.craft-list {
  display: grid;
  border-top: 1px solid var(--ink);
}
.craft-item {
  display: grid;
  gap: 8px;
  padding-block: 20px 22px;
  border-bottom: 1px solid var(--line-2);
}
.craft-title {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.craft-text {
  max-width: 30em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.craft-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}
.craft-note {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
@media (min-width: 700px) {
  .craft-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    border-bottom: 1px solid var(--line-2);
  }
  .craft-item {
    align-content: start;
    padding-block: 22px 30px;
    border-bottom: 0;
  }
  .craft-title {
    font-size: 28px;
  }
  .craft-cta {
    margin-top: 40px;
  }
}

/* ---------- Ряд 04: how to order, three steps joined by a seam ---------- */

.steps {
  display: grid;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "n title"
    "n text";
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  padding-bottom: 34px;
}
.step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 64px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(var(--ink-3) 55%, transparent 0) top / 1.5px 9px repeat-y;
}
.step:last-child {
  padding-bottom: 0;
}
.step:last-child::before {
  display: none;
}
.step-n {
  grid-area: n;
  height: 56px;
  font-style: italic;
  font-weight: 300;
  font-size: 54px;
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: lining-nums;
  font-family: var(--display);
}
.step-title {
  grid-area: title;
  padding-top: 10px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step-text {
  grid-area: text;
  max-width: 26em;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.hl {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap; /* "odatda 2-3 hafta" never breaks at its hyphen */
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
  }
  .step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "n"
      "title"
      "text";
    grid-template-rows: 80px auto 1fr;
    padding: 0 12px 0 0;
  }
  .step::before {
    left: 60px;
    right: 0;
    top: 38px;
    bottom: auto;
    width: auto;
    height: 1.5px;
    background: linear-gradient(90deg, var(--ink-3) 55%, transparent 0) left / 9px 1.5px repeat-x;
  }
  .step-n {
    height: 80px;
    font-size: 76px;
  }
  .step-title {
    padding-top: 16px;
    font-size: 25px;
  }
}

/* ---------- Ряд 05: Telegram channel band ---------- */

.channel {
  padding-block: 64px;
  background: var(--ink);
  color: var(--paper);
}
.channel .eyebrow {
  color: #cdbfae;
}
.channel .eyebrow .row-no {
  color: var(--clay-light);
}
.channel-grid {
  display: grid;
  gap: 30px;
  margin-top: 24px;
}
.channel-title {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-family: var(--display);
  text-wrap: balance;
}
.channel-side {
  display: grid;
  gap: 24px;
}
.channel-list {
  display: grid;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #dccfbf;
}
.channel-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
}
.channel-list li::before {
  content: "-";
  color: var(--clay-light);
}
.channel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover {
  background: #fff;
}
.handle {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #cdbfae;
}
.channel-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.post {
  display: block;
  text-decoration: none;
  color: var(--paper);
}
.post .ph {
  background: #3b2f26;
}
.post-date {
  display: block;
  margin-top: 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-light);
}
.post-title {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.3;
  color: #dccfbf;
  overflow-wrap: anywhere;
}
.post:hover .post-title {
  color: var(--paper);
}
.channel :focus-visible {
  outline-color: var(--clay-light);
}

@media (min-width: 1100px) {
  .channel {
    padding-block: 112px;
  }
  .channel-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 48px;
    margin-top: 48px;
  }
  .channel-title {
    grid-column: 1 / span 7;
  }
  .channel-side {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .channel-posts {
    grid-column: 1 / span 6;
    gap: 20px;
  }
  .post-title {
    font-size: 15px;
  }
}

/* ---------- footer ---------- */

.site-foot {
  padding-block: 40px calc(28px + env(safe-area-inset-bottom));
}
.site-foot .chain {
  margin-bottom: 36px;
}
.foot-top {
  display: grid;
  gap: 32px;
}
.foot-wm {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: var(--display);
}
.foot-wm i {
  font-weight: 300;
  color: var(--clay);
}
.foot-tagline {
  max-width: 22em;
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 20px;
}
.foot-cols h2 {
  margin-bottom: 6px;
}
.foot-cols ul {
  display: grid;
  font-family: var(--sans);
  font-size: 15px;
}
.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.foot-cols a:hover {
  color: var(--clay);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}
.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
@media (min-width: 1100px) {
  .site-foot {
    padding-block: 64px 32px;
  }
  .foot-top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .foot-brand {
    grid-column: 1 / span 6;
  }
  .foot-cols {
    grid-column: 8 / span 5;
  }
  .foot-wm {
    font-size: 64px;
  }
}

/* ---------- breadcrumbs & page heads ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  padding-block: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--clay);
}
.crumbs .sep {
  color: var(--ink-3);
}
@media (min-width: 1100px) {
  .crumbs {
    padding-block: 12px 18px;
  }
}

.page-head {
  padding-block: 8px 28px;
}
.page-title {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: var(--display);
  text-wrap: balance;
}
.page-count {
  display: inline-block;
  font-size: 0.42em;
  vertical-align: 0.95em;
  letter-spacing: 0;
  font-variant-numeric: oldstyle-nums;
}
.page-lede {
  max-width: 34em;
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- catalog: contents rows double as filters ---------- */

.catalog {
  padding-bottom: 72px;
}
.filters {
  margin-bottom: 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.filter-list {
  position: relative;
  display: flex;
  gap: 0 24px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.filter-list::-webkit-scrollbar {
  display: none;
}
.filter-list::after {
  content: "";
  flex: 0 0 1px;
}
.filter {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 52px;
  padding-block: 14px 10px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}
.f-name::after {
  display: none;
}
.f-count {
  position: relative;
  top: -0.45em;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
}
.filter:hover .f-name {
  color: var(--clay);
}
.filter.is-active .f-name {
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.avail {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.avail-opt {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 46px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.avail-opt:first-child {
  padding-left: 0;
}
.avail-opt:hover {
  color: var(--ink);
}
.avail-opt.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.bespoke {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
}
.bespoke b {
  font-weight: 500;
  color: var(--ink);
}
.bespoke .btn {
  justify-self: start;
}
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}
.pager > :last-child {
  justify-self: end;
}

@media (min-width: 700px) {
  .avail {
    border-top: 0;
  }
  .filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .filter-list {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  .bespoke {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
@media (min-width: 1100px) {
  .catalog {
    padding-bottom: 112px;
  }
  .page-head {
    padding-block: 12px 48px;
  }
  .catalog-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .filters {
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--head-h) + 24px);
    display: block;
    margin: 0;
    border-bottom: 0;
  }
  .filter-list {
    display: block;
  }
  .filter {
    min-height: 54px;
    padding-block: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 21px;
  }
  .f-name {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 8px;
  }
  .f-name::after {
    display: block;
  }
  .f-count {
    top: 0;
    font-size: 18px;
  }
  .avail {
    margin: 10px 0 0;
  }
  .catalog-main {
    grid-column: 5 / -1;
  }
  .catalog-main .works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- empty states ---------- */

.empty {
  max-width: 36em;
  padding: 36px 0 24px;
}
.empty-loop {
  width: 56px;
  height: 28px;
}
.empty-title {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.empty-text {
  margin-top: 12px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */

.product {
  display: grid;
  gap: 26px;
  padding-bottom: 56px;
}

/* gallery: a swipeable strip on phones, stacked on desktop */
.gallery {
  margin-inline: calc(var(--gutter) * -1);
  min-width: 0;
}
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 8px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery--1 .gallery-track {
  grid-auto-columns: 100%;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.slide {
  scroll-snap-align: start;
}
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) 0;
}
.gallery-bar .count {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums lining-nums;
}
.gallery-bar .count b {
  font-weight: 500;
  color: var(--ink);
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 18px;
  height: 2px;
  background: var(--line-2);
  transition: background-color 0.2s ease;
}
.dots i.on {
  background: var(--ink);
}
.gallery-bar .hint {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
}

.p-info,
.p-main,
.p-more {
  min-width: 0;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}
@media (max-width: 699.98px) {
  .kicker-date {
    display: none;
  }
}
.p-title {
  margin-top: 12px;
  font-size: clamp(36px, 9.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-family: var(--display);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.buy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.p-price {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.p-price.is-ask {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--sage-deep);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sage);
}

.ctas {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.cta-note {
  margin: -2px 0 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-2);
  text-wrap: balance;
}
@media (min-width: 700px) {
  .cta-note {
    text-align: left;
  }
}

/* reassurance: a hairline and the loop (the stitched box is kept for the details label only) */
.one-off {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.care::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background: var(--seam);
}
.one-off .loop {
  width: 34px;
  height: 17px;
  margin-top: 3px;
}
.one-off b {
  font-weight: 500;
}

.p-desc {
  display: grid;
  gap: 14px;
  max-width: 34em;
  margin-top: 34px;
  text-wrap: pretty;
}
/* details, sewn in like a care label */
.care {
  position: relative;
  margin-top: 32px;
  padding: 22px 22px 16px;
  background: var(--paper-2);
}
.care-head {
  margin-bottom: 6px;
  color: var(--clay-deep);
}
.care dl div {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr);
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.45;
}
.care dl div:last-child {
  border-bottom: 0;
}
.care dt {
  padding-top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}

.size-note {
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.size-note a {
  color: var(--ink);
  text-decoration-color: var(--clay);
  text-underline-offset: 3px;
}

/* objection-handling: three expandable questions */
.faq {
  margin-top: 26px;
  border-top: 1px solid var(--line-2);
}
.faq-item {
  border-bottom: 1px solid var(--line-2);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding-block: 12px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-2);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  color: var(--clay);
}
.faq-item p {
  max-width: 34em;
  padding-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.faq-sec {
  padding-top: 0;
}
.faq-sec .faq {
  max-width: 48em;
  margin-top: 0;
}

/* sold state */
.product.is-sold .p-price {
  font-weight: 400;
  color: var(--ink-2);
}
.product.is-sold .status {
  color: var(--clay-deep);
}
.product.is-sold .status::before {
  background: var(--clay);
}

/* related */
.related {
  padding-top: 8px;
}

/* sticky order bar: phones and tablets, after the main button has scrolled away, hidden over the footer */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--grain) var(--paper);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0.3s;
}
.dock.show {
  transform: none;
  visibility: visible;
}
.d-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d-title span {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: lining-nums tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock .btn {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 14.5px;
}

/* tablet: strip of two-ish photos, info in two columns */
@media (min-width: 700px) and (max-width: 1099px) {
  .gallery-track {
    grid-auto-columns: 58%;
  }
  .gallery--1 .gallery-track {
    grid-auto-columns: 72%;
  }
  .p-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  .p-desc {
    margin-top: 0;
  }
}
@media (min-width: 700px) and (max-width: 1099px) and (min-height: 760px) {
  .p-main {
    position: sticky;
    top: calc(var(--head-h) + 20px);
  }
}

@media (min-width: 1100px) {
  .product {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    padding-bottom: 96px;
  }
  .gallery {
    grid-column: 1 / span 7;
    margin: 0;
  }
  .gallery-track {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: auto;
    gap: 12px;
    padding: 0;
    overflow: visible;
  }
  .slide:first-child,
  .slide.is-last-odd {
    grid-column: 1 / -1;
  }
  .gallery--1 .gallery-track {
    grid-template-columns: 1fr;
  }
  .gallery-bar {
    display: none;
  }
  .p-info {
    grid-column: 9 / span 4;
    padding-top: 2px;
  }
  .p-title {
    margin-top: 16px;
    font-size: clamp(40px, 3.8vw, 58px);
  }
  .dock {
    display: none;
  }
}

/* ---------- 404 / 500 ---------- */

.oops {
  padding-block: 64px 96px;
}
.oops-loop {
  width: 72px;
  height: 36px;
  margin-bottom: 24px;
}
.oops-title {
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-family: var(--display);
  text-wrap: balance;
}
.oops-text {
  max-width: 30em;
  margin-top: 18px;
  color: var(--ink-2);
}
.oops-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 28px;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
