@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --liner: #c9d1cc;
  --liner-deep: #a9b4ae;
  --liner-line: #b6c0ba;
  --stock: #f6f7f4;
  --stock-back: #e2e5df;
  --ink: #15181a;
  --ink-soft: #4a524e;
  --good: #b8e600;
  --note: #ffa61a;
  --info: #00b3d6;
  --hold: #9aa3a8;
  --url: #056a80;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--liner);
  background-image:
    repeating-linear-gradient(to bottom, var(--liner-line) 0 9px, transparent 9px 18px);
  background-size: 1px 100%;
  background-position: 50% 0;
  background-repeat: repeat-y;
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--stock);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { left: 0; }

a { color: inherit; }

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

/* ---------- the sheet ---------- */

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 3.4vw, 3rem) clamp(0.9rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

/* ---------- labels ---------- */

.label {
  position: relative;
  background: var(--stock);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(21, 24, 26, 0.16), 0 12px 26px -14px rgba(21, 24, 26, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.label__body {
  padding: clamp(1.25rem, 2.6vw, 2rem);
  flex: 1;
}

/* mixed die profiles — each format is cut differently */
.label--master {
  border-radius: 22px;
  -webkit-mask-image: radial-gradient(circle 15px at 0 96px, transparent 15px, #000 15px);
  mask-image: radial-gradient(circle 15px at 0 96px, transparent 15px, #000 15px);
}

.label--wide { border-radius: 6px 20px 20px 6px; }
.label--tall { border-radius: 20px 6px 6px 20px; }
.label--five { border-radius: 6px; }
.label--three { border-radius: 20px; }
.label--four { border-radius: 6px 6px 20px 20px; }
.label--footer { border-radius: 6px; }

.catalogue .label:hover,
.catalogue .label:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(21, 24, 26, 0.18), 0 26px 40px -20px rgba(21, 24, 26, 0.62);
}

/* whole label is the link target */
.label__body h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- master label ---------- */

.label--master .label__body { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.stock {
  margin: 0 0 clamp(1.5rem, 4vw, 2.75rem);
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 11.5vw, 6rem);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.lede {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.55rem);
  font-weight: 600;
  font-stretch: 92%;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}

.prose {
  margin: 1.1rem 0 0;
  max-width: 64ch;
  color: var(--ink-soft);
}

.master {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.record {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.record__title {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  width: 100%;
  border-bottom: 2px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.record__list {
  margin: 0;
  width: 100%;
}

.record__list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--stock-back);
}

.record__list dt {
  font-size: 0.68rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}

.record__list dd {
  margin: 0;
  font-weight: 600;
  font-stretch: 88%;
  font-size: 0.92rem;
  text-align: right;
}

.reg {
  width: 34px;
  height: 34px;
  margin-top: 1.5rem;
  color: var(--liner-deep);
}

/* ---------- auxiliary strips ---------- */

.strips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  padding: 3px;
  background: var(--stock-back);
}

.strip {
  flex: 1 1 auto;
  padding: 0.6em 0.9em;
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.05em;
}

.strip--good { background: var(--good); }
.strip--note { background: var(--note); }
.strip--info { background: var(--info); }
.strip--hold { background: var(--hold); }

/* ---------- catalogue ---------- */

.catalogue {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.catalogue > .label { grid-column: span 4; }
.catalogue > .label--wide { grid-column: span 7; }
.catalogue > .label--tall { grid-column: span 5; }
.catalogue > .label--five { grid-column: span 5; }
.catalogue > .label--three { grid-column: span 3; }
.catalogue > .label--four { grid-column: span 4; }

.lot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lot__state {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--ink);
}

.lot__state::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: currentColor;
}

.is-live::before { background: #6f8c00; }
.is-pending::before { background: var(--hold); }
.is-pending { color: var(--ink-soft); }

h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h3 a { text-decoration: none; }

.label:hover h3 a,
.label:focus-within h3 a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

h3 .sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.go {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 1.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.go__do::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.label:hover .go__do::after,
.label:focus-within .go__do::after { transform: translateX(4px); }

.go__host {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--url);
  overflow-wrap: anywhere;
}

.go--pending { color: var(--ink-soft); }
.go--pending .go__do::after { content: ""; }
.go--pending .go__host { color: var(--ink-soft); }

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

.label--footer .prose { margin-top: 0; }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--stock-back);
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.colophon a { color: var(--url); }

/* ---------- adaptation ---------- */

@media (min-width: 900px) {
  .master { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
}

@media (max-width: 1000px) {
  .catalogue > .label,
  .catalogue > .label--tall,
  .catalogue > .label--five,
  .catalogue > .label--four { grid-column: span 6; }
  .catalogue > .label--three { grid-column: span 6; }
  .catalogue > .label--wide { grid-column: span 12; }
}

@media (max-width: 680px) {
  body { background-image: none; }
  .catalogue > .label,
  .catalogue > .label--wide,
  .catalogue > .label--tall,
  .catalogue > .label--five,
  .catalogue > .label--three,
  .catalogue > .label--four { grid-column: span 12; }
  .strip { flex: 1 1 100%; white-space: normal; }
  .lede { max-width: none; }
  .label--master {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- one authored moment: the sheet is laid down ---------- */

@media (prefers-reduced-motion: no-preference) {
  .label { animation: settle 0.7s var(--ease) backwards; }
  .label--master { animation-delay: 0.04s; --tilt: -0.4deg; }
  .catalogue > .label:nth-child(2) { animation-delay: 0.16s; --tilt: 0.5deg; }
  .catalogue > .label:nth-child(3) { animation-delay: 0.24s; --tilt: -0.6deg; }
  .catalogue > .label:nth-child(4) { animation-delay: 0.32s; --tilt: 0.45deg; }
  .catalogue > .label:nth-child(5) { animation-delay: 0.4s; --tilt: -0.35deg; }
  .catalogue > .label:nth-child(6) { animation-delay: 0.48s; --tilt: 0.55deg; }
  .label--footer { animation-delay: 0.56s; --tilt: 0.3deg; }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(var(--tilt, -0.4deg));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
