/* A view-based customer experience: Collection, Design Studio and Our World. */
body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 248, 241, .94), rgba(251, 248, 241, .94)),
    url("assets/meadow-and-tide-logo.jpg") center / 660px repeat;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  max-width: none;
  border-bottom-color: rgba(32, 49, 58, .12);
  box-shadow: 0 5px 18px rgba(36, 54, 50, .035);
  backdrop-filter: blur(16px);
}
.site-header > * { max-width: 1440px; }
.site-header nav a { padding: 9px 0; }
.site-header nav a[aria-current="page"] {
  color: var(--sea-deep);
  font-weight: 700;
}
.site-header nav a[aria-current="page"]::after { right: 0; background: var(--gold); }

.studio-shell {
  width: 100%;
  min-height: calc(100vh - 134px);
}
[data-view-panel] { display: none; }
[data-view-panel][hidden] { display: none !important; }

body[data-active-view="home"] .hero { display: grid; }
body[data-active-view="home"] .studio-dock { display: grid; }
body[data-active-view="shop"] .shop-section { display: block; }
body[data-active-view="create"] .create-section { display: grid; }
body[data-active-view="create"] .suggestions-section:not([hidden]),
body[data-active-view="create"] .builder-section:not([hidden]) { display: block; }
body[data-active-view="story"] .how-section,
body[data-active-view="story"] .newsletter { display: block; }
body[data-active-view="story"] .story-section { display: grid; }
body[data-active-view="story"] footer[data-view-panel] { display: grid; }

.hero,
.studio-dock,
.shop-section,
.create-section,
.suggestions-section,
.builder-section,
.how-section,
.story-section,
.newsletter,
footer[data-view-panel] {
  animation: studio-view-enter .44s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes studio-view-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  min-height: min(680px, calc(100vh - 134px));
  border-bottom: 0;
}
.hero-copy { padding-bottom: clamp(48px, 7vh, 78px); }
.hero-art { min-height: min(680px, calc(100vh - 134px)); }

