:root {
  --bg: #ffffff;
  --text: #414141;
  --strong: #373737;
  --muted: #7f8899;
  --link: #165dff;
  --page-width: 930px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #dce7ff;
  color: #222;
}

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

a:hover { text-decoration: underline; }

.page {
  width: min(calc(100% - 96px), var(--page-width));
  margin: 0 0 72px 64px;
  padding-top: 18px;
}

.intro-block { margin-bottom: 54px; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  color: var(--strong);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.role {
  margin-top: 1px;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.065em;
}

.tagline {
  max-width: 900px;
  margin: 28px 0 18px;
  font-size: 18px;
  line-height: 1.5;
}

.inline-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 18px;
}

.inline-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bracket-link::before { content: "["; color: var(--muted); }
.bracket-link::after { content: "]"; color: var(--muted); }

.portrait-wrap { margin-top: 24px; }

.portrait {
  display: block;
  width: 236px;
  height: 236px;
  object-fit: cover;
  border-radius: 7px;
}

.portrait-placeholder {
  width: 236px;
  height: 236px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f2f0ea;
  color: #a39e93;
  font-size: 15px;
  letter-spacing: 0.04em;
  user-select: none;
}

.content-section { margin-top: 38px; }
.content-section + .content-section { margin-top: 30px; }

h2 {
  margin-bottom: 12px;
  color: var(--strong);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.prose { max-width: 920px; }
.prose p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.52;
}
.prose p:last-child { margin-bottom: 0; }

.entry-list { display: grid; gap: 18px; }
.entry { max-width: 920px; }

.entry-period {
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.045em;
}

.entry-title {
  margin: 0;
  color: var(--strong);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 800;
}

.entry-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.entry-description {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.entry-bullets {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
}

.entry-bullets li {
  position: relative;
  margin: 1px 0;
  padding-left: 21px;
  font-size: 17px;
  line-height: 1.5;
}

.entry-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.project-link { color: var(--strong); }
.project-link:hover { color: var(--link); }

.skills {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.compact-section { margin-top: 28px !important; }

.footer-links { margin-top: -2px; }

footer {
  margin-top: 42px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
    line-height: 1.48;
  }

  .page {
    width: min(calc(100% - 34px), var(--page-width));
    margin: 0 0 48px 17px;
    padding-top: 16px;
  }

  .intro-block { margin-bottom: 42px; }

  h1 { font-size: 27px; }
  .role { font-size: 14px; letter-spacing: .045em; }
  .tagline { margin: 24px 0 15px; font-size: 15px; }
  .inline-links { gap: 7px; font-size: 15px; }
  .inline-links > div { gap: 7px; }

  .portrait-wrap { margin-top: 20px; }
  .portrait,
  .portrait-placeholder {
    width: 190px;
    height: 190px;
  }

  .content-section { margin-top: 32px; }
  .content-section + .content-section { margin-top: 26px; }

  h2 { margin-bottom: 10px; font-size: 25px; }
  .prose p { margin-bottom: 13px; font-size: 15px; }
  .entry-list { gap: 16px; }
  .entry-period,
  .entry-subtitle,
  .entry-description,
  .entry-bullets li,
  .skills { font-size: 14px; }
  .entry-title { font-size: 15px; }
  .entry-bullets li { padding-left: 18px; }

  footer { margin-top: 34px; }
}
.entry-note {
  margin-top: 0.35rem;
  font-size: 0.82em;
  line-height: 1.45;
  color: #8a919e;
}