/* Final presentation pass: let display glyphs occupy their full line box. */
.landing-page .home-section h2,
.archive-page .catalog-intro h1,
.archive-page .brand-heading h2 {
  line-height: 1.02;
  padding-block: .055em .09em;
  overflow: visible;
}

/* A compact two-line lockup, with room for the full display glyphs. */
.landing-page .hero-statement h1 {
  line-height: .84;
  padding-block: .06em .1em;
  overflow: visible;
}

.landing-page .hero-statement > p {
  margin: 0 0 clamp(8px, 1vw, 12px);
  color: #c3c7ca;
  font-size: clamp(.625rem, .9vw, .75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .17em;
  white-space: nowrap;
}

.landing-page .home-category-grid strong,
.landing-page .label-marquee span {
  line-height: 1.08;
}

.landing-page .home-section-heading,
.landing-page .home-fit > div,
.archive-page .catalog-intro,
.archive-page .brand-heading {
  min-width: 0;
}

.landing-page .home-section h2,
.archive-page .brand-heading h2 {
  overflow-wrap: anywhere;
}

.archive-page .catalog-intro h1 {
  max-width: 100%;
  margin-block: 24px 12px;
}

.archive-page .brand-heading {
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto;
}

.archive-page .brand-heading h2 {
  min-width: 0;
}

@media (min-width: 701px) {
  .landing-page .hero-wordmark {
    top: 27%;
    width: min(76vw, 1120px);
  }

  .landing-page .hero-statement h1 {
    font-size: clamp(4.8rem, 9vw, 9.3rem);
  }
}

@media (max-width: 900px) {
  .archive-page .brand-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .landing-page .hero-statement h1 {
    font-size: clamp(3.35rem, 16vw, 6rem);
    line-height: .84;
  }

  .landing-page .home-section h2 {
    font-size: clamp(2.6rem, 12vw, 6rem);
    line-height: 1;
  }

  .archive-page .catalog-intro h1 {
    font-size: clamp(3rem, 13.5vw, 6.5rem);
    line-height: 1;
  }

  .archive-page .brand-heading h2 {
    font-size: clamp(2.75rem, 13vw, 5.75rem);
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .landing-page .hero-statement {
    bottom: 22%;
  }

  .landing-page .enter-archive {
    bottom: 8%;
  }
}

/* Studio: one restrained chrome language for every action. */
.studio-main {
  width: min(100%, 1500px);
  padding-block: clamp(28px, 4vw, 58px);
}

.studio-nav {
  gap: 12px 20px;
}

.studio-nav > a:not(.studio-brand) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #454545;
  border-radius: 999px;
  color: #deded8;
  font-size: 12px;
  line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}

.studio-nav > a:not(.studio-brand):hover {
  background: #242424;
  border-color: #b9b9b2;
  color: #fff;
}

.studio-tabs {
  gap: 9px;
  padding: 12px 2px 14px;
  border-bottom: 1px solid #303030;
  scrollbar-width: thin;
  scrollbar-color: #656560 transparent;
}

.studio-tabs a,
.studio-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #424242;
  border-radius: 999px;
  padding: 10px 16px;
  background: #171717;
  color: #e3e3de;
  font: 700 11px/1.25 'DM Sans', Arial, sans-serif;
  letter-spacing: .08em;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.studio-tabs a:hover,
.studio-tabs button:hover {
  border-color: #d0d0ca;
  background: #242424;
  color: #fff;
  transform: translateY(-1px);
}

.studio-tabs a:focus-visible,
.studio-tabs button:focus-visible {
  outline: 2px solid #f0f0e9;
  outline-offset: 2px;
}

.studio-summary {
  border: 1px solid #303030;
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0 38px;
}

.studio-summary article {
  min-width: 0;
  padding: 21px 23px;
  background: linear-gradient(145deg, #18191a, #0b0b0c);
}

.studio-summary strong {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.studio-heading h1 {
  line-height: 1.08;
  padding-bottom: .06em;
}

.panel,
.saved-section {
  border: 1px solid #373737;
  border-radius: 14px;
  background: linear-gradient(150deg, #171717, #0d0d0e 68%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .14);
}

.saved-section {
  margin-top: 34px;
  padding: clamp(18px, 2.5vw, 30px);
}

.panel-heading {
  flex-wrap: wrap;
}

.panel-heading h2,
.saved-section h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.14;
  letter-spacing: .015em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid #62625f;
  border-radius: 10px;
  background: #1c1d1e;
  color: #efefea;
  font: 700 13px/1.25 'DM Sans', Arial, sans-serif;
  text-align: center;
  white-space: normal;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s, color .2s;
}

.button.primary {
  border-color: #ededeb;
  background: linear-gradient(118deg, #a6a9ac, #f7f7f3 28%, #d2d4d5 55%, #fff 80%, #aeb2b5);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(0, 0, 0, .2);
  color: #090a0b;
}

.button.secondary {
  border-color: #62625f;
  background: #191a1b;
  color: #e7e7e0;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: none;
  border-color: #f1f1ec;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}

.button.primary:hover:not(:disabled) {
  background: #fff;
}

.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.button.refund {
  border-color: #7b4b4b;
  color: #f1c1c1;
}

.saved-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.saved-actions .button {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  font-size: 12px;
}

.order-card {
  min-width: 0;
  border-radius: 12px;
  background: #121314;
}

.order-card > div,
.order-editor,
.order-editor label {
  min-width: 0;
}

.order-card h3,
.order-card p,
.order-card li {
  overflow-wrap: anywhere;
}

.order-card h3 {
  line-height: 1.25;
}

.order-editor .button {
  width: 100%;
}

.settings-form > .button {
  justify-self: start;
}

@media (max-width: 800px) {
  .studio-nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .studio-nav .studio-brand {
    margin-right: auto;
  }

  .studio-main {
    padding-inline: 5%;
  }

  .studio-tabs {
    margin-inline: 0;
    padding-inline: 0;
  }

  .studio-summary article {
    padding: 17px;
  }
}

@media (max-width: 520px) {
  .studio-heading h1 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .studio-summary strong {
    font-size: 34px;
  }

  .panel,
  .saved-section {
    padding: 18px;
  }

  .saved-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .settings-form > .button {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-page .cart-drawer:not(.open) {
    transform: translate3d(102%, 0, 0) !important;
  }

  .archive-page .cart-drawer.open {
    transform: none !important;
  }

  .studio-tabs a,
  .studio-tabs button,
  .button {
    transition: none;
  }
}
