/* Parcel Patch site: one stylesheet for every page. System fonts, no external requests. */
:root {
  --bg: #f5f1e9;
  --surface: #fffdf7;
  --text: #1c332a;
  --text-2: #5a6b62;
  --line: #e2ddd1;
  --accent: #22664b;
  --accent-2: #b96c16;
  --code-bg: #efeae0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a16;
    --surface: #18221d;
    --text: #e6ece8;
    --text-2: #a3b2aa;
    --line: #2c3a33;
    --accent: #6fc49c;
    --accent-2: #e6a35a;
    --code-bg: #1d2923;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.lang {
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.lang a {
  color: var(--text-2);
}

main {
  padding: 8px 0 32px;
}

section[id] {
  scroll-margin-top: 16px;
}

h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 28px 0 8px;
}

h2 {
  font-size: 19px;
  line-height: 1.35;
  margin: 28px 0 8px;
}

h3 {
  font-size: 16px;
  margin: 20px 0 4px;
}

p,
ul {
  margin: 8px 0;
}

ul {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

.meta {
  color: var(--text-2);
  font-size: 14px;
}

.intro {
  font-size: 17px;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0 8px;
}

.license-text {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 14px;
  font-size: 14px;
  line-height: 1.55;
}

.license-text p {
  margin: 10px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  padding: 16px 0 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 4px;
}

.site-footer a {
  color: var(--text-2);
}
