/* ============================================================
   SAMRAWLINGS.NET — SHARED STYLES
   You should not need to edit this file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #faf9f7;
  padding: 2.5rem 1.25rem 6rem;
}

@media (min-width: 600px) {
  body { padding: 3rem 1.5rem 6rem; }
}

.container { max-width: 560px; margin: 0 auto; }

.site-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 3rem;
}

nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  padding: 6px 0;
}

nav a:hover, nav a.active { color: #1a1a1a; }

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 2.5rem;
}

.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb .sep { margin: 0 8px; }

h1 {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.intro {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}

.section-label a { color: #aaa; text-decoration: none; }
.section-label a:hover { color: #1a1a1a; }

/* --- Row: the building block for writing list and shelf --- */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 13px 0;
  border-bottom: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
}

.row:first-of-type { border-top: 1px solid #ebebeb; }

/* --- Row left: title + optional description stacked --- */
.row-left {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-size: 15px;
  color: #1a1a1a;
  display: block;
  line-height: 1.5;
}

a.row-title:hover, a.row:hover .row-title { text-decoration: underline; }

/* --- Optional one-line description under a shelf title ---
   To use: add <span class="row-desc">Your note here.</span>
   directly after the row-title line in shelf.html          --- */
.row-desc {
  font-size: 13px;
  color: #aaa;
  margin-top: 3px;
  display: block;
  line-height: 1.5;
}

.row-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Shelf right side --- */
.row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.stars { font-size: 13px; color: #c8860a; letter-spacing: 1px; }
.thumb { font-size: 15px; }

.home-section { margin-bottom: 3rem; }

/* --- Writing post body --- */
.post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 2.5rem;
}

.post-body p { margin-bottom: 1.4rem; font-size: 17px; line-height: 1.85; }
.post-body h2 { font-size: 18px; font-weight: 500; font-style: italic; margin: 2.5rem 0 1rem; }

/* --- Filter tabs --- */
.filter-tabs { display: flex; gap: 16px; margin-bottom: 1.75rem; }

.filter-tabs a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
}

.filter-tabs a.active, .filter-tabs a:hover { color: #1a1a1a; }

/* --- Photo grid --- */
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

@media (min-width: 480px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.photo-item { position: relative; overflow: hidden; }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 6px 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-item:hover .photo-caption { opacity: 1; }

.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #aaa;
  text-align: center;
}
