:root {
  --bg: #0b0b0c;
  --card: #161618;
  --text: #ffffff;
  --muted: #8e8e93;
  --border: #242426;
  --accent: #D7FF00; /* Electric Neon Yellow */
  --shadow: rgba(0, 0, 0, 0.5);
}

.theme-light {
  --bg: #f9f9fb;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #636366;
  --border: #d1d1d6;
  --accent: #8ea300; /* Darker neon for accessibility on light */
  --shadow: rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.layout-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  color: var(--text);
  display: grid; place-items: center;
  box-shadow: 0 4px 10px var(--shadow);
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); scale: 1.05; }
.theme-dark .icon-sun, .theme-light .icon-moon { display: none; }

.container {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .container {
    grid-template-columns: 335px 1fr;
    align-items: start;
  }
  .profile-sidebar {
    position: sticky;
    top: 60px;
  }
}

/* Sidebar */
.header { text-align: left; }
.avatar {
  width: 110px; height: 110px;
  border-radius: 28px;
  object-fit: cover;
  margin-bottom: 24px;
  background: var(--card);
}
.name { font-size: 34px; margin: 0 0 4px; letter-spacing: -0.03em; font-weight: 700; }
.tagline { color: var(--muted); font-size: 19px; margin-bottom: 24px; font-weight: 500; }

.socials { display: flex; gap: 12px; margin-bottom: 32px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.socials a:hover { border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; fill: var(--text); }

.about-text { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Flatter Right Column Content */
.content-feed { display: flex; flex-direction: column; gap: 40px; }

.section-group {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Tight gap between title and links */
}

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
  font-weight: 700;
  padding-left: 4px;
}

/* Tactile Link Items */
.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--card);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow);
}

.link-item:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, var(--card));
  transform: scale(1.02);
}

.link-item:active { transform: scale(0.97); }

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Clean stacking of books */
}

.link-name { 
  flex: 1; 
  white-space: normal; /* Allows text to wrap to the next line */
  word-wrap: break-word; /* Ensures long words don't break the layout */
  padding-right: 12px; /* Keeps text from hitting the arrow */
  line-height: 1.3;
}

.link-meta {
  font-size: 11px;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid var(--border);
}

.arrow { color: var(--accent); font-size: 18px; transition: transform 0.2s; }
.link-item:hover .arrow { transform: translateX(3px); }

@media (max-width: 600px) {
  .layout-wrapper { padding: 32px 16px; }
  .header { text-align: center; }
  .avatar { width: 100px; height: 100px; margin-bottom: 16px; }
  .avatar, .socials { margin-left: auto; margin-right: auto; }
  .socials { justify-content: center; margin-bottom: 24px; }
  .name { font-size: 28px; line-height: 1.1; }
  .tagline { font-size: 17px; line-height: 1.3; padding: 0 10px; }
  .link-item { 
    padding: 16px; 
    flex-wrap: wrap; /* Safety net: lets arrow/meta drop if title is massive */
    gap: 8px; 
  }
  .link-meta { 
    margin-left: 0; 
    font-size: 10px; 
    padding: 2px 6px; 
  }
  .content-feed { gap: 32px; }
}

.footer {
  margin-top: 80px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}