:root {
  --ink: #0f0f0e;
  --ink-2: #1c1b19;
  --ink-3: #2d2b27;
  --bone: #f7f3ec;
  --sand: #e9e0cf;
  --sand-2: #efe8dc;
  --sand-3: #ddd2bd;
  --deep: #a8916a;
  --deep-ink: #685638;
  --muted: #625d54;
  --soft: #c5bcad;
  --line: rgb(15 15 14 / 18%);
  --dark-line: rgb(233 224 207 / 21%);
  --gutter: clamp(1.125rem, 4.4vw, 4.5rem);
  --body: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

body::after {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
::selection { background: var(--sand-3); color: var(--ink); }
:focus-visible { outline: .17rem solid currentColor; outline-offset: .25rem; }

h1, h2, h3, h4, p, figure, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }

.symbols { position: absolute; }

.shell {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.cond {
  font-family: var(--body);
  font-stretch: 62%;
  font-weight: 850;
  line-height: .9;
  text-transform: uppercase;
}

.serif {
  font: italic 400 1em/.95 var(--serif);
  letter-spacing: -.025em;
}

.mono {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  z-index: 6;
  top: 1rem;
  left: var(--gutter);
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: var(--bone);
  color: var(--ink);
}

.skip-link:focus { transform: none; }
main:focus { outline: none; }

.bar { border-bottom: 1px solid var(--dark-line); }

.bar-inner {
  display: flex;
  min-height: 4.5rem;
  gap: .75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.brand, .site-nav {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
}

.brand {
  flex: none;
  gap: .5rem;
  text-decoration: none;
}

.brand .cond { font-size: 1.55rem; }
.brand-mark { width: 3.6rem; height: 1.65rem; }
.site-nav { flex-wrap: wrap; gap: 0 clamp(.75rem, 3vw, 2.75rem); }

.site-nav a, .foot a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--sand);
  font-size: .875rem;
  text-decoration-color: var(--deep);
  text-underline-offset: .3em;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover, .foot a:hover { text-decoration: underline; }

.hero { background: var(--ink); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: clamp(30rem, 42vw, 45rem);
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding-block: clamp(3rem, 6.6vw, 7rem);
  padding-inline-end: clamp(1.75rem, 3.6vw, 3.75rem);
}

.hero-label {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: clamp(1.6rem, 3vw, 3rem);
  color: var(--soft);
}

.hero-label::before {
  width: 1.8rem;
  height: 1px;
  flex: none;
  background: var(--deep);
  content: "";
}

.hero h1 > span { display: block; }

.hero h1 .cond {
  font-size: clamp(3rem, 7.55vw, 7.65rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero h1 .serif {
  margin-top: .01em;
  color: var(--sand-3);
  font-size: clamp(4rem, 8.65vw, 8.5rem);
}

.hero-line {
  max-width: 29rem;
  margin-block: clamp(1.5rem, 2.75vw, 2.5rem) 1.5rem;
  color: var(--sand);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border: 1px solid var(--sand);
  background: var(--sand);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.cta:hover { background: var(--bone); }
.cta:focus-visible { outline-color: var(--bone); }

.hero-media {
  position: relative;
  margin-inline-end: calc(-1 * var(--gutter));
  background: var(--ink-2);
}

.hero-media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, transparent 22%);
  content: "";
  pointer-events: none;
}

.field-notes {
  border-block: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
}

.field-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}

.field-heading h2 {
  margin-top: 0;
  font-size: clamp(2.75rem, 5.3vw, 5.5rem);
}

.catalog { background: var(--bone); color: var(--ink); }

.catalog > .shell { padding-block: clamp(3.8rem, 7vw, 7.5rem); }

.catalog-intro {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 2.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.6rem, 4vw, 3.5rem);
}

.catalog-intro h2 {
  font-size: clamp(4.25rem, 9.8vw, 9rem);
  letter-spacing: -.025em;
}

.catalog-intro p {
  max-width: 25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.catalog-controls {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  align-items: end;
  justify-content: space-between;
  padding-block: .85rem;
  border-block: 1px solid var(--line);
  background: var(--bone);
}

.filter-fields {
  display: grid;
  width: min(100%, 28rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.filter {
  display: grid;
  min-width: 0;
  gap: .35rem;
}

.filter .mono { color: var(--muted); }

.filter select {
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem 1.65rem .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--sand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f0f0e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .6rem center;
  appearance: none;
  cursor: pointer;
}

.filter-summary {
  display: flex;
  min-height: 2.75rem;
  gap: .25rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#catalog-status { color: var(--muted); }

.text-button {
  min-height: 2.75rem;
  padding: 0 .35rem;
  border: 0;
  background: transparent;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}

.text-button:hover { text-decoration-thickness: .15em; }

.catalog-group { margin-top: clamp(2.25rem, 4.1vw, 4.5rem); }

.group-title {
  display: flex;
  gap: .8rem 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
}

.group-title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.7rem, 1.65vw, 1.6rem);
  padding: 0;
  list-style: none;
}

.item {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bone);
}

.item-media {
  position: relative;
  background: var(--sand);
}

.item-image {
  --image-padding: clamp(.65rem, 1.6vw, 1.4rem);
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  scroll-margin-block: 9rem 1rem;
}

.item-image:focus-visible {
  outline-offset: -.23rem;
  outline-color: var(--ink);
}

.item-image:hover { background: var(--sand-3); }

.item-image img {
  position: absolute;
  inset: var(--image-padding);
  width: calc(100% - 2 * var(--image-padding));
  height: calc(100% - 2 * var(--image-padding));
  object-fit: contain;
}

.product-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .6rem;
  padding: .35rem .55rem;
  border-top: 1px solid var(--line);
  background: var(--sand-2);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.3;
}

.product-vote:focus-visible { outline-offset: -.2rem; }

.product-vote-actions {
  display: flex;
  flex: 1 0 auto;
  justify-content: flex-end;
  gap: .3rem;
}

.product-vote button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  background: var(--bone);
  font-weight: 650;
  cursor: pointer;
}

