:root {
  color-scheme: light;
  --paper: #f5f8f7;
  --ink: #263831;
  --muted: #59615d;
  --line: #d2dbd6;
  --green: #245b50;
  --blue: #285b85;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --serif: "Songti TC", "Hiragino Mincho ProN", "Noto Serif TC", "LiSong Pro", serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.page {
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .8rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
  z-index: 1;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.masthead { padding-block: clamp(3.5rem, 9vw, 7rem) 3.5rem; }
h1, h2, h3, p { margin: 0; }
h1 {
  display: flex;
  align-items: baseline;
  gap: .2em;
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.055em;
}
.brand-mark {
  flex: 0 0 .16em;
  height: .16em;
  border: .035em solid currentColor;
  border-radius: 50%;
}
.masthead p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.directory-section {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
h2 { padding-top: 1.5rem; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.entries { min-width: 0; }
.entry {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem;
  border-radius: .5rem 2rem 2rem .5rem;
  text-decoration: none;
}
.entry + .entry { margin-top: 1rem; }
.entry-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 4rem;
  height: 4.5rem;
}
.entry-symbol svg { width: 3rem; height: 3rem; stroke: currentColor; stroke-width: 1.8; }
.entry-copy { min-width: 0; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.4; }
.entry p { margin-top: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 34em; }
.shopping { background: #edf0ec; }
.watermark { color: var(--green); background: #e8f0ec; }
.watermark h3 { font-family: var(--serif); }
.clean-share { color: var(--blue); background: #eaf0f5; }
.entry:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
footer { margin-top: 2rem; padding-block: 1.5rem 2rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 40rem) {
  .page { width: calc(100% - 2.5rem); }
  .masthead { padding-bottom: 2.5rem; }
  .directory-section { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem; }
  h2 { padding-top: 0; }
  .entry { gap: 1rem; padding: 1.5rem 1rem; align-items: flex-start; }
  .entry-symbol { flex-basis: 2.5rem; height: 2.5rem; }
  .entry-symbol svg { width: 2.5rem; height: 2.5rem; }
  h3 { font-size: 1.5rem; }
  footer { margin-top: 1rem; }
}
