:root {
  --bg: #050608;
  --fg: #f5f5f5;
  --muted: #b0b0b0;
  --accent: #ffd54a;
}

:root.light {
  --bg: #f7f7f7;
  --fg: #000000;
  --muted: #000000;
  --accent: #000000;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  background-color: var(--bg);
  color: var(--fg);
}

.mode-toggle {
  position: relative;
  top: 1.5rem;
  left: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  padding: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f5c97b;
  box-shadow: 0 0 20px rgba(245, 201, 123, 0.4);
  background: radial-gradient(circle at 30% 20%, #ffe0b2, #b39ddb);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 1rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.links a:hover {
  border-color: var(--accent);
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-description {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
}

.meta {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.post-date {
  font-style: italic;
}

.section-label {
  display: inline-block;
  margin: 1.5rem 0 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  background-color: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.highlights a {
  color: var(--accent);
  text-decoration: none;
}

.highlights a:hover {
  text-decoration: underline;
}

.highlights li::before {
  content: "↪";
  margin-right: 0.4rem;
  color: var(--accent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-left: 1px solid var(--muted);
}

.timeline-item {
  padding: 0.6rem 0 0.6rem 1.2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  position: absolute;
  left: -4px;
  top: 1.1rem;
}

.timeline-year {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-title {
  margin: 0.15rem 0 0.15rem;
}

.timeline-detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.gallery-grid {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-item {
  width: min(200px, 100%);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #222;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.project-image {
  width: 560px;
  height: 110px;
  border-radius: 4px;
  background-color: #111;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid #222;
}

.project-content-title {
  margin: 0 0 0.3rem;
}

.project-content-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .avatar-wrapper {
    width: 110px;
    height: 110px;
  }

  .links {
    gap: 1rem;
  }
}

