/* =========================
   AboutMe - Cleaned & Refined
========================= */

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: rgba(0, 0, 0, 0.10);
  --soft: rgba(0, 0, 0, 0.04);
  --card: #ffffff;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================
   Links
========================= */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Layout
========================= */

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.page {
  padding: 54px 0 0;
}

/* =========================
   Header / Nav
========================= */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* =========================
   Buttons
========================= */

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--soft);
}

/* =========================
   Hero
========================= */

.top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 18px 0 26px;
}

h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
  font-size: 18px;
}

/* =========================
   Contact (Right side)
========================= */

.top-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.meta-link:hover {
  background: var(--soft);
  color: var(--text);
}

.meta-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--soft);
}

.icon-btn img {
  width: 14px;
  height: 14px;
  filter: brightness(0);
}

/* =========================
   Sections
========================= */

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* =========================
   Text / Lists
========================= */

.prose p {
  margin-bottom: 14px;
}

ul {
  margin-left: 18px;
}

li {
  margin-bottom: 8px;
}

/* =========================
   Roles (KEY AREA)
========================= */

.role {
  margin-bottom: 26px;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.role-title strong {
  font-weight: 600;
}

.role-dates {
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   Details (Earlier roles)
========================= */

.details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 46px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  gap: 10px;
}

.dot {
  opacity: 0.3;
}

/* =========================
   Responsive
========================= */

@media (max-width: 860px) {
  .top {
    grid-template-columns: 1fr;
  }

  .top-right {
    align-items: flex-start;
  }

  h1 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    margin-top: 6px;
  }
}