:root {
  color-scheme: light;
  --background: #f3f6f5;
  --ink: #152b2b;
  --secondary: #405958;
  --accent: #146254;
  --rule: #bfceca;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: .15rem solid var(--accent); outline-offset: .25rem; }
.wrap { width: min(64rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner nav { display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
.header-inner a { text-decoration: none; }
.header-inner a:hover { text-decoration: underline; }
.brand { color: var(--ink); font-weight: 750; }

.intro { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.intro h1 { max-width: 16ch; margin: 0; font-size: clamp(2.75rem, 8vw, 5.75rem); line-height: 1.12; letter-spacing: -.06em; }
.intro p { max-width: 31em; margin: 1.5rem 0 0; font-size: clamp(1.03rem, 2.5vw, 1.2rem); color: var(--secondary); }
.notes { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.5fr); gap: clamp(1.5rem, 6vw, 5rem); padding-block: 2.75rem; }
.contents h2 { margin: 0; font-size: 1rem; }
.contents ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.contents li + li { margin-top: .55rem; }
.entries article { scroll-margin-top: 1.25rem; }
.entries article + article { margin-top: 2.1rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.entries p { margin: .72rem 0 0; }
.entries .topic { margin: 0; color: var(--accent); font-size: .875rem; font-weight: 700; }
.entries h2 { margin: .15rem 0 .6rem; font-size: clamp(1.35rem, 3.4vw, 1.95rem); line-height: 1.3; }
code { padding: .1em .28em; border-radius: .2rem; background: #e2ece8; font: .9em ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.about { border-top: 1px solid var(--rule); padding: 1.65rem 0; }
.about h2, .about p { margin: 0; }
.about h2 { margin-bottom: .45rem; font-size: 1.2rem; }
.footer { padding: 1rem 0 2rem; border-top: 1px solid var(--rule); }

@media (max-width: 40rem) {
  .notes { grid-template-columns: 1fr; }
  .contents { padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
}
