:root {
  --bg: #f7f4ea;
  --text: #1f1b16;
  --muted: #6d665c;
  --link: #0645ad;
  --visited: #5a3596;
  --line: #e9dfca;
  --selection: #fff0a8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(82, 76, 64, 0.095) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.5) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 46% 74%, rgba(82, 76, 64, 0.065) 0 0.9px, transparent 1.8px),
    linear-gradient(90deg, rgba(82, 76, 64, 0.045), transparent 18%, rgba(255, 255, 255, 0.3) 48%, rgba(82, 76, 64, 0.034) 72%, transparent),
    var(--bg);
  background-size: 18px 18px, 23px 23px, 31px 31px, 100% 100%, auto;
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

main {
  width: min(620px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: #002f7a;
  outline: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.page-header p {
  margin-bottom: 0;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-link {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  color: var(--muted);
  text-decoration: none;
}

.icon-link:visited {
  color: var(--muted);
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: rgba(6, 69, 173, 0.35);
  background: rgba(255, 255, 255, 0.56);
  color: var(--link);
}

.icon-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-link[aria-label="GitHub"] svg,
.icon-link[aria-label="Twitter"] svg,
.icon-link[aria-label="LinkedIn"] svg {
  fill: currentColor;
  stroke: none;
}

.avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8df;
  object-fit: cover;
}

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

h1 {
  margin-bottom: 4px;
  font-size: 1.58rem;
  font-weight: 700;
  line-height: 1.05;
}

.subtitle {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.greeting {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

h2 {
  margin-bottom: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin-bottom: 15px;
}

.intro {
  margin-bottom: 34px;
}

.timeline-section {
  margin-top: 28px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  opacity: 0.8;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 920px);
  margin-inline: auto;
  column-gap: 10px;
  margin: 0;
  padding: 22px 0 6px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 3%;
  right: -3%;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(6, 69, 173, 0.2), rgba(6, 69, 173, 0.45), rgba(6, 69, 173, 0));
}

.timeline-item {
  position: relative;
  min-width: 0;
  padding: 0 4px 0 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(6, 69, 173, 0.58);
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.46);
}

.timeline-item h3 {
  margin: 64px 0 8px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.timeline-year {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.timeline-item p {
  max-width: 14ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.timeline-item--now::before {
  background: #0645ad;
  border-color: rgba(6, 69, 173, 0.9);
  animation: nowPulse 1.8s ease-in-out infinite;
}

@keyframes nowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(6, 69, 173, 0.12),
      0 0 12px rgba(6, 69, 173, 0.28),
      0 0 22px rgba(6, 69, 173, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(6, 69, 173, 0.18),
      0 0 18px rgba(6, 69, 173, 0.5),
      0 0 34px rgba(6, 69, 173, 0.28);
  }
}

.list-section {
  margin-top: 28px;
}

.section-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.theme-filter {
  display: grid;
  gap: 10px;
  margin: 22px 0 8px;
}

.theme-filter h2 {
  margin-bottom: 0;
}

.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.theme-pill:hover,
.theme-pill:focus-visible,
.theme-pill.is-active {
  border-color: rgba(6, 69, 173, 0.35);
  color: var(--link);
  outline: none;
}

.link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.25rem;
}

.link-list li {
  padding-left: 2px;
}

.link-list a {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.link-list span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.link-list span::before {
  content: "";
}

.post header {
  margin-bottom: 26px;
}

.post-meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.post h2 {
  margin-top: 30px;
}

.post pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

.post code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.search-box {
  display: grid;
  gap: 7px;
  max-width: 420px;
  margin-top: 22px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.search-box input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font: inherit;
}

.search-box input:focus {
  border-color: rgba(6, 69, 173, 0.35);
  outline: none;
}

@media (max-width: 840px) {
  .section-head,
  .profile {
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    padding-top: 6px;
  }

  .timeline::before {
    top: 14px;
    bottom: 14px;
    left: 6px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline-item {
    padding-left: 28px;
  }

  .timeline-item::before {
    top: 2px;
    left: 0;
    transform: none;
  }

  .timeline-item h3 {
    margin-top: 6px;
  }

  .timeline-item p {
    max-width: none;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 16px;
  }

  main {
    width: min(100% - 30px, 620px);
    margin-inline: auto;
    padding-top: 24px;
  }

  .profile {
    align-items: center;
    gap: 13px;
    margin-bottom: 36px;
  }

  .page-header {
    display: block;
    margin-bottom: 36px;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  nav {
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
  }
}
