/* White-page refinement. Existing header branding, colors and links are retained. */
body { background: #fff; }
main { --ink: #4b2e24; --muted: #725d52; --accent: #b7674c; --accent-deep: #9e503a; --line: #dedbd9; color: var(--ink); background: #fff; }
main section, .brand-page main, .brand-page main section { background-color: #fff; }
main h1, main h2, main h3 { color: var(--ink); }
main p, .brand-page main p { color: var(--muted); }
main section[id], .product-card { scroll-margin-top: 150px; }
.hero-section { min-height: 400px; background: #fff; padding-block: 76px; }
.hero-content { max-width: 900px; }
.hero-content h1 { max-width: 850px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.3; }
.primary-button { background: #b7674c; box-shadow: none; border-radius: 7px; }
.ghost-button { background: #fff; border-radius: 7px; }
.flavors { background: #fff; padding: 32px 5% 40px; }
.flavors::before, .flavors::after { content: none; }
.flavor-grid { gap: 24px; }
.flavor-card { border: 0; border-top: 1px solid #dedbd9; border-radius: 0; box-shadow: none; background: #fff; }
.flavor-card-copy { padding: 24px 0 0; min-height: 0; background: #fff; }
.flavor-card h3, .flavor-card strong { color: #4b2e24; }
.flavor-card h3::before { content: none; }
.flavor-card p { min-height: 82px; }
.flavor-card .flavor-buy-button { color: #a25740; min-height: 44px; margin-top: 0; }
.products-section { padding: 40px 5% 80px; background: #fff; }
.section-heading h2 { color: #4b2e24; }
.section-heading::before { color: #a25740; }
.product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; max-width: 1320px; }
.product-card { display: flex; flex-direction: column; min-width: 0; max-width: none; margin: 0; padding: 0; border: 1px solid #d5d3d4; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: none; }
.product-photo { flex: none; aspect-ratio: 1672 / 941; margin: 0; border-radius: 0; background: #fff; box-shadow: none; }
.product-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; border-radius: 0; opacity: 1; filter: none; mix-blend-mode: normal; transform: none; transition: none; }
.product-card:hover .product-photo img { transform: none; }
.product-copy { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.product-card h3, .product-card p, .product-card .price-row { margin-left: 0; margin-right: 0; }
.product-card h3 { margin-bottom: 12px; font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif; font-size: clamp(1.6rem,2.7vw,2.25rem); line-height: 1.2; letter-spacing: .02em; }
.product-card h3::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 14px; background: #b7674c; }
.product-card p { min-height: 3.1em; margin-bottom: 18px; font-size: 1rem; line-height: 1.55; }
.price-row { margin-top: auto; gap: 12px; font-size: 1rem; flex-wrap: wrap; }
.price-row .buy-button { min-height: 44px; border: 1px solid #765546; border-radius: 7px; padding: 0 22px; background: #fff; color: #4b2e24; font-size: .95rem; }
.price-row .buy-button:hover, .price-row .buy-button:focus-visible { background: #4b2e24; color: #fff; }
.story-band { display: block; min-height: 0; padding: 60px 8%; background: #fff; }
.story-band::before, .story-band::after { content: none; }
.story-copy { display: block; width: auto; max-width: 760px; min-height: 0; padding: 0; background: #fff; }
.craft-section { grid-template-columns: 1fr 1fr; align-items: center; padding: 24px 5% 80px; background: #fff; }
.craft-photo { min-height: 0; display: block; background: #fff; }
.roast-curve svg { width: 100%; height: auto; }
.curve-guide { stroke: #e4d9d1; stroke-dasharray: 4 5; }
.curve-secondary { stroke: #d9b6a2; stroke-width: 2; }
.curve-primary { stroke: #b7674c; stroke-width: 2; }
.curve-points { fill: #b7674c; }
.craft-copy { padding: 36px; }
.promise-strip { background: #fff; }
.brand-page main section { background: #fff; }
.brand-page .flavor-direction, .brand-page .flavor-direction h2, .brand-page .flavor-directions small { color: #4b2e24; }
.brand-page .flavor-direction .chapter-label, .brand-page .flavor-intro, .brand-page .flavor-directions span { color: #725d52 !important; }
@media (max-width: 980px) {
  .flavor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .craft-section { grid-template-columns: 1fr; }
  .roast-curve { max-width: 640px; width: 100%; margin: auto; }
  /* Keep all existing navigation available on smaller screens. */
  .site-header { height: auto; grid-template-columns: 1fr auto; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-tools { grid-column: 2; grid-row: 1; }
  .site-header nav { display: flex; grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 12px; }
  .site-header nav a { padding: 8px 0; font-size: 13px; }
  .site-header nav a::after { bottom: 0; }
}
@media (max-width: 620px) {
  .hero-section { min-height: 0; padding: 48px 22px; background: #fff; }
  .hero-content h1 { font-size: clamp(2rem,8vw,2.9rem); }
  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .products-section { padding: 24px 18px 48px; background: #fff; }
  .product-copy { padding: 22px; }
  .flavors { padding: 24px 22px; }
  .flavor-card { min-height: 0; }
  .flavor-card p { min-height: 0; font-size: .88rem; }
  .flavor-card p span { display: block; }
  .story-band { padding: 40px 22px; min-height: 0; }
  .craft-section { padding: 0 22px 40px; }
  .craft-copy { padding: 20px 0; }
  .craft-icons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Restore the existing brand imagery and deliberate hero line breaks. */
.hero-section {
  min-height: 420px;
  padding: 54px clamp(24px, 7vw, 104px);
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 30%, rgba(255,255,255,.75) 52%, rgba(255,255,255,0) 76%), url("assets/story.png") center / cover no-repeat;
}
.hero-content { max-width: 780px; }
.hero-content h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: #4b2e24;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.45;
  letter-spacing: .035em;
  font-weight: 600;
}
.hero-greeting, .hero-question { display: block; }
.keep-word { white-space: nowrap; }
.hero-content .lead { max-width: 620px; font-size: clamp(1rem,1.5vw,1.2rem); }
.story-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 400px;
  padding: 0;
  background: #fff;
}
.story-copy {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  min-height: 400px;
  display: flex;
  padding: 48px clamp(24px,5vw,72px);
  background: #fff;
}
.story-band::after {
  content: "";
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-height: 400px;
  background: url("assets/hero.png") 68% center / cover no-repeat;
}
@media (min-width: 981px) {
  .hero-question { white-space: nowrap; }
}
@media (max-width: 980px) {
  .hero-section { min-height: 380px; padding-block: 40px; }
  .hero-content { max-width: 80%; }
  .hero-content h1 { font-size: clamp(1.8rem,4.4vw,2.65rem); }
  .story-copy { padding: 36px 24px; }
}
@media (max-width: 620px) {
  .hero-section {
    min-height: 480px;
    align-items: start;
    padding: 32px 22px 200px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.97) 36%, rgba(255,255,255,.4) 65%, rgba(255,255,255,0) 85%), url("assets/story.png") 78% bottom / auto 280px no-repeat;
  }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: clamp(1.5rem,6.4vw,2rem); line-height: 1.5; }
  .hero-content .lead { font-size: 1rem; line-height: 1.7; }
  .story-band { grid-template-columns: 1fr; }
  .story-copy { grid-column: 1; grid-row: 1; min-height: 0; padding: 40px 22px; }
  .story-band::after { grid-column: 1; grid-row: 2; min-height: 260px; background-position: 65% center; }
}

/* One flavor heading, followed directly by the product cards. */
.flavors { padding-bottom: 18px; }
.flavors .section-heading { margin-bottom: 0; }
.products-section { padding-top: 0; }
.products-section > .section-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-card .product-guidance { min-height: 0; font-size: .9rem; color: #725d52; }

/* Feather only the story photograph's edge into the white text panel. */
.story-band::after {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.82) 5%, rgba(255,255,255,.28) 15%, rgba(255,255,255,0) 27%), url("assets/hero.png") 68% center / cover no-repeat;
}

/* A consistent, accessible outline icon family, with existing link targets. */
.site-header .header-tools { gap: 6px; }
.site-header .header-tools > a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; flex: 0 0 40px; }
.site-header .header-tools svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header .cart span { top: 0; right: 0; width: 17px; height: 17px; font-size: 10px; line-height: 1; }
@media (max-width: 620px) {
  .story-band::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 5%, rgba(255,255,255,.25) 18%, rgba(255,255,255,0) 32%), url("assets/hero.png") 65% center / cover no-repeat;
  }
}

/* Reserve enough space for the complete roasting label on one line. */
.craft-icons { grid-template-columns: minmax(max-content, 1.3fr) repeat(2, minmax(0, 1fr)); }
.craft-icons article:first-child { padding-inline: 8px; }
.craft-icons article:first-child p { white-space: nowrap; font-size: clamp(.75rem, 1.1vw, .92rem); }
.promise-strip .promise-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; }
.promise-icon svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 620px) {
  .craft-icons { grid-template-columns: 1fr; }
  .craft-icons article:first-child p { font-size: .92rem; }
}

/* Equal icon boxes and single-line captions, sized to the available panel. */
.craft-copy { container: craft / inline-size; }
.craft-icons { grid-template-columns: 1fr; gap: 0; }
.craft-icons article, .craft-icons article:first-child {
  display: grid; grid-template-rows: 32px 22px; justify-items: center;
  align-items: center; align-content: center; row-gap: 10px;
  min-height: 108px; padding: 16px 8px; border-left: 0;
  border-top: 1px solid var(--line);
}
.craft-icons article:first-child { border-top: 0; }
.craft-icons .craft-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.craft-icons .craft-icon svg { display: block; width: 32px; height: 32px; fill: none; stroke: #a85f46; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.craft-icons article p, .craft-icons article:first-child p { margin: 0; white-space: nowrap; font-size: .9rem; line-height: 22px; letter-spacing: 0; }
@container craft (min-width: 420px) {
  .craft-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .craft-icons article { border-top: 0; border-left: 1px solid var(--line); }
  .craft-icons article:first-child { border-left: 0; }
  .craft-icons article p, .craft-icons article:first-child p { font-size: .75rem; }
}
@container craft (min-width: 560px) {
  .craft-icons article p, .craft-icons article:first-child p { font-size: .875rem; }
}
