/* =====================================================================
   TAIWAN TEA SYSTEM — style.css
   臺灣茶人文網站平台  |  編輯式・宣紙・墨・硃砂
   純靜態 v1
   ===================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* 紙與墨 */
  --paper:        #f4efe4;   /* 宣紙底 */
  --paper-2:      #ece3d2;   /* 較深紙色 */
  --paper-3:      #e3d8c2;
  --ink:          #2a251f;   /* 近墨黑 */
  --ink-soft:     #5d544a;   /* 軟墨 */
  --ink-faint:    #8a7f70;

  /* 茶色 */
  --oolong:       #9a6b38;   /* 烏龍琥珀 */
  --tea-green:    #3f5234;   /* 高山深綠 */
  --tea-green-2:  #566b45;
  --seal:         #a8392a;   /* 硃砂印泥紅 */
  --seal-deep:    #8a2c20;
  --gold:         #b08d4f;   /* 金箔 */

  --line:         rgba(42,37,31,.16);
  --line-strong:  rgba(42,37,31,.32);

  /* 字體 */
  --serif-tc: "Noto Serif TC", "Songti TC", "宋體", serif;
  --serif-lat: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans-tc: "Noto Sans TC", "PingFang TC", "微軟正黑體", sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-tc);
  color: var(--ink);
  background-color: var(--paper);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 宣紙紋理:細微噪點 + 暈染 */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(176,141,79,.07), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(63,82,52,.08), transparent 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- Layout helpers ------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 10vw, 140px); }
section[id] { scroll-margin-top: 88px; }
.eyebrow {
  font-family: var(--sans-tc);
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--seal); font-weight: 600;
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--seal); display: inline-block; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.95; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--ink-faint); }

/* 直書裝飾 */
.vtext {
  writing-mode: vertical-rl;
  font-family: var(--serif-tc);
  letter-spacing: .42em;
}

/* ---- Header / Nav (injected by main.js) ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin-inline: auto;
  padding: 16px var(--gut);
  display: flex; align-items: center; justify-content: flex-start; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .seal {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--seal); color: var(--paper);
  font-family: var(--serif-tc); font-size: 18px; font-weight: 700;
  border-radius: 5px; transform: rotate(-3deg);
  box-shadow: 0 2px 0 var(--seal-deep);
}
.brand .name { font-family: var(--serif-lat); font-size: 21px; letter-spacing: .02em; }
.brand .name b { font-weight: 600; }
.brand .tag { font-size: 12px; letter-spacing: .3em; color: var(--ink-faint); font-family: var(--sans-tc); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px; letter-spacing: .12em; position: relative; padding-block: 6px;
  color: var(--ink-soft); transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--seal); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .nav-lang a { border: 1px solid var(--line-strong); border-radius: 2px; padding: 5px 12px; font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); }
.nav-links .nav-lang a::after { display: none; }
.nav-links .nav-lang a:hover { border-color: var(--ink); color: var(--ink); }
.nav-utils { display: flex; align-items: center; gap: 10px; }
.nav-util { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 7px 12px; font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap;
  transition: border-color .25s var(--ease), color .25s var(--ease); }
.nav-util:hover { border-color: var(--ink); color: var(--ink); }
.nav-util .ui { flex: none; }
@media (max-width: 880px) { .nav-util .util-txt { display: none; } }
.hero-logo { display: block; width: min(540px, 100%); height: auto; margin: 0 0 clamp(22px, 4vw, 36px); border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.brand-logo { display: block; height: 50px; width: auto; }
.site-footer .brand-logo--foot { height: 60px; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 640px) { .brand-logo { height: 42px; } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { min-width: 188px; justify-content: center; text-align: center; }
.hero-cta .btn.ghost { border-width: 1px; }
@media (max-width: 520px) { .hero-cta { flex-direction: column; } .hero-cta .btn { min-width: 0; width: 100%; } }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 6px;
  width: 44px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---- Headings ------------------------------------------------------- */
