

h1, h2 {
margin:1em 0 0.5em 0;
}

h3 {
margin: 0;
}

 
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 720px;
  margin: 1rem auto;
  padding: 0 1rem;
  color: #1d1d1f;
  background: #fffefc;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-bottom: 1em;
  position: sticky;
  top: 0;
  z-index: 100;
  background: inherit;
  padding: 1em 0;
}

.profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.profile-links {
  display: flex;
  flex-direction: row;
  gap: 0.3em;
  margin-top: 0.2em;
  font-size: 0.9em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


.notes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  list-style: none;
  padding: 0;
  margin: 0 auto 2em auto;
  max-width: 1280px;
  background: none;
}

.notes-list li {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
  box-shadow: none;
}

.note-link {
  padding: 1.2em 0;
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-link a {
  text-decoration: none;
  color: #1d1d1f;
}

.note-link a:hover {
  text-decoration: underline;
  color: #0066cc;
}


@media (prefers-color-scheme: dark) {
  body {
    background: #1d1d1f;
    color: #f5f5f7;
    transition: background 0.3s, color 0.3s;
  }

  a {
  color:rgb(84, 84, 222);
  }

  a:hover {
  color:rgb(130, 130, 216);
  }

  h1, h2 {
    color: #f5f5f7;
  }

  .note-link {
    border-bottom: 1px solid #444;
  }

  .note-link a {
    color: #66bfff;
  }

  .note-link a:hover {
    color: #66bfff;
  }

  /* Hero image and containers */
  .note-hero-image {
    background: #23232a;
    box-shadow: 0 4px 24px rgba(0,0,0,0.30);
  }

  .note-hero-container {
    background: #23232a;
    box-shadow: none;
  }

  .note-hero-image, .note-list-image {
    box-shadow: none;
  }

  /* Overlay improvements for dark mode */
  .note-hero-overlay, .note-list-overlay {
    background: rgba(30, 50, 90, 0.44);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.30);
  }

  .note-hero-title, .note-list-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.30);
  }

  .note-list-title {
    color: #fff;
  }

  .note-hero-external {
    color: #bbb;
  }

  /* Profile header and links */
  .profile-header {
    background: #1d1d1f;
  }

  /* Grid/list backgrounds */
  .notes-list {
    background: none;
  }
  .notes-list li {
    background: none;
  }

  /* Site link */
  #site-link {
    color: #f5f5f7;
  }
  #site-link h3 {
    color: #f5f5f7;
    transition: color 0.18s;
  }

  #site-link .profile-image {
    filter: brightness(0.95);
    transition: box-shadow 0.18s, filter 0.18s;
  }
  #site-link:hover .profile-image, #site-link:focus .profile-image {
    box-shadow: 0 2px 12px rgba(0,0,0,0.30);
    filter: brightness(1.08);
  }

  /* Footer */
  footer, footer p {
    background: none;
    color: #888;
    transition: color 0.3s;
  }
  hr {
  margin:1em 0;  
  border-color: #333;
    transition: border-color 0.3s;
  }
  .open-to-work-indicator .dot {
    background: #1db05a;
    border-color: #23232a;
  }
}

/* Hero image for the first note in the list */
.note-hero-image {
  width: 100%;
  max-width: 600px;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  margin: 2.5em auto 2em auto;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #f8f8f8;
}

.note-hero-container {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  display: block;
  height: 100%;
  background: #f7f7f8;
}

.note-hero-image, .note-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  display: block;
  margin: 0;
  max-width: none;
  max-height: none;
  border-radius: 12px;
  box-shadow: none;
}

.note-hero-link, .note-list-link {
  display: block;
  text-decoration: none;
}

.note-hero-overlay, .note-list-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 50, 90, 0.32); /* lighter blue-tinted black */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background 0.25s cubic-bezier(.4,0,.2,1), opacity 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0.5em;
  pointer-events: none;
  text-align: center;
}

.note-hero-container:hover .note-hero-overlay,
.note-hero-link:focus .note-hero-overlay,
.note-list-container:hover .note-list-overlay,
.note-list-link:focus .note-list-overlay {
  opacity: 1;
  pointer-events: auto;
}

.note-hero-title, .note-list-title {
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.3em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.10);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.note-list-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.note-hero-external {
  font-size: 1.1rem;
  margin-top: 0.3em;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .notes-list {
    grid-template-columns: 1fr;
  }
  /* Remove sticky/profile-header override here, now handled globally */
}

#site-link {
  text-decoration: none;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

#site-link h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.18s;
}

#site-link .profile-image {
  transition: box-shadow 0.18s, filter 0.18s;
}

#site-link:hover h3, #site-link:focus h3 {
  color:rgb(130, 130, 216);
  text-decoration: none;
}

#site-link:hover .profile-image, #site-link:focus .profile-image {
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  filter: brightness(1.08);
}

.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.fade-section.visible {
  opacity: 1;
  transform: none;
}

/* Open to Work animated status indicator */
.open-to-work-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2em;
  font-size: 0.98em;
  font-weight: 500;
}
.open-to-work-indicator .dot {
  width: 8px;
  height: 8px;
  background: #27c46a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(39,196,106,0.7);
  animation: pulse-green 1.2s infinite cubic-bezier(0.66, 0, 0, 1);
  border: 1.5px solid #fff;
  margin-right: 0.2em;
}
.open-to-work-indicator .text {
  color: #27c46a;
  font-size: 0.6em;
  font-weight: 500;
}
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(39,196,106,0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(39,196,106,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39,196,106,0);
  }
}
@media (prefers-color-scheme: dark) {
  .open-to-work-indicator .dot {
    background: #1db05a;
    border-color: #23232a;
  }
  .open-to-work-indicator .text {
    color: #1db05a;
  }
}