.product-vote button:focus-visible { outline-offset: .06rem; }
.product-vote button:disabled { color: var(--muted); cursor: wait; }

.vote-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (hover: hover) {
  .product-vote {
    position: absolute;
    inset: auto 0 0;
    visibility: hidden;
  }

  .item:hover .product-vote,
  .item:focus-within .product-vote { visibility: visible; }

  .product-vote button { min-height: 1.8rem; }
  .product-vote button:enabled:hover { background: var(--sand-3); }
}

@media (hover: none) and (max-width: 30rem) {
  .product-vote-actions { flex-basis: 100%; }
  .product-vote button { flex: 1; }
}

.item-body {
  padding: clamp(.58rem, 1.2vw, 1rem);
  border-top: 1px solid var(--line);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .05rem .55rem;
  margin-bottom: .37rem;
  color: var(--muted);
  font-size: .75rem;
}

.item-code { color: var(--deep-ink); }

.item h4 {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.foot { border-top: 1px solid var(--dark-line); }

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
  color: var(--soft);
  font-size: .875rem;
}

.foot-name { color: var(--bone); font-size: 1.5rem; }

.preview {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
}

.preview::backdrop { background: rgb(15 15 14 / 86%); }

.preview-media {
  display: grid;
  height: min(60vh, 31rem);
  padding: clamp(1rem, 4vw, 2.75rem);
  background: var(--sand);
}

.preview-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.preview-caption {
  display: flex;
  gap: .75rem;
  align-items: start;
  justify-content: space-between;
  padding: clamp(.8rem, 2.5vw, 1.4rem);
}

.preview-caption h2 {
  margin-bottom: .4rem;
  font-size: clamp(1.7rem, 4vw, 2.85rem);
  overflow-wrap: anywhere;
}

.preview-caption p { color: var(--muted); }

@media (max-width: 64rem) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .bar-inner { min-height: 3.85rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    padding-block: clamp(2.5rem, 8vw, 4.5rem) 1.6rem;
    padding-inline-end: 0;
  }

  .hero h1 .cond { font-size: clamp(3rem, 11.5vw, 5.8rem); }
  .hero h1 .serif { font-size: clamp(3.8rem, 14vw, 6.8rem); }
  .hero-label { margin-bottom: 1.35rem; }

  .hero-media {
    min-height: clamp(15rem, 53vw, 25rem);
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero-media img { object-position: 60% 60%; }
  .hero-media::after { background: linear-gradient(var(--ink), transparent 22%); }
  .field-inner { grid-template-columns: minmax(0, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filter-summary { min-height: 1.85rem; }

  .item-meta { flex-direction: column; }
  .foot-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 21rem) {
  .bar-inner { flex-wrap: wrap; gap: 0 .75rem; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 31rem) {
  .catalog-controls { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .filter select { appearance: auto; background-image: none; }
}
