:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
  color: #202534;
  background: #f7f8fb;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: #2258a8; text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid #2258a8; outline-offset: 3px; }
button, .login-button {
  display: inline-block;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: #2258a8;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button[hidden], [hidden] { display: none !important; }
button:focus-visible, .login-button:focus-visible { outline: 3px solid #2258a8; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.7; }
.login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.site-header, main, .site-footer {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
}

.brand { font-weight: 750; font-size: 1.15rem; text-decoration: none; color: inherit; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-header nav [aria-current="page"] { color: inherit; font-weight: 700; text-decoration-thickness: 2px; }

main {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.3; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.45; margin: 2.3rem 0 0.6rem; }
p, ul { margin: 0.6rem 0 1rem; }
ul { padding-left: 1.5rem; }
li + li { margin-top: 0.4rem; }
.updated, .site-footer { color: #596274; font-size: 0.95rem; }
.site-footer { padding-bottom: 2rem; }

@media (max-width: 420px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  main { border-radius: 0.75rem; }
}
