:root {
  --personal-text: #171717;
  --personal-muted: #6b7280;
  --personal-border: #e5e7eb;
  --personal-soft: #f7f7f5;
  --personal-accent: #111827;
}

.personal-home,
.personal-page {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--personal-text);
}

.personal-home {
  padding: 2rem 1.25rem 4rem;
}

.personal-page {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 4rem;
  align-items: center;
  padding: 2.5rem 0 2.25rem;
}

.hero h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 750;
}

.hero-lead,
.hero-bio {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4b5563;
}

.hero-lead {
  margin-bottom: 0.75rem;
}

.hero-bio {
  margin-top: 0;
}

.hero-bio p {
  margin: 0.45rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--personal-muted);
}

.hero-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--personal-border);
}

.simple-section {
  padding: 2.6rem 0;
  border-top: 1px solid var(--personal-border);
}

.simple-section > h2 {
  margin: 0 0 1.6rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.experience-list {
  display: grid;
  gap: 0;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--personal-border);
}

.experience-item:first-child {
  padding-top: 0;
}

.experience-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.experience-meta strong {
  font-size: 0.98rem;
}

.experience-meta span {
  color: var(--personal-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.experience-detail h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.experience-detail p {
  margin: 0;
  line-height: 1.65;
  color: #4b5563;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--personal-border);
  text-decoration: none !important;
  color: var(--personal-text) !important;
}

.post-title {
  font-weight: 650;
}

.post-date {
  color: var(--personal-muted);
  font-variant-numeric: tabular-nums;
}

.simple-section-link {
  margin: 1.2rem 0 0;
}

.simple-section-link a {
  font-weight: 650;
  text-decoration: none;
}

.personal-page h2 {
  margin-top: 2.7rem;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.writing-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
  color: var(--personal-text);
}

.writing-page h1 {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
}

.legacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 6rem;
  color: var(--personal-text);
}

.legacy-back {
  margin: 0 0 2.5rem;
}

.legacy-back a {
  text-decoration: none;
  font-weight: 650;
}

.legacy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--personal-border);
}

.legacy-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legacy-date {
  margin: 0;
  color: var(--personal-muted);
  font-size: 0.92rem;
}

.legacy-content {
  font-size: 1.02rem;
  line-height: 1.8;
}

.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.legacy-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8rem auto;
}

.legacy-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--personal-border);
  color: #4b5563;
}

.legacy-content pre {
  overflow-x: auto;
}

@media (max-width: 760px) {
  .personal-home {
    padding-top: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0 2rem;
  }

  .hero-avatar {
    grid-row: 1;
    width: 110px;
    height: 110px;
  }

  .simple-section {
    padding: 2.3rem 0;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .writing-page,
  .legacy-page {
    padding-top: 2.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --personal-text: #f5f5f5;
    --personal-muted: #9ca3af;
    --personal-border: #30343b;
    --personal-soft: #20242a;
    --personal-accent: #f3f4f6;
  }

  .hero-lead,
  .hero-bio,
  .experience-detail p,
  .legacy-content blockquote {
    color: #c7cbd1;
  }
}
