:root {
  color-scheme: light;
  --page: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --line: #e4e4e1;
  --link: #1a3d7c;
  --serif: "Source Serif 4", "CMU Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a {
  color: var(--link);
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.bar-inner,
.layout {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 20px;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.bar nav {
  display: flex;
  gap: 4px;
}

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile {
  position: sticky;
  top: 24px;
  padding: 28px 24px 20px;
  text-align: center;
}

.profile img {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.profile h1 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile .count {
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

.profile .count strong {
  display: block;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.2;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.links li:last-child a {
  border-bottom: 0;
}

.links a span {
  color: var(--muted);
  font-size: .85rem;
}

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

.posts {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post {
  padding: 24px 28px;
}

.post h2 {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 1.22rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.post h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post h2 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.post p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #3a3a3a;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.post .more {
  display: inline-flex;
  font-weight: 500;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .bar-inner,
  .layout {
    padding: 0 16px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .profile {
    position: static;
  }

  .post {
    padding: 20px;
  }

  .post h2 {
    font-size: 1.15rem;
    white-space: normal;
  }
}
