/* kadrewtw.com — shared styles for the studio page and the NearbyNow pages. */
:root {
  --bg: #ffffff;
  --surface: #f4f8fb;
  --text: #17202a;
  --muted: #5b6876;
  --line: #e2e8ee;
  --accent: #2f9be0;
  --accent-soft: #e3f3fd;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418;
    --surface: #172027;
    --text: #e8edf1;
    --muted: #9aa7b3;
    --line: #26323c;
    --accent: #5ab8f5;
    --accent-soft: #15303f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: inline-grid; place-items: center; color: #fff; font-size: 15px; }
.head-nav { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--accent); }
.lang-switch {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}

/* Content */
main { padding: 36px 0 64px; }
h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.lead { font-size: 17px; color: var(--muted); }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.draft-note { background: #fff4d6; color: #5a4300; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.toc { background: var(--surface); border-radius: 12px; padding: 12px 18px; font-size: 15px; }
.toc ol { margin: 6px 0; }

/* Cards (home pages) */
.hero { padding: 24px 0 8px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(145deg, #7fd0ff, #2f9be0); display: grid; place-items: center; font-size: 36px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
a.card:hover { border-color: var(--accent); }

/* NearbyNow home: phone screenshots */
.app-hero { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; } .phone-hero { max-width: 240px; justify-self: center; } }
.phone { margin: 0; border: 7px solid #111; border-radius: 34px; overflow: hidden; background: #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.phone img { display: block; width: 100%; height: auto; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
.shot { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
@media (min-width: 700px) { .shots { flex-wrap: wrap; justify-content: center; overflow: visible; } .shot { flex-basis: 220px; } }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p, details ul { color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--muted); }

/* Language: every page holds both; lang.js shows one. */
html[data-lang="en"] [lang="zh-Hant"].i18n,
html[data-lang="zh-Hant"] [lang="en"].i18n { display: none !important; }
