/* klein.ruhr - Custom CSS */

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Einheitliche Groessen: Kevs Basis-CSS setzt an mehreren Stellen eigene
   font-size-Werte (Archivliste, Excerpt/Tag-Ansicht, Inline-Code). Statt an
   der Groesse zu drehen, wird hier alles auf die globale Skala zurueckgesetzt -
   Unterscheidung erfolgt fortan nur noch ueber Formatierung (Farbe, Kursiv,
   Fett), nicht ueber Groesse. */
.archive-list,
.excerpt-view p,
.tag-item p,
p.post-date,
figcaption,
img + em,
cite,
.footnotes,
footer,
code {
  font-size: 1em;
}
.excerpt-view h2,
.tag-item h2 {
  font-size: 1.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.site-nav a.current {
  text-decoration: none;
}

main a,
footer a {
  text-decoration: none !important;
}
header {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}
header h1 {
  margin: 0;
}

/* Pure Comments - Honeypot-Handling */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pure Blog - Image Gallery */
.gallery {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(2, 1fr); }
.gallery-8 { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--accent-bg-color);
  aspect-ratio: 1;
}
.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #e6e1d5; /* immer hell, da der Scrim dahinter unabhaengig vom Theme
                     immer dunkel ist - bewusst keine Theme-Variable hier */
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Pure Blog - Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.tag-cloud a {
  white-space: nowrap;
  text-transform: uppercase;
}

/* Pure Blog - Notes Page */
.notes-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 45rem;
}

.note-card {
    background: var(--accent-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem 0.75rem;
}

.note-card-body p:first-child {
    margin-top: 0;
}

.note-card-body p:last-child {
    margin-bottom: 0.5rem;
}

.note-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.85em;
    opacity: 0.7;
}

p.note-timestamp {
  margin: 0.5rem 0 -1.5rem 0;
}

p.note-timestamp > a {
    color: var(--text-color);
    text-decoration: none;
}

/* Pure Blog - Discover page block spacing */
.discover-block {
  background: var(--accent-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.discover-block a {
  text-decoration: none;
}

/* Pure Blog - Latest Boxes */
.latest-box {
  background: var(--accent-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.25rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.latest-box .archive-list {
  margin: 0.75rem 0;
}
.archive-list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-box p {
  margin: 1rem 0;
}
.latest-box p.view-all {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-color);
}