/*
 * Theme for the public profile layout (Bootstrap loads before this file).
 */

:root {
  --slab-rust: #8b4513;
  --slab-cream: #f4ede4;
  --slab-ink: #1a1510;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--slab-ink);
  background: linear-gradient(180deg, var(--slab-cream) 0%, #e8dfd3 100%);
}

/* Sticky footer on short pages: navbar + main + footer (public templates) */
body.public-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.public-site > main {
  flex: 1 0 auto;
}

.navbar-slab {
  background-color: var(--slab-ink);
}

.display-slab {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-rust {
  color: var(--slab-rust) !important;
}

.border-rust {
  border-color: var(--slab-rust) !important;
}

.listen-thumb,
.listen-thumb-placeholder {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

.listen-now-playing {
  background-color: rgba(139, 69, 19, 0.12);
  border-left: 4px solid var(--slab-rust);
}

.listen-player-root kbd {
  font-size: 0.75rem;
}

.listen-progress-range {
  height: 0.5rem;
  cursor: pointer;
}

.listen-player-progress .form-range::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px rgba(26, 21, 16, 0.15);
}

.btn-rust {
  background-color: var(--slab-rust);
  border-color: var(--slab-rust);
  color: #fff;
}

.btn-rust:hover,
.btn-rust:focus {
  background-color: #6d3610;
  border-color: #6d3610;
  color: #fff;
}

.public-hero-photo {
  max-height: min(22rem, 52vh);
  width: auto;
}

.public-about-photo {
  max-height: 20rem;
  width: auto;
}

.public-prose {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.navbar-slab .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-slab .navbar-nav .nav-link.active {
  color: #fff !important;
}

/* Full mark only where there is room (not in the compact navbar) */
.public-mark-logo {
  display: block;
  max-height: 7.5rem;
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
}

.public-mark-logo--about {
  max-height: 6rem;
  max-width: min(100%, 15rem);
}

.blog-body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--slab-ink);
}

.blog-body p {
  margin-bottom: 1rem;
}

.blog-body ul,
.blog-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.blog-body blockquote {
  border-left: 4px solid var(--slab-rust);
  padding-left: 1rem;
  margin: 1rem 0;
  color: #555;
  font-style: italic;
}

.blog-body pre {
  background: rgba(26, 21, 16, 0.06);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.blog-body code {
  font-size: 0.92em;
}

.blog-card-thumb {
  height: 8rem;
  object-fit: cover;
  width: 100%;
}

.blog-hero {
  max-height: 28rem;
  width: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.blog-song-player-thumb,
.blog-song-player-thumb-placeholder {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}
