:root {
  --color-zinc-50: rgb(250 250 250);
  --color-zinc-100: rgb(244 244 245);
  --color-zinc-200: rgb(228 228 231);
  --color-zinc-300: rgb(212 212 216);
  --color-zinc-400: rgb(161 161 170);
  --color-zinc-500: rgb(113 113 122);
  --color-zinc-600: rgb(82 82 91);
  --color-zinc-700: rgb(63 63 70);
  --color-zinc-800: rgb(39 39 42);
  --color-zinc-900: rgb(24 24 27);
  --color-white: rgb(255 255 255);
  --color-black: rgb(0 0 0);
  --color-link-hover: rgb(45 212 191);

  /* Shadow and overlay colors */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --shadow-subtle: rgba(0, 0, 0, 0.05);
  --shadow-minimal: rgba(0, 0, 0, 0.06);
  --shadow-border: rgba(0, 0, 0, 0.2);

  /* Background overlays */
  --bg-overlay: rgba(255, 255, 255, 0.9);
  --bg-overlay-dark-subtle: rgba(39, 39, 42, 0.5);
  --bg-overlay-dark-faint: rgba(39, 39, 42, 0.15);

  /* Border overlays */
  --border-overlay-light: rgba(255, 255, 255, 0.1);
  --border-overlay-dark: rgba(255, 255, 255, 0.4);

  /* Text overlays */
  --text-overlay-light: rgba(255, 255, 255, 0.7);
  --text-overlay-dark: rgba(0, 0, 0, 0.6);

  /* Fill overlays */
  --fill-overlay-light: rgba(255, 255, 255, 0.1);

  /* Focus shadows */
  --focus-shadow-teal: rgba(20, 184, 166, 0.1);

  --sun-icon-display: block;
  --moon-icon-display: none;
}


@media (prefers-color-scheme: dark) {
  :root {
    --color-zinc-50: rgb(24 24 27);
    --color-zinc-100: rgb(39 39 42);
    --color-zinc-200: rgb(63 63 70);
    --color-zinc-300: rgb(82 82 91);
    --color-zinc-400: rgb(113 113 122);
    --color-zinc-500: rgb(161 161 170);
    --color-zinc-600: rgb(212 212 216);
    --color-zinc-700: rgb(228 228 231);
    --color-zinc-800: rgb(244 244 245);
    --color-zinc-900: rgb(250 250 250);
    --color-white: rgb(24 24 27);
    --color-black: rgb(250 250 250);
    --color-link-hover: rgb(20 184 166);
    --bg-overlay: rgba(39, 39, 42, 0.9);

    /* Focus shadows */
    --focus-shadow-teal: var(--focus-shadow-teal);

    --sun-icon-display: none;
    --moon-icon-display: block;
  }
}


.sun-icon {
  display: var(--sun-icon-display);
}

.moon-icon {
  display: var(--moon-icon-display);
}

.light {
  color-scheme: light;
  --color-zinc-50: rgb(250 250 250);
  --color-zinc-100: rgb(244 244 245);
  --color-zinc-200: rgb(228 228 231);
  --color-zinc-300: rgb(212 212 216);
  --color-zinc-400: rgb(161 161 170);
  --color-zinc-500: rgb(113 113 122);
  --color-zinc-600: rgb(82 82 91);
  --color-zinc-700: rgb(63 63 70);
  --color-zinc-800: rgb(39 39 42);
  --color-zinc-900: rgb(24 24 27);
  --color-white: rgb(255 255 255);
  --color-black: rgb(0 0 0);
  --color-link-hover: rgb(45 212 191);
  --bg-overlay: rgba(255, 255, 255, 0.9);


  .sun-icon {
    display: block;
  }

  .moon-icon {
    display: none;
  }
}

.dark {
  color-scheme: dark;
  --color-zinc-50: rgb(24 24 27);
  --color-zinc-100: rgb(39 39 42);
  --color-zinc-200: rgb(63 63 70);
  --color-zinc-300: rgb(82 82 91);
  --color-zinc-400: rgb(113 113 122);
  --color-zinc-500: rgb(161 161 170);
  --color-zinc-600: rgb(212 212 216);
  --color-zinc-700: rgb(228 228 231);
  --color-zinc-800: rgb(244 244 245);
  --color-zinc-900: rgb(250 250 250);
  --color-white: rgb(24 24 27);
  --color-black: rgb(250 250 250);
  --color-link-hover: rgb(20 184 166);
  --bg-overlay: rgba(39, 39, 42, 0.9);

  /* Focus shadows */
  --focus-shadow-teal: var(--focus-shadow-teal);

  .sun-icon {
    display: none;
  }

  .moon-icon {
    display: block;
  }
}

