:root { --mono: "JetBrains Mono", monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 15px/1.7 var(--mono); }
a, a:visited { color: #06c; }
button { font: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .paper-container, .site-footer { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: 12px 0; background: Canvas; }
.site-brand { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.site-name { font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-name sup { font-size: .65em; }
.top-nav { display: flex; gap: .8rem; margin-left: auto; }
.nav-item { font: 500 .8rem var(--mono); }
.paper-container { min-height: calc(100vh - 130px); padding: 32px 0 48px; }
.content-area { width: 100%; max-width: 680px; margin-inline: auto; outline: none; }
.page-meta { display: flex; justify-content: space-between; padding-bottom: 1rem; font-size: .7rem; }
#content { overflow-wrap: anywhere; }
#content h3 { margin: 2rem 0 1rem; font: 600 1.8rem/1.3 var(--mono); }
#content > p { margin: 0 0 1.2rem; }
#content h4, .experience-title { margin-bottom: .8rem; font-size: 1.1rem; font-weight: 600; }
.experience, .profile-section { margin-top: 2.5rem; }
.experience-list, .achievement-list { padding-left: 1.2rem; }
.experience-item { padding-bottom: 1rem; }
.experience-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.experience-role { font-weight: 600; }
.experience-date, .experience-location, .research-status, .post-list time { font-size: .75rem; }
#content[data-section="research"] > ul > li { margin-bottom: 1.5rem; }
#content[data-section="research"] > ul > li:last-child { margin-bottom: 0; }
.post-list p { margin: .35rem 0; }
.post-list > li { margin-bottom: 1.5rem; }
.about-ship { display: block; width: min(100%, 480px); aspect-ratio: 16 / 9; height: auto; object-fit: cover; margin-top: 2rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; font-size: .7rem; }
.site-footer sup { font-size: .5em; }
@media (max-width: 680px) {
  .site-header, .paper-container, .site-footer { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; gap: .5rem; }
  .top-nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
  .nav-item { font-size: .7rem; }
  .paper-container { padding-top: 1.5rem; }
  .experience-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer { display: none; } .paper-container { width: 100%; padding: 0; } }
