:root {
  color-scheme: light dark;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --background: #ffffff;
  --rule: #e2e2e2;
  --link: #8a5a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #a8a8a8;
    --background: #161616;
    --rule: #333333;
    --link: #e8b44c;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

section[lang="en"] {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.app-icon,
.app-icon-large {
  display: block;
  border-radius: 22%;
}

.app-icon-large {
  margin-top: 2rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer li + li {
  margin-top: 0;
}
