:root {
  color-scheme: light;
  --ink: #183b32;
  --muted: #4c6058;
  --paper: #f7f8f6;
  --line: #d9e0da;
  --jade: #236450;
  font: 100%/1.65 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: var(--jade); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }

.wrap { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 1;
  inset: .7rem auto auto .7rem;
  padding: .55rem .9rem;
  background: white;
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  flex-wrap: wrap;
  padding-block: .95rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img { flex: none; }
nav { display: flex; gap: .65rem 1.35rem; flex-wrap: wrap; }
nav a { color: var(--muted); font-weight: 600; text-decoration: none; padding-block: .3rem; }
nav a:hover, nav a[aria-current] { color: var(--jade); text-decoration: underline; }

.intro {
  padding-block: clamp(4.5rem, 14vh, 10rem);
  text-align: center;
}
.intro img { margin: 0 auto 1.15rem; }
.intro h1, .document h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.intro h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
.intro p { margin: 1rem 0 0; color: var(--muted); }
.intro nav { justify-content: center; margin-top: 1.65rem; }
.intro nav a { text-decoration: underline; }

.document { max-width: 760px; padding-block: clamp(2.4rem, 6vw, 4.7rem); }
.document h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin-block: .9rem 2rem; }
.document section { padding-block: 1.35rem; border-top: 1px solid var(--line); }
.document h2 { font-size: 1.25rem; margin: 0 0 .65rem; }
.document section p { margin: 0 0 .75rem; }
.document section p:last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
details summary { cursor: pointer; padding-block: .8rem; font-weight: 650; }
details[open] summary { color: var(--jade); }
details p { color: var(--muted); padding: 0 .4rem .85rem; }
.contact { scroll-margin-top: 1rem; }

@media (max-width: 730px) {
  .wrap { width: calc(100% - 32px); }
}
