:root {
  --paper: #f3f3f1;
  --ink: #111111;
  --muted: #6d6d6a;
  --line: rgba(17, 17, 17, 0.14);
  --soft: #e7e7e4;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  z-index: 5;
}

.skip:focus { top: 0.6rem; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.85rem 1.5rem;
  background: rgba(243, 243, 241, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35rem; }

form[role="search"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input[type="search"] {
  width: 16rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { display: none; }

button {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  cursor: pointer;
}

.spot {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(24rem, 78vw);
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  z-index: 6;
}

.spot[hidden] { display: none; }

.spot a {
  display: block;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.spot a:last-child { border-bottom: 0; }

.spot a[aria-selected="true"] { background: var(--soft); }

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

h1, h2, .product-title, .head-charts a {
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  margin: 0 0 1.25rem;
  max-width: min(11ch, 100%);
  font-size: clamp(3.4rem, 8.6vw, 7.4rem);
  line-height: 0.88;
}

.product h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.product h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 a { text-decoration: none; }

.lede {
  max-width: 34rem;
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: -1.2rem 0 2rem;
}

.brands a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brands a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35rem; }

.when {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

section { margin: 3.5rem 0; }

.head-charts, .chart-index, .dept ul, .crumbs ol, .chart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-charts {
  counter-reset: item;
  border-top: 1px solid var(--line);
}

.head-charts a, .chart-index a { text-decoration: none; }

.head-charts a {
  counter-increment: item;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.92;
  transition: transform 180ms ease;
}

.head-charts a::before {
  content: counter(item, decimal-leading-zero);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.head-charts a span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.head-charts a:hover { background: var(--soft); }

.covers {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
}

.covers a {
  display: flex;
  align-items: flex-end;
  flex: none;
  width: 11.5rem;
  min-height: 8.5rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.covers a:hover { background: var(--soft); }

.dept {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.dept ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }

.dept li { margin: 0; }

.dept a:not(h2 a) {
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.dept a:hover { text-decoration: underline; text-underline-offset: 0.2rem; }

.chart-index li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr);
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.chart-index a {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.045em;
}

.chart-index span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: right;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crumbs a { text-decoration: none; }

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
}

.chart { margin-top: 2rem; }

.row {
  display: grid;
  grid-template-columns: 3.5rem minmax(7rem, 11rem) minmax(0, 1fr) auto;
  gap: 1rem 1.4rem;
  align-items: end;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.row:first-child {
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  align-items: end;
  gap: 1rem 2.5rem;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 1.5rem;
}

.info { display: contents; }

.row .rank { grid-column: 1; grid-row: 1; }
.row .thumb { grid-column: 2; grid-row: 1; }
.row .copy { grid-column: 3; grid-row: 1; }
.row .meta-side { grid-column: 4; grid-row: 1; }

.row:first-child .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  position: relative;
}

.row:first-child .info > .rank {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.row:first-child .thumb {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.row .buy { grid-column: 3 / -1; grid-row: 2; }

.row:first-child .buy { grid-column: auto; grid-row: auto; }

.rank {
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--soft);
  overflow: hidden;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.05;
}

.row:first-child .product-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.92;
}

.brand, .price, .listings { margin: 0.25rem 0 0; }

.brand, .listings {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-size: 1rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.row:first-child .price { font-size: 1.35rem; }

.meta-side { text-align: right; }

.row:first-child .meta-side { text-align: left; align-self: stretch; }

.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  align-items: start;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.shop {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 0.12rem;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 0.12rem;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-title a { text-decoration: none; }

.product-title a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(16rem, 1.1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.photos { margin: 0; min-width: 0; }

.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--soft);
  mix-blend-mode: multiply;
}

.photos ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.photos li { min-width: 0; }

.photos li img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--soft);
  mix-blend-mode: multiply;
}

.photos span {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.codes {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

.codes div {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
}

.codes dt, .codes dd { margin: 0; }

.codes dt {
  flex: none;
  width: 4.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.codes dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-variant-numeric: tabular-nums;
}

#prices { scroll-margin-top: 5rem; margin-top: 2.5rem; }

#prices h2 { margin-bottom: 0.3rem; }

.price-strip {
  position: relative;
  height: 7px;
  margin: 0.85rem 4px 0;
  border-bottom: 1px solid var(--line);
}

.price-strip i {
  position: absolute;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.strip-scale {
  display: flex;
  justify-content: space-between;
  margin: 0.45rem 4px 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.shop-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }

.product-buy { margin: 0.85rem 0 0; padding-top: 0.65rem; border-top: 1px solid var(--line); }

.buy-btn {
  display: inline-block;
  justify-self: end;
  align-self: center;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.shop-list > li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.shop-list .offer {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
}

.shop-list .amount { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

.shop-list .who-block { display: flex; gap: 0.75rem; align-items: center; min-width: 0; }

.shop-list .who-copy { min-width: 0; }

.shop-list .offer-photo {
  width: 3rem;
  height: 3rem;
  flex: none;
  object-fit: contain;
  background: var(--soft);
}

.shop-list .who { display: block; }

.shop-list .offer-title,
.shop-list .seller {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-list .more .offer-title { white-space: normal; }

.shop-list .more { margin-top: 0.35rem; }

.shop-list .more[open] {
  display: flex;
  flex-direction: column;
}

.shop-list .more[open] ul { order: 1; margin-top: 0.15rem; }

.shop-list .more[open] summary { order: 2; margin-top: 0.45rem; }

.shop-list .more .when-open { display: none; }

.shop-list .more[open] .when-shut { display: none; }

.shop-list .more[open] .when-open { display: inline; }

.shop-list .more summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-size: 0.78rem;
}

.shop-list .more summary::-webkit-details-marker { display: none; }

.shop-list .more summary::marker { content: ""; }

.shop-list .more ul {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.shop-list .more li { padding: 0.45rem 0 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

footer p { max-width: 36rem; margin: 0; }

footer a { text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; }

@media (max-width: 800px) {
  .bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.85rem 1rem 0.7rem;
  }

  .site-nav { gap: 1rem; }

  .site-nav a { font-size: 0.68rem; letter-spacing: 0.08em; }

  form[role="search"] { min-width: 0; }

  input[type="search"] { flex: 1; width: auto; min-width: 0; }

  .wrap { width: min(100% - 2rem, 1120px); padding-top: 1.6rem; }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .dept { grid-template-columns: 1fr; gap: 0.4rem; }

  .chart-index li { grid-template-columns: 1fr; }

  .chart-index span { text-align: left; }

  .row, .row:first-child {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem 0.9rem;
  }

  .row:first-child .info { display: contents; }

  .row .rank { grid-column: 1; grid-row: auto; }
  .row .thumb, .row:first-child .thumb { grid-column: 1 / -1; grid-row: auto; }
  .row .copy,
  .row .meta-side { grid-column: 2; grid-row: auto; }
  .row .buy,
  .row:first-child .buy { grid-column: 1 / -1; grid-row: auto; }

  .product-hero { grid-template-columns: 1fr; }

  .shop-list .offer { grid-template-columns: 5.2rem minmax(0, 1fr) auto; column-gap: 0.6rem; }

  .meta-side, .row:first-child .meta-side {
    grid-column: 2;
    text-align: left;
  }

  .head-charts a {
    grid-template-columns: 2rem minmax(0, 1fr);
    font-size: 1.65rem;
  }

  .head-charts a span { grid-column: 2; }

  footer { flex-direction: column; }
}

@media (hover: hover) and (pointer: fine) {
  .head-charts a:hover { background: var(--soft); }
}