.no-transitions * {
  transition: none !important;
}

html {
  height: 100%;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-zinc-50);
  color: var(--color-zinc-800);
  margin: 0;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.header {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  padding: 0 2rem;
}

.header-left {
  flex: 1;
}

.header-avatar {
  position: relative;
  top: 0.75rem;
  order: -1;
  margin-bottom: -3rem;
  padding-top: 0.75rem;
}

.avatar-link {
  display: block;
  height: 4rem;
  width: 4rem;
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.avatar-image {
  border-radius: 50%;
  background-color: var(--color-zinc-100);
  object-fit: cover;
  height: 4rem;
  width: 4rem;
  transition: background-color 0.3s ease;
}

.header-nav {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.navbar {
  display: flex;
  border-radius: 9999px;
  background-color: var(--color-zinc-100);
  padding: 0 0.75rem;
  font-weight: 500;
  color: var(--color-zinc-800);
  box-shadow:
    0 10px 15px -3px var(--shadow-light),
    0 4px 6px -2px var(--shadow-subtle),
    0 0 0 1px var(--shadow-subtle);
  backdrop-filter: blur(8px);
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  pointer-events: auto;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--color-link-hover);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
}

.dark-mode-toggle {
  border-radius: 50%;
  background-color: var(--bg-overlay-light);
  padding: 0.5rem;
  box-shadow:
    0 10px 15px -3px var(--shadow-light),
    0 4px 6px -2px var(--shadow-subtle),
    0 0 0 1px var(--shadow-subtle);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

/* .dark .dark-mode-toggle { */
/*   background-color: var(--bg-overlay-dark); */
/*   box-shadow: */
/*     0 10px 15px -3px var(--shadow-medium), */
/*     0 4px 6px -2px var(--shadow-border), */
/*     0 0 0 1px var(--border-overlay-light); */
/* } */

.dark-mode-toggle svg {
  height: 1.5rem;
  width: 1.5rem;
  fill: var(--color-zinc-100);
  stroke: var(--color-zinc-500);
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}



.main {
  flex: 1;
  position: relative;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.content-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  padding: 2.25rem 1rem 0;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    max-width: none;
    padding: 2.25rem 2rem 0;
  }
}

.main-content {
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .main-content {
    max-width: none;
  }
}

.hero {
  max-width: 42rem;
}

.page-title {
  color: var(--color-zinc-800);
  letter-spacing: -0.025em;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.5rem;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.page-description {
  color: var(--color-zinc-600);
  font-size: 1rem;
  line-height: 1.75rem;
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
}

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

.social-link svg {
  height: 1.5rem;
  width: 1.5rem;
  fill: var(--color-zinc-500);
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: var(--color-zinc-600);
}

.articles {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 768px) {
  .articles {
    margin-top: 7rem;
  }
}

.article {
  position: relative;
}

.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.5rem;
  margin: -1.5rem;
  border-radius: 1rem;
  transition: background-color 0.3s ease;
}

.article-link:hover {
  background-color: var(--color-zinc-50);
}

@media (min-width: 640px) {
  .article-link {
    border-radius: 1rem;
  }
}

.article-date {
  position: relative;
  z-index: 10;
  order: -1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-zinc-400);
  padding-left: 0.875rem;
  transition: color 0.3s ease;
}

.article-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  width: 0.125rem;
  background-color: var(--color-zinc-200);
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.article-title {
  position: relative;
  z-index: 10;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-zinc-800);
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.article-description {
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-zinc-600);
  transition: color 0.3s ease;
}

.article-read-more {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-link-hover);
  transition: color 0.3s ease;
}

.read-more-arrow {
  margin-left: 0.25rem;
  height: 1rem;
  width: 1rem;
  stroke: currentColor;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .sidebar {
    padding-left: 4rem;
  }
}

@media (min-width: 1280px) {
  .sidebar {
    padding-left: 6rem;
  }
}

