:root {
  --ivory: #f5f1e8;
  --paper: #faf8f2;
  --sand: #ded4c5;
  --taupe: #aa8977;
  --taupe-dark: #967565;
  --terracotta: #a98573;
  --olive: #a8aa97;
  --ink: #403b35;
  --charcoal: #33342e;
  --line: rgba(64, 59, 53, 0.3);
  --white: #fffdfa;
  --shell: min(100% - 64px, 1380px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Mulish", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 108px 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 650ms var(--ease), background-color 650ms var(--ease), border-color 650ms var(--ease), box-shadow 650ms var(--ease), backdrop-filter 650ms var(--ease);
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(250, 248, 242, 0.94);
  border-color: rgba(64, 59, 53, 0.08);
  box-shadow: 0 8px 24px rgba(49, 43, 36, 0.035);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand-logo { justify-self: start; width: 190px; }
.brand-logo img {
  width: 100%;
  height: auto;
  filter: invert(1) brightness(2);
  transition: filter 400ms var(--ease);
}
.is-scrolled .brand-logo img { filter: none; }
.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); }
.desktop-nav a { font-size: 15px; }
.header-actions { font-size: 13px; }
.desktop-nav a { position: relative; padding: 8px 0; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 300ms var(--ease);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-button, .arrow-button, .favorite-button {
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-button { width: 42px; height: 42px; }
.icon-button svg { width: 19px; height: 19px; stroke-width: 1.35; }
.bag-button { width: auto; grid-auto-flow: column; gap: 7px; padding-inline: 10px 0; }
.bag-count { font-size: 12px; }
.mobile-menu-button { display: none; justify-self: start; }

.mobile-menu {
  position: fixed;
  z-index: 110;
  inset: 0;
  padding: 26px 24px 40px;
  background: var(--ivory);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease), visibility 350ms;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-head img { width: 168px; }
.mobile-menu nav { display: grid; margin-top: 78px; border-top: 1px solid var(--line); }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 26px; border-bottom: 1px solid var(--line); }
.mobile-menu nav svg { width: 20px; }
.mobile-menu > p { position: absolute; bottom: 32px; color: rgba(64, 59, 53, 0.58); }

.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
  background: #827268;
}
.hero-media, .hero-tint, .hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: var(--hero-position-desktop, center); transform: scale(1.015); will-change: transform; }
.hero-tint { background: rgba(43, 35, 31, var(--hero-overlay-opacity, .25)); }
.hero-grain {
  background-image: url("/src/img/mystories/noise.webp");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.15;
  filter: grayscale(1) brightness(.65) contrast(1.8);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content { position: relative; height: 100%; display: flex; align-items: center; padding-top: 84px; }
.hero-copy { width: min(520px, 48%); }
.eyebrow { margin-bottom: 28px; color: var(--terracotta); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span { margin-inline: 5px; }
.eyebrow--light { color: rgba(255, 253, 250, 0.78); }
.hero h1 { max-width: 520px; margin-bottom: 24px; font-size: clamp(58px, 6.25vw, 94px); line-height: 0.95; letter-spacing: -0.045em; }
.hero-description { max-width: 440px; margin-bottom: 34px; color: rgba(255, 253, 250, 0.84); font-size: 16px; line-height: 1.65; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 13px;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.button svg { width: 18px; stroke-width: 1.4; }
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--ink); background: rgba(255, 253, 250, 0.94); }
.button--light:hover { background: var(--white); }
.hero-values {
  position: absolute;
  right: 0;
  top: 21%;
  display: flex;
  gap: 14px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 13px;
  line-height: 1.65;
}
.hero-note { position: absolute; right: 0; bottom: 44px; margin: 0; padding-right: 70px; font-size: 13px; line-height: 1.3; }
.hero-note::after { content: ""; position: absolute; right: 0; top: 50%; width: 52px; height: 1px; background: rgba(255,255,255,.7); }

.products-section { background: var(--paper); }
.section-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -0.035em; }
.section-heading p { margin: 10px 0 0; color: rgba(64, 59, 53, 0.62); font-size: 13px; }
.heading-line { flex: 1; height: 1px; background: var(--line); }
.carousel-actions { display: flex; gap: 2px; }
.arrow-button { width: 42px; height: 42px; transition: opacity 200ms ease, transform 200ms ease; }
.arrow-button:hover { transform: translateX(2px); }
.arrow-button:first-child:hover { transform: translateX(-2px); }
.arrow-button:disabled { opacity: 0.28; cursor: default; transform: none; }
.arrow-button svg { width: 20px; stroke-width: 1.25; }
.text-link { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 13px; }
.text-link svg { width: 18px; stroke-width: 1.25; transition: transform 220ms ease; }
.text-link:hover svg { transform: translateX(4px); }
.text-link--underlined { padding-bottom: 7px; border-bottom: 1px solid currentColor; }

