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

:root {
  --bg: #ffffff;
  --text: #2c2a26;
  --muted: #7a7570;
  --accent: #3d6b8e;
  --border: #e8e4dd;
}

html { font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 40px 24px 40px 100px;
}

.layout {
  display: flex;
  gap: 0;
  max-width: 100%;
  width: 100%;
  align-items: flex-start;
}

/* Sidebar — narrow fixed-width column, centered content */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  flex-grow: 0;
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: calc(100vh - 120px);
  padding: 0 16px;
}

/* Main — fills remaining space */
.main {
  flex: 1;
  min-width: 0;
  padding-left: 32px;
}

.avatar-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 160px;
  margin-top: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: #fff;
  border-color: var(--border);
}

.social-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.email-info {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  white-space: nowrap;
}

.copyable {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.copyable:hover {
  color: var(--accent);
}

.copyable.copied::after {
  content: 'Copied!';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.divider-v {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin-top: 4px;
}

/* Main content */

.section {
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.placeholder-block {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.placeholder-block strong {
  display: block;
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 4px;
}

/* Experience */
.experience-item {
  padding: 12px 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.exp-role {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.exp-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.exp-org {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Resources link */
.resource-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.resource-link:hover {
  background: #f5f3f0;
  border-color: var(--accent);
}

/* Resources page */
.page-header {
  max-width: 720px;
  margin: 0 auto 40px;
  padding-top: 20px;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.page-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.resources-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Resource sections */
.res-section {
  margin-bottom: 36px;
}

.res-list {
  list-style: none;
  padding: 0;
}

.res-item {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 8px 0;
}

.res-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.res-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 680px) {
  .layout { flex-direction: column; align-items: center; }
  .sidebar { position: static; width: 100%; max-width: 300px; }
  .divider-v { display: none; }
}
