:root {
  color-scheme: light dark;
  --background: #fff;
  --text: #333;
  --heading: #222;
  --subtle: #666;
  --rule: #eee;
  --mark: #ccc;
  --link: #333;
  --dotted: #999;
  --record: #6c7486;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121621;
    --text: #6c7486;
    --heading: #e4ecfa;
    --subtle: #6c7486;
    --rule: #242836;
    --mark: #3f4656;
    --link: #99a3ba;
    --dotted: #6c7486;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; color: var(--text); font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; text-align: center; }
a { color: var(--link); text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 2px; }
::selection { background: var(--heading); color: var(--background); }
.home { width: min(100%, 780px); margin: 50px auto 0; padding: 0 20px 18px; }
.identity h1 { margin: 0; color: var(--heading); font-size: 2em; line-height: 1.8; font-weight: 700; }
.portrait { display: block; width: 120px; height: 150px; margin: 0 auto; border: 2px solid #000; border-radius: 4px; object-fit: cover; }
.quote { position: relative; margin: 40px 20px; overflow: hidden; color: var(--subtle); }
.quote-rule { display: block; height: 1px; background: var(--rule); }
.quote-mark { position: absolute; color: var(--mark); font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1; }
.quote-mark-start { top: 9px; left: 0; }
.quote-mark-end { right: 0; bottom: 9px; }
.quote p { margin: 0; }
.quote .motto { margin-top: 30px; font-size: 22px; }
.quote .principles { margin-top: 20px; }
.quote .attribution { margin: 10px 0 30px; }
.location { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; color: var(--subtle); font-size: 13px; }
.location .pin { font-family: Georgia, serif; font-size: 18px; line-height: 1; }
.location a { color: var(--record); }
.location a:hover { color: var(--heading); text-decoration: underline; }
.shortcut-notice { min-height: 1.8em; margin: 0; color: var(--mark); font-size: 13px; opacity: 0; transition: opacity .2s; }
.shortcut-notice.visible { opacity: 1; }
.entrance { animation: enter .55s both; }
.identity { animation-delay: .05s; }
.quote { animation-delay: .2s; }
.location { animation-delay: .35s; }
@keyframes enter { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .identity h1 { font-size: clamp(24px, 7vw, 32px); }
  .quote { margin-inline: 0; }
  .quote .motto { font-size: clamp(18px, 5vw, 22px); }
  .quote .principles { font-size: 14px; }
}
@media (max-width: 360px) {
  .home { padding-inline: 14px; }
  .quote .principles { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