h1, h2, h3 { font-weight: 600; line-height: 1.18; letter-spacing: .01em; margin: 0; }
.display {
  font-size: clamp(40px, 7vw, 88px);
  line-height: .98; letter-spacing: -.01em; font-weight: 600;
}
.h-script { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-weight: 400; }

/* ---- Hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 96px); }
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.hero h1 { margin-block: 18px 26px; }
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row > span { display: inline-block; }
.hero .vside {
  font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-soft);
  height: clamp(220px, 32vw, 380px); align-self: end; letter-spacing: .5em;
  border-left: 1px solid var(--line-strong); padding-left: 18px;
}
.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end;
  justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .n { font-family: var(--serif-lat); font-size: 38px; line-height: 1; color: var(--tea-green); }
.stat .l { font-size: 13px; letter-spacing: .18em; color: var(--ink-faint); font-family: var(--sans-tc); margin-top: 6px; }

@media (max-width: 720px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero .vside { display: none; }
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans-tc); font-size: 15px; letter-spacing: .1em;
  padding: 14px 28px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--seal); border-color: var(--seal); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- Section heading block ----------------------------------------- */
.sec-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 56px); }
.sec-head .idx { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-size: 22px; }
.sec-head.split { grid-template-columns: 1.2fr .9fr; align-items: end; gap: 40px; }
@media (max-width: 720px){ .sec-head.split { grid-template-columns: 1fr; } }

/* ---- Manifesto ------------------------------------------------------ */
.manifesto { background: var(--ink); color: var(--paper); position: relative; }
.manifesto .eyebrow { color: var(--gold); }
.manifesto .eyebrow::before { background: var(--gold); }
.manifesto .big {
  font-size: clamp(26px, 4vw, 46px); line-height: 1.5; max-width: 22ch;
  font-weight: 400;
}
.manifesto .big em { font-family: var(--serif-lat); color: var(--gold); font-style: italic; }
.manifesto .sig { font-family: var(--serif-lat); font-style: italic; color: var(--gold); margin-top: 30px; font-size: 19px; }

/* ---- Terroir / region cards ---------------------------------------- */
.terroir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
.terroir {
  background: var(--paper); padding: 30px 26px 34px; position: relative;
  transition: background .4s var(--ease); overflow: hidden;
}
.terroir::before {
  content: ""; position: absolute; inset: 0; background: var(--tea-green);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0;
}
.terroir:hover { color: var(--paper); }
.terroir:hover::before { transform: translateY(0); }
.terroir > * { position: relative; z-index: 1; }
.terroir .no { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-size: 15px; }
.terroir:hover .no { color: var(--gold); }
.terroir h3 { font-size: 27px; margin-block: 8px 6px; }
.terroir .en { font-family: var(--serif-lat); font-style: italic; color: var(--ink-faint); font-size: 15px; }
.terroir:hover .en { color: rgba(244,239,228,.7); }
.terroir p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 14px 0 0; }
.terroir:hover p { color: rgba(244,239,228,.85); }

