:root {
  color-scheme: light;
  --ink: #202625;
  --muted: #545c56;
  --line: #d9d9d0;
  --link: #a8371b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f7f6f1;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #a8371b; outline-offset: 4px; }
.wrap { width: min(48rem, calc(100% - 3rem)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.mast nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-block: 1rem; font-size: .925rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 680; color: var(--ink); text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: var(--ink); color: #c8f47a; font-size: 1.4rem; }
main { padding-block: clamp(2.5rem, 6vw, 5rem); }
h1, h2, p, ol, ul { margin: 0; }
h1 { max-width: 21em; font-size: clamp(1.9rem, 4.8vw, 3.1rem); line-height: 1.23; letter-spacing: -.038em; text-wrap: balance; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.5; }
.meta { color: var(--muted); font-size: .875rem; margin: 1rem 0 1.5rem; }
.intro { font-size: 1.17rem; line-height: 1.85; }
.posts { list-style: none; padding: 0; margin-top: 2rem; border-top: 2px solid var(--ink); }
.posts li { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.posts h2 a { color: var(--ink); }
.posts p { color: var(--muted); line-height: 1.8; margin-top: .4rem; }
.read-section { margin-top: 2rem; }
.read-section p, .read-section ol, .source-list, .about-project { margin-top: .6rem; line-height: 1.95; }
.read-section ol, .source-list { padding-left: 1.5rem; }
html[lang="en"] h1 { max-width: 25em; }
html[lang="en"] .read-section p, html[lang="en"] .read-section ol { line-height: 1.8; }
li + li { margin-top: .3rem; }
.posts li + li { margin: 0; }
.primary { display: inline-block; margin: 1rem 0 0; font-weight: 620; }
.resources, .related { border-top: 1px solid var(--line); margin-top: 2.3rem; padding-top: 1.4rem; }
.related a { display: block; margin-top: .75rem; line-height: 1.6; }
footer { padding: 1.25rem 0 2.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.75; }
.crumbs { line-height: 1.7; margin-bottom: 1.2rem; font-size: .9rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin-top: 2rem; }
.topic-grid li { margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.topic-grid p { color: var(--muted); line-height: 1.7; margin-top: .5rem; }
.topic-grid h2 { font-size: 1.1rem; }
.search-section { margin-top: 3rem; }
.search-section label { display: block; margin: 1rem 0 .4rem; }
.search-section input { width: 100%; padding: .8rem; font: inherit; border: 1px solid var(--line); border-radius: .4rem; }
#search-status { margin-block: .8rem; color: var(--muted); font-size: .9rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding-block: 1rem; }
details .posts { margin-top: 0; border-top: 0; }
.source-list a, .read-section p { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .mast nav { font-size: .85rem; }
  .topic-grid { grid-template-columns: 1fr; }
}

.mast .brand span { background: transparent url("/studio/symbol.svg") center / contain no-repeat; color: transparent; }
