/* ===== Tokens ===== */
:root {
  --paper: #F7F7F5;
  --ink: #111111;
  --rust: #C4552E;
  --ink-60: #5C5C57;
  --ink-40: #8A8A83;
  --line: #DEDDD7;
  --shelf: #EDEBE6;
  --clay: #DCD8CF;
  --wood: #D6C9B2;
  --wax: #E7D7AC;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --hair: 1px solid var(--line);
  --shell: 1320px;
  --stop: 100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ===== Layout shell ===== */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 32px; }
.band { padding: 88px 0; border-top: var(--hair); }
.band--flush { padding-top: 64px; }
section[id] { scroll-margin-top: var(--stop); }

/* ===== Type roles ===== */
.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 5.1vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}
.lede {
  font-weight: 300;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 56ch;
}
.note { font-size: 0.86rem; color: var(--ink-40); }

/* ===== Header ===== */
.site {
  position: sticky;
  top: var(--demo-ribbon-h);
  z-index: 20;
  background: var(--paper);
  border-bottom: var(--hair);
}
.site__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.site__nav ul { display: flex; flex-wrap: wrap; gap: 26px; }
.site__nav a {
  font-size: 0.83rem;
  color: var(--ink-60);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site__nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: 76px 0 64px; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: end;
}
.hero__sub { margin-top: 26px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--go { background: var(--rust); border-color: var(--rust); color: #FFFFFF; }
.btn--go:hover { background: #A84523; border-color: #A84523; }
.btn--quiet { background: transparent; }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }

/* The range, in miniature: twelve cells, one per product */
.index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hair);
}
.index .pv { aspect-ratio: 1 / 0.82; }

/* ===== Trust bar ===== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hair);
}
.trust li {
  background: var(--paper);
  padding: 18px 22px;
  font-size: 0.83rem;
  color: var(--ink-60);
}

/* ===== Section head ===== */
.head { display: grid; gap: 14px; margin-bottom: 34px; max-width: 62ch; }

/* ===== Categories ===== */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hair);
}
.cat {
  background: var(--paper);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
  transition: background 0.18s ease;
}
.cat:hover { background: var(--shelf); }
.cat__name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; }
.cat__count { font-size: 0.85rem; color: var(--ink-60); }
.cat__go {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--ink-40);
  transition: color 0.18s ease, transform 0.18s ease;
}
.cat:hover .cat__go, .cat:focus-visible .cat__go { color: var(--rust); transform: translateX(4px); }

