/* Siftr — an editorial reading window. Subpages (support / privacy / skill /
   download) share the homepage's paper-and-green-ink look: unified 1360px top
   masthead, 760px reading column, micro-radii matching the iOS app, and
   script-aware CJK/Latin typography. */
@import url("assets/fonts/fonts.css");
:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #1c2a23;
  --green: #14483b;
  --field: #e6ebe2;
  --muted: #465147;
  --rule: #d5ddd0;
  --radius-sm: 10px;
  --radius-md: 14px;
  --gutter: clamp(20px, 3vw, 48px);
  --font-text: "Source Serif 4", Georgia, "Songti SC", "Hiragino Mincho ProN", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--green); color: var(--paper); }
body {
  margin: 0;
  padding: 0 0 96px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main {
  max-width: 760px;
  margin-inline: auto;
}
p, h1, h2, h3, h4, ul, ol { margin: 0; }
h1, h2 { font-family: var(--font-text); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 2.85rem); line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; line-height: 1.4; font-weight: 600; }
h4 { font-size: 1.03125rem; line-height: 1.4; font-weight: 600; }
:lang(zh) h1, :lang(zh) h2,
:lang(ja) h1, :lang(ja) h2,
:lang(ko) h1, :lang(ko) h2 { letter-spacing: -.005em; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { line-height: 1.2; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
p { overflow-wrap: break-word; }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font: 400 2.25rem/1.15 "Young Serif", var(--font-text);
  text-decoration: none;
}

.language-picker {
  display: none;
  position: relative;
}

.js .language-picker { display: block; }

.language-picker select {
  margin: 0;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  font: 400 .9375rem/1.4 var(--font-ui);
  cursor: pointer;
}

.language-panel {
  padding-top: 1px;
}

html:not(.js) .language-panel + .language-panel {
  margin-top: 96px;
  border-top: 3px double var(--rule);
}

.js .language-panel { display: none; }
.js .language-panel.is-active { display: block; }

header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}

.updated { margin-top: 8px; color: var(--muted); font-size: .96875rem; }

h2 { margin: 52px 0 16px; }
h3 { margin: 32px 0 10px; }
h4 { margin: 24px 0 8px; }

.lede {
  max-width: 34em;
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink);
}

p, ul, ol { max-width: 38em; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

.tablewrap { max-width: 100%; overflow-x: auto; margin: 0 0 16px; }

table { border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }

th, td {
  border: 1px solid var(--rule);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--field); font-weight: 600; white-space: nowrap; }

pre {
  max-width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--field);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font: .8125rem/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

pre code { border: 0; padding: 0; font-size: inherit; background: none; }

blockquote {
  margin: 0 0 16px;
  padding: 2px 18px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

blockquote p { margin: 8px 0; }

code {
  padding: .1em .35em;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--field);
  font: .88em/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  overflow-wrap: anywhere;
}

.note {
  max-width: 38em;
  background: var(--field);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 1rem;
  color: var(--ink);
}

.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}

footer a { color: var(--muted); }

/* 下载入口：App Store 按钮（download.html 用）。 */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 26px 0 0;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .16s ease;
}

.cta-badge:hover { transform: translateY(-2px); }

.cta-badge .apple-mark {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.cta a { font-size: .96875rem; }

/* download.html 的地区商店按钮。 */
.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.store-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.store-pills a:hover {
  border-color: var(--green);
  color: var(--green);
}

.store-pills a.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

@media (max-width: 700px) {
  .site-bar {
    padding: 14px 0;
    gap: 12px;
  }

  .wordmark { font-size: 1.9rem; }

  header { padding-top: 40px; }
  h1 { font-size: clamp(1.9rem, 7.8vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --muted: #1c2a23; --field: #dce5d8; --rule: #b9c4b2; }
}
