:root {
  color-scheme: light;
  color: #33283b;
  background: #f6f1e8;
  font: 17px/1.68 system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { border-bottom: 1px solid #d7c9b9; background: #fbf8f1; }
header, main { padding-inline: max(18px, calc((100% - 690px) / 2)); }
header { padding-block: 12px; }
main { padding-top: 24px; padding-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 50%; flex: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 7.6vw, 45px); letter-spacing: -.04em; line-height: 1.22; }
h2 { font-size: 23px; line-height: 1.33; margin-bottom: 8px; }
h3 { font-size: 17px; }
p + p { margin-top: 10px; }
.intro { margin-top: 13px; }
.primary { display: flex; justify-content: space-between; align-items: center; min-height: 49px; padding: 8px 16px; margin-top: 16px; background: #4b3157; color: #fff9eb; font-weight: 700; border-radius: 8px; text-decoration: none; }
section { margin-top: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.grid a { display: grid; align-content: center; min-height: 62px; text-align: center; color: #382940; background: #fffaf0; border: 1px solid #bdab99; border-radius: 7px; text-decoration: none; padding: 4px 2px; line-height: 1.38; font-size: clamp(14px, 3.9vw, 17px); }
.grid .example { background: #ede3f0; border-color: #765d83; }
.grid span { font-size: .85em; }
.text-link { display: inline-block; color: #4b3157; font-weight: 700; margin-block: 10px 0; }
.reading { border-block: 1px solid #d7c9b9; padding-block: 18px; }
.entries div { border-bottom: 1px solid #d7c9b9; padding: 9px 6px; scroll-margin-top: 12px; overflow-wrap: anywhere; }
.entries p { font-size: .88em; }
.entries :target { background: #ede3f0; outline: 2px solid #765d83; border-radius: 5px; }
a:focus-visible { outline: 3px solid #8a643b; outline-offset: 2px; }
footer { margin-top: 10px; }
