@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
body:has(.store-header) {
  --paper: #f5f0e7;
  --ink: #231f19;
  --olive: #303326;
  --gutter: clamp(1.1rem, 5vw, 5rem);
}
.store-header,
.store-footer,
.store-shop,
#cart {
  background-color: var(--paper);
}
.store-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0.65rem var(--gutter);
  gap: 1rem;
}
.store-nav .logo {
  grid-column: 2;
}
.store-nav .logo i {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.9rem;
  letter-spacing: -0.045em;
  line-height: 0.8;
}
.store-nav .logo span {
  margin-top: 0.42rem;
  font-size: 0.57rem;
  letter-spacing: 0.39em;
}
.store-links {
  display: flex;
  gap: clamp(0.9rem, 3vw, 2.3rem);
}
.store-links a,
.store-footer a,
.text-link {
  text-underline-offset: 0.28em;
}
.store-links a:hover {
  text-decoration: underline;
}
.bag-button {
  justify-self: end;
  min-height: 44px;
  padding: 0.25rem 0 0.25rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
}
.bag-button span {
  display: inline-grid;
  place-items: center;
  margin-left: 0.3rem;
  min-width: 1.6rem;
  min-height: 1.6rem;
  border: 1px solid #998e7f;
  border-radius: 50%;
  font-size: 0.74rem;
  transition:
    background-color 180ms,
    color 180ms;
}
.bag-button:hover span {
  background: var(--ink);
  color: var(--paper);
}
.campaign {
  isolation: isolate;
  display: grid;
  position: relative;
  align-items: center;
  min-height: clamp(510px, 73vh, 820px);
  overflow: hidden;
  background: #25281c;
  color: #fff8ec;
}
.campaign figure {
  position: absolute;
  inset: 0 0 0 42%;
  overflow: hidden;
  z-index: -2;
}
.campaign img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: campaign-in 950ms ease-out both;
}
.campaign::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #25281c 26%,
    #25281c 42%,
    #25281c33 57%,
    transparent 69%
  );
}
@keyframes campaign-in {
  from {
    transform: scale(1.025);
  }
}
.campaign-copy {
  padding: clamp(3.4rem, 7vw, 8rem) var(--gutter);
  animation: copy-in 500ms ease-out both;
}
@keyframes copy-in {
  from {
    opacity: 0.6;
    transform: translateY(9px);
  }
}
.campaign h1,
.store-shop :is(h1, h2, h3),
.store-science h2,
.store-story h2,
#cart h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.027em;
  line-height: 0.96;
}
.campaign h1 {
  font-size: clamp(4.3rem, 9.5vw, 10rem);
}
.campaign-copy p {
  margin: 1.35rem 0 1.55rem;
  max-width: 28ch;
  color: #f5eee4;
}
.store-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 47px;
  padding: 0.64rem 0.92rem;
  border: 1px solid var(--olive);
  border-radius: 0;
  background: var(--olive);
  color: #fff8ed;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    background-color 180ms,
    color 180ms,
    border-color 180ms;
}
.store-button.light {
  width: fit-content;
  gap: 2rem;
  background: #f5f0e7;
  color: var(--ink);
  border-color: #f5f0e7;
}
.store-button span[aria-hidden] {
  transition: transform 180ms ease;
}
.store-button:hover {
  background: #454a37;
  border-color: #454a37;
}
.store-button.light:hover {
  background: #e5dbca;
  border-color: #e5dbca;
}
.store-button:hover span[aria-hidden] {
  transform: translateX(2px);
}
.store-button:active {
  filter: brightness(0.9);
}
.store-shop {
  padding: clamp(2.5rem, 6vw, 6.3rem) var(--gutter);
}
.shop-heading,
.store-products {
  max-width: 865px;
  margin-inline: auto;
}
.shop-heading {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.shop-heading :is(h1, h2) {
  font-size: clamp(3.5rem, 7vw, 6.3rem);
}
.shop-heading > p {
  margin-top: 0.45rem;
  color: #5f574c;
  font-size: 0.88rem;
}
.store-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2.8vw, 2.15rem);
}
.product-photo {
  overflow: hidden;
  background: #d4c4ae;
  aspect-ratio: 1;
}
.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}
.store-products article:hover img {
  transform: scale(1.035);
}
.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 0.55rem;
  margin: 0.85rem 0 0.7rem;
}
.product-title h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.product-title p {
  white-space: nowrap;
  font-size: 1rem;
}
.product-title small {
  color: #665d51;
  font-size: 0.61rem;
}
.store-products button {
  width: 100%;
}
.direct .store-shop {
  min-height: 0;
  padding-top: clamp(1.7rem, 4vw, 3.5rem);
}
.store-science {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  background: #282820;
  color: #f5f0e7;
}
.store-science > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center 53%;
}
.science-copy {
  align-self: center;
  padding: clamp(1.4rem, 5vw, 5rem);
}
.science-copy h2 {
  font-size: clamp(3rem, 7vw, 7.3rem);
  margin-bottom: 0.85rem;
}
.science-lead {
  max-width: 33ch;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}
