:root {
  --paper: #f3efe6;
  --ink: #1b3a4b;
  --muted: #4d5d66;
  --line: #d9d0c1;
  --amber: #c47d12;
  --card: #fffdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.55;
}
a { color: var(--ink); }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 7vw;
  background: var(--ink);
  color: #f3efe6;
}
header a { color: #f3efe6; text-decoration: none; }
header nav { display: flex; gap: 18px; }
main { padding: 36px 7vw 72px; max-width: 1100px; }
h1 { font-size: 42px; line-height: 1.2; margin: 0 0 12px; }
h2 { margin: 28px 0 8px; }
.lede { font-size: 20px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
}
.card img { width: 100%; height: auto; background: white; }
.card h2 { margin-top: 12px; }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--amber);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
ol li { margin: 8px 0; }
figure { margin: 18px 0; }
figure img { max-width: 100%; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 14px; }
code { font-family: Consolas, monospace; }
footer { padding: 18px 7vw 32px; color: var(--muted); }
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  header { flex-direction: column; align-items: flex-start; }
}