.newsletter-signup,
.work-section {
  min-width: 330px;
  border-radius: 1rem;
  border: 1px solid var(--color-zinc-100);
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.newsletter-title,
.work-title {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-zinc-900);
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.newsletter-icon,
.work-icon {
  height: 1.5rem;
  width: 1.5rem;
  flex: none;
  margin-right: 0.75rem;
}

.newsletter-icon-bg,
.work-icon-bg {
  fill: var(--color-zinc-100);
  stroke: var(--color-zinc-400);
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}

.newsletter-icon-stroke,
.work-icon-stroke {
  stroke: var(--color-zinc-400);
  transition: stroke 0.3s ease;
}

.newsletter-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-zinc-600);
  transition: color 0.3s ease;
}

.newsletter-form {
  margin-top: 1.5rem;
  display: flex;
}

.newsletter-input {
  min-width: 0;
  flex: 1;
  appearance: none;
  border-radius: 0.375rem;
  border: 1px solid var(--shadow-light);
  background-color: var(--color-white);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  box-shadow:
    0 4px 6px -1px var(--shadow-light),
    0 2px 4px -1px var(--shadow-minimal);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
  color: var(--color-zinc-400);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-link-hover);
  box-shadow: 0 0 0 4px var(--focus-shadow-teal);
}

.newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--color-zinc-800);
  color: var(--color-zinc-100);
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
}

.newsletter-button:hover {
  background-color: var(--color-zinc-700);
}

.newsletter-button:active {
  background-color: var(--color-zinc-800);
  color: var(--text-overlay-light);
}

.work-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding: 0;
}

.work-item {
  display: flex;
  gap: 1rem;
}

.work-logo {
  position: relative;
  margin-top: 0.25rem;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow:
    0 4px 6px -1px var(--shadow-light),
    0 2px 4px -1px var(--shadow-minimal);
  border: 1px solid var(--shadow-subtle);
}

.work-logo-img {
  height: 1.75rem;
  width: 1.75rem;
}

.work-details {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
}

.work-company {
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-zinc-900);
  margin: 0;
  transition: color 0.3s ease;
}

.work-role {
  font-size: 0.75rem;
  color: var(--color-zinc-500);
  margin: 0;
  transition: color 0.3s ease;
}

.work-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-zinc-400);
  transition: color 0.3s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.download-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--color-zinc-50);
  color: var(--color-zinc-900);
  text-decoration: none;
  margin-top: 1.5rem;
  width: 100%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.download-cv:hover {
  background-color: var(--color-zinc-100);
}

.download-cv:active {
  background-color: var(--color-zinc-100);
  color: var(--text-overlay-dark);
}

.download-icon {
  height: 1rem;
  width: 1rem;
  stroke: var(--color-zinc-400);
  transition: stroke 0.3s ease;
}

.footer {
  margin-top: 8rem;
}

.footer-content {
  border-top: 1px solid var(--color-zinc-100);
  padding: 2.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: border-color 0.3s ease;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-zinc-800);
  transition: color 0.3s ease;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
  margin: 0;
  transition: color 0.3s ease;
}

/* About page specific styles */
.header-simple {
  position: relative;
  z-index: 10;
  height: 4rem;
  padding-top: 1.5rem;
}

.header-simple .header-left {
  flex: 1;
  display: flex;
}

.avatar-simple {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-overlay-light);
  padding: 0.125rem;
  box-shadow:
    0 10px 15px -3px var(--shadow-light),
    0 4px 6px -2px var(--shadow-subtle),
    0 0 0 1px var(--shadow-subtle);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
}

.avatar-link-simple {
  display: block;
  pointer-events: auto;
}

.avatar-image-simple {
  border-radius: 50%;
  background-color: var(--color-zinc-100);
  object-fit: cover;
  height: 2.25rem;
  width: 2.25rem;
  transition: background-color 0.3s ease;
}

.navbar-link-active {
  color: var(--color-link-hover) !important;
  position: relative;
}

.navbar-link-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0.25rem;
  right: 0.25rem;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      var(--color-link-hover),
      transparent);
  opacity: 0.4;
}

.about-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 640px) {
  .about-grid {
    margin-top: 8rem;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 3rem 4rem;
  }
}

.about-image-section {
  order: 1;
}

@media (min-width: 1024px) {
  .about-image-section {
    padding-left: 5rem;
  }
}

.about-image-container {
  max-width: 20rem;
  padding: 0.625rem;
}

@media (min-width: 1024px) {
  .about-image-container {
    max-width: none;
  }
}

