/* ===== 基礎設定 ===== */
:root {
  --bg: #f3f0e8;
  --paper: #ebe5d9;
  --ink: #26251f;
  --muted: #777166;
  --line: rgba(38, 37, 31, 0.18);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
/* ===== 導覽列 ===== */
.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  letter-spacing: .12em;
  font-weight: 600;
}
nav { display: flex; gap: 32px; }
nav a { font-size: .9rem; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* ===== Hero 主視覺 ===== */
.hero, .split {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  align-items: center;
  gap: 72px;
}
.hero-copy { padding: 80px 0; }
.eyebrow {
  margin: 0 0 22px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 0;
}
h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); letter-spacing: -.03em; margin-bottom: 30px; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin-bottom: 28px; }
h3 { font-size: 1.3rem; }
.lead, .statement p:last-child, .split-copy p, /* ===== About ===== */
.about p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}
.text-link {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: .92rem;
}
.hero-visual, .image-placeholder, .card-image {
  background: #d8d0c2;
  color: rgba(38,37,31,.45);
  display: grid;
  place-items: center;
  letter-spacing: .16em;
  font-size: .7rem;
}
.hero-visual { height: 580px; position: relative; overflow: hidden; }
.glass {
  width: 150px;
  height: 260px;
  border: 1px solid rgba(38,37,31,.35);
  border-radius: 8px 8px 22px 22px;
  position: absolute;
  bottom: 80px;
  background: linear-gradient(to top, rgba(84,54,32,.72) 0 55%, rgba(255,255,255,.12) 55% 100%);
  box-shadow: 20px 30px 45px rgba(38,37,31,.12);
}
.hero-visual p { position: absolute; bottom: 18px; }

.statement, .about {
  padding: 150px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement p:last-child, .about p:last-child { margin: 0 auto; }
.split { padding: 120px 0; min-height: auto; }
.image-placeholder { height: 640px; }


/* ===== Current Selection ===== */
.selection {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 140px 0;
  border-top: 1px solid var(--line);
}
.selection .section-heading {
  align-items: end;
}
.selection-intro {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sample-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 390px;
  background: #efe7dc;
  border: 1px solid #d9cbbb;
  transition: transform .25s ease, background .25s ease;
}

.sample-card--cream {
  background: #f8f3e8;
}
.sample-card--cream:hover {
  background: #f5eddf;
}

.sample-card:hover {
  transform: translateY(-5px);
  background: #e8ddcf;
}
.sample-card summary {
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  list-style: none;
}
.sample-card summary::-webkit-details-marker { display: none; }
.sample-no {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--muted);
}
.sample-name {
  margin-top: 26px;
  font-family: "Noto Serif TC", serif;
  font-size: 1.55rem;
  font-weight: 500;
}
.sample-en {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .05em;
}
.sample-flavor {
  margin-top: 46px;
  color: var(--muted);
  line-height: 2;
}
.sample-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  color: var(--muted);
  font-size: .82rem;
}
.sample-bottom strong {
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: 1.45rem;
  font-weight: 500;
}
.sample-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 3px 9px;
  border: 1px solid #cbb9a5;
  border-radius: 999px;
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .12em;
}
.sample-detail {
  padding: 0 30px 28px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
}
.selection-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