.science-facts {
  max-width: 44ch;
  margin: 1.6rem 0 0;
  border-top: 1px solid #f5f0e755;
}
.science-facts > div {
  padding-block: 0.85rem;
  border-bottom: 1px solid #f5f0e755;
}
.science-facts dt {
  margin-bottom: 0.3rem;
  font-weight: 650;
}
.science-facts dd {
  margin: 0;
  color: #e2dbca;
  font-size: 0.9rem;
}
.science-facts a {
  text-underline-offset: 0.2em;
}
.shop-science-link {
  display: inline-block;
  margin-top: 0.45rem;
}
.store-story {
  display: grid;
  grid-template-columns: 1.04fr 1fr 1fr;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.5rem);
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter);
  background: #d7decf;
}
.store-story h2 {
  font-size: clamp(2.4rem, 4.3vw, 5rem);
  margin-bottom: 0.8rem;
}
.store-story img {
  width: 100%;
  height: auto;
  display: block;
}
.text-link {
  font-size: 0.88rem;
}
.store-footer {
  padding-inline: var(--gutter);
  border-top: 1px solid #d9cfc0;
}
.store-dock {
  display: none;
}
#cart {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 470px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: clamp(1rem, 4vw, 1.8rem);
  overscroll-behavior: contain;
}
#cart[open] {
  animation: drawer-in 220ms ease-out both;
}
@keyframes drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0.65;
  }
}
#cart h2 {
  font-size: 3.15rem;
}
#cart .cart-line > div {
  white-space: nowrap;
}
#cart .cart-line button {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}
#cart dl {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}
#cart dl div {
  display: flex;
  justify-content: space-between;
}
#cart dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
#cart dl div:last-child {
  border-top: 1px solid #cabfae;
  margin-top: 0.3rem;
  padding-top: 0.45rem;
  font-weight: 650;
}
#cart .notice {
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
  color: #62594d;
}
#cart input {
  font-size: 16px;
}
#cart #pay {
  width: 100%;
  border-radius: 0;
}
@media (max-width: 680px) {
  .store-nav {
    min-height: 65px;
  }
  .store-links a[href="/#science"] {
    display: none;
  }
  .campaign {
    align-items: end;
    min-height: clamp(500px, 72svh, 690px);
  }
  .campaign figure {
    inset: 0;
  }
  .campaign img {
    object-position: center 36%;
  }
  .campaign::after {
    background: linear-gradient(
      0deg,
      #211f17 0%,
      #211f17d9 26%,
      #211f1750 48%,
      transparent 65%
    );
  }
  .campaign-copy {
    padding: 3.5rem var(--gutter) 1.8rem;
  }
  .campaign h1 {
    font-size: clamp(3.55rem, 14vw, 5.4rem);
  }
  .campaign-copy p {
    font-size: 0.92rem;
    margin: 0.55rem 0 1rem;
  }
  .product-photo,
  .direct .product-photo {
    aspect-ratio: 4/5;
  }
  .product-title {
    display: block;
    margin-block: 0.45rem;
  }
  .product-title h3 {
    margin-bottom: 0.12rem;
  }
  .product-title p {
    font-size: 0.88rem;
  }
  .store-button {
    padding-inline: 0.68rem;
  }
  .store-science {
    grid-template-columns: 1fr;
  }
  .store-science > img {
    max-height: 365px;
  }
  .science-copy {
    padding: 2.4rem var(--gutter);
  }
  .store-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-story > div {
    grid-column: 1/-1;
    padding-bottom: 0.5rem;
  }
  .store-dock {
    display: block;
    position: fixed;
    z-index: 1;
    bottom: 0;
    inset-inline: 0;
    padding: 0.45rem var(--gutter) max(0.5rem, env(safe-area-inset-bottom));
    background: #f5f0e7f5;
    border-top: 1px solid #ded4c3;
  }
  body:has(.store-dock) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  body:has(#cart[open]) {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-button,
  .store-button span,
  .product-photo img,
  .bag-button span {
    transition: none;
  }
}