/* ---- Story feature -------------------------------------------------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.story-fig {
  aspect-ratio: 4/5; position: relative; overflow: hidden; border-radius: 2px;
  background:
    linear-gradient(135deg, var(--tea-green), var(--tea-green-2) 60%, var(--oolong));
}
.story-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-fig .leaf {
  position: absolute; inset: 0; opacity: .9;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(244,239,228,.18), transparent 50%),
    repeating-linear-gradient(115deg, rgba(0,0,0,.05) 0 2px, transparent 2px 13px);
}
.story-fig .stamp {
  position: absolute; right: 20px; bottom: 20px;
  width: 78px; height: 78px; border: 2px solid var(--paper);
  color: var(--paper); display: grid; place-items: center; text-align: center;
  font-size: 13px; letter-spacing: .25em; line-height: 1.5; border-radius: 4px;
  background: rgba(168,57,42,.55);
}
.story blockquote {
  margin: 0; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.5; font-weight: 400;
}
.story blockquote::before { content: "「"; color: var(--seal); font-size: 1.3em; }
.story blockquote::after { content: "」"; color: var(--seal); font-size: 1.3em; }
.story .by { margin-top: 22px; font-family: var(--sans-tc); font-size: 14px; letter-spacing: .12em; color: var(--ink-faint); }
.story .by b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px){ .story { grid-template-columns: 1fr; } }

/* ---- Product grid --------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: clamp(20px,3vw,40px); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; border-radius: 2px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(42,37,31,.5); border-color: var(--line-strong); }
.card .thumb {
  aspect-ratio: 1/1; position: relative; overflow: hidden;
}
.card .thumb i { position: absolute; inset: 0; }
.card .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--sans-tc); font-size: 11px; letter-spacing: .18em;
  background: var(--paper); color: var(--seal); padding: 5px 10px; border-radius: 2px;
}
.card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .origin { font-family: var(--sans-tc); font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.card h3 { font-size: 22px; }
.card .en { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-size: 15px; }
.card .notes { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.card .foot { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); }
.card .price { font-family: var(--serif-lat); font-size: 22px; color: var(--tea-green); }
.card .price small { font-size: 12px; color: var(--ink-faint); font-family: var(--sans-tc); }
.card .add { font-family: var(--sans-tc); font-size: 13px; letter-spacing: .14em; color: var(--seal); }
.card .add:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- GABA feature band --------------------------------------------- */
.gaba { background: var(--tea-green); color: var(--paper); position: relative; overflow: hidden; }
.gaba::after {
  content: "GABA"; position: absolute; right: -2%; bottom: -8%;
  font-family: var(--serif-lat); font-style: italic; font-size: clamp(120px, 22vw, 300px);
  color: rgba(244,239,228,.06); line-height: .8; pointer-events: none; letter-spacing: -.02em;
}
.gaba .eyebrow { color: var(--gold); }
.gaba .eyebrow::before { background: var(--gold); }
.gaba-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px,5vw,72px); align-items: center; position: relative; z-index: 1; }
.gaba h2 { font-size: clamp(34px,5vw,62px); margin-block: 14px 6px; }
.gaba .sub { font-family: var(--serif-lat); font-style: italic; color: var(--gold); font-size: clamp(18px,2vw,24px); }
.gaba p.lead { color: rgba(244,239,228,.86); max-width: 52ch; margin-top: 20px; }
.gaba .fig {
  aspect-ratio: 4/5; border-radius: 2px; position: relative; overflow: hidden;
  background: linear-gradient(150deg,#6f8650,#3f5234 60%,#2b3a24);
}
.gaba .fig .leaf {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 25% 0%, rgba(244,239,228,.16), transparent 52%),
              repeating-linear-gradient(115deg, rgba(0,0,0,.06) 0 2px, transparent 2px 14px);
}
.gaba .fig .stamp {
  position: absolute; right: 18px; bottom: 18px; width: 86px; height: 86px;
  border: 2px solid var(--gold); color: var(--gold); border-radius: 6px;
  display: grid; place-items: center; text-align: center; line-height: 1.3;
  font-family: var(--serif-lat); font-style: italic; font-size: 15px; letter-spacing: .06em;
  background: rgba(43,58,36,.4);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-family: var(--sans-tc); font-size: 13px; letter-spacing: .08em;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  padding: 8px 14px; border-radius: 100px;
}
.gaba .chip { border-color: rgba(244,239,228,.35); color: var(--paper); }
/* 首頁主題故事標籤:桌機排成一排 */
/* 首頁「兩個關於慢的故事」:圖文等寬,圖片完整顯示不裁切(高度由原圖比例決定) */
#themes .story-fig { aspect-ratio: auto; }
#themes .story-fig img { position: static; width: 100%; height: auto; object-fit: contain; }
@media (min-width: 761px) {
  /* 圖片欄一律窄於文字欄,圖高才不會超出文字區塊(第二則圖在右,比例要反過來) */
  #themes .story { grid-template-columns: 0.8fr 1fr; align-items: start; }
  #themes .themes-pair > .story:nth-of-type(2) { grid-template-columns: 1fr 0.8fr; }
}
/* 手機單欄時,第二則也讓圖片在文字上方,兩則排列一致 */
@media (max-width: 760px) { .themes-pair > .story:nth-of-type(2) .story-fig { order: -1; } }
#themes .chips { flex-wrap: nowrap; gap: 8px; }
#themes .chip { white-space: nowrap; padding: 6px 11px; font-size: 12px; letter-spacing: .04em; }
@media (max-width: 1024px) { #themes .chips { flex-wrap: wrap; } }
.gaba .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gaba .btn:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 760px){ .gaba-grid { grid-template-columns: 1fr; } }

