:root {
  --ink: #101418;
  --muted: #66717a;
  --paper: #f7fbfc;
  --mist: #d7edf4;
  --aqua: #83c9dd;
  --deep: #17677f;
  --line: rgba(16, 20, 24, 0.13);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

body.modal-locked {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 251, 0.88);
  backdrop-filter: blur(20px);
}

.brand img {
  display: block;
  width: 142px;
  height: auto;
  filter: invert(1);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 13px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.icon-button,
.cart-button,
.checkout-button,
.newsletter button,
.account-form button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ghost-button,
.icon-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  text-transform: uppercase;
  font-size: 12px;
}

.cart-button strong {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: stretch;
}

.hero-media {
  min-height: 640px;
}

.hero-media img,
.collection-panel img,
.product-card img,
.lookbook-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw;
  background: linear-gradient(180deg, #d8eef5, #f5fbfc 58%, #ffffff);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.93;
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.98;
  font-weight: 400;
}

h3 {
  margin-bottom: 10px;
  font-size: 15px;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow),
.section > p,
.collection-panel p:not(.eyebrow),
.service-columns p,
.account-drawer p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  font-size: 12px;
}

.primary-link {
  background: var(--ink);
  color: var(--white);
}

.ticker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  color: var(--deep);
  border-block: 1px solid var(--line);
  background: var(--white);
  text-transform: uppercase;
  font-size: 12px;
}

.section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding: 90px 28px 34px;
}

.section > p {
  max-width: 560px;
  margin-bottom: 8px;
  font-size: 17px;
}

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.collection-panel {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-rows: 1fr;
  border-right: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.collection-panel img {
  grid-area: 1 / 1;
  min-height: 720px;
}

.collection-panel div {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  margin: 0;
  padding: 64px 28px 28px;
  color: var(--ink);
}

.collection-panel div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 251, 252, 0) 0%, rgba(247, 251, 252, 0.62) 48%, rgba(247, 251, 252, 0.78) 100%);
  backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 24%, #000 58%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 24%, #000 58%);
}

.collection-panel.dark {
  background: #123d4b;
  color: var(--white);
}

.collection-panel.dark div {
  color: var(--white);
}

.collection-panel.dark div::before {
  background: linear-gradient(180deg, rgba(12, 37, 47, 0) 0%, rgba(12, 37, 47, 0.46) 48%, rgba(12, 37, 47, 0.68) 100%);
}

.collection-panel.dark .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.collection-panel h2 + p {
  margin-top: 12px;
}

.collection-panel.dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: -2px;
}

.product-card figure {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.product-details {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.product-details div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
}

.product-details dt,
.product-details dd {
  margin: 0;
}

.product-details dt {
  color: var(--ink);
  text-transform: uppercase;
}

.product-title {
  min-height: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.swatches {
  display: flex;
  gap: 7px;
}

.swatch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.swatch-button:hover,
.swatch-button.active {
  border-color: var(--ink);
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink);
}

.add-button {
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.lookbook-grid img {
  aspect-ratio: 3 / 4;
}

.service-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 90px 28px;
  background: linear-gradient(135deg, #d9eef4, #ffffff 58%, #c8e7f0);
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-columns article {
  padding-top: 16px;
  border-top: 1px solid rgba(31, 95, 117, 0.35);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 64px 28px;
  background: var(--ink);
  color: var(--white);
}

.newsletter form,
.account-form {
  display: flex;
  gap: 10px;
}

.newsletter input,
.account-form input,
.promo-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid currentColor;
  padding: 0 14px;
  background: transparent;
  color: inherit;
}

.newsletter button,
.account-form button,
.checkout-button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  text-transform: uppercase;
  font-size: 12px;
}

.form-note {
  grid-column: 2;
  margin: -18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(16, 20, 24, 0.36);
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--paper);
}

.drawer-panel.small {
  width: min(420px, 100%);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 68px;
  height: 86px;
  object-fit: cover;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-line > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(30px, auto) 34px;
  align-items: center;
  width: max-content;
  margin-top: 10px;
  border: 1px solid var(--line);
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

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

.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quantity-control button:disabled:hover {
  background: var(--white);
  color: var(--ink);
}

.quantity-control span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
}

.promo-field {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin: 24px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.checkout-form textarea {
  min-height: 88px;
  padding-block: 10px;
  resize: vertical;
}

.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-note {
  min-height: 18px;
  margin: 0 0 18px;
  color: var(--deep);
  font-size: 13px;
  line-height: 1.4;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.checkout-button {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  min-height: 44px;
  padding-inline: 10px;
  font-size: 12px;
  white-space: normal;
  line-height: 1.2;
}

.checkout-button:nth-child(2) {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
}

@media (max-width: 520px) {
  .checkout-actions {
    grid-template-columns: 1fr;
  }
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(16, 20, 24, 0.52);
  overflow: hidden;
}

.product-modal.open {
  display: flex;
}

.product-modal-panel {
  position: relative;
  width: min(1180px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: rgba(247, 251, 252, 0.88);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-gallery {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.modal-main-image {
  min-height: 0;
  margin: 0;
  background: var(--mist);
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--white);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 1px;
  max-height: 184px;
  overflow: auto;
  padding: 1px;
  background: var(--line);
}

.modal-thumb {
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: var(--white);
  cursor: pointer;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.72;
}

.modal-thumb.active img,
.modal-thumb:hover img {
  opacity: 1;
}

.modal-thumb.active {
  outline: 2px solid var(--deep);
  outline-offset: -2px;
}

.modal-info {
  align-self: center;
  display: grid;
  gap: 20px;
  padding: 72px 42px 42px;
}

.modal-info h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
}

.modal-details {
  font-size: 13px;
}

.product-story {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-story p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.product-story span {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.size-select {
  display: grid;
  gap: 10px;
}

.size-select p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.size-option {
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.size-option:hover,
.size-option.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.modal-add {
  width: 100%;
  margin-top: 8px;
}

.modal-add:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero,
  .section,
  .service-band,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 68vh;
  }

  .collections,
  .product-grid,
  .lookbook-grid,
  .service-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-gallery {
    min-height: auto;
    border-right: 0;
  }

  .modal-main-image {
    height: min(72vh, 780px);
  }

  .modal-info {
    align-self: start;
    padding: 34px 28px 42px;
  }

  .form-note {
    grid-column: auto;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 110px;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .section,
  .service-band,
  .newsletter {
    padding-inline: 16px;
  }

  h1 {
    font-size: 46px;
  }

  .ticker {
    overflow: auto;
  }

  .collections,
  .product-grid,
  .lookbook-grid,
  .service-columns {
    grid-template-columns: 1fr;
  }

  .collection-panel {
    min-height: 640px;
  }

  .collection-panel img {
    min-height: 640px;
  }

  .collection-panel div {
    padding: 56px 18px 22px;
  }

  .newsletter form,
  .account-form {
    flex-direction: column;
  }

  .modal-main-image {
    height: 68vh;
  }

  .modal-thumbs {
    grid-template-columns: repeat(5, minmax(60px, 1fr));
    max-height: 132px;
  }

  .modal-info {
    padding-inline: 16px;
  }
}