.product-track, .story-track, .bestseller-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}
.product-track::-webkit-scrollbar, .story-track::-webkit-scrollbar, .bestseller-track::-webkit-scrollbar { display: none; }
.product-track { gap: 22px; }
.product-card { position: relative; flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start; }
.product-image { display: block; aspect-ratio: 0.75; overflow: hidden; background: #ebe6dd; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.product-card:hover .product-image img { transform: scale(1.025); }
.favorite-button { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; color: var(--ink); background: rgba(250,248,242,.72); backdrop-filter: blur(8px); }
.favorite-button svg { width: 18px; stroke-width: 1.35; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.product-card h3 { margin: 15px 42px 3px 0; font-size: 14px; }
.product-card p { margin: 0; font-size: 14px; }

.bestsellers { position: relative; padding: 0; color: var(--white); background: var(--taupe); overflow: hidden; }
.bestsellers::after { content: ""; position: absolute; inset: 0; background: url("/src/img/mystories/noise.webp") repeat; background-size: 220px; opacity: .12; mix-blend-mode: soft-light; pointer-events: none; }
.bestsellers .shell { position: relative; z-index: 1; }
.bestseller-layout { display: grid; grid-template-columns: minmax(280px, .72fr) 1.7fr; gap: clamp(36px, 5vw, 78px); align-items: center; padding-block: 64px; }
.bestseller-track { width: 100%; gap: 16px; }
.bestseller-intro { align-self: center; padding-right: clamp(8px, 2vw, 30px); }
.bestseller-intro h2 { margin-bottom: 22px; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.bestseller-intro > p:not(.eyebrow) { max-width: 330px; margin-bottom: 32px; color: rgba(255,253,250,.78); }
.button--cream { color: var(--ink); background: var(--ivory); }
.bestseller-card { flex: 0 0 calc((100% - 16px) / 2.15); min-width: 0; scroll-snap-align: start; }
.bestseller-card > a { display: block; height: clamp(350px, 37vw, 500px); overflow: hidden; background: rgba(255,255,255,.12); }
.bestseller-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.bestseller-card:hover img { transform: scale(1.025); }
.bestseller-card h3 { margin: 14px 0 3px; font-size: 14px; font-weight: 400; }
.bestseller-card p { margin: 0; color: rgba(255,253,250,.78); font-size: 14px; }
.bestseller-controls { display: flex; align-items: center; gap: 2px; width: min(260px, 100%); margin-top: 40px; }
.arrow-button--light { color: var(--white); }
.carousel-status { margin-left: auto; font-size: 12px; letter-spacing: .08em; color: rgba(255,253,250,.7); }

.collection { display: grid; grid-template-columns: 29% 71%; min-height: 100vh; min-height: 100svh; background: var(--ivory); }
.collection-copy { align-self: center; padding: 56px clamp(24px, 3.5vw, 48px); }
.collection h2 { margin-bottom: 24px; font-size: clamp(48px, 4.2vw, 64px); line-height: .98; letter-spacing: -.045em; }
.collection-copy > p:not(.eyebrow) { max-width: 370px; margin-bottom: 32px; color: rgba(64,59,53,.68); line-height: 1.7; }
.button--taupe { color: var(--white); background: var(--taupe); }
.button--taupe:hover { background: #967565; }
.collection-image { position: relative; min-height: 560px; overflow: hidden; }
.collection-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(260px, .66fr) 1.6fr; gap: clamp(52px, 7vw, 110px); align-items: start; }
.about-copy { position: sticky; top: 120px; padding-top: 8px; }
.about h2 { margin-bottom: 30px; font-size: clamp(48px, 5vw, 74px); line-height: 1; letter-spacing: -.045em; }
.about-copy > p:not(.eyebrow) { max-width: 420px; color: rgba(64,59,53,.7); line-height: 1.75; }
.about-copy .text-link { margin-top: 12px; }
.about-visuals { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px 22px; align-items: start; }
.about-figure { margin: 0; }
.about-figure--large { grid-row: span 2; }
.about-figure--wide { grid-column: 2; }
.about-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-figure--large img { aspect-ratio: .78; }
.about-figure--wide img { aspect-ratio: 1.25; }
.about-figure figcaption { margin-top: 16px; color: rgba(64,59,53,.63); font-size: 12px; line-height: 1.55; }
.about-figure figcaption span { display: block; margin-bottom: 8px; color: var(--terracotta); font-size: 14px; }

.stories { padding-top: 70px; background: var(--ivory); }
.stories .section-heading { align-items: end; }
.stories .section-heading > div:first-child { min-width: max-content; }
.story-track { gap: 8px; }
.story-card, .story-quote { flex: 0 0 calc((100% - 40px) / 5.4); min-width: 215px; scroll-snap-align: start; }
.story-card { position: relative; aspect-ratio: .84; overflow: hidden; background: #ded7cc; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.story-card--still img { object-position: center; }
.story-card:hover img { transform: scale(1.035); }
.story-card span { position: absolute; left: 12px; bottom: 10px; padding: 4px 7px; color: var(--ink); background: rgba(250,248,242,.8); font-size: 11px; }
.story-quote { margin: 0; padding: 30px 26px; background: #eee6da; }
.story-quote svg { width: 24px; color: var(--terracotta); fill: var(--terracotta); }
.story-quote p { margin: 20px 0; font-size: 14px; line-height: 1.6; }
.story-quote cite { color: rgba(64,59,53,.58); font-size: 12px; font-style: normal; }

.site-footer { color: rgba(255,253,250,.82); background: var(--charcoal); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .9fr 1.2fr; gap: 60px; padding: 70px 0 54px; }
.footer-brand img { width: 190px; filter: invert(1) brightness(2); }
.footer-brand p { margin: 22px 0; font-size: 13px; }
.social-links { display: flex; align-items: center; gap: 16px; }
.social-links a { display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; font-weight: 600; }
.social-links svg { width: 19px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px; align-content: start; font-size: 13px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: grid; align-content: start; gap: 6px; font-size: 13px; font-style: normal; }
.footer-contact span { color: rgba(255,253,250,.48); }
.footer-contact a:nth-of-type(2) { margin-top: 16px; }
.footer-subscribe > p { margin-bottom: 15px; font-size: 13px; }
.footer-subscribe form { display: grid; grid-template-columns: 1fr 46px; border: 1px solid rgba(255,253,250,.4); }
.footer-subscribe input { min-width: 0; height: 46px; padding: 0 15px; color: var(--white); border: 0; outline: 0; background: transparent; }
.footer-subscribe input::placeholder { color: rgba(255,253,250,.55); }
.footer-subscribe button { border: 0; color: var(--white); background: transparent; cursor: pointer; }
.footer-subscribe button svg { width: 18px; }
.footer-subscribe small { display: block; margin-top: 12px; color: rgba(255,253,250,.45); font-size: 11px; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; min-height: 74px; border-top: 1px solid rgba(255,253,250,.2); color: rgba(255,253,250,.46); font-size: 11px; }
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom > span:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.image-reveal { overflow: hidden; }
.image-reveal img { transform: scale(1.045); transition: transform 1300ms var(--ease); }
.image-reveal.is-visible img { transform: scale(1); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 1000px); }
  .desktop-nav { gap: 24px; }
  .brand-logo { width: 170px; }
  .product-card { flex-basis: calc((100% - 44px) / 3); }
  .bestseller-layout { grid-template-columns: minmax(250px, .82fr) 1.5fr; gap: 36px; }
  .bestseller-card { flex-basis: calc((100% - 16px) / 1.75); }
  .collection { grid-template-columns: 36% 64%; }
  .about-grid { grid-template-columns: .8fr 1.35fr; gap: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 40px, 720px); }
  .section { padding: 80px 0; }
  .header-inner { grid-template-columns: 44px 1fr auto; min-height: 60px; }
  .mobile-menu-button { display: inline-grid; }
  .brand-logo { justify-self: center; width: 166px; }
  .desktop-nav { display: none; }
  .account-button { display: none; }
  .hero { height: 100svh; min-height: 100svh; }
  .hero-media { object-position: var(--hero-position-mobile, 61% center); }
  .hero-content { align-items: end; padding-bottom: 84px; }
  .hero-copy { width: min(530px, 84%); }
  .hero h1 { font-size: clamp(54px, 12vw, 82px); }
  .hero-values, .hero-note { display: none; }
  .section-heading { flex-wrap: wrap; }
  .section-heading .heading-line { order: 2; flex-basis: 100%; }
  .section-heading .carousel-actions { margin-left: auto; }
  .product-card { flex-basis: calc((100% - 22px) / 2.15); }
  .bestseller-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 54px; }
  .bestseller-intro { padding-right: 0; }
  .bestseller-intro > p:not(.eyebrow) { max-width: 520px; }
  .bestseller-controls { margin-top: 28px; }
  .bestseller-card { flex-basis: 58%; }
  .bestseller-card > a { height: clamp(350px, 68vw, 500px); }
  .collection { grid-template-columns: 1fr; }
  .collection-copy { padding: 74px var(--shell-side, 24px); width: var(--shell); margin-inline: auto; }
  .collection-image { height: 540px; min-height: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { position: static; }
  .about-visuals { margin-top: 20px; }
  .stories .section-heading > div:first-child { min-width: 0; flex: 1 1 100%; }
  .story-card, .story-quote { flex-basis: 42%; }
  .footer-bottom { grid-template-columns: 1fr; padding: 24px 0; }
  .footer-bottom > span:last-child { justify-self: start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .section { padding: 66px 0; }
  .site-header .shell { width: calc(100% - 24px); }
  .header-actions .icon-button { width: 36px; }
  .bag-count { display: none; }
  .brand-logo { width: 144px; }
  .hero { height: 100svh; min-height: 100svh; }
  .hero-media { object-position: var(--hero-position-mobile, 62% center); }
  .hero-tint { background: rgba(43,35,31,var(--hero-overlay-opacity-mobile, .33)); }
  .hero-content { padding-bottom: 72px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(50px, 16vw, 66px); }
  .hero-description { max-width: 330px; font-size: 14px; }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .section-heading { gap: 12px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading .text-link { order: 3; }
  .section-heading .heading-line { display: none; }
  .carousel-actions { margin-left: auto; }
  .arrow-button { width: 36px; height: 36px; }
  .product-track { gap: 14px; margin-right: -16px; padding-right: 16px; }
  .product-card { flex-basis: 86%; }
  .product-card h3 { margin-top: 12px; }
  .bestseller-layout { gap: 28px; padding-block: 48px; }
  .bestseller-intro { padding: 0; }
  .bestseller-intro h2 { font-size: 48px; }
  .bestseller-card { flex-basis: 86%; }
  .bestseller-card > a { height: min(112vw, 470px); }
  .collection-copy { padding: 62px 16px; }
  .collection h2 { font-size: 52px; }
  .collection-image { height: 460px; min-height: 0; }
  .collection-image img { object-position: 52% center; }
  .about-visuals { grid-template-columns: 1fr; gap: 32px; }
  .about-figure--large, .about-figure--wide { grid-row: auto; grid-column: auto; }
  .about-figure--large img, .about-figure img, .about-figure--wide img { aspect-ratio: 1.1; }
  .story-track { margin-right: -16px; padding-right: 16px; }
  .story-card, .story-quote { min-width: 0; flex-basis: 80%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom div { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .image-reveal img { transform: none; }
}
