:root {
  --bg: #e9e0cf;
  --card: #ffffff;
  --ink: #201e19;
  --muted: #706a5c;
  --line: #e6ddca;
  --accent: #cf7f2e;
  --ring1: #f6d9b0;
  --ring2: #e7a86a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 44px -30px rgba(0,0,0,.22);
}

/* left profile */
.profile {
  position: sticky;
  top: 56px;
  padding: 34px 30px;
  text-align: center;
}
.avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--ring1), var(--ring2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.tagline {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}
.lead { margin: 0; font-size: 15px; }
.lead .soft { color: var(--muted); }

.links { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

.about { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-label {
  font-family: "Newsreader", Georgia, serif;
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.about p { margin: 0; color: var(--muted); font-style: italic; font-size: 14px; }

/* right content */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 22px;
  transition: background .15s, color .15s, border-color .15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.panel { display: grid; gap: 16px; }
.panel[hidden] { display: none; }
.post { padding: 26px 28px; }
.post h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 4px;
}
.post .date { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.post p { margin: 0; }
.empty { padding: 40px 28px; text-align: center; color: var(--muted); font-style: italic; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 26px; padding: 32px 18px; }
  .profile { position: static; }
}