.about-image {
  aspect-ratio: 1;
  transform: rotate(3deg);
  border-radius: 1rem;
  background-color: var(--color-zinc-100);
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: background-color 0.3s ease;
}

.about-content {
  order: 2;
}

@media (min-width: 1024px) {
  .about-content {
    order: 1;
    grid-row: span 2;
  }
}

.about-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-zinc-800);
  margin: 0 0 1.5rem 0;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .about-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.about-prose {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--color-zinc-600);
  transition: color 0.3s ease;
}

.about-prose p {
  margin: 0;
}

.about-prose a {
  color: var(--color-zinc-800);
  text-decoration: underline;
  text-decoration-color: var(--color-zinc-400);
  text-underline-offset: 0.25rem;
  transition:
    color 0.3s ease,
    text-decoration-color 0.3s ease;
}

.about-prose a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.about-update {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--color-zinc-400);
  font-style: italic;
  transition: color 0.3s ease;
}

.about-social {
  order: 3;
}

@media (min-width: 1024px) {
  .about-social {
    order: 2;
    padding-left: 5rem;
  }
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.social-item {
  display: flex;
  margin-top: 1rem;
}

.social-item:first-child {
  margin-top: 0;
}

.social-item-email {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-zinc-100);
  transition: border-color 0.3s ease;
}

.social-link-full {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-zinc-800);
  text-decoration: none;
  transition: color 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  text-align: left;
}

.social-link-full:hover {
  color: var(--color-link-hover);
}

.nostr-link {
  cursor: pointer;
}

.social-icon {
  height: 1.5rem;
  width: 1.5rem;
  flex: none;
  fill: var(--color-zinc-500);
  transition: fill 0.3s ease;
}

.social-link-full:hover .social-icon {
  fill: var(--color-link-hover);
}

.social-text {
  margin-left: 1rem;
  width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Articles page specific styles */
.articles-page-content {
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .articles-page-content {
    margin-top: 8rem;
  }
}

.articles-header {
  max-width: 42rem;
}

.articles-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-zinc-800);
  margin: 0 0 1.5rem 0;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .articles-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.articles-description {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--color-zinc-600);
  transition: color 0.3s ease;
}

.articles-timeline {
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .articles-timeline {
    margin-top: 5rem;
  }
}

.articles-list {
  border-left: 1px solid var(--color-zinc-100);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 48rem;
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .articles-list {
    border-left: none;
    padding-left: 0;
  }
}

.timeline-article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .timeline-article {
    grid-template-columns: 3fr 1fr;
    align-items: baseline;
    border-left: 1px solid var(--color-zinc-100);
    padding-left: 1.5rem;
  }
}

.article-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-article-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-zinc-800);
  margin: 0 0 0.75rem 0;
  transition: color 0.3s ease;
}

.timeline-article-title a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.timeline-article:hover .timeline-article-title a {
  color: var(--color-link-hover);
}

.timeline-article::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1.5rem -1.5rem -1.5rem;
  z-index: 0;
  scale: 0.95;
  background-color: var(--color-zinc-50);
  opacity: 0;
  transition:
    scale 0.3s ease,
    opacity 0.3s ease;
  border-radius: 1rem;
}

.timeline-article:hover::before {
  scale: 1;
  opacity: 1;
}

@media (min-width: 640px) {
  .timeline-article::before {
    border-radius: 1rem;
  }
}

.timeline-article::after {
  content: "";
  position: absolute;
  inset: -1.5rem -1.5rem -1.5rem -1.5rem;
  z-index: 20;
  pointer-events: none;
}

.timeline-article a[href]::after {
  content: "";
  position: absolute;
  inset: -1.5rem -1.5rem -1.5rem -1.5rem;
  z-index: 20;
}

@media (min-width: 640px) {
  .timeline-article a[href]::after {
    border-radius: 1rem;
  }
}

.timeline-date {
  position: relative;
  z-index: 10;
  font-size: 0.875rem;
  color: var(--color-zinc-400);
  transition: color 0.3s ease;
}

.mobile-date {
  order: -1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  padding-left: 0.875rem;
}

.mobile-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  width: 0.125rem;
  background-color: var(--color-zinc-200);
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.desktop-date {
  display: none;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .mobile-date {
    display: none;
  }

  .desktop-date {
    display: block;
  }
}

.timeline-article-description {
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-zinc-600);
  transition: color 0.3s ease;
}

