/* quaerens.app: same look as the app (app/app.css) */
@font-face { font-family: "Quaerens Latin"; src: url("/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F5F1E8; --paper-2: #FBF9F4; --card: #FFFEFB; --ink: #161B2E; --ink-2: #393F52;
  --muted: #6D707D; --line: #E3DED2; --line-2: #EEEAE1;
  --accent: #1F3A73; --accent-2: #2A4C8F; --accent-dark: #142852; --accent-soft: #E9EDF6;
  --gold: #B08A3E; --gold-2: #CDAA60; --gold-dark: #8A6A28; --gold-soft: #F6EFDF;
  --ivory: #F8F1DE; --ok: #2F6B57; --ok-soft: #E4EFE9;
  --sh-1: 0 1px 1px rgba(22, 27, 46, .03), 0 2px 8px -3px rgba(22, 27, 46, .08);
  --sh-2: 0 1px 2px rgba(22, 27, 46, .04), 0 14px 34px -16px rgba(20, 40, 82, .28);
  --latin: "Quaerens Latin", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Source Han Serif", "Songti TC", "PMingLiU", "MingLiU", serif;
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.hans {
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 520px at 50% -260px, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%) no-repeat, var(--paper); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; }
h2 { font-size: 24px; letter-spacing: .06em; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
h3 { font-size: 18px; }
section { padding: 34px 0 6px; }
p { margin: 0 0 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.wm-lat { font-family: var(--latin); font-weight: 600; font-size: 12px; letter-spacing: .34em; color: var(--gold-dark); margin-bottom: 3px; }
.wm-zh { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .16em; }
.script { font-size: 15px; color: var(--muted); }
.script a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.script a[aria-current] { color: var(--accent); font-weight: 700; }

/* seal tiles (as in the app) */
.seal { width: 38px; height: 38px; border-radius: 9px; color: var(--ivory); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  background: linear-gradient(150deg, var(--accent-2) 0%, var(--accent-dark) 100%);
  box-shadow: inset 0 0 0 2px var(--accent-dark), inset 0 0 0 3px rgba(205, 170, 96, .9), 0 3px 8px -3px rgba(20, 40, 82, .45); }
.seal svg { width: 82%; height: 82%; display: block; }
.seal.lg { width: 52px; height: 52px; font-size: 27px; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--accent-dark), inset 0 0 0 4px rgba(205, 170, 96, .9), 0 8px 18px -10px rgba(20, 40, 82, .6); }
.seal.muted { background: var(--paper-2); color: var(--gold-dark); box-shadow: inset 0 0 0 1px rgba(176, 138, 62, .45); }

/* hero */
.hero { text-align: center; padding-top: 30px; padding-bottom: 10px; }
.hero-logo { width: 132px; height: 132px; margin: 0 auto 18px; color: var(--accent); }
.hero-logo svg { width: 100%; height: 100%; display: block; }
.eyebrow { font-family: var(--latin); font-weight: 600; font-size: 15px; letter-spacing: .5em; margin: 0 -.5em 0 0; color: var(--gold-dark); }
.hero h1 { font-size: 44px; letter-spacing: .4em; margin: 0 -.4em 10px 0; }
.lead { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.cta.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .06em;
  color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -10px rgba(20, 40, 82, .7); }
.btn.ghost { color: var(--accent); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.disabled { color: var(--muted); font-weight: 500; cursor: default; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts li { background: var(--card); border-radius: 14px; padding: 14px 8px; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 17px; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* how a lesson works */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 120px 1fr; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.steps li::before { content: counter(s); font-family: var(--latin); font-weight: 600; font-size: 20px; color: var(--gold); }
.steps strong { font-family: var(--serif); }

/* courses */
.course-list { display: grid; gap: 14px; margin-top: 16px; }
.course, .card { background: var(--card); border-radius: 18px; padding: 20px 20px 14px; box-shadow: var(--sh-2); }
.course.planned { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.c-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.c-head p { margin: 2px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 1px 9px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-dark); margin-right: 6px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
details summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; padding: 6px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " ＋"; color: var(--gold); }
details[open] summary::after { content: " －"; }
.modules { list-style: none; padding: 0; margin: 4px 0 6px; font-size: 15px; }
.modules li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.modules li.part { display: block; font-family: var(--serif); font-weight: 700; color: var(--gold-dark); border-top: 0; padding: 12px 0 2px; }
.m-num { color: var(--gold-dark); font-family: var(--serif); }
.m-n { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* schedule */
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.when { font-weight: 700; color: var(--accent); }

/* get / follow */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 8px; }
.install ol { margin: 6px 0 0; padding-left: 20px; font-size: 15px; }
.follow { display: grid; grid-template-columns: 1fr 170px; gap: 22px; align-items: center; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr { width: 160px; height: 160px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.qr path { fill: var(--ink); }

/* pages */
.page { padding-top: 26px; padding-bottom: 20px; }
.page h1 { font-size: 30px; letter-spacing: .08em; margin-bottom: 18px; }
.prose h2 { font-size: 20px; margin-top: 26px; }
.prose ul { padding-left: 22px; }
.qa { background: var(--card); border-radius: 14px; padding: 6px 18px; margin-bottom: 10px; box-shadow: var(--sh-1); }
.qa summary { color: var(--ink); font-family: var(--serif); font-size: 17px; padding: 10px 0; }
.qa p { margin: 0 0 12px; }

/* footer */
.foot { text-align: center; padding-top: 46px; padding-bottom: 40px; }
.foot-logo { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--gold); }
.foot-logo svg { width: 100%; height: 100%; }
.foot-links a { color: var(--ink-2); }

@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps li { grid-template-columns: 30px 1fr; }
  .steps li span { grid-column: 2; }
  .install, .follow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 18px; }
}
