:root {
  --paper: #f5f1df;
  --ink: #263f31;
  --muted: #505c4e;
  --line: #cbd1b9;
  --accent: #bf5d30;
}
.coffee-nav {
  min-height: 90px;
  gap: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4%;
  border-bottom: 1px solid var(--line);
}
.coffee-logo {
  font-family: Instrument, serif;
  font-size: 34px;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.coffee-logo > span {
  color: var(--accent);
  font-size: 36px;
}
.bag-trigger {
  font-size: 12px;
  border: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.bag-trigger > span {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.coffee-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: max(640px, 77svh);
}
.coffee-copy {
  padding: 60px 7% 110px 9%;
  position: relative;
}
.coffee-copy .eyebrow {
  font-size: 9px;
  color: #8a632f;
  letter-spacing: 0.16em;
}
.coffee-copy h1 {
  font-family: Instrument, serif;
  font-size: clamp(60px, 7.6vw, 122px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 32px 0 24px;
}
.coffee-copy .intro {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
}
.green {
  background: var(--ink);
  color: var(--paper);
  margin-top: 28px;
}
.coffee-stamp {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 44px;
  transform: rotate(-9deg);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  max-width: 180px;
}
.sunburst {
  font-size: 68px;
  color: var(--accent);
}
.coffee-image {
  position: relative;
  margin: 20px 25px 20px 0;
  overflow: hidden;
  border-radius: 180px 180px 4px 4px;
}
.coffee-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  animation: coffee-drift 12s ease-in-out infinite alternate;
}
.coffee-image figcaption {
  position: absolute;
  bottom: 21px;
  left: 20px;
  right: 20px;
  text-align: center;
  letter-spacing: 0.11em;
  font-size: 8px;
  color: #3a4227;
}
.coffee-strip {
  background: #d8e1b7;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: 0.12em;
  align-items: center;
}
.coffee-strip > span:nth-child(even) {
  font-size: 24px;
  color: var(--accent);
}
.product-section {
  padding: 95px 6%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 9%;
  align-items: center;
}
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e4bd67;
  border-radius: 3px;
}
.product-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.product-label {
  position: absolute;
  left: 31%;
  top: 40%;
  width: 34%;
  text-align: center;
  font-size: 27px;
  letter-spacing: 0.14em;
  color: #e5e2c5;
  transform: rotate(-1deg);
}
.product-label em {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 7px;
}
.product-details h2 {
  font-family: Instrument, serif;
  font-size: 64px;
  line-height: 1.05;
  margin: 18px 0;
}
.product-price {
  font-size: 25px;
  margin-bottom: 22px;
}
.product-details > p:not(.eyebrow):not(.product-price) {
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
}
.taste-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.taste-tags span {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
}
.variant-trigger {
  width: 100%;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.8;
}
.variant-trigger strong {
  font-size: 13px;
}
.variant-trigger > span + span {
  font-size: 24px;
}
.add-bag {
  width: 100%;
  margin: 15px 0;
}
.morning .chapter:nth-of-type(3) {
  background: #d8e1b7;
}
.morning .chapter:nth-of-type(6) {
  background: #98472a;
  --ink: #fff0cf;
  --muted: #fff0cf;
  --line: #d89877;
}
.morning .chapter h2 {
  font-size: clamp(40px, 5.5vw, 76px);
}
.variant-dialog {
  width: 520px;
}
.variant-dialog > p {
  font-size: 13px;
  color: var(--muted);
}
.variant-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.variant-options button {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px;
  border-radius: 6px;
  font-size: 13px;
}
.variant-options button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.bag-dialog {
  width: 520px;
}
.bag-items {
  margin-top: 24px;
}
.bag-row {
  padding: 20px 0;
  border-block-start: 1px solid var(--line);
}
.bag-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  font-size: 13px;
}
.quantity-controls button {
  min-width: 32px;
  min-height: 32px;
  border-radius: 3px;
}
.quantity-controls .remove-item {
  margin-left: auto;
  border: 0;
  text-decoration: underline;
}
.bag-total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
}
.clear-bag {
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 18px;
}
.bag-status {
  font-size: 12px;
  margin-top: 15px;
}
.empty-bag {
  padding: 32px 0;
  font-family: Instrument;
  font-size: 28px;
}
@keyframes coffee-drift {
  to {
    transform: scale(1.045) translateY(-3px);
  }
}
@media (max-width: 760px) {
  .coffee-nav {
    min-height: 76px;
    padding: 18px 20px;
  }
  .coffee-logo {
    font-size: 28px;
    gap: 7px;
  }
  .coffee-logo > span {
    font-size: 27px;
  }
  .coffee-nav nav {
    display: none;
  }
  .coffee-hero {
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .coffee-copy {
    padding: 36px 24px;
  }
  .coffee-copy h1 {
    font-size: clamp(56px, 14vw, 82px);
    margin-block: 25px;
  }
  .coffee-copy .intro {
    max-width: 95%;
  }
  .coffee-stamp {
    position: absolute;
    right: 20px;
    bottom: 30px;
    margin: 0;
    gap: 8px;
    transform: rotate(-10deg);
  }
  .coffee-stamp > span:first-child {
    display: none;
  }
  .sunburst {
    font-size: 46px;
  }
  .coffee-image {
    height: 118vw;
    max-height: 650px;
    margin: 0 20px 24px;
    border-radius: 130px 130px 4px 4px;
  }
  .coffee-strip {
    padding: 15px 20px;
    font-size: 8px;
  }
  .coffee-strip > span:nth-child(n + 4) {
    display: none;
  }
  .product-section {
    grid-template-columns: 1fr;
    padding: 50px 24px;
    gap: 34px;
  }
  .product-details h2 {
    font-size: 54px;
  }
  .product-label {
    font-size: 23px;
  }
  .taste-tags {
    gap: 6px;
  }
  .coffee-nav .bag-trigger {
    font-size: 11px;
    gap: 7px;
  }
}
@media (min-width: 761px) {
  .coffee-hero {
    grid-template-rows: minmax(0, 1fr);
  }
  .coffee-image {
    min-height: 0;
  }
  .coffee-stamp {
    position: absolute;
    right: 7%;
    bottom: 22px;
    margin: 0;
    gap: 15px;
  }
  .coffee-stamp .sunburst {
    font-size: 54px;
  }
}
