:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #4e5562;
  --line: #ececf0;
  --accent: #1c2431;
  --max-width: 730px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.top-nav {
  border-bottom: 1px solid #f1f1f4;
  background: transparent;
}

.nav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.nav-links a {
  text-decoration: none;
  color: #252936;
}

main {
  padding: 1.8rem 0 2.6rem;
}

section {
  margin-top: 2rem;
}

section h2 {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.hero {
  margin-top: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 1.15rem;
  align-items: start;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

h1 {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 2.9vw, 2.15rem);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.lead {
  font-size: 0.98rem;
  color: #1f2430;
  max-width: 62ch;
  margin: 0.35rem 0 0;
}

.meta-row {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: #1d2433;
  font-weight: 500;
  font-size: 0.95rem;
}

.text-link:hover {
  color: #2e374a;
}

.project-list {
  margin-top: 0.5rem;
}

.project-item {
  padding: 0.7rem 0 0.85rem;
}

.project-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.project-item p {
  margin: 0.2rem 0 0;
  color: #2a2f3c;
  font-size: 0.92rem;
}

.link-row {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.link-row a {
  font-size: 0.89rem;
}

.writing-box {
  padding: 0;
}

.contact-line {
  margin-top: 0.2rem;
  color: #2b3040;
  font-size: 0.95rem;
}

.embed-frame {
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.footer {
  padding: 1.4rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 1.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: 0.86rem;
}

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

@media (max-width: 640px) {
  .nav-inner {
    min-height: 52px;
  }

  .nav-links {
    gap: 0.55rem;
    font-size: 0.84rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

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