:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #181818;
  --muted: #595959;
  --accent: #215898;
  --rule: #dedede;
  --rule-strong: #383838;
  --marker: linear-gradient(100deg, #c0daf6, #e1edfb);
  --serif: Georgia, "Songti TC", "Noto Serif TC", serif;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 72px, 744px); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 1; padding: 8px 12px; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }

.top {
  display: grid;
  grid-template-columns: minmax(100px, max-content) 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 60px;
  border-bottom: 1px solid var(--rule-strong);
}
.top a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.wordmark { justify-self: start; font-size: 1.1875rem; font-weight: 750; color: var(--ink); letter-spacing: -.04em; }
.wordmark-label { line-height: 1.22; }
.nav { display: flex; gap: 20px; font-size: .96875rem; font-weight: 550; }
.nav a { color: var(--ink); }
.language { font-size: .875rem; font-weight: 600; }

section, .share, .contact { scroll-margin-top: 20px; }
.intro { padding: 56px 0 63px; scroll-margin-top: 112px; }
h1 {
  margin: 0 0 19px;
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.greeting { font-weight: 700; }
.name, .wordmark-label {
  display: inline-block;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.name::before, .wordmark-label::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 23% -.055em 13%;
  border-radius: 2px;
  background: var(--marker);
}
.wordmark-label::before { transition: filter 180ms ease-out; }
.wordmark:is(:hover, :focus-visible, :active) .wordmark-label::before { filter: saturate(1.8); }

.mark {
  background: var(--marker) no-repeat left 70% / 0% .88em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 180ms ease-out;
}
a:is(:hover, :focus-visible, :active) .mark,
.share:is(:hover, :focus-within) .mark { background-size: 100% .88em; }
.lead {
  margin: 0;
  max-width: 36rem;
  font: 400 clamp(1.31rem, 2vw, 1.5rem)/1.36 var(--serif);
  text-wrap: balance;
}
.bio { max-width: 31rem; margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }
.bio a { color: var(--ink); text-decoration-color: #7997b8; }
.bio .mark { background-size: 100% .26em; }
h2 { margin: 0; font-size: 1.5rem; font-weight: 750; letter-spacing: -.025em; }
.shares h2 { margin-bottom: 9px; }
.share-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }
.share { padding: 14px 0; }
.share + .share { border-top: 1px solid var(--rule); }
.share-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.share h3 { margin: 0; font-size: 1.1875rem; font-weight: 720; line-height: 1.35; letter-spacing: -.025em; }
.share h3 a { color: var(--ink); text-decoration-color: var(--accent); }
.share-kind { color: var(--muted); font-size: .8125rem; }
.share p { margin: 5px 0 0; color: var(--muted); font: 1.0625rem/1.5 var(--serif); text-wrap: pretty; }
.contact {
  margin-top: 35px;
  border-top: 1px solid var(--rule);
  padding-top: 19px;
}
.mail-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--ink);
  font: italic 400 clamp(1.375rem, 2.5vw, 1.6875rem)/1.2 "Iowan Old Style", Georgia, serif;
  letter-spacing: -.025em;
  text-decoration: none;
}
.icon { width: 1.125rem; height: 1.125rem; fill: currentColor; flex: none; }
.mail-action .icon { color: var(--accent); }

.site-footer {
  margin-top: 40px;
  padding-block: 24px 31px;
  border-top: 1px solid var(--rule-strong);
  color: var(--muted);
}
.footer-about { max-width: 39rem; margin: 0; font-size: .9375rem; line-height: 1.6; }
.social-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.social-list :is(a, .social-pending) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
.social-list .social-pending { color: #757575; }
.social-mark { display: grid; place-items: center; width: 28px; height: 25px; border-radius: 2px; }
.copyright { margin: 14px 0 0; text-align: center; font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  .mark, .wordmark-label::before { transition: none; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 44px); }
  .top { grid-template-columns: 1fr auto; gap: 0 20px; padding: 8px 0 4px; }
  .language { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .intro { padding-top: 38px; padding-bottom: 36px; }
  h1 { margin-bottom: 18px; }
  .bio { font-size: 1rem; text-wrap: balance; }
  h2 { font-size: 1.35rem; }
  .contact { margin-top: 26px; }
  .site-footer { margin-top: 31px; padding-block: 19px 24px; }
  .social-list { display: grid; grid-template-columns: repeat(4, 44px); gap: 0 7px; justify-content: center; }
  .copyright { margin-top: 12px; }
}
