/* ══════════════════════════════════
   Coffee detail pages (Peru, Polar)
   Loaded after site.css.
══════════════════════════════════ */
:root { --title-gap: 3rem; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero { min-height: 100vh; }

.hero-left {
  position: relative;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 3rem 4rem 5rem;
  z-index: 2;
  border-right: 2px solid var(--ink);
}

.hero-country {
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .5rem;
}

.hero-subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: .95rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: .18em;
  margin-bottom: 2.5rem;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  border-top: 1px solid var(--rule-lt);
  padding-top: 2rem;
}
.meta-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mid); font-weight: 700;
  margin-bottom: .2rem;
}
.meta-value {
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.45;
}

/* hero right — photo panel */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}
.hero-right::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 6px,
    rgba(15,13,11,.025) 6px, rgba(15,13,11,.025) 7px
  );
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════
   TASTING
══════════════════════════════════ */
.tasting-section {
  background: var(--paper);
  padding: 5rem 4.5rem;
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.tasting-section::before {
  content: "珈琲";
  position: absolute; right: 2rem; top: 50%;
  transform: translateY(-50%);
  font-family: "Noto Serif JP", serif;
  font-size: 20rem; font-weight: 700;
  color: rgba(15,13,11,.04);
  pointer-events: none; line-height: 1;
}
.tasting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--ink);
}
.tasting-card {
  padding: 2rem 1.5rem;
  border-right: 1.5px solid var(--ink);
  transition: background .2s;
}
.tasting-card:last-child { border-right: none; }
.tasting-card:hover { background: var(--paper-warm); }
.tasting-icon { width: 1.85rem; height: 1.85rem; margin-bottom: 1rem; display: block; color: var(--ink); }
.tasting-attr {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: .5rem; font-weight: 700;
}
.tasting-desc {
  font-family: "Playfair Display", serif;
  font-style: italic; font-size: .95rem;
  color: var(--ink); line-height: 1.5;
}

/* ══════════════════════════════════
   PROCESS
══════════════════════════════════ */
.process-section {
  display: grid;
  border-bottom: 2px solid var(--ink);
}
.process-block {
  position: relative; overflow: hidden;
  background: var(--panel-bg);
}
.process-block.light { background: var(--paper-warm); }
.process-num {
  font-family: "Playfair Display", serif;
  font-size: 9rem; font-weight: 900;
  color: rgba(15,13,11,.05);
  position: absolute; top: -1.5rem; right: 1.5rem;
  line-height: 1; pointer-events: none;
}
.process-block p {
  font-size: .78rem; line-height: 2.1;
  color: rgba(15,13,11,.82); max-width: 40ch;
}
.process-block .section-title { font-size: 1.9rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════
   BREAKDOWN — inverted panel
══════════════════════════════════ */
.breakdown-section {
  background: var(--ink);
  padding: 5rem 4.5rem;
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.breakdown-section::before {
  content: "円";
  position: absolute; right: 2rem; bottom: -4rem;
  font-family: "Noto Serif JP", serif;
  font-size: 22rem; font-weight: 700;
  color: rgba(247,243,236,.04); pointer-events: none;
}
.breakdown-section .section-eyebrow { color: rgba(247,243,236,.8); }
.breakdown-section .section-eyebrow::after { background: rgba(247,243,236,.12); }
.breakdown-section .section-title { color: var(--paper); }
.bars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.bar-pct {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem; font-weight: 900;
  color: var(--paper); line-height: 1; margin-bottom: .75rem;
}
.bar-pct span { font-size: 1.5rem; }
.bar-fill-track {
  height: 2px; background: rgba(247,243,236,.15);
  margin-bottom: .75rem; position: relative;
}
.bar-fill { position: absolute; top: 0; left: 0; bottom: 0; background: var(--paper); }
.bar-label { font-size: .78rem; line-height: 1.7; color: rgba(247,243,236,.88); }

/* ══════════════════════════════════
   FARM / ORIGIN STORY
══════════════════════════════════ */
.farm-section {
  background: var(--paper);
  padding: 6rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  border-bottom: 2px solid var(--ink);
}
.farm-section .section-title { margin-bottom: 2rem; }
.farm-section p { font-size: .88rem; line-height: 2.2; color: rgba(15,13,11,.82); }
.farm-section p + p { margin-top: 1.5rem; }
.farm-badge {
  display: inline-flex; gap: .5rem; align-items: center;
  border: 1.5px solid var(--ink);
  padding: .45rem 1rem;
  font-size: .62rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--ink); margin-top: 2rem;
}
.manga-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 2px solid var(--ink);
  background: var(--ink);
}
.manga-grid img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15) brightness(.9);
  display: block;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-left { padding: 3rem 1.25rem; border-right: none; border-bottom: 2px solid var(--ink); }

  .tasting-section, .breakdown-section { padding: 3.5rem 1.25rem; }
  .tasting-section::before { font-size: 9rem; }
  .tasting-grid { grid-template-columns: 1fr 1fr; }
  .tasting-card { border-bottom: 1.5px solid var(--ink); }
  .tasting-card:nth-child(2) { border-right: none; }
  .tasting-card:nth-child(3) { border-bottom: none; }
  .tasting-card:nth-child(4) { border-bottom: none; }

  /* .process-section columns are per page */

  .bars-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .farm-section { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 1.25rem; }
  /* .process-block padding and .manga-grid img heights are per page */
}
