:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #322b27;
  --muted: #685b52;
  --line: #e6dcd1;
  --accent: #a64436;
  --soft: #f2e9df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem/1.8 system-ui,
    'Noto Sans TC',
    sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: white;
  padding: 0.5rem;
  z-index: 2;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 750;
  flex-wrap: wrap;
  max-width: 100%;
}
.brand img {
  border-radius: 10px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
nav a {
  display: inline-block;
  padding: 6px 0;
}
main {
  padding: 64px 0 72px;
}
h1 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}
h2 {
  font-size: 1.55rem;
  line-height: 1.5;
  margin: 40px 0 16px;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 12px 0;
}
p,
ul,
ol {
  margin: 0 0 20px;
}
li {
  margin: 8px 0;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
}
.eyebrow,
.number {
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 32px 0 64px;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.muted,
.updated {
  color: var(--muted);
  font-size: 0.9rem;
}
.muted {
  margin-top: 12px;
}
.example {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px #59382108;
}
.example p:last-child {
  margin-bottom: 0;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 12px 0 20px;
}
dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}
.cards h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}
.soft {
  margin: 56px 0;
  padding: 28px;
  background: var(--soft);
  border-radius: 20px;
}
.soft h2 {
  margin-top: 0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details p {
  margin: 16px 0 0;
}
.article {
  max-width: 760px;
}
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
caption {
  text-align: left;
  font-weight: 650;
  margin-bottom: 8px;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .wrap {
    padding: 0 20px;
  }
  .site-header {
    padding: 18px 0;
  }
  nav {
    gap: 8px 16px;
  }
  main {
    padding: 40px 0 48px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0 40px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .example,
  .cards article,
  .soft {
    padding: 20px;
  }
  h2 {
    margin-top: 32px;
  }
  dd {
    overflow-wrap: anywhere;
  }
  dl {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
