@font-face {
  font-family: "PumanRounded";
  src:
    local("资源圆体 Bold"),
    local("资源圆体-Bold"),
    local("Resource Han Rounded CN Bold"),
    local("ResourceHanRoundedCN-Bold");
  font-weight: 700 900;
  font-style: normal;
}

:root {
  --black: #4f2c1d;
  --ink: #4f2c1d;
  --muted: #81786f;
  --paper: #efeee6;
  --cream: #fbfaf4;
  --white: #fffef9;
  --line: rgba(79, 44, 29, 0.42);
  --soft-line: rgba(79, 44, 29, 0.14);
  --accent: #7a452e;
  --radius: 0;
  font-family:
    "PumanRounded", "资源圆体 Bold", "Resource Han Rounded CN Bold",
    "ResourceHanRoundedCN-Bold", "Yuanti SC", "Noto Sans SC", Inter,
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
}

body.intro-active {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.intro-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f2f2ef;
  opacity: 1;
  transition: opacity 1100ms ease, visibility 1100ms ease;
  visibility: visible;
}

.intro-overlay.done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.intro-stage {
  position: relative;
  width: min(52vw, 160px);
  aspect-ratio: 1 / 1;
  opacity: 0;
  animation: introStageIn 1200ms ease-out forwards;
}

.intro-evolution-frame,
.intro-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: contain;
  will-change: transform, opacity, filter;
}

.intro-evolution-frame {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  animation: introEvolutionFrame 1300ms ease-in-out both;
  animation-delay: calc(var(--frame) * 520ms);
}

.intro-logo {
  width: clamp(112px, 22vw, 180px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  animation: introLogo 6500ms ease forwards;
}

@keyframes introStageIn {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes introEvolutionFrame {
  0%,
  12% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
    filter: blur(7px);
  }
  38%,
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.015);
    filter: blur(4px);
  }
}

@keyframes introLogo {
  0%,
  76% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
    filter: blur(5px);
  }
  84%,
  94% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -53%) scale(1.02);
  }
}

.announcement-bar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(280px, 1fr);
  min-height: 30px;
  align-items: center;
  gap: 16px;
  padding: 4px clamp(18px, 3vw, 46px);
  color: #15130f;
  background: #b8a77d;
  border-bottom: 0;
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
}

.announcement-bar strong {
  justify-self: center;
  white-space: nowrap;
}

.social-links,
.utility-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.utility-links {
  justify-self: end;
}

.site-header {
  position: fixed;
  z-index: 49;
  top: 30px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 104px;
  color: var(--black);
  background: rgba(251, 250, 244, 0.96);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: 230px;
  height: 104px;
  padding: 0 clamp(20px, 3vw, 44px);
  border-right: 0;
}

.brand-lockup img {
  display: block;
  width: 170px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 104px;
  gap: clamp(22px, 3vw, 44px);
}

.primary-nav > a,
.nav-group > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  text-transform: none;
}

.nav-menu:has(.product-mega) {
  width: min(1180px, calc(100vw - 150px));
  padding: 42px clamp(44px, 6vw, 92px);
}

.primary-nav > a:hover,
.nav-group:hover > button,
.nav-group:focus-within > button,
.nav-group.open > button {
  color: var(--ink);
  background: transparent;
}

.nav-group {
  position: relative;
  display: grid;
}

.nav-group > button::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.nav-group:hover > button::after,
.nav-group:focus-within > button::after,
.nav-group.open > button::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  display: block;
  width: min(560px, calc(100vw - 48px));
  color: var(--black);
  background: rgba(251, 250, 244, 0.98);
  border: 0;
  padding: 22px 32px;
  box-shadow: 0 24px 54px rgba(79, 44, 29, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 240ms ease,
    visibility 180ms ease;
  visibility: hidden;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.dropdown-list {
  display: grid;
  gap: 0;
}

.dropdown-list a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
  transition: transform 180ms ease, opacity 180ms ease;
}

