/* Visual match for jesse.xyz: Inter, black on white, sidebar + centered column */

:root {
  color-scheme: light;
  --text: #000;
  --bg: #fff;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .shell {
    flex-direction: row;
    padding: 48px 16px;
  }
}

/* Left column — name + nav (matches aside on jesse.xyz) */

.sidebar {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .sidebar {
    width: 192px;
    margin-bottom: 0;
    padding-right: 32px;
  }
}

.name {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.sidebar-nav {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  margin-top: -8px;
}

@media (min-width: 768px) {
  .sidebar-nav {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
}

.nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 4px 0;
    font-size: 16px;
    line-height: 24px;
  }
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

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

.nav-link--current {
  font-weight: 700;
}

/* Main — centered avatar + prose */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.avatar-wrap {
  margin-bottom: 48px;
}

.avatar {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 672px;
}

.content p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
}

.inline-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Anchor sections (writings, technical writeups, OSS) */

.writings {
  width: 100%;
  max-width: 672px;
  margin-top: 48px;
}

.main > .writings ~ .writings {
  margin-top: 32px;
}

.writings-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.writings-copy {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
