/* Reef Island — Blog Stylesheet */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fff;
  font-size: 16px;
}

/* Sans-serif for headings and navigation */
.site-title,
.article-title,
.tag-group-title,
h1, h2, h3,
.nav-links {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

/* Wavy underlines on all links */
a {
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

/* Container for centered content */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title:hover {
  color: #0066cc;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: #4a4a4a;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

.nav-links a.active {
  color: #0066cc;
}

/* ========================================
   Hamburger Menu
   ======================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  position: relative;
  transition: background-color 0.2s ease;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  position: absolute;
  transition: transform 0.3s ease;
}

.hamburger span::before {
  top: -7px;
}

.hamburger span::after {
  top: 7px;
}

/* Animate to X when open */
.hamburger.is-active span {
  background-color: transparent;
}

.hamburger.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========================================
   Banner Image
   ======================================== */
.banner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ========================================
   Hero / Intro Section
   ======================================== */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.hero-title {
  font-family: 'Bitter', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.hero-name {
  color: #0066cc;
}

.hero-bio {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.hero-bio a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.hero-bio a:hover {
  color: #0066cc;
}

.hero-link {
  font-size: 1rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-link:hover {
  color: #0066cc;
}

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 1.5rem;
}

/* Featured article (latest post) */
.latest-post {
  margin-bottom: 3rem;
}

.article-featured {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.article-featured .article-title {
  font-size: 1.75rem;
}

.recent-posts {
  margin-bottom: 2rem;
}

/* ========================================
   RSS link
   ======================================== */
.rss-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s ease;
}

.rss-link:hover {
  color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

/* ========================================
   Author Bio
   ======================================== */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0 3rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.author-description {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-description a {
  color: #0066cc;
  text-decoration: none;
  padding: 0.1rem 0.3rem;
  margin: -0.1rem -0.3rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.author-description a:hover {
  background-color: rgba(0, 102, 204, 0.1);
  text-decoration: underline;
}

/* ========================================
   Article List (Home/Summary)
   ======================================== */
.article-list {
  list-style: none;
}

.article-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.article-item:last-child {
  border-bottom: none;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-title a {
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.article-title a:hover {
  color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

.article-date {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.article-excerpt {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Single Article Page
   ======================================== */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #1a1a1a;
}

/* Article featured image */
.article-figure {
  position: relative;
  margin: 0 0 2rem;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery — masonry layout for multiple figures */
.gallery {
  columns: 2;
  column-gap: 0.75rem;
  margin: 0 0 2rem;
}

.gallery .article-figure {
  break-inside: avoid;
  margin: 0 0 0.75rem;
}

.gallery .article-figure .article-hero-img {
  border-radius: 8px;
}

.gallery .article-caption {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

@media (max-width: 480px) {
  .gallery {
    columns: 1;
  }
}

.article-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  font-style: italic;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
  color: #1a1a1a;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
  line-height: 1.3;
  color: #1a1a1a;
}

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

.article-content a {
  color: #0066cc;
  text-decoration: underline;
  padding: 0.1rem 0.3rem;
  margin: -0.1rem -0.3rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.article-content a:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: #0052a3;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid #0066cc;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4a4a4a;
}

.article-content code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d73a49;
}

.article-content pre {
  background-color: #f6f8fa;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #e1e4e8;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #24292e;
  font-size: 0.875rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 2rem 0;
}

/* ========================================
   AI Disclaimer
   ======================================== */
.ai-disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  color: #999;
  margin-bottom: 0.25rem;
}

/* ========================================
   Tags
   ======================================== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0;
}

.tag {
  display: inline-block;
  background-color: rgba(0, 102, 204, 0.1);
  color: #0066cc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: rgba(0, 102, 204, 0.2);
  color: #0052a3;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-filter-btn {
  cursor: pointer;
  border: none;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

.tag-filter-btn.is-active {
  background-color: #0066cc;
  color: #fff;
}

.tag-filter-btn.is-active:hover {
  background-color: #0052a3;
  color: #fff;
}

/* Dated list layout */
.dated-list {
  list-style: none;
}

.dated-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.dated-entry:last-child {
  border-bottom: none;
}

.dated-header {
  display: block;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.5rem;
}

.dated-content .article-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.tag-group {
  margin-bottom: 3rem;
}

.tag-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0066cc;
  color: #1a1a1a;
}

/* ========================================
   Page Header (simple pages like About)
   ======================================== */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.footer a {
  color: #666;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

.rss-icon {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
  opacity: 0.5;
  display: inline-block;
  margin-right: 0.2rem;
}

/* ========================================
   Strava Activities
   ======================================== */
.strava-section {
  margin-bottom: 3rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.activity-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.activity-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.activity-map-wrap {
  background-color: #f8f9fa;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-map {
  width: 100%;
  height: auto;
  color: #0066cc;
}

.activity-info {
  padding: 1rem;
}

.activity-type {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0066cc;
}

.activity-name {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: #1a1a1a;
}

.activity-date {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.activity-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #4a4a4a;
  font-weight: 600;
}


/* Redesigned activity card (interests page) */
.activity-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.activity-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.activity-card-body {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
}

.activity-map-wrap-sm {
  background-color: #f0f1f3;
  border-radius: 10px;
  flex-shrink: 0;
  width: 180px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.activity-map-wrap-sm::before {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: var(--map-bg);
  background-color: #f0f1f3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1.5px);
}

.activity-map-wrap-sm .activity-map {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

.activity-card .activity-info {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.activity-type-badge {
  display: inline-block;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.4rem;
  border: 1px solid;
}

.activity-color-winter {
  color: #1a5fb4;
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.activity-color-running {
  color: #854d0e;
  background-color: #fef9c3;
  border-color: #fde047;
}

.activity-color-cycling {
  color: #9a3412;
  background-color: #ffedd5;
  border-color: #fdba74;
}

.activity-color-indoor {
  color: #991b1b;
  background-color: #fee2e2;
  border-color: #fca5a5;
}

.activity-card .activity-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.activity-stats-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4a4a4a;
  flex-wrap: wrap;
}

.stat-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  color: #999;
}

.stat-distance {
  font-size: 1.05rem;
}

.stat-sep {
  color: #ccc;
}

.stat-sep::before {
  content: "\00b7";
}

.stat-unit {
  color: #999;
  font-weight: 400;
}


.arrow-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  background-color: #f0f0f0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

.contact-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #1a1a1a;
}

.contact-item a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.contact-label {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.25rem;
  }

  .site-nav {
    padding: 1rem 1.25rem;
  }

  /* Show hamburger, hide nav links */
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    background-color: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 1.25rem;
    border-radius: 0;
  }

  .nav-links a:hover {
    background-color: #f5f5f5;
  }

  .site-nav {
    position: relative;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-bio {
    font-size: 1.1rem;
  }

  .article-featured .article-title {
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.35rem;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

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

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .author-bio {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .site-nav {
    padding: 1rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .author-photo {
    width: 64px;
    height: 64px;
  }

  .article-title {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  body {
    color: #000;
  }

  .site-nav,
  .hamburger {
    display: none;
  }

  .author-bio {
    background-color: #fff;
    border: 1px solid #ccc;
  }

  .article-title a,
  .article-content a {
    color: #000;
    text-decoration: underline;
  }

  .footer {
    page-break-before: always;
  }
}

/* ========================================
   Dark Mode
   ======================================== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e5e5e5;
  }

  a {
    text-decoration-color: rgba(255, 255, 255, 0.25);
  }

  .site-title,
  .article-title a,
  .article-header h1,
  .article-content h2,
  .article-content h3,
  .page-header h1,
  .tag-group-title,
  .hero-title {
    color: #e5e5e5;
  }

  .hero {
    border-bottom-color: #3a3a3a;
  }

  .hero-name {
    color: #d4893f;
  }

  .hero-bio {
    color: #c9c9c9;
  }

  .hero-bio a {
    color: #e5e5e5;
  }

  .hero-bio a:hover {
    color: #66b3ff;
  }

  .hero-link {
    color: #777;
  }

  .hero-link:hover {
    color: #66b3ff;
  }

  .section-title {
    color: #777;
  }

  .article-featured {
    border-bottom-color: #3a3a3a;
  }

  .site-title:hover,
  .article-title a:hover {
    color: #66b3ff;
  }

  .nav-links a {
    color: #c9c9c9;
  }

  .nav-links a:hover {
    color: #66b3ff;
    background-color: rgba(102, 179, 255, 0.1);
  }

  .nav-links a.active {
    color: #66b3ff;
  }

  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    background-color: #e5e5e5;
  }

  .hamburger.is-active span {
    background-color: transparent;
  }

  .author-bio {
    background-color: #2a2a2a;
  }

  .author-description,
  .article-excerpt,
  .article-content {
    color: #c9c9c9;
  }

  .article-date,
  .rss-link,
  .footer {
    color: #999;
  }

  .article-content a {
    color: #66b3ff;
  }

  .article-content code {
    background-color: #2a2a2a;
    color: #ff7b72;
  }

  .article-content pre {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
  }

  .article-content pre code {
    color: #e5e5e5;
  }

  .article-content blockquote {
    border-left-color: #66b3ff;
    color: #999;
  }

  .article-item {
    border-bottom-color: #3a3a3a;
  }

  .article-header {
    border-bottom-color: #3a3a3a;
  }

  .footer {
    border-top-color: #3a3a3a;
  }

  .footer a {
    color: #999;
  }

  .footer a:hover {
    color: #66b3ff;
  }

  .rss-icon {
    filter: invert(1);
  }

  /* Tags dark mode */
  .tag {
    background-color: rgba(102, 179, 255, 0.15);
    color: #66b3ff;
  }

  .tag:hover {
    background-color: rgba(102, 179, 255, 0.25);
    color: #99ccff;
  }

  .tag-filter-btn.is-active {
    background-color: #66b3ff;
    color: #1a1a1a;
  }

  .tag-filter-btn.is-active:hover {
    background-color: #99ccff;
    color: #1a1a1a;
  }

  .tag-group-title {
    border-bottom-color: #66b3ff;
  }

  /* Dated list dark mode */
  .dated-entry {
    border-bottom-color: #3a3a3a;
  }

  .dated-header {
    color: #777;
  }

  /* Strava dark mode */
  .activity-card {
    border-color: #3a3a3a;
  }

  .activity-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .activity-map-wrap {
    background-color: #2a2a2a;
  }

  .activity-map {
    color: #66b3ff;
  }

  .activity-type {
    color: #66b3ff;
  }

  .activity-name {
    color: #e5e5e5;
  }

  .activity-date {
    color: #777;
  }

  .activity-stats,
  .activity-stats-row {
    color: #c9c9c9;
  }


  .activity-card {
    border-color: #3a3a3a;
  }

  .activity-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .activity-color-winter {
    color: #93c5fd;
    background-color: #1e2a3a;
    border-color: #2a4060;
  }

  .activity-color-running {
    color: #fde047;
    background-color: #2a2810;
    border-color: #4a4520;
  }

  .activity-color-cycling {
    color: #fdba74;
    background-color: #2e2010;
    border-color: #4a3520;
  }

  .activity-color-indoor {
    color: #fca5a5;
    background-color: #2e1a1a;
    border-color: #4a2a2a;
  }

  .activity-map-wrap-sm {
    background-color: #2a2a2a;
  }

  .activity-map-wrap-sm::before {
    background-color: #2a2a2a;
    filter: blur(1.5px) invert(1) hue-rotate(180deg);
  }

  .activity-map-wrap-sm .activity-map {
    filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
  }


  .ai-disclaimer {
    color: #777;
  }

  /* Contact dark mode */
  .contact-item {
    border-bottom-color: #3a3a3a;
  }

  .contact-item h3 {
    color: #e5e5e5;
  }

  .contact-icon {
    filter: invert(1);
  }

  .contact-item a {
    color: #66b3ff;
  }

  .contact-item a:hover {
    color: #99ccff;
  }

  .contact-label {
    color: #777;
  }

  /* Mobile dropdown dark mode */
  @media (max-width: 768px) {
    .nav-links {
      background-color: #2a2a2a;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .nav-links a:hover {
      background-color: #3a3a3a;
    }
  }
}