.dropdown-list a:hover {
  opacity: 0.62;
  transform: translateX(8px);
}

.dropdown-list.compact a {
  font-size: 18px;
}

.visit-dropdown {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(260px, 1.28fr);
  gap: 30px;
  align-items: start;
}

.roastery-preview {
  display: grid;
  gap: 12px;
}

.roastery-preview-main,
.roastery-preview-grid span {
  display: block;
  background-position: center;
  background-size: cover;
}

.roastery-preview-main {
  aspect-ratio: 1.45 / 1;
  background-image: url("./assets/roastery-sacks-packaging.jpg");
}

.roastery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.roastery-preview-grid span {
  aspect-ratio: 1.15 / 1;
}

.roastery-preview-grid span:nth-child(1) {
  background-image: url("./assets/roastery-shelf.jpg");
}

.roastery-preview-grid span:nth-child(2) {
  background-image: url("./assets/roastery-packline.jpg");
}

.roastery-preview-grid span:nth-child(3) {
  background-image: url("./assets/roastery-hero.jpg");
}

.roastery-preview strong {
  max-width: 430px;
  font-size: 16px;
  line-height: 1.35;
}

.mega-menu {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) repeat(3, minmax(180px, 1fr));
  gap: 22px;
}

.mega-panel,
.mega-link {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--soft-line);
}

.mega-panel {
  color: var(--black);
  background:
    linear-gradient(180deg, rgba(251, 250, 244, 0.04), rgba(251, 250, 244, 0.78)),
    url("./assets/menu-light.png") center / cover;
}

.mega-panel strong,
.mega-link strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.05;
}

.mega-panel span,
.mega-link span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mega-link {
  display: grid;
  align-content: space-between;
  background: var(--white);
}

.mega-link:hover {
  color: var(--cream);
  background: var(--black);
}

.product-mega {
  grid-template-columns: 1fr;
  align-items: start;
}

.mega-heading {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr auto;
  gap: 10px 28px;
  min-height: 100%;
  margin-bottom: 26px;
}

.mega-heading span,
.mega-heading a,
.mega-product-card > span:not(.menu-product-visual) {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mega-heading strong {
  grid-column: 1;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 0.95;
}

.mega-heading a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  width: fit-content;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.mega-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.mega-product-card {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.mega-product-card strong {
  font-size: 17px;
  line-height: 1.18;
}

.menu-product-visual {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--soft-line);
  overflow: hidden;
}

.menu-product-visual::before,
.product-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 38%;
  aspect-ratio: 0.72 / 1;
  background: #efeee6;
  border: 1px solid rgba(79, 44, 29, 0.16);
  transform: translate(-50%, -50%);
}

.menu-product-visual::after,
.product-image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 28%;
  height: 22%;
  background: url("./assets/yanman-logo-transparent.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  height: 104px;
  align-items: stretch;
  border-left: 0;
  gap: 18px;
  padding-right: clamp(18px, 3vw, 44px);
}

.language-toggle,
.cart-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.language-toggle,
.cart-button {
  min-width: 0;
  padding: 0;
  background: transparent;
  border-right: 0;
  font-size: 15px;
  font-weight: 850;
  text-transform: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--cream);
  background: var(--black);
  border-radius: 50%;
  font-size: 12px;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 160px);
  margin: 144px 18px 18px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(79, 44, 29, 0.02), rgba(79, 44, 29, 0.16)),
    url("./assets/hero-fullscreen.png") center / cover;
  border: 1px solid var(--soft-line);
}