/* leaf-gradient palette utilities for thumbs */
.lg-1 { background: linear-gradient(150deg,#5a7042,#3f5234); }
.lg-2 { background: linear-gradient(150deg,#c79b5a,#9a6b38); }
.lg-3 { background: linear-gradient(150deg,#b35a3f,#8a2c20); }
.lg-4 { background: linear-gradient(150deg,#7d8a5b,#566b45); }
.lg-5 { background: linear-gradient(150deg,#caa46b,#a8762f); }
.lg-6 { background: linear-gradient(150deg,#46604a,#26392c); }
.lg-cake { background: linear-gradient(150deg,#f0d49a,#d9a85c 55%,#b07d36); }
.lg-cake2 { background: linear-gradient(150deg,#f3dcae,#e0b96f 60%,#c98a3e); }
.lg-white { background: linear-gradient(150deg,#f3eedf,#ddd2b6 60%,#c3b48d); }
.lg-aged  { background: linear-gradient(150deg,#6e4a30,#4a2f1c 55%,#2e1d11); }
.lg-gaba  { background: linear-gradient(150deg,#7d9152,#4d6336 60%,#33431f); }
.thumb .veil {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 3px, transparent 3px 16px),
              radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.18), transparent 55%);
}

/* ---- Seasons strip -------------------------------------------------- */
.seasons { background: var(--paper-2); border-block: 1px solid var(--line); }
.seasons-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.season { background: var(--paper-2); padding: 26px 22px; text-align: center; }
.season .ch { font-size: 30px; color: var(--tea-green); }
.season .en { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-size: 14px; margin-top: 2px; }
.season p { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.7; }
@media (max-width: 640px){ .seasons-row { grid-template-columns: repeat(2,1fr); } }

/* ---- CTA / newsletter ----------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5.5vw, 68px); }
.cta .field { display: flex; gap: 10px; max-width: 460px; margin: 30px auto 0; flex-wrap: wrap; justify-content: center; }
.cta input {
  flex: 1; min-width: 220px; font: inherit; padding: 14px 18px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink);
}
.cta input:focus { outline: none; border-color: var(--seal); }

/* ---- Page hero (sub-pages) ----------------------------------------- */
.page-hero { border-bottom: 1px solid var(--line); padding-top: clamp(48px,7vw,96px); }
.page-hero h1 { font-size: clamp(40px,7vw,88px); margin-block: 16px 18px; }
/* 英文首頁大標較長,縮小上限避免溢出 */
html[lang="en"] body[data-page="home"] .page-hero h1 { font-size: clamp(32px, 4.6vw, 60px); }
.crumbs { font-family: var(--sans-tc); font-size: 13px; letter-spacing: .12em; color: var(--ink-faint); }
.crumbs a:hover { color: var(--seal); }

/* ---- Article / prose ------------------------------------------------ */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: clamp(26px,3.4vw,38px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 22px; color: var(--tea-green); margin: 1.4em 0 .4em; }
.prose blockquote {
  margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--seal);
  font-size: 1.15em; color: var(--ink-soft); font-style: italic;
}
.dropcap::first-letter {
  font-family: var(--serif-lat); font-size: 3.6em; line-height: .78; float: left;
  padding: 6px 12px 0 0; color: var(--seal);
}

/* ---- Stories list --------------------------------------------------- */
.story-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.story-item {
  background: var(--paper); display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(16px,4vw,48px); align-items: center; padding: 30px var(--gut);
  margin-inline: calc(-1 * var(--gut)); transition: background .4s var(--ease);
}
.story-item:hover { background: var(--paper-2); }
.story-item .no { font-family: var(--serif-lat); font-style: italic; color: var(--oolong); font-size: 22px; }
.story-item h3 { font-size: clamp(22px,3vw,32px); }
.story-item .meta { font-family: var(--sans-tc); font-size: 13px; letter-spacing: .1em; color: var(--ink-faint); }
.story-item .go { font-size: 24px; color: var(--seal); transition: transform .35s var(--ease); }
.story-item:hover .go { transform: translateX(6px); }
@media (max-width:640px){ .story-item { grid-template-columns: auto 1fr; } .story-item .go { display:none; } }

/* ---- Contact -------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.form-grid label { font-family: var(--sans-tc); font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.form-grid input, .form-grid textarea {
  width: 100%; font: inherit; padding: 13px 16px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--seal); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.info-list .k { font-family: var(--sans-tc); font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.info-list .v { font-size: 19px; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper-3); padding-block: clamp(56px,8vw,96px) 36px; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand .name { color: var(--paper); }
.site-footer .blurb { color: rgba(244,239,228,.6); max-width: 32ch; margin-top: 18px; font-size: 15px; }
.foot-col h4 { font-family: var(--sans-tc); font-size: 12px; letter-spacing: .22em; color: var(--gold); margin: 0 0 16px; text-transform: uppercase; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: rgba(244,239,228,.78); font-size: 15px; }
.foot-base { margin-top: clamp(40px,6vw,72px); padding-top: 22px; border-top: 1px solid rgba(244,239,228,.16);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--sans-tc); font-size: 13px; color: rgba(244,239,228,.5); letter-spacing: .08em; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .foot-grid { grid-template-columns: 1fr; } }

/* ---- Scroll reveal -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* page-load hero animation */
.hero h1 .row > span { transform: translateY(105%); transition: transform .9s var(--ease); }
.hero.loaded h1 .row:nth-child(1) > span { transform: none; transition-delay: .05s; }
.hero.loaded h1 .row:nth-child(2) > span { transform: none; transition-delay: .16s; }
.hero.loaded h1 .row:nth-child(3) > span { transform: none; transition-delay: .27s; }
.hero .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s; }
.hero.loaded .fade-up { opacity: 1; transform: none; }

/* ---- Device diagnostic overlay (網址加 ?diag=1 顯示) ---------------- */
.diag {
  position: fixed; left: 12px; bottom: 12px; z-index: 999;
  background: rgba(42,37,31,.92); color: var(--paper);
  font-family: var(--sans-tc); font-size: 12px; line-height: 1.7;
  padding: 12px 14px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px;
  max-width: 76vw; box-shadow: 0 12px 30px -12px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.diag b { color: var(--gold); letter-spacing: .12em; margin-bottom: 4px; }

/* ---- Orientation-aware: 手機橫放(矮視窗)壓縮版面 ------------------ */
@media (orientation: landscape) and (max-height: 560px) {
  .hero.section { padding-top: 16px; padding-bottom: 28px; }
  .display { font-size: clamp(28px, 6.4vh, 48px); }
  .hero h1 { margin-block: 10px 14px; }
  .hero .lead { font-size: 15px; line-height: 1.7; }
  .hero .vside { display: none; }
  .hero-foot { margin-top: 22px; padding-top: 16px; }
  .section { padding-block: clamp(32px, 8vh, 64px); }
  .site-header { position: static; }   /* 矮螢幕不黏頂,留更多閱讀空間 */

  /* 手機橫放:兩個主題故事改成並排 */
  .themes-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
  #themes .sec-head { margin-bottom: 20px; }
  #themes .story { grid-template-columns: 1fr; gap: 14px; margin-top: 0 !important; }
  #themes .story-fig { aspect-ratio: 16/9; }
  .themes-pair > .story:nth-of-type(2) .story-fig { order: -1; } /* 第二則也讓圖在上,兩欄對齊 */
  #themes .story blockquote { font-size: 19px; }
  #themes .story .lead { font-size: 13.5px; line-height: 1.65; margin-top: 10px !important; }
  #themes .chips { gap: 6px; margin-top: 12px; }
  #themes .chip { font-size: 11px; padding: 5px 9px; }
  #themes .story .btn { padding: 11px 18px; font-size: 13px; }
}

/* ---- 平板直放:產品型錄改兩欄 -------------------------------------- */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 直放手機:數據列間距收斂 */
@media (orientation: portrait) and (max-width: 520px) {
  .hero-stats { gap: 22px; }
  .stat .n { font-size: 30px; }
}

/* 觸控裝置:點擊目標加大、移除 hover 位移殘留 */
html[data-input="touch"] .btn { padding-block: 15px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > *, .hero h1 .row > span, .hero .fade-up { opacity: 1; transform: none; }
}

/* ===== 茶品卡可點縮圖 + 茶品詳情頁 ===== */
.card a.thumb { display: block; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--seal); }
.tea-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: start; }
@media (max-width: 820px) { .tea-detail { grid-template-columns: 1fr; } }
.tea-figure { position: relative; }
.tea-figure .ph { aspect-ratio: 4/3; border-radius: 8px; border: 1px solid var(--line-strong); }
.tea-figure img.ph { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; background: var(--paper-2); }
.tea-figure .ph-note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: var(--sans-tc); font-size: 13px; letter-spacing: .12em; color: var(--paper); text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.tea-info .price-lg { display: block; font-family: var(--serif-lat); font-size: 30px; color: var(--tea-green); margin-bottom: 14px; }
.tea-info .price-lg small { font-size: 15px; color: var(--ink-faint); font-family: var(--sans-tc); }
.tea-info > p { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); margin: 0 0 12px; }
.tea-spec { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.tea-spec li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.75; }
.tea-spec li b { display: inline-block; min-width: 56px; color: var(--ink); font-weight: 600; margin-right: 10px; }
.order-form { margin-top: 10px; }
.order-form input[readonly] { background: var(--paper-2); color: var(--ink-soft); cursor: default; }
.disclaimer { margin-top: 18px; font-size: 13px; line-height: 1.7; }

/* 茶品:喝法與特色 */
.tea-ways { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.tea-ways li { position: relative; padding-left: 18px; }
.tea-ways li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tea-ways b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.tea-ways span { display: block; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }

/* ---- Brand image bands (2026-07 圖片放版) --------------------------- */
.img-band{display:block;margin:0;}
.img-band img{display:block;width:100%;height:auto;border-radius:4px;border:1px solid var(--line);}
.img-square{display:block;max-width:720px;margin:36px auto 0;}
.img-square img{display:block;width:100%;height:auto;border-radius:4px;border:1px solid var(--line);}
.card .thumb.photo{background:radial-gradient(120% 90% at 50% 8%, #faf6ec, var(--paper-2));}
.card .thumb.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:10px;}

/* ---- 手作作品集 ------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 28px; }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 3px; border: 1px solid var(--line); }
.work-grid figcaption { margin-top: 11px; font-family: var(--sans-tc); font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); }
.work-grid figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; letter-spacing: .02em; margin-bottom: 3px; }

/* ---- 食品業者登錄字號(頁尾) ------------------------------------------ */
.foot-base .foot-reg { font-family: var(--sans-tc); font-size: 13px; letter-spacing: .04em;
  color: rgba(244,239,228,.62); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .foot-base .foot-reg { font-size: 12px; } }

/* ---- 食品業者登錄字號(圖片下方) -------------------------------------- */
.reg-line { margin: 12px 0 0; font-family: var(--sans-tc); font-size: 13px; letter-spacing: .06em;
  color: var(--ink); font-variant-numeric: tabular-nums; }
figure.img-band .reg-line { margin-top: 10px; }
@media (max-width: 640px) { .reg-line { font-size: 12px; letter-spacing: .03em; } }

/* ---- FAQ(details/summary 摺疊) ------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 72ch; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper, #fff); padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 600; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; line-height: 1.85; color: var(--ink-soft); }
