/* Root Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --accent-color: #8b5cf6;
  --accent-hover: #7c3aed;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.2s;
  --svg-stroke: #2c2c2c;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  --border-color: #374151;
  --accent-color: #a78bfa;
  --accent-hover: #8b5cf6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --svg-stroke: #e0e0e0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav {
  background-color: rgba(26, 26, 26, 0.8);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8125rem;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.theme-toggle .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Main */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 2rem;
  overflow: visible;
}

/* Banner Section */
.banner-section {
  margin-bottom: 0;
  background: linear-gradient(135deg, #ADDAFF 0%, #89C4F4 100%);
  padding: 3rem 0;
  width: 100%;
}

[data-theme="dark"] .banner-section {
  background: #283F3E;
}

/* Page Navigation */
#page-nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-nav .container {
  padding: 0 1.5rem;
}

.page-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.page-nav-item {
  margin: 0;
  padding: 0;
}

.page-nav-link {
  display: block;
  padding: 1rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-speed);
  position: relative;
}

.page-nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-color);
}

.page-nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
  font-weight: 600;
}

.banner-card {
  background-color: #FFFFF9;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

[data-theme="dark"] .banner-card {
  background-color: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Header: Avatar + Name/Handle + Menu */
.banner-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-profile {
  flex-shrink: 0;
}

.banner-profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: all var(--transition-speed);
}

.banner-profile-image:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.banner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.banner-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--text-primary);
}

.banner-handle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Card Content: Text */
.banner-card-content {
  width: 100%;
}

.banner-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Card Actions: Buttons */
.banner-card-actions {
  width: 100%;
}

.banner-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.banner-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.banner-action:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  transform: scale(1.1);
}

.banner-action.liked {
  color: #ef4444;
}

.banner-action.liked svg {
  fill: #ef4444;
  animation: likeAnimation 0.5s ease-in-out;
}

@keyframes likeAnimation {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.banner-action:first-child:hover {
  color: #ef4444;
}

.banner-action svg {
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease;
}

.banner-menu-wrapper {
  position: relative;
}

.banner-menu {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.banner-menu:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Hide mobile menu icon by default */
.banner-action-mobile-menu {
  display: none;
}

.banner-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.banner-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.banner-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-speed);
  font-size: 0.95rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.banner-dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
}