/* ===== Journal ===== */
.journal {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 140px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading h2 { margin-bottom: 0; }
.journal-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 48px;
}
.journal-intro {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.9;
  text-align: right;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.journal-card {
  min-width: 0;
}
.journal-card summary {
  display: block;
  cursor: pointer;
  list-style: none;
}
.journal-card summary::-webkit-details-marker { display: none; }
.journal-card-image {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d8d0c2;
}
.journal-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.journal-card summary:hover .journal-card-image img {
  transform: scale(1.025);
}
.journal-card-copy {
  padding-top: 22px;
}
.journal-card-copy .meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
}
.journal-card-copy h3 {
  min-height: 3.2em;
  margin: 0 0 18px;
  font-size: 1.3rem;
  line-height: 1.6;
}
.journal-toggle,
.journal-coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .1em;
}
.close-label { display: none; }
.journal-card[open] .open-label { display: none; }
.journal-card[open] .close-label { display: inline; }
.journal-card[open] .journal-toggle > span:last-child {
  transform: rotate(45deg);
}
.journal-toggle > span:last-child {
  display: inline-block;
  transition: transform .25s ease;
}
.journal-body {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .96rem;
  line-height: 2.05;
}
.journal-body p {
  max-width: 760px;
  margin: 0 auto 1.5em;
}
.journal-closing {
  margin-top: 2.4em !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "Noto Serif TC", serif;
  font-size: 1.08rem;
  font-weight: 500;
}
.journal-card[open] {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.journal-card[open] > summary {
  grid-column: 1 / 2;
}
.journal-card--preview {
  opacity: .9;
}

/* ===== Footer ===== */
footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
footer div { display: flex; gap: 24px; }

@media (max-width: 800px) {
  .site-header { height: 72px; }
  nav { gap: 14px; }
  nav a:nth-child(3) { display: none; }
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 60px 0 80px; }
  .hero-copy { padding: 0; }
  .hero-visual { height: 440px; }
  .statement, .about { padding: 100px 24px; }
  .split { padding: 90px 0; }
  .image-placeholder { height: 460px; }
  .selection { padding: 100px 0; }
  .selection .section-heading { display: block; }
  .selection-intro { margin-top: 22px; }
  .selection-grid { grid-template-columns: 1fr; gap: 22px; }
  .sample-card, .sample-card summary { min-height: 350px; }
  .journal { padding: 100px 0; }
  .journal-heading {
    display: block;
    padding-bottom: 24px;
    margin-bottom: 36px;
  }
  .journal-intro {
    margin-top: 18px;
    text-align: left;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .journal-card-copy h3 {
    min-height: 0;
  }
  .journal-card[open] {
    grid-column: auto;
    display: block;
  }
  .journal-card[open] > summary {
    grid-column: auto;
  }
  .journal-body {
    margin-top: 26px;
    padding: 28px 0;
  }
  .section-heading { align-items: start; gap: 20px; }
  footer { flex-direction: column; gap: 14px; }
}

#belief, #selection, #journal, #about { scroll-margin-top: 96px; }


.hero.hero--image {
  width: 100%;
  max-width: none;
  min-height: auto;
  display: block;
  margin: 0;
  overflow: hidden;
  background: #d8d0c2;
}
.hero.hero--image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 800px) {
  .hero.hero--image {
    padding: 0;
  }
  .hero.hero--image img {
    width: 165%;
    max-width: none;
    transform: translateX(-20%);
  }
}


/* Why Cold Brew image */
.split-image {
  margin: 0;
  height: 640px;
  overflow: hidden;
  background: #d8d0c2;
}
.split-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .split-image {
    height: 460px;
  }
}

/* ===== Journal final update ===== */
.journal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.journal-card-copy h3 {
  min-height: 4.8em;
  margin-bottom: 12px;
}
.journal-excerpt {
  min-height: 5.8em;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.9;
}
.journal-card[open] {
  grid-column: auto;
  display: block;
}
.journal-card[open] > summary {
  grid-column: auto;
}
.journal-body {
  margin-top: 26px;
  padding: 28px 0;
  font-size: .9rem;
  line-height: 2;
}
.journal-body p {
  max-width: none;
}
.journal-body h4 {
  margin: 3em 0 1em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-family: "Noto Serif TC", serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
}
.journal-question {
  font-family: "Noto Serif TC", serif;
  font-size: 1rem;
  font-weight: 500;
}
@media (max-width: 800px) {
  .journal-card-copy h3,
  .journal-excerpt {
    min-height: 0;
  }
}
