/* ============================================================
   bookmarks-subpage.css
   Thematic list styling for bookmark subpages
   (reading, media, system, curiosities)
   ============================================================ */

/*
 * Restore body padding that bookmarks.css removes.
 * This is safe because this file is only loaded on subpages.
 */
body {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  padding-top: 5rem !important;  /* clears the fixed header */
}

/* Wrapper – centered column, vertical spacing only */
.bookmark-list {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 0 3rem;            /* no side padding; body handles it */
}

/* Page title (h1 inside the wrapper) */
.bookmark-page-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: 'Gelasio', Georgia, serif;
}

/* Intro paragraph */
.bookmark-intro {
  font-size: 1.25rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Section heading (### in Markdown → h3) */
.bookmark-list h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* List reset */
.bookmark-list ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.bookmark-list li {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #2a2a2a;
}

/* Link: bold serif, underline only on hover */
.bookmark-list li a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Gelasio', Georgia, serif;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.bookmark-list li a:hover {
  border-bottom: 1px solid currentColor;
}

/* External link arrow – placed before format tag, outside the link */
.bookmark-list li a[href^="http"] + em::before {
  content: "↗ ";
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #888;
  font-weight: 300;
  margin-right: 0.2em;
}

/* Format tag (italic parenthetical → monospace badge) */
.bookmark-list li em {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: #888;
  font-style: normal;
  letter-spacing: 0.02em;
}

/* Back link (local footer) */
.bookmark-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
}

.bookmark-back a {
  color: #999;
  text-decoration: none;
}

.bookmark-back a:hover {
  color: #1a1a1a;
}

/* ============================================================
   Dark mode
   ============================================================ */
[data-theme="dark"] .bookmark-page-title { color: #d4cfc4; }

[data-theme="dark"] .bookmark-intro {
  color: rgba(212,207,196,0.85);
  border-bottom-color: rgba(212,207,196,0.15);
}

[data-theme="dark"] .bookmark-list h3 { color: rgba(212,207,196,0.5); }

[data-theme="dark"] .bookmark-list li { color: rgba(212,207,196,0.85); }

[data-theme="dark"] .bookmark-list li a { color: #d4cfc4; }

[data-theme="dark"] .bookmark-list li a[href^="http"] + em::before {
  color: rgba(212,207,196,0.5);
}

[data-theme="dark"] .bookmark-list li em { color: rgba(212,207,196,0.5); }

[data-theme="dark"] .bookmark-back { border-top-color: rgba(212,207,196,0.15); }

[data-theme="dark"] .bookmark-back a { color: rgba(212,207,196,0.6); }

[data-theme="dark"] .bookmark-back a:hover { color: #d4cfc4; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 4rem !important;
  }

  .bookmark-page-title { font-size: 2rem; }
  .bookmark-intro { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  body {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 3.5rem !important;
  }

  .bookmark-page-title { font-size: 1.75rem; }

  .bookmark-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .bookmark-list li { font-size: 0.95rem; }
}