:root {
  --bg: #fafbfc;
  --fg: #1f2328;
  --muted: #606770;
  --link: #0969da;
  --card: #ffffff;
  --border: #e6e8eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #c9d1d9;
    --muted: #8b949e;
    --link: #58a6ff;
    --card: #161b22;
    --border: #30363d;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

aside {
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--card);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

main {
  padding: 2rem;
  max-width: 900px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Sidebar */
.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 1px solid var(--border);
}

.name {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0.25rem 0;
}

.tagline {
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
  margin: 0 0 1rem 0;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.links a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.links a:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

nav {
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
}

nav a:hover {
  color: var(--fg);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.spacer {
  height: 1rem;
}

/* Main */
h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem 0;
}

ul {
  padding-left: 1.1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 920px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  aside {
    position: relative;
    height: auto;
    top: auto;
  }
}

.icon {
  width: 15px;
  height: 15px;
  vertical-align: text-bottom;
  margin-right: 4px;
  fill: currentColor;
}

.small a {
  text-decoration: none;
  margin: 0 4px;
}

.small a:hover .icon {
  opacity: 0.8;
  transform: scale(1.1);
  transition: transform 0.2s, opacity 0.2s;
}

.icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: text-bottom;
  border-radius: 3px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-img:hover {
  opacity: 1;
  transform: scale(1.1);
}
