:root {
  --black: #030303;
  --bone: #ece9e1;
  --red: #ffffff;
  --dim: #8e8b87;
  --line: #ffffff26;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: "Space Mono", monospace;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1320px, calc(100% - 44px));
  margin: auto;
}

.micro {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.grain {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  inset: 0;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -100;
}

#bgVideoFar {
  z-index: -101;
}

#bgVideoFront {
  transform: scale(.94);
}

header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  padding-left: 10px;
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.brand {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -.08em;
}

.brand:before {
  content: "✦";
  color: var(--red);
  font-size: 13px;
  margin-right: 9px;
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.shop {
  border: 1px solid var(--bone);
  padding: 10px 14px;
  transition: .2s;
}

.shop:hover {
  background: var(--bone);
  color: #000;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #fff;
  box-shadow: 6vw 15vh 5px 1px #fff, 25vw 34vh 3px 1px #fff, 75vw 21vh 4px #fff, 87vw 70vh 2px #fff, 68vw 82vh 5px #fff, 11vw 73vh 3px #fff;
}

.hero-label {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: #c5c1bb;
}

.hero-label b {
  color: var(--red);
}

.hero-label span {
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 6px 10px;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 13px 22px 13px 32px;
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 20px;
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ticker span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ticker i {
  color: var(--red);
  font-style: normal;
  padding: 0 28px;
}

section {
  padding: 100px 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}

h1, h2 {
  font-family: "IM Fell English", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.075em;
  line-height: .82;
  margin: 0;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(52px, 9vw, 130px);
}

.drop {
  color: var(--red);
}

#manifesto {
  padding-left: 10px;
  padding-bottom: 30px;
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#manifesto h2 {
  font-size: clamp(28px, 5.4vw, 90px);
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-left: 10px;
  padding-top: 30px;
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.signup-form {
  border-bottom: 1px solid var(--bone);
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.signup-form input {
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--bone);
  font: 10px "Space Mono";
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signup-form input::placeholder {
  color: var(--dim);
}

.signup-form button {
  background: transparent;
  border: 0;
  color: var(--red);
  font: 12px "Space Mono";
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.signup-form button:hover {
  color: var(--bone);
}

.signup-status {
  grid-column: 1/-1;
  color: var(--red);
  min-height: 1em;
}

.signup-status:empty {
  display: none;
}

footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 35px;
  padding-left: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.legal {
  padding-left: 10px;
  background: #030303bf;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.legal details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.legal details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.legal summary {
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.legal-body {
  margin-top: 14px;
}

.legal-body h4 {
  font: 11px "Space Mono";
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 18px 0 6px;
}

.legal-body h4:first-child {
  margin-top: 0;
}

.legal p, .legal-body p, .legal-body ul {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.legal-body ul {
  padding-left: 18px;
}

.legal-body a {
  text-decoration: underline;
}

.add-to-cart {
  background: transparent;
  border: 1px solid var(--bone);
  color: var(--bone);
  font: 10px "Space Mono";
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 14px;
  margin-top: 12px;
  cursor: pointer;
  transition: .2s;
}

.add-to-cart:hover {
  background: var(--bone);
  color: #000;
}

.add-to-cart:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.add-to-cart:disabled:hover {
  background: transparent;
  color: var(--bone);
}

.size-select {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.size-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  font: 11px "Space Mono";
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: .2s;
}

.size-btn:hover {
  border-color: var(--bone);
}

.size-btn.active {
  background: var(--bone);
  color: #000;
  border-color: var(--bone);
}

.size-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-btn:disabled:hover {
  border-color: var(--line);
}

.sold-out-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--black);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line);
}

.piece > .sold-out-tag,
.product-info > .sold-out-tag {
  z-index: 5;
}

.cart-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bone);
  color: #000;
  border: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count:empty, .cart-count[data-count="0"] {
  display: none;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #000a;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100%);
  background: var(--black);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cart-panel h3 {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 28px;
  margin: 0 0 20px;
}

.cart-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 20px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cart-item-remove {
  background: none;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  font-size: 14px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  width: 20px;
  height: 20px;
  line-height: 1;
  cursor: pointer;
  font: inherit;
}

.qty-btn:hover {
  background: var(--bone);
  color: #000;
}

.qty-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cart-empty {
  color: var(--dim);
  font-size: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--bone);
  color: #000;
  border: 0;
  font: 11px "Space Mono";
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-btn:disabled {
  opacity: .6;
  cursor: default;
}

.cart-error {
  color: var(--red);
  font-size: 11px;
  margin: 8px 0 0;
}

.cart-policy-note {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.cart-policy-note a {
  text-decoration: underline;
  color: var(--bone);
}

.sale-policy-note {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 10px;
}

.sale-policy-note a {
  text-decoration: underline;
  color: var(--bone);
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 30px, 1320px);
  }

  video {
    object-fit: contain;
  }

  #bgVideoFar {
    object-fit: cover;
  }

  .cart-panel {
    width: 82%;
  }

  .hero {
    min-height: 545px;
  }

  section {
    padding: 70px 0;
  }

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

  .hero-label {
    font-size: 8px;
  }

  footer {
    gap: 10px;
    font-size: 8px;
  }
}
