@font-face {
  font-family: "Study Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Study WenKai";
  src: url("fonts/LXGWWenKaiLite-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Study WenKai";
  src: url("fonts/LXGWWenKaiLite-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}

:root {
  --font-study: "Study Nunito", "Study WenKai", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-secondary: #657568;
  --text-caption: #738171;
  font-family: var(--font-study);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-theme="pink"] {
  --muted: #7e6a80;
  --text-secondary: #7a657d;
  --text-caption: #89738a;
}
button, input, textarea, select { line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #8a8c89; opacity: 1; }
h1, h2, h3 { font-weight: 600; letter-spacing: .025em; }
small { line-height: 1.65; }

.brand { font-size: 26px; gap: 10px; letter-spacing: .04em; }
.brand small { font-size: 10px; letter-spacing: .11em; }
.sidebar-label { font-size: 13px; letter-spacing: .04em; margin-left: 8px; }
.nav { font-size: 18px; padding: 14px 12px; gap: 12px; }
.nav i { font-size: 12px; }
.side-note p { font-size: 18px; line-height: 1.85; letter-spacing: 0; }
.side-note small { font-size: 10px; letter-spacing: .03em; }
.sidebar-bottom { font-size: 12px; }
.breadcrumb { font-size: 15px; }
.breadcrumb strong { font-weight: 600; }
.date-label input { font-size: 15px; width: 142px; }
.members-mini b { font-size: 13px; width: 35px; height: 35px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; }
.hero { min-height: 284px; padding: 38px 40px; gap: 28px; }
.hero h1 { font-size: clamp(38px, 3.2vw, 48px); line-height: 1.4; letter-spacing: .045em; margin: 14px 0 18px; }
.hero p, body[data-theme="pink"] .hero p { font-size: 17px; line-height: 1.85; color: var(--text-secondary); }
.hero .eyebrow, body[data-theme="pink"] .hero .eyebrow { font-size: 12px; color: var(--text-caption); }
.hero .little-label { font-size: 11px; letter-spacing: .09em; }
.hero-heart { font-size: 31px; }
.section-heading { margin: 34px 0 20px; flex-wrap: wrap; }
.section-heading h2 { font-size: 25px; }
.section-heading h2 small { font-size: 12px; color: var(--text-caption); letter-spacing: .07em; }
.section-heading > small { font-size: 14px; color: var(--text-caption); }
.person-grid > *, .note-grid > *, .lower-grid > *, .quiz-layout > * { min-width: 0; }
.person-card { padding: 28px; }
.fandom-label { font-size: 13px; font-weight: 600; letter-spacing: .035em; margin-bottom: 20px; }
.person-head { flex-wrap: wrap; gap: 12px; }
.person-name { font-size: 23px; font-weight: 700; max-width: 190px; }
.person-name span { font-size: 14px; }
.person-tag { font-size: 14px; color: var(--text-secondary); }
.avatar { width: 48px; height: 48px; font-size: 20px; }
.member-progress { font-size: 14px; }
.progress-track { height: 5px; margin: 22px 0; }
.goal-input { font-size: 18px; color: var(--ink); padding: 9px 0 14px; }
.task-row { min-height: 56px; gap: 12px; }
.task-row .task-text { font-size: 18px; color: #47584c; padding: 10px 0; }
.task-row.done .task-text { color: #7b8978; }
.task-row input[type="checkbox"] { width: 23px; height: 23px; border-radius: 8px; }
.task-row input[type="checkbox"]:checked:after { font-size: 16px; }
.task-row .remove-task { font-size: 24px; }
.add-task { font-size: 16px; padding: 11px 0; }
.no-task { font-size: 17px; color: var(--text-secondary); }
.no-task small { font-size: 14px; }
.card-foot { flex-wrap: wrap; gap: 10px 16px; font-size: 14px; color: var(--text-secondary); padding-top: 18px; }
.card-foot button { font-size: 15px; padding: 5px 0; }
.quick-note { flex-wrap: wrap; gap: 16px; }
.quick-note h3 { font-size: 20px; font-weight: 600; }
.quick-note p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.quote-card label { font-size: 12px; letter-spacing: .07em; }
.quote-card textarea { font-size: 18px; height: 76px; color: #7e6655; line-height: 1.9; }
.button { font-size: 16px; font-weight: 600; padding: 11px 18px; min-height: 44px; border-radius: 13px; }
.button.small { font-size: 14px; min-height: 38px; padding: 8px 12px; }
.text-button, .archive-toggle { font-size: 15px; }
.space-chip { font-size: 16px; padding: 10px 16px; }
.space-switch > .text-button { font-size: 15px; }
.space-switch, .space-switch > div { flex-wrap: wrap; }
.page-heading h1 { font-size: 38px; line-height: 1.5; }
.page-heading p { font-size: 17px; color: var(--text-secondary); }
.upload-zone strong { font-size: 22px; font-weight: 600; }
.upload-zone p { font-size: 15px; color: var(--text-secondary); }
.pill { font-size: 13px; border-radius: 7px; padding: 4px 9px; }
.note-card h3 { font-size: 23px; font-weight: 600; }
.note-preview { font-size: 17px; line-height: 1.9; color: var(--text-secondary); }
.note-card-bottom { flex-wrap: wrap; gap: 8px; }
.note-card-bottom small { font-size: 13px; color: var(--text-caption); }
.empty h3 { font-size: 25px; font-weight: 600; }
.empty p { font-size: 17px; line-height: 1.85; color: var(--text-secondary); }
.sample-note, .info-line, .source-count { font-size: 14px; line-height: 1.9; color: var(--text-secondary); }
.quiz-layout { grid-template-columns: 310px minmax(0, 1fr); }
.panel h3 { font-size: 22px; }
.field { font-size: 17px; color: var(--text-secondary); gap: 10px; }
.field input, .field textarea, .field select { font-size: 18px; line-height: 1.75; color: #3e5245; padding: 12px 14px; border-radius: 12px; }
.note-option { font-size: 17px; line-height: 1.8; gap: 12px; }
.note-option input { width: 18px; height: 18px; flex-shrink: 0; }
.muted { font-size: 14px; color: var(--text-caption); }
.method-note { font-size: 14px; line-height: 1.95; color: var(--text-secondary); }
.quiz-top { flex-wrap: wrap; }
.quiz-top h2 { font-size: 27px; font-weight: 600; }
.quiz-top > small { font-size: 12px; }
.question-meta { font-size: 13px; flex-wrap: wrap; }
.question p { font-size: 19px; line-height: 1.95; }
.question input[type="text"] { font-size: 18px; }
.option { font-size: 18px; padding: 14px; overflow-wrap: anywhere; }
.option input { width: 18px; height: 18px; flex-shrink: 0; }
.answer-box, .answer-box p, .answer-box strong { font-size: 17px; }
.answer-box details, .answer-box blockquote { font-size: 15px; line-height: 1.9; }
.quiz-result { font-size: 18px; }
.quiz-result strong { font-size: 28px; }
.quiz-result small { font-size: 14px; }
.review-card h3 { font-size: 25px; }
.review-card .summary, .review-draft { font-size: 15px; color: var(--text-secondary); }
.review-card textarea { min-height: 180px; }
.review-item { font-size: 18px; }
.review-item small, .review-item button { font-size: 14px; }
.finished p { font-size: 24px; }
.finished small { font-size: 13px; }
footer { font-size: 13px; color: var(--text-caption); gap: 16px; flex-wrap: wrap; }
footer span { font-size: 12px; }
#toast { font-size: 16px; }
dialog { width: min(720px, 92vw); }
.modal-heading h2 { font-size: 32px; font-weight: 600; }
.modal-footer { flex-wrap: wrap; }
.modal-footer small { font-size: 14px; color: var(--text-secondary); }
.reward-help { font-size: 17px; color: var(--text-secondary); }
.media-item span { font-size: 16px; }
.reward-tag { font-size: 12px; }
.reward-card h2 { font-size: 29px; }
.reward-card p { font-size: 17px; color: var(--text-secondary); }
.reward-card > small { font-size: 12px; color: var(--text-caption); }
.heart-art span { font-size: 14px; }
.share-toolbar { font-size: 14px; gap: 10px; color: var(--text-secondary); padding: 13px 16px; }
.share-toolbar .button { font-size: 14px; padding: 8px 13px; min-height: 39px; }
.archive-entry { font-size: 17px; gap: 14px; flex-wrap: wrap; }
.archive-entry small { font-size: 13px; color: var(--text-caption); }
.share-copy { font-size: 16px; }
.archive-help { font-size: 16px; color: var(--text-secondary); }

@media (max-width: 1150px) {
  .brand { font-size: 23px; }
  .brand small { font-size: 8px; }
  .nav { font-size: 17px; padding-inline: 9px; gap: 10px; }
  .sidebar-label { font-size: 12px; margin-left: 0; }
  .sidebar-bottom { font-size: 11px; }
  .hero { padding: 32px; }
  .person-card { padding: 23px; }
  .person-grid { grid-template-columns: 1fr; }
  .quiz-layout { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav { font-size: 0; }
  .hero h1 { font-size: 38px; }
  .page-heading { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  :root { font-size: 16px; }
  main { padding: 0 18px 84px; }
  .sidebar { height: 76px; }
  .nav { font-size: 13px; padding: 9px 8px; gap: 3px; }
  .nav > span { font-size: 23px; }
  .topbar { height: 78px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { margin: 0 5px; }
  .date-label input { font-size: 13px; width: 124px; }
  .space-switch { align-items: flex-start; gap: 8px; }
  .space-switch > div { gap: 5px; }
  .space-chip { font-size: 14px; padding: 9px 11px; }
  .space-switch > .text-button { font-size: 14px; }
  .hero { min-height: 260px; padding: 48px 25px 28px; }
  .hero h1 { font-size: 34px; letter-spacing: .025em; }
  .hero p, body[data-theme="pink"] .hero p { font-size: 16px; }
  .hero .little-label { font-size: 9px; }
  .hero .eyebrow, body[data-theme="pink"] .hero .eyebrow { font-size: 10px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > small { font-size: 13px; }
  .person-card { padding: 23px; }
  .person-name { font-size: 23px; }
  .fandom-label { font-size: 12px; }
  .member-progress { font-size: 13px; }
  .goal-input, .task-row .task-text { font-size: 17px; }
  .card-foot { font-size: 13px; }
  .card-foot > span { width: 100%; }
  .card-foot button { font-size: 15px; }
  .quick-note { padding: 23px; }
  .quick-note h3 { font-size: 21px; }
  .quick-note p { font-size: 14px; }
  .quick-note button { font-size: 16px; padding: 10px 15px; }
  .quote-card textarea { height: 96px; }
  .share-toolbar { font-size: 13px; padding: 12px; gap: 8px; }
  .share-toolbar .button { font-size: 14px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading p { font-size: 16px; }
  .upload-zone { padding: 25px 18px; }
  .upload-zone strong { font-size: 21px; }
  .upload-zone p { font-size: 14px; }
  .panel { padding: 22px; }
  .quiz-top h2 { font-size: 25px; }
  .question p { font-size: 18px; }
  .option { font-size: 17px; }
  .finished p { font-size: 21px; }
  footer, footer span { font-size: 12px; }
  #toast { bottom: 91px; max-width: calc(100vw - 36px); font-size: 15px; }
  .modal-heading h2 { font-size: 27px; }
  .modal-footer small { max-width: none; }
  .reward-card { max-height: 88vh; overflow-y: auto; }
  .reward-card h2 { font-size: 26px; }
  .reward-card .button { font-size: 16px; }
}
