/* 全站共用：色票、字型、頁首、按鈕、區塊標題、頁尾。依 brand.md，單一配色，不做深色版。 */
:root {
  --tiffany: #81D8D0;
  --tiffany-soft: #E6F7F5;
  --logo-bg: #9AFEFB; /* 從 logo.png 吸色，頁面底色也用這個 */
  --navy: #1B2A4A;
  --navy-70: rgba(27, 42, 74, .72);
  --navy-15: rgba(27, 42, 74, .15);
  --pink: #E84A8F;
  --red: #C1121F;
  --white: #FFFFFF;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-num: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--logo-bg);
  color: var(--navy);
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--logo-bg); }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.3; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.key { font-family: var(--font-num); font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.1; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* Header */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--logo-bg);
  border-bottom: 1px solid var(--navy-15);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 40px; height: 35px; border-radius: 6px; background: var(--logo-bg); }
.brand .num { font-weight: 800; }
nav.links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
nav.links a { text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 720px) { nav.links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  font-family: inherit;
}
.btn.primary { background: var(--pink); border-color: var(--pink); color: var(--white); }
.btn:hover { transform: translateY(-1px); }

/* Sections */
section.block { padding-block: 0; }
section.block > .wrap { padding-block: 72px; }
.panel-band { background: var(--tiffany-soft); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--navy-70); }
.sec-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; margin-top: 6px; }
.sec-intro { margin-top: 12px; max-width: 36em; color: var(--navy-70); }

/* Article cards（首頁「文章專區」和 /articles/ 共用） */
.post-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--white); border-radius: 16px; height: 100%; }
.post-card a { display: grid; gap: 10px; align-content: start; padding: 24px; height: 100%; text-decoration: none; border-radius: 16px; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-card .tag { justify-self: start; background: var(--pink); color: var(--white); font-weight: 700; padding: 2px 12px; border-radius: 999px; font-size: 14px; }
.post-card h3 { font-size: 20px; font-weight: 700; }
.post-card p { color: var(--navy-70); font-size: 16px; }
.post-card .meta { font-family: var(--font-num); font-size: 13px; color: var(--navy-70); }
.more-link { margin-top: 28px; }
@media (max-width: 820px) { .post-list { grid-template-columns: 1fr; } }

footer.site .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--navy-70); border-top: 1px solid var(--navy-15); }
