@font-face {
  font-family: 'JetBrainsNerd';
  src: url('fonts/JetBrainsMonoNerdFontMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #e7e2cf;
  --fg:     #2c2a24;
  --muted:  #9a967f;
  --dim:    #d1ccb6;
  --accent: #5a5542;
  --font: 'JetBrainsNerd', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 28px 100px;
}

/* cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  opacity: 0;
  animation: fade-up 0.5s ease 0.05s forwards;
}

.prompt {
  font-size: 11px;
  color: var(--muted);
}

.prompt .at { color: var(--accent); }

.socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  color: var(--muted);
  font-size: 20px;
  border: 0.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.soc:hover {
  color: var(--accent);
  border-color: var(--dim);
}

/* header */
.header { margin-bottom: 56px; }

.name {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--fg);
  margin-bottom: 18px;
  opacity: 0;
  animation: fade-up 0.5s ease 0.15s forwards;
}

.bio {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.9;
  opacity: 0;
  animation: fade-up 0.5s ease 0.25s forwards;
}

.rmj {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.9;
  opacity: 0;
  animation: fade-up 0.5s ease 0.25s forwards;
}

.rmj:hover {
  color: var(--accent);
}

/* divider */
.divider {
  border: none;
  border-top: 0.5px solid var(--dim);
  margin: 36px 0px;
  opacity: 0;
  animation: fade-up 0.4s ease 0.3s forwards;
}

/* sections */
.section {
  margin-bottom: 44px;
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
}

.s1 { animation-delay: 0.35s; }
.s2 { animation-delay: 0.45s; }
.s3 { animation-delay: 0.55s; }

.section-head {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head span {
  color: var(--accent);
  font-size: 12px;
}

/* focus */
.focus-line {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding: 10px 14px;
}

.focus-line strong {
  color: var(--fg);
  font-weight: 500;
}

/* stack */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 4px 12px;
  border: 0.5px solid var(--dim);
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s;
  cursor: default;
}

.chip span {
  font-size: 13px;
  color: var(--accent);
}

.chip.dim span { color: var(--muted); }
.chip.dim { color: var(--muted); }
.chip:hover { border-color: var(--accent); }

.badge {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* projects */
.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--dim);
  text-decoration: none;
  color: inherit;
  gap: 12px;
  position: relative;
}

.project:last-child {
  border-bottom: 0px;
}

/* .project::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  opacity: 0.06;
  transition: width 0.25s ease;
  z-index: 0;
}

.project:hover::before { width: 100%; } */
.project:first-child { border-top: 0.5px solid var(--dim); }

.proj-left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.proj-icon {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.project:hover .proj-icon { color: var(--accent); }

.proj-name {
  font-size: 12px;
  color: var(--fg);
  font-weight: 500;
}

.proj-desc {
  font-size: 11px;
  color: var(--muted);
}

.proj-arrow {
  font-size: 11px;
  margin-right: 1px;
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.project:hover .proj-arrow {
  color: var(--accent);
}

/* footer */
.footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 0.5px solid var(--dim);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  animation: fade-up 0.5s ease 0.7s forwards;
}

::selection {
  background-color: var(--muted);
  color: var(--fg);            
}

/* scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fg);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

/* animation */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .page { padding: 48px 20px 72px; }
}

/* personal/style.css — timeline page */

.back {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back:hover { color: var(--accent); }

/* timeline container */
.timeline {
  position: relative;
  padding-left: 28px;
  opacity: 0;
  animation: fade-up 0.5s ease 0.35s forwards;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 0.5px;
  background: var(--dim);
}

/* year marker */
.tl-year {
  position: relative;
  margin: 36px 0 20px;
}

.tl-year:first-child {
  margin-top: 0;
}

.tl-year::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 0.5px;
  background: var(--dim);
}

.tl-year span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* entry */
.tl-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--dim);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tl-entry:last-child {
  border-bottom: none;
}

.tl-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* diamond */
.tl-dot {
  position: absolute;
  left: -31px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--muted);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.tl-entry:hover .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.tl-dot-now {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent);
}

/* content */
.tl-content {
  flex: 1;
  min-width: 0;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tl-date {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* badges */
.tl-badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 0.5px solid var(--dim);
  color: var(--muted);
}

.badge-milestone {
  color: var(--accent);
  border-color: var(--accent);
}

.badge-project {
  color: var(--fg);
  border-color: var(--fg);
}

.badge-learning {
  color: var(--muted);
  border-color: var(--muted);
}

.badge-note {
  color: var(--muted);
  border-color: var(--muted);
}

.badge-now {
  color: var(--accent);
  border-color: var(--accent);
}

/* title & desc */
.tl-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.tl-entry:hover .tl-title {
  color: var(--accent);
}

.tl-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

/* now entry */
.tl-now .tl-title {
  color: var(--muted);
  font-style: italic;
}

/* filter bar */
.tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.5s ease 0.3s forwards;
}

.tl-filter {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 0.5px solid var(--dim);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tl-filter:hover {
  color: var(--fg);
  border-color: var(--muted);
}

.tl-filter.active {
  color: var(--fg);
  border-color: var(--accent);
  background: transparent;
}

.tl-highlights {
  color: var(--accent);
}

@media (max-width: 480px) {
  .timeline { padding-left: 20px; }
  .tl-dot   { left: -23px; }
  .tl-year::before { left: -24px; }
}