/* Ever Wonder Wine — Public Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

.navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

/* Blog Post */
.post-title {
    margin-bottom: 0.25rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #722f37;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body img {
    max-width: 100%;
    height: auto;
}

.post-tags {
    margin-top: 1.5rem;
}

.post-tags a {
    color: #722f37;
}

/* Wine Review Card */
.wine-details {
    background: #f8f5f0;
    border: 1px solid #e8e0d6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.wine-details dt {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wine-details dd {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #722f37;
    border: 1px solid #722f37;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-image-listing {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Archive Sidebar */
.archive-years a {
    color: #555;
    text-decoration: none;
}

.archive-years a:hover {
    color: #722f37;
}

/* Footer */
footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    color: #722f37;
}

/* Glossary alphabet navigation (built by /assets/js/glossary.js) */
.glossary-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e8e0d6;
}

.glossary-nav a,
.glossary-nav span.disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.25rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.glossary-nav a {
    color: #722f37;
    border: 1px solid #e8e0d6;
}

.glossary-nav a:hover,
.glossary-nav a:focus {
    background: #722f37;
    border-color: #722f37;
    color: #fff;
}

.glossary-nav span.disabled {
    color: #ccc;
    cursor: default;
}

.glossary-nav-label {
    display: inline-flex;
    align-items: center;
    margin-right: 0.25rem;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Offset jump targets so the sticky bar doesn't cover the letter heading.
   glossary.js overrides this with the bar's actual (possibly multi-row) height. */
.glossary-letter {
    scroll-margin-top: 5rem;
}

html {
    scroll-behavior: smooth;
}
