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

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  max-width: 44rem;
  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;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.site-header nav a + a {
  margin-left: 1rem;
}

.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;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0;
}

.card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--surface);
}

.card h2,
.card h3 {
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

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

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

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