.studio-dock {
  width: min(100%, 1540px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(32, 49, 58, .14);
  border-bottom: 1px solid rgba(32, 49, 58, .14);
  background: #f7f2e7;
}
.studio-dock__item {
  position: relative;
  display: grid;
  min-height: 142px;
  grid-template-columns: 39px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 28px clamp(21px, 3vw, 51px);
  border-right: 1px solid rgba(32, 49, 58, .14);
  overflow: hidden;
  transition: background .22s ease, color .22s ease;
}
.studio-dock__item:last-child { border-right: 0; }
.studio-dock__item::before {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.studio-dock__item:hover { background: #e6e8d9; }
.studio-dock__item:hover::before { transform: scaleX(1); }
.studio-dock__item.featured { background: #284d59; color: #faf7eb; }
.studio-dock__item.featured::after {
  position: absolute;
  top: -49px;
  right: -38px;
  width: 162px;
  height: 162px;
  border: 1px solid rgba(243, 238, 219, .4);
  border-radius: 50%;
  content: "";
}
.studio-dock__item > span {
  position: relative;
  z-index: 1;
  color: #6f836e;
  font: 10px var(--mono);
  letter-spacing: .08em;
}
.studio-dock__item.featured > span { color: #e1cb93; }
.studio-dock__item div { position: relative; z-index: 1; }
.studio-dock__item b,
.studio-dock__item small { display: block; }
.studio-dock__item b {
  color: #314849;
  font: 600 25px/1 var(--display);
  letter-spacing: -.025em;
}
.studio-dock__item small { max-width: 215px; margin-top: 6px; color: #68746b; font-size: 11px; line-height: 1.45; }
.studio-dock__item.featured b { color: #fffaf0; }
.studio-dock__item.featured small { color: #dce4d7; }
.studio-dock__item i { position: relative; z-index: 1; color: #608077; font: 24px/1 var(--display); font-style: normal; }
.studio-dock__item.featured i { color: #e7d39b; }

.shop-section,
.suggestions-section {
  min-height: calc(100vh - 134px);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(52px, 7vw, 100px);
}
.shop-section .section-heading,
.suggestions-section .section-heading { padding-bottom: 22px; border-bottom: 1px solid rgba(34, 57, 58, .16); }
.shop-section .section-heading::before,
.suggestions-section .section-heading::before {
  align-self: flex-start;
  order: 3;
  padding: 5px 8px;
  border: 1px solid rgba(36, 70, 75, .25);
  color: #60776f;
  content: "Studio collection";
  font: 8px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.suggestions-section .section-heading::before { content: "Curated for you"; }
.shop-controls {
  position: sticky;
  z-index: 8;
  top: 110px;
  margin: 0 -12px 33px;
  box-shadow: 0 5px 15px rgba(32, 49, 58, .035);
}
.product-card { transition: transform .24s ease, box-shadow .24s ease; }
.product-card:hover { box-shadow: 0 18px 32px rgba(47, 67, 60, .13); transform: translateY(-4px); }

.create-section {
  min-height: calc(100vh - 134px);
  align-items: center;
  padding-top: clamp(55px, 6vw, 98px);
  padding-bottom: clamp(55px, 6vw, 98px);
}
.create-intro { max-width: 430px; }
.create-intro::before {
  display: block;
  width: fit-content;
  margin-bottom: 19px;
  padding: 6px 9px;
  border: 1px solid rgba(248, 243, 229, .45);
  color: #dfe4d5;
  content: "The Meadow & Tide Studio";
  font: 8px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.design-flow { max-width: 680px; justify-self: end; }
.flow-progress { justify-content: space-between; gap: 12px; }
.flow-progress span { flex: 0 0 auto; }
.flow-progress i { flex: 1; }
.type-choice { position: relative; min-height: 81px; text-align: left; }
.type-choice.active::after {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #52706b;
  content: "✓";
  font-size: 13px;
}

.suggestions-section { background: #f4f1e8; }
.suggestion-grid { align-items: stretch; }
.suggestion-card { display: flex; flex-direction: column; }
.suggestion-card .choose-design { margin-left: auto; }
.suggestion-footer { margin-top: auto; }
.builder-section {
  min-height: calc(100vh - 134px);
  padding-top: clamp(60px, 7vw, 108px);
  padding-bottom: clamp(60px, 7vw, 108px);
}
.builder-heading { max-width: 1300px; margin-right: auto; margin-left: auto; }
.builder-layout { max-width: 1300px; margin: 0 auto; }
.builder-panel { display: flex; flex-direction: column; }
.builder-actions { margin-top: auto; }
.jewellery-preview::after {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 35px;
  width: 83px;
  height: 54px;
  border: 1px solid rgba(244, 239, 219, .7);
  background: url("assets/meadow-and-tide-sign.jpg") center / cover;
  box-shadow: 5px 6px 0 rgba(25, 54, 59, .22);
  content: "";
  opacity: .76;
  transform: rotate(-4deg);
}

.how-section {
  width: min(100%, 1540px);
  min-height: 0;
  margin: 0 auto;
  padding-top: clamp(54px, 7vw, 94px);
  padding-bottom: clamp(54px, 7vw, 94px);
}
.how-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.how-title::after {
  max-width: 250px;
  margin-bottom: 8px;
  color: #53635f;
  content: "A simple studio process, guided by what is actually available to make.";
  font-size: 12px;
  line-height: 1.6;
}
.how-steps { margin-top: 48px; }
.story-section { min-height: min(660px, 72vh); }
.newsletter { padding-top: 78px; padding-bottom: 78px; }
footer[data-view-panel] { margin-top: 0; }

@media (max-width: 900px) {
  .studio-dock__item { grid-template-columns: 30px 1fr auto; padding: 24px; }
  .studio-dock__item b { font-size: 22px; }
  .shop-controls { top: 97px; }
  .create-section { align-items: start; }
  .design-flow { width: 100%; max-width: none; justify-self: stretch; }
  .how-title { display: block; }
  .how-title::after { display: block; margin-top: 16px; }
}

@media (max-width: 700px) {
  .studio-shell { min-height: calc(100vh - 112px); }
  .hero,
  .hero-art { min-height: auto; }
  .hero-copy { min-height: 488px; }
  .studio-dock { grid-template-columns: 1fr; }
  .studio-dock__item,
  .studio-dock__item:last-child { min-height: 103px; border-right: 0; border-bottom: 1px solid rgba(32, 49, 58, .14); }
  .studio-dock__item:last-child { border-bottom: 0; }
  .studio-dock__item b { font-size: 23px; }
  .studio-dock__item small { font-size: 10px; }
  .shop-section,
  .suggestions-section,
  .create-section,
  .builder-section { min-height: calc(100vh - 112px); }
  .shop-section .section-heading,
  .suggestions-section .section-heading { display: grid; gap: 12px; }
  .shop-section .section-heading::before,
  .suggestions-section .section-heading::before { order: -1; width: fit-content; }
  .shop-controls { position: static; margin: 0 0 28px; }
  .create-section { gap: 34px; }
  .create-intro::before { margin-bottom: 13px; }
  .design-flow { box-shadow: none; }
  .flow-progress { font-size: 8px; }
  .jewellery-preview::after { right: 22px; bottom: 55px; width: 64px; height: 42px; }
  .how-title::after { font-size: 11px; }
  .story-section { min-height: 0; }
}

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