.timeline-read-more {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-link-hover);
  transition: color 0.3s ease;
}

.read-more-arrow {
  margin-left: 0.25rem;
  height: 1rem;
  width: 1rem;
  stroke: currentColor;
}

/* Article page specific styles */
.article-page {
  margin-top: 4rem;
}

@media (min-width: 1024px) {
  .article-page {
    margin-top: 8rem;
  }
}

.article-container {
  max-width: 42rem;
  margin: 0 auto;
}

.article-header {
  display: flex;
  flex-direction: column;
}

.article-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-zinc-800);
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .article-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.article-date {
  order: -1;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--color-zinc-400);
  transition: color 0.3s ease;
}

.article-date::before {
  content: "";
  height: 1rem;
  width: 0.125rem;
  border-radius: 9999px;
  background-color: var(--color-zinc-200);
  transition: background-color 0.3s ease;
}

.article-date span {
  margin-left: 0.75rem;
}

.article-content {
  margin-top: 2rem;
}

/* Prose styles for article content */
.prose {
  color: var(--color-zinc-600);
  line-height: 1.75;
  transition: color 0.3s ease;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--color-zinc-800);
  font-weight: 600;
  transition: color 0.3s ease;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose p:first-child {
  margin-top: 0;
}

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

.prose a {
  color: var(--color-zinc-800);
  text-decoration: underline;
  text-decoration-color: var(--color-zinc-400);
  text-underline-offset: 0.25rem;
  transition:
    color 0.3s ease,
    text-decoration-color 0.3s ease;
}

.prose a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.prose strong {
  color: var(--color-zinc-800);
  font-weight: 600;
  transition: color 0.3s ease;
}

.dark .prose strong {
  color: var(--color-zinc-100);
}

.prose em {
  color: var(--color-zinc-700);
  font-style: italic;
  transition: color 0.3s ease;
}

.prose code {
  color: var(--color-zinc-800);
  background-color: var(--color-zinc-100);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 500;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.prose pre {
  background-color: var(--color-zinc-100);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose li p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid var(--color-zinc-200);
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-zinc-600);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.prose hr {
  border: none;
  height: 1px;
  background-color: var(--color-zinc-200);
  margin-top: 3rem;
  margin-bottom: 3rem;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-right {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
}


.bookshelf-navigation {
  display: flex;
  gap: 1rem;
  font-weight: 500;

}


/* Nostr Dialog */
.nostr-dialog {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 0;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-color-primary);
  box-shadow:
    0 20px 25px -5px var(--shadow-light),
    0 10px 10px -5px var(--shadow-subtle);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nostr-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.nostr-dialog-content {
  padding: 2rem;
}

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

.nostr-dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-zinc-900);
  margin: 0;
  transition: color 0.3s ease;
}

.nostr-dialog-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-zinc-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nostr-dialog-close:hover {
  color: var(--color-zinc-700);
  background-color: var(--color-zinc-100);
}

.nostr-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nostr-dialog-description {
  color: var(--color-zinc-600);
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
}

.nostr-qrcode {
  width: 60%;
  margin: auto;
}

.nostr-pubkey-container {
  background-color: var(--color-zinc-50);
  border: 1px solid var(--border-color-primary);
  border-radius: 0.75rem;
  padding: 1rem;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nostr-pubkey {
  font-family: 'Courier New', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.875rem;
  color: var(--color-zinc-800);
  background: none;
  border: none;
  padding: 0;
  word-break: break-all;
  line-height: 1.6;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.3s ease;
}

.nostr-dialog-actions {
  display: flex;
  justify-content: center;
}

.nostr-copy-button {
  background-color: var(--color-zinc-900);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.nostr-copy-button:hover {
  background-color: var(--color-zinc-700);
  transform: translateY(-1px);
}

.nostr-copy-button:active {
  transform: translateY(0);
}

.nostr-copy-button.copied {
  background-color: var(--color-link-hover);
}

.nostr-copy-button.copied:hover {
  background-color: var(--color-link-hover);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .nostr-dialog-content {
    padding: 1.5rem;
  }

  .nostr-dialog-title {
    font-size: 1.25rem;
  }

  .nostr-pubkey-container {
    padding: 0.75rem;
  }

  .nostr-pubkey {
    font-size: 0.8125rem;
  }

  .nostr-copy-button {
    width: 100%;
    padding: 0.875rem;
  }
}