/* ===== Product grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hair);
}
.p {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.p__body {
  position: relative;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.p__no {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
}
.p__id { display: flex; gap: 14px; align-items: baseline; padding-right: 34px; }
.p__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  flex: 0 1 auto;
}
.p__detail {
  flex: 1 1 40%;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-60);
}
.p__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: var(--hair);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.p__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.p__stock { font-size: 0.78rem; color: var(--ink-40); white-space: nowrap; }
.p__stock--low { color: var(--rust); }
.grid__foot { margin-top: 22px; max-width: 66ch; }

/* ===== Product visuals, drawn in CSS ===== */
.pv {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(176deg, #F1EFEA 0%, #E6E3DC 100%);
  overflow: hidden;
}
.pv::before, .pv::after { content: ""; position: absolute; }

/* 01 plate, seen from above */
.pv--plate::before {
  width: 56%; aspect-ratio: 1; left: 22%; top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #EDEAE2 0 32%, #E4E0D7 34%, #D3CEC2 76%, #BDB7A9 100%);
}
.pv--plate::after {
  width: 34%; aspect-ratio: 1; left: 33%; top: 24%;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: radial-gradient(circle at 44% 40%, #F3F1EB 0%, #E2DED5 100%);
}

/* 02 pasta bowl, seen in profile */
.pv--bowl::before {
  width: 54%; height: 40%; left: 23%; top: 32%;
  border-radius: 5% 5% 50% 50% / 3% 3% 94% 94%;
  background: linear-gradient(180deg, #EFECE5 0%, #C6C1B5 100%);
}
.pv--bowl::after {
  width: 54%; height: 11%; left: 23%; top: 27%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #B2ACA0 0 58%, #E9E6DF 100%);
}

/* 03 stemless glasses, four of them */
.pv--glass::before {
  inset: 22% 15% 14%;
  background: linear-gradient(180deg, #FCFBF9 0 5%, #EDEBE5 8%, #D3CEC4 68%, #BEB8AB 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0 22%, #000 22% 78%, transparent 78%),
    radial-gradient(ellipse 28% 40% at 50% 33%, #000 99%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0 22%, #000 22% 78%, transparent 78%),
    radial-gradient(ellipse 28% 40% at 50% 33%, #000 99%, transparent 100%);
  -webkit-mask-size: 25% 74%, 25% 30%;
  mask-size: 25% 74%, 25% 30%;
  -webkit-mask-position: 0 6%, 0 100%;
  mask-position: 0 6%, 0 100%;
  -webkit-mask-repeat: repeat-x, repeat-x;
  mask-repeat: repeat-x, repeat-x;
}

/* 04 cast iron casserole */
.pv--iron::before {
  width: 64%; height: 40%; left: 18%; top: 40%;
  border-radius: 8px 8px 44% 44% / 6px 6px 60% 60%;
  background: linear-gradient(180deg, #3B3833 0%, #1C1A17 100%);
}
.pv--iron::after {
  width: 70%; height: 16%; left: 15%; top: 27%;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 6%, #2E2B27 0 9%, transparent 10%),
    linear-gradient(180deg, #4A4640 0%, #2A2723 100%);
}

/* 05 end grain board */
.pv--board::before {
  inset: 16% 14%;
  border-radius: 4px;
  background-image:
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.1) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(160deg, #E0D5C0 0%, var(--wood) 100%);
}
.pv--board::after {
  width: 6%; aspect-ratio: 1; right: 20%; top: 24%;
  border-radius: 50%;
  background: #C0B49C;
}

/* 06 linen apron */
.pv--apron::before {
  inset: 26% 26% 12%;
  clip-path: polygon(22% 0, 78% 0, 78% 24%, 100% 34%, 100% 100%, 0 100%, 0 34%, 22% 24%);
  background-image:
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.05) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.05) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #EFEADF 0%, #DED7C7 100%);
}
.pv--apron::after {
  width: 22%; height: 16%; left: 39%; top: 15%;
  border: 2px solid #D3CCBC;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* 07 duvet set, folded */
.pv--linen::before {
  inset: 30% 16% 16%;
  border-radius: 3px 14px 3px 3px;
  background-image:
    repeating-linear-gradient(102deg, rgba(17, 17, 17, 0.045) 0 1px, transparent 1px 16px),
    linear-gradient(184deg, #FAF8F4 0%, #E4E0D7 100%);
}
.pv--linen::after {
  inset: 20% 26% 52% 22%;
  border-radius: 3px 12px 3px 3px;
  background-image:
    repeating-linear-gradient(102deg, rgba(17, 17, 17, 0.05) 0 1px, transparent 1px 12px),
    linear-gradient(184deg, #F3F0E9 0%, #DAD5CA 100%);
  box-shadow: 0 6px 10px -8px rgba(17, 17, 17, 0.35);
}

/* 08 waffle towel */
.pv--waffle::before {
  inset: 14% 24%;
  border-radius: 2px;
  background-image:
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.11) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.11) 0 1px, transparent 1px 11px),
    linear-gradient(180deg, #F6F4EF 0%, #E7E4DB 100%);
}
.pv--waffle::after {
  left: 24%; right: 24%; top: 62%; height: 6%;
  background: rgba(17, 17, 17, 0.07);
}

/* 09 lambswool throw, woven */
.pv--throw::before {
  inset: 18% 12%;
  background-image:
    repeating-linear-gradient(45deg, rgba(17, 17, 17, 0.14) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(17, 17, 17, 0.14) 0 2px, transparent 2px 9px),
    linear-gradient(170deg, #DDD9CF 0%, #C7C2B5 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  background-position: 0 0, 9px 9px, 0 0;
}
.pv--throw::after {
  inset: 18% 12%;
  border-bottom: 4px solid #ADA79A;
  border-top: 4px solid #ADA79A;
}

/* 10 ribbed table lamp */
.pv--lamp::before {
  width: 46%; height: 30%; left: 27%; top: 14%;
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #F2EEE4 0%, #DCD6C7 100%);
}
.pv--lamp::after {
  width: 20%; height: 42%; left: 40%; top: 44%;
  border-radius: 3px 3px 40% 40% / 3px 3px 14% 14%;
  background-image:
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.12) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #E3DFD6 0%, #C9C3B6 100%);
}

/* 11 rattan basket */
.pv--basket::before {
  inset: 26% 22% 16%;
  clip-path: polygon(8% 0, 92% 0, 84% 100%, 16% 100%);
  background-image:
    repeating-linear-gradient(58deg, rgba(17, 17, 17, 0.13) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-58deg, rgba(17, 17, 17, 0.13) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #E2D6BE 0%, #CDBFA3 100%);
}
.pv--basket::after {
  width: 12%; height: 5%; left: 30%; top: 34%;
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.18);
  box-shadow: 155% 0 0 rgba(17, 17, 17, 0.18);
}

/* 12 beeswax dinner candles, six */
.pv--candle::before {
  inset: 16% 16% 14%;
  background-image:
    linear-gradient(180deg, #F0E3C2 0%, var(--wax) 100%),
    radial-gradient(circle at 50% 4%, #6B6355 0 6%, transparent 7%);
  background-size: 16.666% 92%, 16.666% 100%;
  background-position: 0 100%, 0 0;
  background-repeat: repeat-x, repeat-x;
  -webkit-mask-image: repeating-linear-gradient(90deg, transparent 0 34%, #000 34% 66%, transparent 66% 100%);
  mask-image: repeating-linear-gradient(90deg, transparent 0 34%, #000 34% 66%, transparent 66% 100%);
  -webkit-mask-size: 16.666% 100%;
  mask-size: 16.666% 100%;
}
.pv--candle::after {
  left: 16%; right: 16%; bottom: 14%;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

/* ===== Delivery and returns ===== */
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--hair);
  margin-top: 8px;
}
.terms__col { background: var(--paper); padding: 28px 26px 30px; }
.terms__col .h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.terms__col li {
  padding: 14px 0;
  border-bottom: var(--hair);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-60);
}
.terms__col li:last-child { border-bottom: none; padding-bottom: 0; }
.broke {
  margin-top: 26px;
  padding: 20px 24px;
  border-left: 3px solid var(--rust);
  background: var(--shelf);
  max-width: 78ch;
  font-size: 0.94rem;
}
.broke b { font-family: var(--display); font-weight: 600; }

/* ===== Reviews ===== */
.revs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hair);
}
.rev { background: var(--paper); padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.rev p { font-size: 1rem; line-height: 1.6; }
.rev footer { margin-top: auto; font-size: 0.82rem; }
.rev__who { font-family: var(--display); font-weight: 600; }
.rev__item { display: block; color: var(--ink-40); margin-top: 2px; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about p + p { margin-top: 18px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-size: 0.98rem;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rust); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.card { border: var(--hair); background: #FFFFFF; padding: 28px 26px; display: grid; gap: 14px; }
.card__row { display: grid; gap: 3px; }
.card__k { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); }
.card__v { font-size: 0.98rem; }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--ink); padding: 64px 0 40px; }
.foot__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.foot__mark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.foot__line { margin-top: 8px; font-size: 0.9rem; color: var(--ink-60); max-width: 30ch; }
.foot__h { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 14px; }
.foot__cols li { font-size: 0.9rem; color: var(--ink-60); padding: 3px 0; }
.foot__end {
  margin-top: 52px;
  padding-top: 22px;
  border-top: var(--hair);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-40);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .h1 { max-width: 18ch; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}
@media (max-width: 900px) {
  .band { padding: 64px 0; }
  .shell { padding: 0 22px; }
  .site__nav { display: none; }
  .cats, .grid, .revs { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  .cats, .grid, .revs, .terms { grid-template-columns: 1fr; }
  .index { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .p__id { flex-direction: column; gap: 6px; padding-right: 40px; }
  .p__detail { flex: none; }
  .p__foot { padding-top: 12px; }
  .foot__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
