/* 感恩有你工作室網站：紙、墨與三個應用程式的品牌色。不載入外部字型，用系統字型。 */
:root {
  --paper: #f6f2ea;
  --card: #fffdf9;
  --ink: #1f1d1a;
  --muted: #5e5850;
  --line: #ddd6c9;
  --accent: #8a3a24;
  --button: #1f1d1a;
  --on-button: #f6f2ea;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti TC", "Noto Serif TC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color-scheme: light dark;
}
.lang-zh-Hans {
  --serif: ui-serif, "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --card: #1d1b18;
    --ink: #ede7db;
    --muted: #ada597;
    --line: #34302a;
    --accent: #e7a28c;
    --button: #ede7db;
    --on-button: #141311;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }

/* 頁首 */
.top { border-bottom: 1px solid var(--line); }
.top-row { padding-top: 8px; padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.mark { display: inline-flex; gap: 3px; }
.mark i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mark i:nth-child(1) { background: #b5452b; }
.mark i:nth-child(2) { background: #3c5a99; }
.mark i:nth-child(3) { background: #2c5e50; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav { margin-left: -12px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 首頁 */
.hero { padding: clamp(48px, 10vw, 112px) 0 clamp(32px, 6vw, 64px); }
.hero h1 { max-width: 16em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.section { padding: 32px 16px 56px; }
@media (min-width: 720px) { .section { padding: 40px 32px 72px; } }
.apps { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.app { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--app); }
.app-cover { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.app-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.app-head { display: flex; gap: 14px; align-items: flex-start; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.app-head h3 { margin: 2px 0 4px; }
.tagline { color: var(--muted); font-size: 0.95rem; margin: 0; }
.points { margin: 0; padding-left: 1.1em; font-size: 0.95rem; }
.points li { margin-bottom: 4px; }
.stores { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--button); color: var(--on-button); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.button:hover { opacity: 0.88; }
.soon { color: var(--muted); font-size: 0.85rem; }
.principles { display: grid; gap: 24px 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle { border-top: 1px solid var(--line); padding-top: 16px; }
.principle p { color: var(--muted); font-size: 0.95rem; }

/* 文章頁 */
.prose { max-width: 760px; padding-top: clamp(40px, 8vw, 80px); padding-bottom: 72px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose p { overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; list-style: none; min-height: 44px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { color: var(--muted); }

/* 頁尾 */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot p { margin: 0 0 6px; }
.foot-name { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
.langs a { color: var(--muted); text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
