/* WhiskyNotes blog — minimal legible default theme.
   docs/features/007-blog-generation.md -> "Scope": "a minimal, legible
   default theme (typography + layout, system light/dark). Not a design
   project — CSS can be largely agent-generated." */

:root {
  color-scheme: light dark;
  --bg: #fdfcfb;
  --fg: #1c1917;
  --muted: #6b6560;
  --border: #e7e2dc;
  --accent: #8a4a2f;
  --card-bg: #fff;
  --max-width: 42rem;
  font-size: 17px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --fg: #efeae4;
    --muted: #a29a90;
    --border: #322c26;
    --accent: #d98a5f;
    --card-bg: #1e1a15;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration: none; }

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--fg);
}

.site-nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover { color: var(--accent); }

.site-search { margin-left: auto; position: relative; }
.site-search input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--card-bg);
  color: var(--fg);
  min-width: 12rem;
}

.search-results {
  position: absolute;
  right: 0;
  top: 2.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  min-width: 16rem;
  max-height: 20rem;
  overflow-y: auto;
  z-index: 10;
}

.search-results li a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
  text-decoration: none;
  color: var(--fg);
}

.search-results li a:hover { background: var(--border); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page-heading { margin-top: 0; }

.note-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.note-card-body { flex: 1; min-width: 0; }

.note-card-thumb-link { flex-shrink: 0; }

.note-card-thumb {
  display: block;
  width: 6rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.4rem;
}

.note-card-title { margin: 0 0 0.25rem; font-size: 1.3rem; }
.note-card-title a { text-decoration: none; color: var(--fg); }
.note-card-title a:hover { color: var(--accent); }

.note-card-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.note-card-stars { color: var(--accent); letter-spacing: 0.1em; }
.note-card-excerpt { margin: 0.25rem 0; }

.note-card-tags, .note-tags {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.note-card-tags li a, .note-tags li a {
  font-size: 0.8rem;
  background: var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  text-decoration: none;
  color: var(--fg);
}

.note-list-more {
  text-align: center;
  padding: 1.5rem 0;
}

.load-more {
  font: inherit;
  padding: 0.5rem 1.25rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  cursor: pointer;
}

.load-more:hover { border-color: var(--accent); color: var(--accent); }

.note-title { margin-bottom: 0.25rem; }
.note-dates { color: var(--muted); font-size: 0.9rem; }
.note-rating { color: var(--accent); font-size: 1.1rem; }
.note-rating-text { color: var(--muted); font-size: 0.85rem; margin-left: 0.4rem; }
.note-value-rating { margin-left: 1rem; }
.note-value-label { color: var(--muted); font-size: 0.85rem; margin-right: 0.2rem; }

.tasting-block {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 1.25rem 0;
}

.tasting-block dt { color: var(--muted); font-weight: 600; }
.tasting-block dd { margin: 0; }

.whisky-facts {
  border-collapse: collapse;
  margin: 1.25rem 0;
  width: 100%;
  font-size: 0.9rem;
}

.whisky-facts caption {
  text-align: left;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.whisky-facts th, .whisky-facts td {
  text-align: left;
  padding: 0.3rem 0.6rem 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.whisky-facts th { color: var(--muted); font-weight: 600; width: 40%; }

.note-body { margin-top: 1.5rem; }
.note-body img { max-width: 100%; border-radius: 0.4rem; }
.note-body pre { overflow-x: auto; padding: 1rem; background: var(--border); border-radius: 0.4rem; }

/* Gallery hero + carousel (020-note-image-gallery.md; 032-image-crop.md keeps
   portrait photos at full height — no centre-crop). Plain HTML + CSS
   scroll-snap, no JS dependency — degrades to a normal scrollable strip
   with JS disabled. */
.note-hero {
  margin: 0 0 1rem;
}

.note-hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 28rem;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.note-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

.note-carousel-image {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 10rem;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  border-radius: 0.4rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.preview-banner {
  margin: 0;
  padding: 0.4rem 1rem;
  background: var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
