/* The site-wide shell for every public page (body.studio-home): colours, type,
   header, footer and cart drawer. Home-only styles are in home-page.css; the
   other pages' content in sections.css. Warm ink and border, white page. */
.studio-home {
  --bg: #fff;
  --ink: #382f26;
  --ink2: #706354;
  --ink3: #776a5b;
  --border: #d8cbbb;
  --sans: "Inter", sans-serif;
  --serif: "Inter", sans-serif;
  --peach: #303e43;
  --peach2: #a8bab6;
  --r: 0;
  background: var(--bg);
  font-weight: 300;
}
.studio-home a {
  color: inherit;
  text-decoration: none;
}
.studio-home button {
  font: inherit;
  color: inherit;
}
.studio-home a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.studio-home a.text-link:hover {
  text-decoration: none;
}
.studio-home a.text-link:hover > span:not([aria-hidden]) {
  text-decoration: underline;
}
.studio-home a.studio-brand:hover {
  text-decoration: none;
}
.studio-home :focus-visible {
  outline: 2px solid #416b70;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 16px;
  z-index: 3000;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}
.text-link {
  font-size: 14px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 400;
}
.text-link > span[aria-hidden] {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}
/* In-text links look like links. */
.cups-sub a,
.collection-intro p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1600px) {
  .studio-home {
    max-width: 1800px;
    margin: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .studio-home * {
    transition: none !important;
    animation: none !important;
  }
}

/* Header: logo, menu and tools on one line, a divider below. Its side padding
   (5.5%, then 4%, 20px, 16px) is the edge the content and footer line up on.
   Where the open shop's menu and cart don't fit on phones, /features.css
   (src/server.js) moves the menu to its own row; in gallery mode it hides the
   empty tools box. */
.studio-header {
  min-height: 96px;
  padding: 20px 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}
/* The header stays at the top while scrolling; .site-top holds it with the promo bar. */
.studio-header,
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.site-top .studio-header {
  position: static;
}
.studio-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.studio-brand > span {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1;
  white-space: nowrap;
}
.studio-navigation {
  margin: 0 auto 0 24px;
}
.studio-navigation,
.studio-tools {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 400;
}
.studio-tools button {
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Footer: one rule at the top, then copyright and the details. */
.studio-footer {
  padding: 38px 5.5% 24px;
}
.studio-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-weight: 400;
}
.footer-policies a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--ink2);
  font-size: 12px;
}
.footer-bottom .eyebrow {
  font-size: 10px;
}
.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink2);
}
.footer-details p:last-child {
  width: 100%;
}

/* Cart drawer. */
.studio-home .cart-drawer {
  background: var(--bg);
}
.studio-home .cart-header h2 {
  font-family: var(--sans);
  font-weight: 400;
}
.studio-home .btn-primary {
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}
.studio-home .cart-count {
  background: none;
}
.studio-home .cart-empty-icon {
  display: none;
}

@media (max-width: 1050px) {
  .studio-header {
    gap: 20px;
    padding: 20px 4%;
    flex-wrap: wrap;
  }
  .studio-navigation {
    gap: 20px;
    justify-content: flex-start;
    margin: 0 auto 0 4px;
  }
  .studio-tools {
    margin-left: auto;
  }
  .studio-footer {
    padding-left: 4%;
    padding-right: 4%;
  }
}
@media (max-width: 650px) {
  .studio-header {
    padding: 20px;
    gap: 18px;
  }
  .studio-brand > span {
    font-size: 26px;
  }
  .studio-tools {
    gap: 14px;
  }
  .studio-navigation {
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0 18px;
  }
  .studio-footer {
    padding: 32px 20px;
  }
  .studio-footer nav {
    flex: auto;
    width: 100%;
    justify-content: flex-start;
    order: 2;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .studio-home .cart-drawer {
    width: min(420px, 100%);
  }
  .studio-home a,
  .studio-tools button {
    touch-action: manipulation;
  }
  /* At least 44px tap areas for header, footer and cart controls. */
  .studio-navigation a,
  .studio-tools a,
  .studio-tools button,
  .studio-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .cart-close {
    width: 44px;
    height: 44px;
  }
  .qty-btn {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 360px) {
  .studio-header {
    padding: 18px 16px;
  }
  .studio-brand > span {
    font-size: 23px;
  }
  .studio-navigation,
  .studio-tools {
    font-size: 14px;
  }
  .studio-tools {
    gap: 10px;
  }
  .studio-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
