@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --text: #4f6371;
  --ink: #000;
  --link: #004a6c;
  --bar: #000;
  --bar-text: #fff;
  --bar-muted: #8a959d;
  --placeholder: #dfe3e6;
  --font: "Lato", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Verdana, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--bar); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 48px; }
.brand {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: var(--bar-text);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; flex: none; }
.nav a { color: var(--bar-text); }
.lang { display: flex; align-items: center; gap: 2px; flex: none; color: var(--bar-muted); font-size: 14px; }
.lang button {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--bar-muted);
  font: inherit;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--bar-text); }

.profile { display: flex; align-items: center; justify-content: center; gap: 64px; padding: 56px 0 40px; }
.photo { flex: none; width: 200px; height: 200px; overflow: hidden; border-radius: 50%; background: var(--placeholder); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile h1 { margin: 0 0 16px; color: var(--ink); font-size: 40px; font-weight: 400; line-height: 48px; }
.titles { margin-bottom: 16px; font-size: 18px; line-height: 27px; }
.titles p { margin: 0; }
.email { margin: 0 0 12px; font-size: 14px; font-style: italic; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.links a { display: inline-flex; align-items: center; gap: 6px; }
.links svg { flex: none; width: 16px; height: 16px; }

.section { max-width: 800px; margin: 0 auto; padding: 16px 0; scroll-margin-top: 64px; }
.section h2 { margin: 0 0 16px; font-size: 32px; font-weight: 300; line-height: 38px; }
.section h3 { margin: 24px 0 12px; font-size: 20px; font-weight: 700; line-height: 28px; }
.section p { margin: 0 0 16px; }

.entry { margin-bottom: 16px; }
.entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.entry-head strong { font-weight: 700; }
.entry-head time { flex: none; font-size: 14px; }
.entry ul { margin: 4px 0 0; padding-left: 20px; }

.skills { margin: 0; }
.skills div { display: flex; gap: 16px; margin-bottom: 4px; }
.skills dt { flex: none; width: 96px; font-weight: 700; }
.skills dd { margin: 0; }

.work { display: flex; gap: 24px; margin-bottom: 24px; }
.work-thumb { flex: none; width: 190px; }
.work-thumb img { display: block; width: 100%; height: auto; }
.work-body strong { display: block; font-weight: 700; }
.work-body p { margin: 0; }

.footer { padding: 40px 16px 48px; font-size: 14px; text-align: center; }
.noscript { text-align: center; }

@media (max-width: 767px) {
  .topbar-inner { gap: 12px; }
  .brand { font-size: 18px; }
  .nav { gap: 12px; font-size: 14px; }
  .profile { flex-direction: column; gap: 24px; padding: 32px 0 24px; text-align: center; }
  .photo { width: 160px; height: 160px; }
  .links { justify-content: center; }
  .section h2 { font-size: 28px; line-height: 34px; }
  .entry-head { flex-direction: column; gap: 0; }
  .work { flex-direction: column; gap: 12px; }
  .work-thumb { width: 100%; max-width: 360px; }
  .work-thumb:empty { display: none; }
}
