:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f6;
  --line: #dde2e8;
  --text: #16181d;
  --muted: #667085;
  --accent: #2457a6;
  --accent-soft: rgba(36, 87, 166, 0.08);
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.96);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.social-links a,
.contact-links a,
.project-meta a {
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.social-links a:hover,
.contact-links a:hover,
.project-meta a:hover,
.brand:hover {
  color: var(--accent);
}

.page-shell {
  padding: 3.25rem 0 4rem;
}

.home-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 3rem;
}

.avatar-wrap {
  margin-bottom: 1.5rem;
}

.avatar {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.home-about h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.role {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tagline,
.intro,
.section-heading p,
.project-card p,
.project-meta span,
.site-footer {
  color: var(--muted);
}

.tagline {
  max-width: 30rem;
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--text);
}

.intro {
  max-width: 38rem;
  margin: 1rem 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.social-icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
}

.icon,
.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-links a:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.section-block {
  padding-top: 1rem;
}

.section-block + .section-block {
  margin-top: 2.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0.45rem 0 0;
}

.section-link {
  margin: 1rem 0 0;
}

.section-link a,
.post-link,
.post-eyebrow a {
  color: var(--accent);
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rss-icon {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
}

.link-separator {
  color: var(--muted);
  margin: 0 0.3rem;
}

.section-link a:hover,
.post-link:hover,
.post-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.project-main {
  max-width: 42rem;
}

.project-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.project-card p {
  margin: 0;
}

.project-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.project-actions a {
  color: var(--accent);
}

.project-actions a::after {
  content: " ->";
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--muted);
}

.contact-links a {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.interior-shell {
  padding-top: 2.5rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.page-intro > p,
.post-header p,
.post-date {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.post-article {
  max-width: 720px;
}

.post-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.post-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.post-content {
  padding-top: 1.5rem;
}

.post-content p,
.post-content ul {
  margin: 0 0 1rem;
}

.post-content li + li {
  margin-top: 0.4rem;
}

.post-content code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

@media (max-width: 700px) {
  .header-inner,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .contact-links {
    gap: 0.8rem;
  }

  .page-shell {
    padding-top: 2rem;
  }

  .home-about {
    padding-bottom: 2.25rem;
  }
}