.home-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-caption {
  display: grid;
  place-items: center;
  color: rgba(251, 250, 244, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.hero-bottom-links {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
}

.hero-bottom-links a {
  min-height: 42px;
  padding: 12px 16px;
  color: var(--cream);
  background: rgba(79, 44, 29, 0.18);
  border: 1px solid rgba(251, 250, 244, 0.52);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-bottom-links a:hover {
  color: var(--ink);
  background: var(--cream);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h1,
.product-detail h1,
.checkout h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 820;
  line-height: 0.92;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow),
.statement-band p,
.entry-panel p,
.content-block p,
.product-detail p,
.checkout p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.button.primary,
.button:hover {
  color: var(--cream);
  background: var(--black);
}

.button.ghost {
  color: var(--black);
  background: var(--cream);
}

.button.full {
  width: 100%;
}

.promo-grid,
.split-entry,
.product-detail,
.checkout-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.promo-grid {
  display: flex;
  height: clamp(520px, 62vh, 680px);
  min-height: 0;
  overflow: hidden;
  border-bottom: 0;
  contain: paint;
  transform: translateZ(0);
}

.promo-tile,
.entry-panel {
  display: grid;
  min-width: 0;
  min-height: 360px;
  align-content: end;
  gap: 18px;
  padding: clamp(22px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.promo-tile {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-right: 0;
  isolation: isolate;
  transition:
    flex-grow 1400ms cubic-bezier(0.65, 0, 0.35, 1),
    filter 700ms ease-in-out;
  will-change: flex-grow, filter;
}

.promo-grid:hover .promo-tile,
.promo-grid[data-active] .promo-tile {
  flex-grow: 0.74;
}

.promo-grid .promo-tile:hover,
.promo-grid .promo-tile:focus-visible,
.promo-grid[data-active="1"] .promo-tile:nth-child(1),
.promo-grid[data-active="2"] .promo-tile:nth-child(2),
.promo-grid[data-active="3"] .promo-tile:nth-child(3),
.promo-grid[data-active="4"] .promo-tile:nth-child(4) {
  flex-grow: 1.82;
}

.promo-tile span,
.entry-panel span,
.section-kicker a {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-tile strong,
.entry-panel h2,
.statement-band h2,
.section-kicker h2,
.content-block h2,
.checkout h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.promo-tile strong {
  position: absolute;
  left: clamp(22px, 4vw, 54px);
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(112px, 10vw, 152px);
  max-width: 560px;
  font-size: clamp(28px, 3.35vw, 56px);
  line-height: 1.04;
  transition:
    opacity 360ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.promo-tile:first-child strong {
  font-size: clamp(24px, 2.85vw, 46px);
  line-height: 1.08;
}

.promo-tile p {
  position: absolute;
  left: clamp(22px, 4vw, 54px);
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(34px, 4vw, 58px);
  max-width: 460px;
  margin: 0;
  color: currentColor;
  font-size: 18px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 360ms ease 120ms,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 80ms;
  will-change: opacity, transform;
}

.promo-tile span {
  position: absolute;
  left: clamp(22px, 4vw, 54px);
  top: clamp(24px, 4vw, 54px);
  z-index: 1;
}

.promo-tile:hover strong,
.promo-tile:focus-visible strong {
  transform: translateY(-10px);
}

.promo-tile:hover p,
.promo-tile:focus-visible p {
  opacity: 0.78;
  transform: translateY(0);
}

.promo-tile.image,
.entry-panel.image-panel {
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(79, 44, 29, 0.04), rgba(79, 44, 29, 0.62)),
    url("./assets/menu-light.png") center / cover;
}

.promo-tile.image::before,
.promo-tile.image.second::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: inherit;
  transform: scale(1);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-tile.image:hover::before,
.promo-tile.image:focus-visible::before,
.promo-tile.image.second:hover::before,
.promo-tile.image.second:focus-visible::before {
  transform: scale(1.035);
}

.promo-tile.image.second,
.entry-panel.image-panel {
  background-image:
    linear-gradient(180deg, rgba(79, 44, 29, 0.04), rgba(79, 44, 29, 0.62)),
    url("./assets/hero-fullscreen.png");
}

.promo-tile.dark,
.entry-panel.inverse {
  color: var(--cream);
  background: var(--black);
}

.promo-tile.light,
.entry-panel {
  background: var(--paper);
}

.statement-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: clamp(28px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.catalog-section,
.content-band,
.checkout {
  padding: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.catalog-section.paper,
.content-band.alt {
  background: var(--paper);
}

.section-kicker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-kicker a {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.product-grid,
.info-grid,
.article-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card,
.info-card,
.article-card,
.team-card {
  display: grid;
  min-height: 100%;
  background: var(--cream);
  border: 1px solid var(--soft-line);
}

.product-image {
  position: relative;
  display: block;
  min-height: 320px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-image.espresso::before,
.menu-product-visual.espresso::before {
  background: #f2f0e8;
}

.product-image.filter::before,
.menu-product-visual.filter::before {
  background: #f7f6ef;
}

.product-image.limited::before,
.menu-product-visual.limited::before {
  background: #302b2a;
}

.product-image.subscription::before,
.menu-product-visual.subscription::before {
  background: #ebe8de;
}

.product-image.limited::after,
.menu-product-visual.limited::after {
  filter: brightness(0) invert(1);
}

.product-image.gear::before,
.product-image.event::before {
  background: #f4f1e9;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: var(--cream);
  background: var(--black);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body,
.info-card,
.article-card,
.team-card > div:last-child {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.product-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.product-title-row h3,
.info-card h3,
.article-card h3,
.team-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.product-card p,
.info-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.price {
  font-weight: 900;
  white-space: nowrap;
}

.flavor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flavor-list li {
  padding: 6px 8px;
  background: var(--white);
  border: 1px solid var(--soft-line);
  font-size: 12px;
  font-weight: 750;
}

.page-hero {
  display: grid;
  min-height: 58vh;
  align-content: end;
  padding: 180px clamp(24px, 6vw, 88px) 60px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.2), rgba(19, 19, 19, 0.78)),
    url("./assets/hero-coffee.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero-media,
.page-hero-overlay {
  display: none;
}

.page-hero-content {
  max-width: 850px;
}

.roastery-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: end;
  padding: 168px clamp(22px, 6vw, 88px) clamp(38px, 6vw, 78px);
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(79, 44, 29, 0.04), rgba(79, 44, 29, 0.78)),
    url("./assets/roastery-hero.jpg") center / cover;
}

.roastery-hero-copy {
  max-width: 940px;
}

.roastery-hero h1,
.roastery-intro h2,
.roastery-gallery h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 112px);
  line-height: 0.96;
  letter-spacing: 0;
}

.roastery-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(251, 250, 244, 0.84);
  font-size: 18px;
  line-height: 1.65;
}

.roastery-intro {
  background: var(--cream);
}

.roastery-gallery {
  display: grid;
  background: var(--cream);
}

.roastery-gallery article {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(280px, 0.8fr);
  min-height: 640px;
}

.roastery-gallery article:nth-child(even) {
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
}

.roastery-gallery article:nth-child(even) .roastery-photo {
  order: 2;
}

.roastery-gallery article > div:last-child {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(28px, 5vw, 72px);
}

.roastery-gallery span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roastery-gallery p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.roastery-photo {
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

.roastery-photo.sacks {
  background-image: url("./assets/roastery-sacks-packaging.jpg");
}

.roastery-photo.shelf {
  background-image: url("./assets/roastery-shelf.jpg");
}

.roastery-photo.packline {
  background-image: url("./assets/roastery-packline.jpg");
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.media-panel,
.portrait {
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(79, 44, 29, 0.03), rgba(79, 44, 29, 0.22)),
    url("./assets/menu-light.png") center / cover;
  border-right: 1px solid var(--line);
}

.content-block {
  padding: clamp(24px, 5vw, 60px);
}

.band-split,
.logic-grid,
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.band-copy,
.story-copy,
.logic-grid article {
  padding: clamp(24px, 5vw, 60px);
  border-right: 1px solid var(--line);
}

.story-media {
  min-height: 460px;
  background: url("./assets/hero-fullscreen.png") center / cover;
  border-right: 1px solid var(--line);
}

.team-card {
  grid-template-rows: 260px auto;
}

.team-card .portrait {
  min-height: 260px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.article-card a {
  margin-top: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-body h2 {
  margin: 42px 0 12px;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.04;
}

.article-body p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.article-body a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 900;
}

.product-detail {
  padding-top: 108px;
}

.product-detail-media {
  min-height: calc(100vh - 108px);
  background: var(--white);
  border-right: 1px solid var(--line);
}

.product-detail-media .product-image {
  min-height: 100%;
  border-bottom: 0;
}

.product-detail-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(24px, 5vw, 72px);
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-meta div {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: -100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 0;
  background: var(--cream);
  border-left: 1px solid var(--line);
  transition: right 180ms ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 24px;
}

.cart-items {
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item p,
.cart-summary p,
.cart-empty {
  color: var(--muted);
  font-size: 14px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
}

.cart-empty {
  display: none;
  padding: 18px;
}

.cart-empty.visible {
  display: block;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary > div,
.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 900;
}

.scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  background: rgba(19, 19, 19, 0.38);
}

.scrim.open {
  display: block;
}

.checkout {
  min-height: 100vh;
  padding-top: 160px;
}

.checkout-shell {
  border: 1px solid var(--line);
  background: var(--cream);
}

.checkout-shell > div,
.checkout-form,
.order-card {
  padding: clamp(22px, 4vw, 50px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 16px;
  grid-column: 2;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.order-card {
  display: grid;
  gap: 16px;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--accent) !important;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 18px;
  color: var(--cream);
  background: var(--black);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    overflow-x: auto;
  }

  .header-actions {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .promo-grid,
  .split-entry,
  .statement-band,
  .product-grid,
  .info-grid,
  .article-grid,
  .team-grid,
  .two-column,
  .band-split,
  .logic-grid,
  .story-row,
  .product-detail,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .promo-tile {
    flex: none;
    min-height: 420px;
  }

  .media-panel,
  .story-media,
  .product-detail-media {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .promo-tile,
  .entry-panel,
  .checkout-shell > div,
  .checkout-form,
  .order-card {
    border-right: 0;
  }

  .checkout-form {
    grid-column: auto;
  }

  .product-detail-media .product-image {
    min-height: 360px;
  }

  .visit-dropdown,
  .roastery-gallery article,
  .roastery-gallery article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .roastery-gallery article:nth-child(even) .roastery-photo {
    order: 0;
  }

  .roastery-gallery article {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .announcement-bar {
    display: none;
  }

  .site-header {
    top: 0;
    min-height: 62px;
  }

  .brand-lockup,
  .header-actions,
  .primary-nav {
    height: 62px;
  }

  .brand-lockup {
    width: 142px;
    padding: 0 12px;
  }

  .brand-lockup img {
    width: 106px;
  }

  .cart-button span,
  .primary-nav {
    display: none;
  }

  .language-toggle,
  .cart-button {
    min-width: 58px;
    padding: 0 12px;
  }

  .home-hero {
    min-height: calc(100vh - 82px);
    margin: 72px 10px 10px;
  }

  .intro-stage {
    width: min(88vw, 430px);
  }

  .product-detail {
    padding-top: 62px;
  }

  .page-hero {
    padding: 120px 18px 42px;
  }

  .roastery-hero {
    min-height: 88vh;
    padding: 112px 18px 36px;
  }

  .roastery-hero h1,
  .roastery-intro h2,
  .roastery-gallery h2 {
    font-size: 42px;
  }

  .roastery-photo {
    min-height: 320px;
  }

  .home-hero h1,
  .page-hero h1,
  .product-detail h1,
  .checkout h1 {
    font-size: 48px;
  }

  .promo-tile strong,
  .entry-panel h2,
  .statement-band h2,
  .section-kicker h2,
  .content-block h2,
  .checkout h2 {
    font-size: 34px;
  }

  .catalog-section,
  .content-band,
  .checkout,
  .statement-band,
  .entry-panel,
  .product-detail-copy {
    padding: 28px 18px;
  }

  .checkout {
    padding-top: 92px;
  }
}
