@font-face {
  font-family: "Espoir";
  src: url("../assets/espoir-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Athena";
  src: url("../assets/athena-light.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Athena";
  src: url("../assets/athena-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Avenir";
  src: url("../assets/avenir-light.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Avenir";
  src: url("../assets/avenir-book.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --font-display: "Espoir", "Times New Roman", serif;
  --font-heading: "Athena", "Times New Roman", serif;
  --font-body: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-background: #faf8f5;
  --color-surface: #f1eae4;
  --color-foreground: #692612;
  --color-accent: #80422d;
  --color-dark: #351c13;
  --color-deep: #4e0d03;
  --color-on-dark: #faf8f5;
  --color-success: #7dad57;
  --radius-card: 20px;
  --radius-button: 15px;
  --page-padding: 24px;
  --cursor-x: 65%;
  --cursor-y: 35%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-background);
}

body {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

body.is-refreshing .maintenance-page {
  filter: saturate(1.08);
}

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

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.maintenance-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  width: 100%;
  min-width: 0;
  height: 100dvh;
  padding: var(--page-padding);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgb(125 173 87 / 0.18), transparent 26rem),
    linear-gradient(115deg, rgb(250 248 245 / 0.98) 0%, rgb(250 248 245 / 0.94) 44%, rgb(241 234 228 / 0.78) 100%);
}

.maintenance-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(250 248 245 / 0.96), rgb(250 248 245 / 0.64)),
    url("./images/collection-tile-1.jpg") right center / cover no-repeat;
  opacity: 0.52;
}

.maintenance-page::after {
  content: "";
  position: absolute;
  inset: var(--page-padding);
  z-index: -1;
  border: 1px solid rgb(105 38 18 / 0.24);
  border-radius: var(--radius-card);
  pointer-events: none;
}

.maintenance-page__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(105 38 18 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(105 38 18 / 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  pointer-events: none;
}

.maintenance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 22px;
  border: 1px solid var(--color-foreground);
  border-radius: var(--radius-card);
  background: rgb(250 248 245 / 0.76);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: 13.5rem;
  text-decoration: none;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.brand-mark:hover {
  opacity: 0.76;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgb(125 173 87 / 0.42);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.maintenance-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 34px;
  min-height: 0;
  align-items: stretch;
}

.maintenance-copy {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 10px 8px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.maintenance-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.lede {
  max-width: 36rem;
  margin: 24px 0 0;
  color: rgb(105 38 18 / 0.86);
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.maintenance-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--color-foreground);
  border-radius: var(--radius-button);
  background: var(--color-foreground);
  color: var(--color-on-dark);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  will-change: transform;
}

.primary-action:hover {
  background: var(--color-background);
  color: var(--color-foreground);
}

.primary-action:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 4px;
}

.return-note {
  color: rgb(105 38 18 / 0.68);
  font-size: 0.875rem;
}

.service-strip {
  display: grid;
  width: min(100%, 38rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgb(105 38 18 / 0.24);
  border-bottom: 1px solid rgb(105 38 18 / 0.24);
}

.service-strip__item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-strip__item + .service-strip__item {
  border-left: 1px solid rgb(105 38 18 / 0.18);
}

.service-strip__item img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

.service-strip__item span {
  min-width: 0;
}

.maintenance-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.lookbook-card,
.product-ribbon,
.utility-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgb(105 38 18 / 0.28);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 30px 70px rgb(53 28 19 / 0.16);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(var(--float-x, 0), var(--float-y, 0), 0);
  transition:
    box-shadow 0.25s ease,
    transform 0.18s ease;
  will-change: transform;
}

.lookbook-card:hover,
.product-ribbon:hover,
.utility-card:hover {
  box-shadow: 0 36px 88px rgb(53 28 19 / 0.22);
}

.lookbook-card {
  top: 50%;
  right: 8%;
  width: min(62%, 450px);
  height: calc(100% - 52px);
  min-height: 380px;
  translate: 0 -50%;
}

.lookbook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.lookbook-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgb(53 28 19 / 0.78));
}

.lookbook-card__caption {
  position: absolute;
  left: 18px;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 5px;
  color: var(--color-on-dark);
}

.lookbook-card__caption span,
.product-ribbon span,
.utility-card span {
  font-size: 0.75rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.lookbook-card__caption strong,
.product-ribbon strong,
.utility-card strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-ribbon {
  bottom: 8%;
  left: 2%;
  display: grid;
  width: min(56%, 460px);
  min-height: 154px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.product-ribbon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.product-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(250 248 245 / 0.92), transparent 78%);
}

