/* 別府餐飲 — 獨立站樣式
   中英雙語、響應式、無外部依賴 */

:root {
  --bg: #0E1116;
  --panel: #161B22;
  --panel-2: #1C2230;
  --ink: #E8EAED;
  --ink-2: #9BA3AE;
  --ink-3: #6B7280;
  --line: #232A36;
  --gold: #C8A96A;
  --matcha: #7BA05B;
  --udon: #E0B84C;
  --radius: 14px;
  --maxw: 880px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FBFAF7;
    --panel: #FFFFFF;
    --panel-2: #F4F2ED;
    --ink: #1A1D22;
    --ink-2: #5A6169;
    --ink-3: #8A9099;
    --line: #E4E0D8;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Microsoft JhengHei", "PingFang TC", "Hiragino Sans",
               "Noto Sans TC", sans-serif;
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 導覽 ── */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 20px;
}
header.site .brand {
  font-weight: 800; letter-spacing: .04em; font-size: 15px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
header.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.site nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: color .15s;
}
header.site nav a:hover { color: var(--gold); }
.lang {
  font-size: 12px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; color: var(--ink-2); text-decoration: none;
}

/* ── 文章 ── */
main { padding: 72px 0 96px; }

.kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}

h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.22; font-weight: 800; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.35; font-weight: 750;
  margin: 56px 0 18px; padding-top: 8px;
}
h3 {
  font-size: 19px; font-weight: 700; margin: 34px 0 12px;
  color: var(--ink);
}
p { margin-bottom: 20px; color: var(--ink); }
p.lead {
  font-size: 19px; color: var(--ink-2); line-height: 1.75;
  margin-bottom: 34px;
}
ul, ol { margin: 0 0 22px 22px; }
li { margin-bottom: 10px; }
strong { font-weight: 750; color: var(--ink); }
a { color: var(--gold); }

hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0; }

/* ── 卡片 ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
}
.card.accent { border-left: 4px solid var(--gold); }
.card.matcha { border-left: 4px solid var(--matcha); }

/* ── 重點數字 ── */
.figs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 32px 0;
}
.fig {
  background: var(--panel-2); border-radius: var(--radius);
  padding: 20px 22px;
}
.fig .n {
  font-size: 30px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.fig .l { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }

/* ── 表格 ── */
.tablewrap { overflow-x: auto; margin: 28px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
th {
  font-weight: 700; color: var(--ink-2); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--panel-2);
}
tbody tr:last-child td { border-bottom: 0; }

/* ── 引言 ── */
blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px; margin: 30px 0;
  color: var(--ink-2); font-size: 18px; line-height: 1.7;
}

/* ── 招牌菜 ── */
.dish {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.dish:last-child { border-bottom: 0; }
.dish .nm { font-weight: 700; font-size: 17px; }
.dish .ds { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.dish .pr {
  font-weight: 800; color: var(--gold); font-size: 18px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ── 資訊欄 ── */
.info {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; margin: 36px 0;
}
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15.5px; }
.info dt { color: var(--ink-3); white-space: nowrap; }
.info dd { color: var(--ink); }

/* ── 註腳 ── */
.sources {
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3); line-height: 1.7;
}
.sources ol { margin-left: 20px; }
.sources a { color: var(--ink-2); }

footer.site {
  border-top: 1px solid var(--line); padding: 40px 0 60px;
  color: var(--ink-3); font-size: 13.5px;
}
footer.site .wrap > * { margin-bottom: 8px; }

/* ── 交叉連結 ── */
.cross {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 44px 0;
}
.cross a {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .15s, transform .15s;
}
.cross a:hover { border-color: var(--gold); transform: translateY(-2px); }
.cross .t { font-weight: 750; font-size: 16px; margin-bottom: 6px; }
.cross .d { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  main { padding: 44px 0 72px; }
  .dish { flex-direction: column; gap: 4px; }
  header.site nav { gap: 14px; }
  header.site nav a { font-size: 13px; }
}