.banner-dropdown-item-danger {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-dropdown-item-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.banner-dropdown-item-danger .material-symbols-outlined {
  font-size: 1.125rem;
}

.banner-dropdown-separator {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.banner-dropdown-section-title {
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.banner-dropdown-subitem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

.banner-dropdown-subitem .material-symbols-outlined {
  font-size: 1.125rem;
}

.banner-dropdown-contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.banner-dropdown-contact-label {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.banner-dropdown-contact-items {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.banner-dropdown-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
  text-decoration: none;
}

.banner-dropdown-contact-item:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  transform: scale(1.1);
}

.banner-dropdown-contact-item .material-symbols-outlined {
  font-size: 1.25rem;
}

/* Copy tooltip */
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease-out, tooltipFadeOut 0.3s ease-in 1.7s;
  z-index: 1000;
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.25rem solid transparent;
  border-top-color: var(--text-primary);
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes tooltipFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Thread Styles */
.thread-line {
  width: 2px;
  height: 1.5rem;
  background-color: var(--border-color);
  margin: 0 auto;
  max-width: 900px;
  margin-left: calc((100% - 900px) / 2 + 2rem + 40px);
  position: relative;
}

.banner-card-thread {
  margin-top: 0;
  display: block;
}

.banner-card-thread .banner-content {
  padding-left: calc(48px + 1.5rem);
  margin-left: 0;
}

.banner-profile-image-small {
  width: 48px;
  height: 48px;
}

@media (max-width: 768px) {
  .page-nav-menu {
    justify-content: center;
  }

  .page-nav-link {
    font-size: 0.8125rem;
  }

  .thread-line {
    margin-left: calc(50% - 1px);
    height: 1rem;
  }

  .banner-profile-image-small {
    width: 40px;
    height: 40px;
  }

  .banner-card-thread .banner-content {
    padding-left: calc(40px + 1.5rem);
  }

  .banner-section {
    padding: 2rem 0;
    margin-bottom: 0;
  }

  .banner-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .banner-card-header {
    gap: 0.75rem;
  }

  .banner-name {
    font-size: 1.125rem;
  }

  .banner-handle {
    font-size: 0.875rem;
  }

  .banner-text {
    font-size: 1rem;
  }

  .banner-actions {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .banner-action {
    padding: 0.375rem;
  }

  /* Hide dropdown menu button on mobile */
  .banner-menu-wrapper {
    display: none;
  }

  /* Show mobile menu icon on mobile */
  .banner-action-mobile-menu {
    display: flex;
  }

  /* Position dropdown relative to banner-card-actions on mobile */
  .banner-card-actions {
    position: relative;
  }

  .banner-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0.5rem;
  }
}

/* Header */
.header {
  margin-bottom: 4rem;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Profile Section */
.profile-section {
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  transition: all var(--transition-speed);
}

.profile-image:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }
}

/* Intro Section */
.intro-section {
  flex: 1;
}

.name-with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.name-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.bio:last-child {
  margin-bottom: 0;
}

.link-accent {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
  border-bottom: 1px solid transparent;
}

.link-accent:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* About Section */
.about-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.about-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

.fun-facts {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all var(--transition-speed);
}

.fun-facts:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.fun-facts-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.fun-facts-list {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.fun-facts-list li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.fun-facts-list li:last-child {
  margin-bottom: 0;
}

/* Experience Section */
.experience-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.375rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-content {
  padding-left: 1.5rem;
}

.experience-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.experience-company {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.experience-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.experience-duration {
  color: var(--text-muted);
}

.experience-separator {
  color: var(--text-muted);
}

.experience-location {
  color: var(--text-muted);
  font-style: italic;
}

.experience-roles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.role {
  padding-left: 0;
  border-left: none;
}

.role-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.role-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.role-duration {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.role-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.role-skills {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-style: italic;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.875rem;
  }

  .timeline-content {
    padding-left: 1rem;
  }

  .experience-header {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .experience-company {
    font-size: 1.125rem;
  }

  .role-header {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
}

/* What I'm Building Section */
.building-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.view-all-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.view-all-link:hover {
  color: var(--accent-hover);
}

.section-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all var(--transition-speed);
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.update-header {
  margin-bottom: 0.75rem;
}

.update-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.update-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.update-content {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.update-list-items {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.update-list-items li {
  margin-bottom: 0.75rem;
}

.update-list-items li:last-child {
  margin-bottom: 1rem;
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.update-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
}

.update-tag:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Articles Section */
.articles-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all var(--transition-speed);
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.article-external {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

.article-external .material-symbols-outlined {
  font-size: 1rem;
}

/* Reading Section */
.reading-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.reading-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reading-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all var(--transition-speed);
}

.reading-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.reading-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--accent-color);
}

.reading-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.reading-content {
  flex: 1;
}

.reading-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.reading-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}

.reading-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Connect Section */
.connect-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.connect-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.connect-content {
  max-width: 480px;
}

.connect-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.connect-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.connect-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.connect-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.connect-btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.connect-btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.connect-btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.connect-btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .reading-section {
    margin-bottom: 3rem;
  }

  .reading-card {
    padding: 1rem;
  }

  .connect-section {
    margin-bottom: 3rem;
  }

  .connect-card {
    padding: 1.5rem;
  }

  .connect-heading {
    font-size: 1.25rem;
  }

  .connect-actions {
    flex-direction: column;
    width: 100%;
  }

  .connect-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed);
}

.footer-link:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.footer-link .material-symbols-outlined {
  font-size: 1.25rem;
}

.footer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .name-logo {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.375rem;
  }

  .name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .bio {
    font-size: 0.9375rem;
  }

  .section-heading {
    font-size: 1.25rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .theme-toggle .material-symbols-outlined {
    font-size: 1.25rem;
  }
  
  .header {
    margin-bottom: 3rem;
  }

  .about-section {
    margin-bottom: 3rem;
  }

  .building-section {
    margin-bottom: 3rem;
  }

  .articles-section {
    margin-bottom: 3rem;
  }

  .update-card,
  .article-card {
    padding: 1.5rem;
  }

  .update-title,
  .article-title {
    font-size: 1.125rem;
  }
}

/* Article Content Styles */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-title-large {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.article-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-body a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: all var(--transition-speed);
}

.article-body a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.back-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-speed);
}

.back-link:hover {
  color: var(--accent-hover);
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .article-title-large {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
  }

  .article-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .article-body p {
    margin-bottom: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .theme-toggle {
    display: none;
  }

  .update-card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }

  .link-accent {
    color: #000;
    text-decoration: underline;
  }

  .footer-link {
    border: 1px solid #000;
  }
}
