:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #181818;
  --text-muted: #6b6b6b;
  --divider: #eeeeee;
  --search-bg: #f2f2f2;
  --badge-green: #1a8917;
  --accent-yellow: #f0b400;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  z-index: 10;
}

.site-header__inner {
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.wordmark {
  font-family: "Georgia", "Times New Roman", "Playfair Display", serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--search-bg);
  border-radius: 999px;
  padding: 10px 18px;
  width: 240px;
  color: var(--text-muted);
}

.search__icon { color: var(--text-muted); flex: 0 0 auto; }

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  width: 100%;
}

.search input::placeholder { color: var(--text-muted); }

/* ---------- Main content ---------- */
.content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Profile ---------- */
.profile {
  padding-top: 96px;
  padding-bottom: 56px;
}

.profile__name {
  margin: 0;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1.15;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
}

.tab--active {
  color: var(--text);
}

.tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--text);
}

.badge {
  display: inline-block;
  background: var(--badge-green);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

/* ---------- Posts ---------- */
.posts {
  margin-top: 48px;
}

.post-card {
  padding: 0 0 48px 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--divider);
}

.post-card:last-child { border-bottom: 0; }

.post-card__pinned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-card__pub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pub-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #242424;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pub-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.post-card__content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.post-card__text {
  flex: 1 1 auto;
  min-width: 0;
}

.post-card__title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.post-card__excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.post-card__thumb {
  flex: 0 0 auto;
  width: 160px;
}

.post-card__thumb img {
  display: block;
  width: 160px;
  height: 110px;
  object-fit: cover;
  background: #ddd;
}

/* ---------- Meta row ---------- */
.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card__meta-left {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.meta-date { font-size: 13px; }

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.icon { color: var(--text-muted); }
.icon--star { color: var(--accent-yellow); }

.icon-btn {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ---------- About / Text bubble ---------- */
.about {
  margin-top: 48px;
  margin-bottom: 64px;
  display: flex;
  justify-content: flex-start;
}

.bubble {
  position: relative;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 32px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-left: 1px solid var(--divider);
  border-top: 1px solid var(--divider);
  transform: rotate(45deg);
}

.bubble__greeting {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
}

.bubble__list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.bubble__list li {
  margin: 0 0 10px 0;
}

.bubble__list li:last-child {
  margin-bottom: 0;
}

.bubble__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
}

.bubble__links a {
  color: var(--badge-green);
  text-decoration: none;
  font-weight: 500;
}

.bubble__links a:hover {
  text-decoration: underline;
}
