:root {
  --paper: #f4f3ef;
  --ink: #0a0a0a;
  --signal: #f01818;
  --acid: #e6ff3f;
  --line: 2px solid var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible + span {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: var(--line);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--signal);
  border-radius: 50%;
}

.edition {
  margin: 0;
}

.headline {
  position: relative;
  overflow: hidden;
  padding: 20px 12px 26px;
  border-bottom: var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.headline-marquee {
  width: calc(100% + 24px);
  margin-left: -12px;
  overflow: hidden;
}

.headline-track {
  display: flex;
  width: max-content;
  animation: marquee-left 18s linear infinite;
  will-change: transform;
}

.headline-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  font-size: clamp(52px, 14.25vw, 250px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  white-space: nowrap;
}

.headline-group span {
  display: block;
  padding-right: .18em;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.headline-rule {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5px;
  margin-top: 26px;
}

.headline-rule span {
  display: block;
  height: 6px;
  background: var(--ink);
}

.headline-rule span:nth-child(2) {
  background: var(--signal);
}

.headline-rule span:nth-child(3) {
  background: var(--acid);
  border: 1px solid var(--ink);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  min-height: 720px;
  border-bottom: var(--line);
}

.gallery-shell {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-right: var(--line);
  background: #deded9;
}

.gallery-meta {
  position: absolute;
  z-index: 10;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}

.gallery {
  position: absolute;
  inset: 0;
}

.gallery-card {
  position: absolute;
  display: block;
  overflow: hidden;
  padding: 0;
  border: var(--line);
  border-radius: 0;
  background: #ccc;
  cursor: pointer;
  transition: filter 260ms ease, transform 320ms cubic-bezier(.2,.8,.2,1), opacity 260ms ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.gallery-card--one {
  z-index: 1;
  left: 4%;
  bottom: -7%;
  width: 48%;
  height: 72%;
  transform: rotate(-1deg);
}

.gallery-card--one img {
  filter: grayscale(1) contrast(1.1);
}

.gallery-card--two {
  z-index: 2;
  top: 9%;
  left: 30%;
  width: 47%;
  height: 76%;
  background: #080808;
  transform: rotate(1deg);
}

.gallery-card--two img {
  object-position: 50% 34%;
  transform: scale(1.45);
  filter: contrast(1.2) brightness(.72);
}

.gallery-card--three {
  z-index: 3;
  right: 4%;
  bottom: -2%;
  width: 40%;
  height: 82%;
  transform: rotate(-.5deg);
}

.gallery-card--three img {
  filter: saturate(.5) contrast(.95) brightness(1.08);
}

.gallery:hover .gallery-card:not(:hover),
.gallery.has-active .gallery-card:not(.is-active) {
  filter: grayscale(1) brightness(.68);
  opacity: .7;
}

.gallery-card:hover,
.gallery-card.is-active {
  z-index: 5;
  transform: translateY(-12px) rotate(0deg);
}

.gallery-card:hover img,
.gallery-card.is-active img {
  transform: scale(1.04);
}

.gallery-card--two:hover img,
.gallery-card--two.is-active img {
  transform: scale(1.5);
}

.frame-number {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 4px 6px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-size: 10px;
  font-weight: 900;
}

.gallery-controls {
  position: absolute;
  z-index: 12;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.gallery-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--signal);
}

.product-panel {
  display: flex;
  flex-direction: column;
  padding: 30px 24px 20px;
  background: var(--paper);
}

.eyebrow,
.control-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: var(--line);
}

.product-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.product-heading h2 {
  margin: 0;
  max-width: 8ch;
  font-size: 34px;
  line-height: .9;
  letter-spacing: 0;
}

.price {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.product-copy {
  margin: 22px 0;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.45;
}

.spec-list {
  margin: 0 0 22px;
  border-top: 1px solid var(--ink);
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.spec-list dd,
.spec-list dt {
  margin: 0;
}

.spec-list dd {
  font-weight: 800;
}

.purchase-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.purchase-form legend {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.size-options label {
  position: relative;
}

.size-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-options span {
  display: grid;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-right: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.size-options label:last-child span {
  border-right: 1px solid var(--ink);
}

.size-options input:checked + span {
  color: white;
  background: var(--ink);
}

.purchase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.quantity-control,
.color-control {
  display: flex;
  min-width: 0;
  gap: 8px;
  flex-direction: column;
}

.stepper {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  height: 38px;
  border: 1px solid var(--ink);
}

.stepper button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.stepper output {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.color-value {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.color-value i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: 50%;
}

.buy-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--acid);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.buy-button:hover {
  color: white;
  background: var(--ink);
}

.buy-button:disabled {
  cursor: wait;
  opacity: .6;
}

.form-status {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
}

details {
  border-top: 1px solid var(--ink);
}

details:last-child {
  border-bottom: 1px solid var(--ink);
}

details summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  font-size: 10px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 900px) {
  .headline {
    padding-bottom: 18px;
  }

  .headline-group {
    font-size: clamp(52px, 17vw, 145px);
  }

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

  .gallery-shell {
    min-height: min(90vw, 700px);
    border-right: 0;
    border-bottom: var(--line);
  }

  .product-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .product-heading,
  .product-copy,
  .spec-list {
    grid-column: 1;
  }

  .purchase-form,
  .product-panel details {
    grid-column: 2;
  }

  .purchase-form {
    grid-row: 1 / span 3;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 12px;
  }

  .edition {
    display: none;
  }

  .headline {
    padding: 12px 8px 14px;
  }

  .headline-group {
    font-size: 16.2vw;
    line-height: .82;
  }

  .headline-rule {
    margin-top: 14px;
  }

  .gallery-shell {
    min-height: 132vw;
  }

  .gallery-card--one {
    left: -8%;
    width: 67%;
  }

  .gallery-card--two {
    top: 8%;
    left: 16%;
    width: 67%;
  }

  .gallery-card--three {
    right: -8%;
    width: 62%;
  }

  .product-panel {
    display: flex;
    padding: 24px 16px 18px;
  }

  .product-heading h2 {
    font-size: 30px;
  }

  .site-footer {
    gap: 15px;
    flex-direction: column;
  }
}

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

  .headline-track {
    animation-play-state: paused;
  }
}