.product-ribbon div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.utility-card {
  display: grid;
  gap: 7px;
  width: 154px;
  min-height: 154px;
  align-content: end;
  padding: 18px;
  background: rgb(250 248 245 / 0.86);
  backdrop-filter: blur(12px);
}

.utility-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.utility-card--orders {
  top: 12%;
  left: 8%;
}

.utility-card--checkout {
  right: 0;
  bottom: 4%;
}

.maintenance-footer {
  display: flex;
  justify-content: center;
  color: rgb(105 38 18 / 0.7);
  font-size: 0.875rem;
  text-align: center;
  overflow-wrap: break-word;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: none;
  width: 82px;
  height: 82px;
  pointer-events: none;
  translate: -50% -50%;
}

.custom-cursor__ring,
.custom-cursor__dot,
.custom-cursor__label {
  position: absolute;
  pointer-events: none;
}

.custom-cursor__ring {
  inset: 14px;
  border: 1px solid rgb(105 38 18 / 0.68);
  border-radius: 50%;
  background: rgb(250 248 245 / 0.08);
  backdrop-filter: blur(3px);
  transition:
    inset 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.custom-cursor__dot {
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-foreground);
  translate: -50% -50%;
}

.custom-cursor__label {
  top: 50%;
  left: 50%;
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  translate: -50% -50%;
  transition: opacity 0.16s ease;
}

.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

.has-custom-cursor .custom-cursor {
  display: block;
}

.cursor-is-hovering .custom-cursor__ring {
  inset: 0;
  border-color: rgb(128 66 45 / 0.78);
  background: rgb(250 248 245 / 0.28);
}

.cursor-is-hovering .custom-cursor__dot {
  opacity: 0;
}

.cursor-is-hovering .custom-cursor__label {
  opacity: 1;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(125 173 87 / 0.42);
  }

  50% {
    box-shadow: 0 0 0 9px rgb(125 173 87 / 0);
  }
}

@media screen and (max-width: 1080px) {
  .maintenance-copy h1 {
    font-size: 3.7rem;
  }

  .maintenance-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  }

  .service-strip__item {
    padding-inline: 12px;
  }
}

@media screen and (max-width: 820px) {
  :root {
    --page-padding: 14px;
  }

  .maintenance-page {
    gap: 12px;
    min-width: 0;
  }

  .maintenance-header {
    min-height: 56px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 9.8rem;
  }

  .status-pill {
    font-size: 0.75rem;
  }

  .maintenance-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(165px, 1fr);
    gap: 12px;
  }

  .maintenance-copy {
    justify-content: start;
    padding: 4px 4px 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .maintenance-copy h1 {
    max-width: 12ch;
    font-size: 2.55rem;
    line-height: 1;
  }

  .lede {
    max-width: 32rem;
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .maintenance-actions {
    margin-top: 18px;
  }

  .primary-action {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.875rem;
  }

  .return-note {
    font-size: 0.8rem;
  }

  .service-strip {
    display: none;
  }

  .lookbook-card {
    right: 0;
    width: 62%;
    height: 100%;
    min-height: 0;
  }

  .product-ribbon {
    bottom: 12px;
    left: 0;
    width: 58%;
    min-height: 106px;
  }

  .utility-card {
    width: 128px;
    min-height: 116px;
    padding: 14px;
  }

  .utility-card--orders {
    top: 8px;
    left: 4px;
  }

  .utility-card--checkout {
    display: none;
  }

  .maintenance-footer {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .has-custom-cursor,
  .has-custom-cursor * {
    cursor: auto !important;
  }

  .has-custom-cursor .custom-cursor {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .maintenance-header {
    align-items: flex-start;
    min-height: 74px;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }

  .maintenance-copy h1 {
    font-size: 2.2rem;
  }

  .lede {
    font-size: 0.9rem;
  }

  .maintenance-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lookbook-card {
    width: 72%;
  }

  .product-ribbon {
    width: 66%;
  }

  .utility-card--orders {
    display: none;
  }
}

@media screen and (max-height: 680px) and (min-width: 821px) {
  .maintenance-copy h1 {
    font-size: 3.35rem;
  }

  .lede {
    margin-top: 16px;
  }

  .maintenance-actions {
    margin-top: 22px;
  }

  .service-strip {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .lookbook-card,
  .product-ribbon,
  .utility-card,
  .brand-mark,
  .primary-action {
    transform: none !important;
  }
}
