
:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #292b27;
  --muted: #606359;
  --line: #d5d8cc;
  --accent: #275e49;
  --focus: #175fc1;
  font-family: Charter, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.page { width: calc(100% - 2rem); max-width: 52rem; margin: 0 auto; min-width: 0; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.site-header, .page-nav, .search-form, .pagination, .tags, .badge, .metadata, .login-form, .attachment, .table-scroll {
  font-family: system-ui, "PingFang SC", sans-serif;
}
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.page-nav form { margin: 0; }
main { padding: 1.7rem 0 3rem; min-width: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin-top: 0; }
h1 { line-height: 1.3; font-size: clamp(1.75rem, 6vw, 2.25rem); }
input, button { font: inherit; max-width: 100%; border: 1px solid #858b7d; border-radius: .35rem; }
input { color: var(--ink); background: #fffef9; min-width: 0; padding: .6rem .7rem; }
button { color: #fffef9; background: var(--accent); padding: .55rem .85rem; cursor: pointer; white-space: normal; }
button:hover { background: #1d4937; }
.search-form { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.search-form input { flex: 1 1 12rem; width: 100%; }
.search-form button { flex: 0 1 auto; }
.search-label { width: 100%; font-weight: 600; }
.list-summary, .metadata, .empty, .note-preview { color: var(--muted); }
.note-list { list-style: none; padding: 0; }
.note-card { padding: 1.3rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.note-card h2 { margin-bottom: .4rem; font-size: 1.25rem; line-height: 1.4; }
.note-preview { margin: .5rem 0; white-space: pre-wrap; }
.tags { display: flex; flex-wrap: wrap; list-style: none; gap: .35rem; padding: 0; margin-bottom: .65rem; font-size: .85rem; }
.tag, .badge { display: inline-block; border: 1px solid var(--line); border-radius: .3rem; padding: .05rem .45rem; max-width: 100%; }
.badge { font-size: .8rem; background: #eee7d1; color: #624c19; vertical-align: middle; }
.metadata { font-size: .85rem; margin: .4rem 0 .9rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; padding-top: .8rem; }
.login-form { max-width: 25rem; display: grid; gap: .8rem; }
.login-form input { width: 100%; }
.login-form button { justify-self: start; }
.error { color: #9c2222; border-inline-start: 3px solid currentColor; padding-inline-start: .75rem; }
.note-header { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; padding-bottom: .8rem; }
.note-title { margin-bottom: .7rem; white-space: pre-wrap; }
.note-content, .text-block { min-width: 0; max-width: 100%; }
.note-content p, .note-content li, .note-content h2, .note-content h3, .note-content h4 { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-content p { margin-bottom: .65rem; min-height: 1.65em; }
.note-content h2 { font-size: 28px; line-height: 1.3; }
.note-content h3 { font-size: 24px; line-height: 1.3; }
.note-content h4 { font-size: 20px; line-height: 1.3; }
.note-content h2, .note-content h3, .note-content h4 { font-weight: 400; margin-bottom: .75rem; }
.note-content code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; background: #e7e7de; border-radius: .2rem; }
.paragraph-list { padding-inline-start: 1.65rem; margin-bottom: .65rem; }
.paragraph-list li { padding-inline-start: .15rem; min-width: 0; }
.task-list { list-style: none; padding-inline-start: 0; }
.task-list label { display: flex; align-items: baseline; gap: .6rem; }
.task-list input { flex: 0 0 auto; accent-color: var(--accent); }
.task-list label > span { min-width: 0; }
.task-list input:disabled { opacity: 1; }
.attachment { padding: .85rem; border: 1px solid var(--line); border-radius: .35rem; margin: 1.2rem 0; max-width: 100%; }
.attachment-image { display: block; height: auto; max-width: 100%; margin: 0 auto .65rem; }
figcaption { font-size: .9rem; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin: 1.2rem 0; border: 1px solid var(--line); }
table { border-collapse: collapse; min-width: 100%; width: max-content; font-size: .95rem; }
th, td { min-width: 7rem; max-width: 28rem; padding: .6rem .8rem; border: 1px solid var(--line); text-align: start; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
th { background: #efeee4; }
.unsupported { color: var(--muted); background: #eeeee6; padding: .4rem .6rem; border-radius: .3rem; }
@media (max-width: 400px) {
  .page { width: calc(100% - 1.5rem); }
  .site-header { gap: .6rem; }
  .page-nav { gap: .65rem; font-size: .9rem; }
  main { padding-top: 1.2rem; }
}

:root{--labelColor:#292b27;--secondaryLabelColor:#606359;--tertiaryLabelColor:#787c71;--quaternaryLabelColor:#e7e7de;--placeholderTextColor:#696e62;--separatorColor:#d5d8cc;--controlBackgroundColor:#f0f1e9;--selectedTextBackgroundColor:#d2e2f8;--systemRedColor:#bd2929;--systemOrangeColor:#ad510b;--systemYellowColor:#957109;--systemGreenColor:#287044;--systemBlueColor:#235dad;--systemPurpleColor:#7950a5;--systemPinkColor:#b72e69;--systemTealColor:#276c74;--systemIndigoColor:#5147a0;--systemBrownColor:#80573e;--systemGrayColor:#686c65;--systemMintColor:#24705b;--systemCyanColor:#216f8d;}
.depth-0{margin-inline-start:min(0rem, 16vw);}
.depth-1{margin-inline-start:min(1.25rem, 16vw);}
.depth-2{margin-inline-start:min(2.5rem, 16vw);}
.depth-3{margin-inline-start:min(3.75rem, 16vw);}
.depth-4{margin-inline-start:min(5rem, 16vw);}
.depth-5{margin-inline-start:min(6.25rem, 16vw);}
.depth-6{margin-inline-start:min(7.5rem, 16vw);}
.depth-7{margin-inline-start:min(8.75rem, 16vw);}
.depth-8{margin-inline-start:min(10rem, 16vw);}
.depth-9{margin-inline-start:min(11.25rem, 16vw);}
.depth-10{margin-inline-start:min(12.5rem, 16vw);}
.depth-11{margin-inline-start:min(13.75rem, 16vw);}
.depth-12{margin-inline-start:min(15rem, 16vw);}
.bg-system-controlBackgroundColor{background-color:var(--controlBackgroundColor);}
.bg-system-labelColor{background-color:var(--labelColor);}
.bg-system-placeholderTextColor{background-color:var(--placeholderTextColor);}
.bg-system-quaternaryLabelColor{background-color:var(--quaternaryLabelColor);}
.bg-system-secondaryLabelColor{background-color:var(--secondaryLabelColor);}
.bg-system-selectedTextBackgroundColor{background-color:var(--selectedTextBackgroundColor);}
.bg-system-separatorColor{background-color:var(--separatorColor);}
.bg-system-systemBlueColor{background-color:var(--systemBlueColor);}
.bg-system-systemBrownColor{background-color:var(--systemBrownColor);}
.bg-system-systemCyanColor{background-color:var(--systemCyanColor);}
.bg-system-systemGrayColor{background-color:var(--systemGrayColor);}
.bg-system-systemGreenColor{background-color:var(--systemGreenColor);}
.bg-system-systemIndigoColor{background-color:var(--systemIndigoColor);}
.bg-system-systemMintColor{background-color:var(--systemMintColor);}
.bg-system-systemOrangeColor{background-color:var(--systemOrangeColor);}
.bg-system-systemPinkColor{background-color:var(--systemPinkColor);}
.bg-system-systemPurpleColor{background-color:var(--systemPurpleColor);}
.bg-system-systemRedColor{background-color:var(--systemRedColor);}
.bg-system-systemTealColor{background-color:var(--systemTealColor);}
.bg-system-systemYellowColor{background-color:var(--systemYellowColor);}
.bg-system-tertiaryLabelColor{background-color:var(--tertiaryLabelColor);}
.fg-system-controlBackgroundColor{color:var(--controlBackgroundColor);}
.fg-system-labelColor{color:var(--labelColor);}
.fg-system-placeholderTextColor{color:var(--placeholderTextColor);}
.fg-system-quaternaryLabelColor{color:var(--quaternaryLabelColor);}
.fg-system-secondaryLabelColor{color:var(--secondaryLabelColor);}
.fg-system-selectedTextBackgroundColor{color:var(--selectedTextBackgroundColor);}
.fg-system-separatorColor{color:var(--separatorColor);}
.fg-system-systemBlueColor{color:var(--systemBlueColor);}
.fg-system-systemBrownColor{color:var(--systemBrownColor);}
.fg-system-systemCyanColor{color:var(--systemCyanColor);}
.fg-system-systemGrayColor{color:var(--systemGrayColor);}
.fg-system-systemGreenColor{color:var(--systemGreenColor);}
.fg-system-systemIndigoColor{color:var(--systemIndigoColor);}
.fg-system-systemMintColor{color:var(--systemMintColor);}
.fg-system-systemOrangeColor{color:var(--systemOrangeColor);}
.fg-system-systemPinkColor{color:var(--systemPinkColor);}
.fg-system-systemPurpleColor{color:var(--systemPurpleColor);}
.fg-system-systemRedColor{color:var(--systemRedColor);}
.fg-system-systemTealColor{color:var(--systemTealColor);}
.fg-system-systemYellowColor{color:var(--systemYellowColor);}
.fg-system-tertiaryLabelColor{color:var(--tertiaryLabelColor);}
