:root {
  --rail: 180px;
  --gutter: 32px;
  --text: #050505;
  --muted: #6d6d6d;
  --line: #e8e8e8;
  --soft: #f7f7f5;
  --bg: #ffffff;
  --button: #050505;
  --header: 70px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

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

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

figure {
  margin: 0;
}

.skip-link {
  left: 8px;
  position: fixed;
  top: -100px;
  z-index: 100;
}

.skip-link:focus {
  background: #fff;
  outline: 1px solid #000;
  padding: 8px;
  top: 8px;
}

.site-rail {
  background: #fff;
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 20px 30px 18px;
  position: fixed;
  top: 0;
  width: var(--rail);
  z-index: 20;
}

.rail-logo {
  display: block;
  margin-bottom: 52px;
  width: 128px;
}

.rail-logo img {
  height: auto;
  transform: scale(1.18);
  transform-origin: left top;
  width: 128px;
}

.rail-nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-nav a,
.rail-nav button,
.mobile-menu a,
.mobile-menu button,
.mobile-menu summary {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.rail-nav .divider {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin: 1px 0 -1px;
}

.nav-group,
.utility-nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.utility-nav {
  padding-left: 0;
}

.rail-foot {
  font-size: 10px;
  font-weight: 700;
  margin-top: auto;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 24px;
  position: fixed;
  right: 20px;
  top: 23px;
  z-index: 22;
}

.top-actions button,
.mobile-actions button,
.drawer-head button {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-header {
  display: none;
}

.site-main {
  margin-left: var(--rail);
  min-height: 100vh;
}

.site-main:focus {
  outline: none !important;
}

.site-main:focus-visible {
  outline: none !important;
}

.home-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 650px);
  padding: 50px 220px 80px 215px;
}

.home-hero {
  display: block;
  min-height: calc(100vh - 100px);
}

.home-tile {
  display: block;
}

.home-tile img,
.home-hero img {
  background: var(--soft);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-hero img {
  min-height: calc(100vh - 100px);
}

.tile-label {
  display: none;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 8px;
  text-transform: uppercase;
}

.collection {
  padding: 54px 58px 80px 0;
}

.collection-title,
.about-title {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 36px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  gap: 56px 6px;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
}

.editorial-card {
  background: var(--soft);
  grid-row: span 2;
  min-height: 100%;
  overflow: hidden;
}

.editorial-card--right {
  grid-column: 3 / span 2;
}

.editorial-card--left {
  grid-column: 1 / span 2;
}

.editorial-card img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-card:focus-within .product-image,
.product-card:hover .product-image {
  background: #fff;
}

.product-image {
  align-items: center;
  aspect-ratio: 0.8;
  background: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-card-meta {
  font-size: 11px;
  font-weight: 700;
  padding-top: 10px;
  text-transform: uppercase;
}

.product-card-meta a {
  display: inline-block;
  margin-bottom: 2px;
}

.product-card-color {
  color: var(--muted);
  margin-bottom: 2px;
}

.sizes {
  color: #111;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 14px;
}

.product-page {
  display: grid;
  gap: 50px;
  grid-template-columns: 648px 325px;
  padding: 54px 0 80px;
}

.product-media {
  display: grid;
  gap: 10px;
}

.product-media-frame {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 810px;
  overflow: hidden;
}

.product-media-frame img {
  height: 100%;
  max-height: 810px;
  object-fit: contain;
  width: 100%;
}

.product-info {
  padding-top: 45px;
  position: sticky;
  top: 0;
  align-self: start;
}

.product-info h1 {
  font-size: 11px;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.price,
.product-color {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-color {
  color: var(--muted);
  margin-bottom: 10px;
}

.choice-row {
  display: flex;
  gap: 22px;
  margin: 0 0 12px;
}

.choice-row button {
  font-size: 11px;
  font-weight: 700;
  min-width: 12px;
  text-align: center;
}

.choice-row button.is-selected {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.swatches {
  display: flex;
  gap: 16px;
  margin: 12px 0 17px;
}

.swatch {
  align-items: center;
  border: 1px solid transparent;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.swatch.is-selected {
  border-color: #111;
}

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

.black-button {
  background: var(--button);
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 16px 20px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.product-info .black-button {
  align-items: center;
  display: flex;
  height: 35px;
  justify-content: center;
  padding: 0 20px;
}

.details-list {
  border-top: 1px solid transparent;
  margin-top: 18px;
}

.details-list details {
  border-bottom: 0;
  padding: 9px 0;
}

.details-list summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

.details-list p,
.shipping-note,
.detail-copy,
.chat-link {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-copy {
  margin: 10px 0 0;
}

.detail-copy p {
  margin: 0 0 10px;
}

.detail-copy ul {
  margin: 0;
  padding-left: 14px;
}

.detail-copy li {
  margin: 0 0 2px;
}

.shipping-note {
  margin: 8px 0 0;
}

.chat-link {
  display: block;
  margin-top: 5px;
}

.size-unit-toggle {
  display: flex;
  gap: 18px;
  margin: 12px 0 10px;
}

.size-unit-toggle button {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.size-unit-toggle .is-selected {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-table {
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 8px;
  min-width: 100%;
  text-align: left;
}

.size-table th,
.size-table td {
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  padding: 5px 8px 5px 0;
  white-space: nowrap;
}

.about-page {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(320px, 48vw) minmax(260px, 380px);
  padding: 55px 220px 80px 34px;
}

.about-image {
  background: var(--soft);
  min-height: calc(100vh - 110px);
  overflow: hidden;
}

.about-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-copy {
  align-self: end;
  font-size: 18px;
  line-height: 1.45;
  max-width: 480px;
}

.about-copy p {
  margin: 0 0 24px;
}

.newsletter {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 20px;
}

.newsletter h2 {
  font-size: 12px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.newsletter input {
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  margin: 18px 0 0;
  outline: 0;
  padding: 8px 0;
  width: 100%;
}

.drawer-backdrop {
  background: rgb(255 255 255 / 0.35);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.drawer {
  background: #fff;
  bottom: 0;
  box-shadow: -12px 0 24px rgb(0 0 0 / 0.08);
  overflow: auto;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(410px, 100vw);
  z-index: 60;
}

.mobile-menu {
  left: 0;
  right: auto;
}

.drawer-head {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
}

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

.mobile-nav-section {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-section > summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
}

.mobile-nav-section > summary::after,
.mobile-nav-nested > summary::after,
.details-list summary::after {
  content: ">";
  display: inline-block;
  margin-left: 7px;
  transform: rotate(90deg);
}

.mobile-nav-section[open] > summary::after,
.mobile-nav-nested[open] > summary::after,
.details-list details[open] summary::after {
  transform: rotate(270deg);
}

.mobile-nav-section > div {
  display: grid;
  gap: 15px;
  padding: 0 0 18px;
}

.mobile-nav-nested > div {
  display: grid;
  gap: 15px;
  padding: 15px 0 0;
}

.mobile-nav-utility {
  display: grid;
  gap: 15px;
  padding-top: 18px;
}

.search-field span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.search-field input {
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  font-size: 18px;
  outline: 0;
  padding: 10px 0;
  width: 100%;
}

.search-tools {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.search-tools button,
.continue-shopping,
.region-form span,
.newsletter-drawer-form p,
.region-form select,
.newsletter-drawer-form input {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-results {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.search-item,
.bag-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
}

.search-item img,
.bag-item img {
  aspect-ratio: 1;
  background: var(--soft);
  object-fit: contain;
  width: 72px;
}

.mini-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-price {
  font-size: 11px;
  margin-top: 4px;
}

.bag-items {
  display: grid;
  gap: 20px;
}

.continue-shopping {
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bag-summary {
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
}

.bag-summary > div {
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  text-transform: uppercase;
}

.empty-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.region-form,
.newsletter-drawer-form {
  display: grid;
  gap: 22px;
}

.region-form label {
  display: grid;
  gap: 8px;
}

.region-form select,
.newsletter-drawer-form input {
  appearance: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  height: 40px;
  outline: 0;
  padding: 0;
  width: 100%;
}

.newsletter-drawer-form p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --gutter: 10px;
  }

  body {
    padding-top: var(--header);
  }

  .site-rail,
  .top-actions {
    display: none;
  }

  .mobile-header {
    align-items: center;
    background: #fff;
    display: flex;
    height: var(--header);
    justify-content: space-between;
    left: 0;
    padding: 16px 10px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 30;
  }

  .mobile-logo img {
    transform: scale(1.12);
    transform-origin: left center;
    width: 130px;
  }

  .mobile-actions {
    display: flex;
    gap: 22px;
  }

  .site-main {
    margin-left: 0;
  }

  .home-grid {
    display: grid;
    gap: 38px;
    grid-template-columns: 1fr;
    padding: 0 29px 60px;
  }

  .home-hero,
  .home-hero img {
    min-height: 0;
  }

  .home-hero img,
  .home-tile img {
    aspect-ratio: 0.75;
    height: auto;
  }

  .collection {
    padding: 18px 10px 56px;
  }

  .collection-title {
    margin: 0 0 36px;
  }

  .product-grid {
    gap: 40px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-card {
    grid-column: span 2;
    grid-row: auto;
  }

  .editorial-card img {
    aspect-ratio: 0.8;
    height: auto;
  }

  .product-image {
    aspect-ratio: 0.8;
  }

.sizes {
    display: none;
  }

  .product-info .black-button {
    bottom: 0;
    position: sticky;
    z-index: 12;
  }

  .product-page {
    display: block;
    padding: 0 10px 60px;
  }

  .product-media {
    gap: 10px;
  }

  .product-media-frame {
    min-height: 0;
  }

  .product-media-frame img {
    aspect-ratio: 1 / 1.2;
    height: auto;
  }

  .product-info {
    padding-top: 22px;
    position: static;
  }

  .about-page {
    display: block;
    padding: 0 29px 60px;
  }

  .about-image {
    min-height: 0;
  }

  .about-image img {
    aspect-ratio: 0.75;
  }

  .about-copy {
    font-size: 17px;
    margin-top: 26px;
  }
}

@media (min-width: 901px) {
  .product-grid {
    gap: 27px 5px;
  }

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

@media (max-width: 520px) {
  .mobile-logo img {
    width: 126px;
  }

  .mobile-actions {
    gap: 17px;
  }

  .mobile-actions button {
    font-size: 10px;
  }
}
