@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Rajdhani;
  src: url("fonts/Rajdhani-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper:#ffffff;
  --ink:#171717;
  --muted:#636363;
  --line:#dedede;
  --blue:#143afd;
  --body:"Chakra Petch",sans-serif;
  --display:"Chakra Petch",sans-serif;
  --numeric:rajdhani,sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body,
.mileworn-launch {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.mileworn-launch {
  --wp--preset--font-family--mw-body: "Chakra Petch", sans-serif;
  --wp--preset--font-family--mw-display: "Chakra Petch", sans-serif;
  --wp--preset--font-family--mw-ui: "Chakra Petch", sans-serif;
}



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

button,
summary {
  cursor: pointer;
  color: inherit;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.mileworn-launch button,
.mileworn-launch input {
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

#launch-title,
.signup h2 {
  font-family: var(--display);
  font-weight: 400;
}

.num {
  font-family: var(--numeric);
  font-size: 1rem;
  letter-spacing: .02em;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

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

.header {
  min-height: 112px;
  padding: 22px 5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-link {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.header-notify {
  justify-self: end;
}

.header-notify span {
  margin-left: 12px;
}

.brand {
  width: 168px;
  display: block;
  justify-self: center;
}

.chrome-mark {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.5;
}

.chrome-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chrome-mark canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.chrome-mark:where(.is-live) canvas {
  opacity: 1;
}

.chrome-mark:where(.is-live) img {
  opacity: 0;
}

.brand-word {
  display: block;
  margin-top: -3px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .75rem;
}

.hero {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 5% 70px;
}

.edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2%;
}

.eyebrow,
.edition-spec {
  font-size: .75rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin: 0;
}

#launch-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: 10px 0 0;
}

.edition-spec {
  text-align: right;
  line-height: 1.8;
  color: var(--muted);
}

.exhibit {
  position: relative;
  isolation: isolate;
  margin: 12px -1% 0;
}

.model-title {
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font: 400 clamp(2.25rem, 11.5vw, 12rem)/1 var(--display);
  letter-spacing: -.065em;
  color: #c8cbd0;
  pointer-events: none;
  user-select: none;
}

.signup-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.garment-stage {
  height: clamp(660px, 80svh, 960px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  min-width: 0;
}

.garment-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0 0 78px;
}

.garment-canvas {
  position: absolute;
  inset: 0 0 78px;
  cursor: grab;
  touch-action: pan-y;
}

.garment-canvas[data-dragging="true"] {
  cursor: grabbing;
}

.garment-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.garment-toolbar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
}

.garment-toolbar button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: .8125rem;
  min-height: 44px;
  white-space: nowrap;
}

.view-3d {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.view-3d span {
  margin-left: 8px;
}

.rotation-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.rotation-controls button {
  padding: 7px 9px;
}

.rotation-controls button[aria-pressed="true"] {
  color: var(--blue);
}

.email-label {
  display: block;
  font-size: .875rem;
  color: var(--muted);
}

.stage-note {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}

.launch-bottom {
  margin: 38px 2% 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8%;
  align-items: start;
}

.product-name {
  font-size: .875rem;
  margin: 0 0 8px;
}

.product-description {
  font-size: 1rem;
  margin: 0 0 24px;
  max-width: 230px;
  color: var(--muted);
}

.fabric {
  font-size: .75rem;
}

.fabric summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 180px;
  list-style: none;
  padding: 0 0 5px;
}

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

.fabric summary span {
  font-size: 1rem;
}

.fabric-content {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  max-width: 340px;
  margin-top: 20px;
}

.fabric-content img {
  width: 80px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.fabric-content p {
  margin: 0 0 16px;
}

.brand-statement {
  text-align: center;
}

.brand-statement p {
  font-size: .875rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 16px;
}

.brand-statement .num {
  color: var(--muted);
  font-size: .875rem;
}

.signup {
  width: 100%;
  max-width: 350px;
  justify-self: end;
}

.signup h2 {
  letter-spacing: normal;
  text-transform: none;
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.4;
}

.email-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.email-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  border-radius: 0;
}

.email-row button {
  border: 0;
  background: transparent;
  flex: 0 0 auto;
  padding: 10px 0 10px 10px;
  font-size: .75rem;
}

.email-row button span {
  padding-left: 10px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}

.consent input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 3px 0 0;
}

.signup-note {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.65;
  margin: 10px 0 0;
}

.signup-status {
  font-size: .875rem;
  line-height: 1.7;
  margin: 0;
}

.signup-status:not(:empty) {
  margin-top: 12px;
}

.signup-status[data-error="true"] {
  color: #922e23;
}

.footer {
  padding: 25px 6%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  font-size: .75rem;
  color: var(--muted);
}

.footer > div {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

@media (width <= 800px) {
  .header {
    padding: 20px 6%;
    min-height: 100px;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .header-link {
    font-size: .75rem;
  }

  .header-notify span {
    display: none;
  }

  .brand {
    width: 110px;
  }

  .hero {
    padding: 20px 5% 70px;
  }

  .edition {
    padding: 0 1%;
  }

  .exhibit {
    margin: 20px -3% 0;
  }

  .garment-stage {
    height: 660px;
  }

  .garment-poster {
    padding-bottom: 95px;
  }

  .garment-canvas {
    bottom: 95px;
  }

  .launch-bottom {
    grid-template-columns: 1fr 1.2fr;
    gap: 50px 12%;
    margin-top: 45px;
  }

  .brand-statement {
    display: none;
  }

  .signup {
    max-width: none;
  }

  .footer {
    grid-template-columns: 1fr auto;
    padding: 20px 6%;
    gap: 20px;
  }

  .footer > span:nth-child(2) {
    display: none;
  }
}

@media (width <= 520px) {
  .header {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 18px 6%;
  }

  .brand {
    grid-column: 1/-1;
    grid-row: 1;
    margin-bottom: 8px;
    width: 132px;
  }

  .header-link {
    grid-row: 2;
  }

  .edition {
    align-items: end;
  }

  .edition-spec {
    max-width: 140px;
    font-size: .75rem;
  }

  .eyebrow {
    font-size: .75rem;
  }

  #launch-title {
    font-size: 2rem;
  }

  .exhibit {
    margin: 20px -2% 0;
  }

  .garment-stage {
    height: 610px;
  }

  .garment-poster {
    padding: 0 0 90px;
  }

  .garment-toolbar {
    bottom: 6px;
    max-width: 100%;
  }

  .rotation-controls button {
    padding: 8px;
    font-size: .75rem;
  }

  .launch-bottom {
    grid-template-columns: 1fr;
    margin: 45px 1% 0;
    gap: 40px;
  }

  .garment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .product-name {
    grid-column: 1;
  }

  .product-description {
    grid-column: 1;
    margin: 0;
    font-size: 1rem;
  }

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

  .fabric summary {
    width: 100%;
  }

  .fabric-content {
    grid-template-columns: 1fr;
  }

  .fabric-content img {
    display: none;
  }

  .signup {
    max-width: none;
  }

  .footer {
    font-size: .75rem;
  }

  .footer > span {
    max-width: 130px;
  }

  .footer > div {
    max-width: 155px;
    justify-content: flex-end;
    text-align: right;
  }

}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
