@font-face {
  font-family: Manrope;
  src: url('assets/manrope-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* The homepage and projects share these foundations; projects adds scoped styles. */
:root {
  color-scheme: light;
  --paper: #f3f3ef;
  --ink: #292d29;
  --secondary: #62675f;
  --accent: #626e52;
  --rule: #d4d7cc;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, figure { margin: 0; }
a:focus-visible, [tabindex='-1']:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #d8dece; color: #242a23; }
.page-width { width: min(1240px, calc(100% - 128px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 14px 20px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--rule); }
.site-address { display: inline-flex; min-height: 44px; align-items: center; gap: 13px; font-size: 14px; letter-spacing: -.025em; }
.page-nav { display: flex; align-items: center; gap: 32px; font-size: 12px; color: var(--secondary); }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; position: relative; transition: color .2s; }
.page-nav a[aria-current] { color: var(--ink); }
.page-nav a[aria-current]::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); position: absolute; left: -12px; }
.page-nav a:hover { color: var(--ink); }

.introduction { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 32px; padding-top: 115px; }
.intro-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 10px; line-height: 1.8; letter-spacing: .11em; text-transform: uppercase; color: var(--secondary); }
.small-mark { width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); }
h1 { width: fit-content; margin: 27px 0 30px -9px; font-size: clamp(92px, 12.2vw, 174px); font-weight: 500; line-height: 1.08; letter-spacing: -.07em; }
.identity { font-size: clamp(22px, 2.1vw, 28px); font-weight: 400; line-height: 1.7; letter-spacing: .08em; }
.intro-note { margin-top: 19px; font-size: 14px; line-height: 2.05; color: var(--secondary); letter-spacing: .035em; }
.quiet-scene { padding-top: 30px; align-self: center; justify-self: end; width: min(100%, 354px); }
.scene-orbit { position: relative; aspect-ratio: 1; padding: 13px; border: 1px solid #c4cabb; border-radius: 50%; }
.scene-orbit img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 55% 43%; filter: contrast(.92); }
.orbit-point { position: absolute; width: 8px; height: 8px; top: 14%; right: 14%; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); }
.quiet-scene figcaption { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 25px; font-size: 11px; letter-spacing: .12em; color: var(--secondary); }
.caption-line { width: 20px; height: 1px; background: #a9b19e; }
.intro-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 96px; padding-bottom: 33px; color: var(--secondary); font-size: 11px; letter-spacing: .045em; }
.read-on { min-height: 44px; display: inline-flex; align-items: center; gap: 24px; }
.read-on span { font-size: 17px; transition: transform .2s; }
.read-on:hover span { transform: translateY(3px); }

.personal-notes { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--rule); padding-block: 74px 88px; }
.section-label { display: flex; align-items: center; gap: 20px; color: var(--secondary); font-size: 10px; line-height: 1.8; letter-spacing: .06em; }
.section-label [lang='en'] { font-family: var(--mono); letter-spacing: .08em; }
.about h2 { margin-top: 29px; font-size: 28px; font-weight: 400; line-height: 1.6; letter-spacing: .065em; }
.about-copy { margin-top: 21px; font-size: 14px; line-height: 2.05; color: var(--secondary); }
.about-copy p + p { margin-top: 17px; }
.personal-line { margin-top: 32px; font-size: 13px; line-height: 2; color: var(--ink); }
.currently { width: min(100%, 354px); justify-self: end; align-self: start; padding-left: 30px; border-left: 1px solid var(--rule); }
.currently h2 { display: flex; align-items: center; gap: 11px; margin-top: 32px; font-size: 16px; font-weight: 500; line-height: 1.8; letter-spacing: .045em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.currently > p:not(.section-label) { margin-top: 19px; font-size: 13px; line-height: 2; color: var(--secondary); }
.now-aside { display: inline-flex; align-items: center; min-height: 44px; margin-top: 13px; font-size: 11px; line-height: 1.8; color: var(--secondary); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.now-aside:hover, .now-aside:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.colophon { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); padding-block: 29px 36px; }
.footer-name { display: flex; align-items: baseline; gap: 18px; font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
.footer-name span, .copyright { font-size: 10px; font-weight: 400; letter-spacing: .02em; color: var(--secondary); }
.footer-name span { font-family: var(--mono); }

@media (prefers-reduced-motion: no-preference) {
  .intro-copy, .quiet-scene { animation: appear .6s ease-out both; }
  @keyframes appear { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1023px) {
  .page-width { width: calc(100% - 80px); }
  .masthead { min-height: 96px; }
  .introduction { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); padding-top: 86px; gap: 24px; }
  h1 { font-size: clamp(88px, 12.6vw, 129px); margin-left: -5px; margin-block: 24px 26px; }
  .eyebrow { font-size: 9px; letter-spacing: .03em; gap: 8px; }
  .quiet-scene { padding-top: 8px; }
  .scene-orbit { padding: 10px; }
  .intro-bottom { margin-top: 60px; padding-bottom: 25px; }
  .personal-notes { gap: 40px; padding-block: 58px 68px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .currently { padding-left: 24px; }
  .about h2 { font-size: 25px; }
  .desktop-break { display: none; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 24px; }
  .page-width { width: calc(100% - 48px); }
  .masthead { min-height: 84px; gap: 16px; }
  .site-address { gap: 9px; font-size: 12px; }
  .page-nav { gap: 20px; font-size: 12px; }
  .page-nav a[aria-current] { display: none; }
  .introduction { grid-template-columns: minmax(0, 1fr); padding-top: 55px; gap: 0; }
  .eyebrow { font-size: 8px; letter-spacing: .075em; }
  h1 { font-size: clamp(74px, 20.5vw, 128px); line-height: 1.15; margin: 20px 0 20px -4px; }
  .identity { font-size: 22px; letter-spacing: .04em; }
  .intro-note { max-width: 330px; margin-top: 15px; font-size: 14px; line-height: 2; }
  .quiet-scene { width: 69%; max-width: 260px; justify-self: center; padding-top: 0; margin-top: 46px; }
  .scene-orbit { padding: 9px; }
  .quiet-scene figcaption { margin-top: 18px; font-size: 10px; }
  .intro-bottom { margin-top: 36px; padding-bottom: 22px; font-size: 10px; }
  .read-on { gap: 13px; }
  .personal-notes { grid-template-columns: minmax(0, 1fr); gap: 43px; padding-block: 43px 49px; }
  .section-label { font-size: 9px; gap: 16px; }
  .about h2 { margin-top: 24px; font-size: 25px; }
  .about-copy { margin-top: 17px; font-size: 14px; }
  .personal-line { margin-top: 25px; font-size: 13px; }
  .currently { width: 100%; padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .currently h2 { margin-top: 23px; font-size: 16px; }
  .currently > p:not(.section-label) { margin-top: 12px; max-width: 280px; font-size: 14px; }
  .now-aside { margin-top: 5px; font-size: 12px; }
  .colophon { padding-block: 25px 30px; align-items: flex-end; }
  .footer-name { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 17px; }
  .footer-name span, .copyright { font-size: 9px; }
}
