@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..500;1,14..32,400..500&family=Lora:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,16..24,400;1,16..24,400&display=swap');

.postpromonav .tags {
    text-align: left !important;
}

.tags > li a {
    font-weight: 500 !important;
}

#footer_author {
    font-size: 0.92rem;
}

#footer_nikola {
    font-size: 0.8125rem;
    color: #636057 !important;
}

body {
    background-color: #fbf9f5 !important;
    color: #273328 !important;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b291d 0%, #d9a74a 50%, #1b291d 100%);
    z-index: 1030;
}

h1 > a, h1, h2, h3, h4 {
    color: #3b6329 !important;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1.5em;
}

strong {
    color: #3b6329 !important;
}

/* Code & math variables */
code, pre, kbd, samp {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
}

a {
    color: #3d6939;
    text-decoration: underline;
    text-decoration-color: rgba(61, 105, 57, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    color: #b88228 !important; 
    text-decoration-color: rgba(184, 130, 40, 0.6);
}

nav.navbar,
.navbar {
    background: linear-gradient(135deg, #233a28 0%, #17261a 70%, #0a120b 100%);
    border-bottom: 1px solid #2e4a34;
    box-shadow: none;
}

/* Force all links inside navbar to drop standard underlines */
.navbar a {
    text-decoration: none !important;
}

.navbar a.navbar-brand,
.navbar a.navbar-brand span,
#blog-title {
    color: #e2b85c;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.navbar a.navbar-brand:hover,
.navbar a.navbar-brand:hover span {
    color: #ffd875;
    text-shadow: 0 0 10px rgba(240, 194, 101, 0.4);
    text-decoration: none;
}

.navbar .navbar-nav .nav-link,
.navbar .navbar-nav a {
    color: #b0c4ad;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav a:hover {
    color: #e1f57a;
    background-color: rgba(217, 167, 74, 0.12);
    text-shadow: 0 0 8px rgba(225, 245, 122, 0.3);
    text-decoration: none;
}

/* Active Page Indicator */
.navbar-nav .active > a,
.navbar-nav a.active {
    color: #ffd875 !important;
    font-weight: 600;
}

.tag, .badge, .post-tag {
    background-color: rgba(184, 130, 40, 0.1) !important;
    color: #8c5e11 !important;
    border: 1px solid rgba(184, 130, 40, 0.3) !important;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.82em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.tag:hover, .badge:hover {
    background-color: rgba(184, 130, 40, 0.2) !important;
    color: #6d480a !important;
    border-color: rgba(184, 130, 40, 0.6) !important;
}

/* AI Disclaimer box */
p.ai-disclaimer {
    border: 1px solid #d4caaf;
    background-color: #ffeacf;
    border-radius: 5px !important;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    color: #8c5e11;
}

ul.pager > li > a {
    border: 1px solid #d4caaf !important;
    background-color: #f6f3e8;
    border-radius: 5px !important;
    color: #8c5e11 !important;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.82em;
}

ul.pager > li > a:hover {
    background-color: rgba(184, 130, 40, 0.2) !important;
    color: #6d480a !important;
    border-color: rgba(184, 130, 40, 0.6) !important;
}

code.literal {
    color: #5670d4 !important;
}

article.postpage p.show_if_not_teaser, article.postpage h2.show_if_not_teaser {
    display: block !important;
}

img.framed {
    border: 1px solid black;
    margin: 2px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #faf9f6 !important;
}

td, th {
  border: solid 1px #d4caaf;
  border-style: none solid solid none;
  padding: 0.625rem;
}

/* This all is needed for rounded corners of tables */
tr:first-child th:first-child { border-top-left-radius: 10px !important; }
tr:first-child th:last-child { border-top-right-radius: 10px !important; }
tr:last-child td:first-child { border-bottom-left-radius: 10px !important; }
tr:last-child td:last-child { border-bottom-right-radius: 10px !important; }
tr:first-child th { border-top-style: solid; }
tr td:first-child, tr th:first-child { border-left-style: solid; }

blockquote {
    background-color: #f2efe4 !important; 
    border-left: 4px solid #b88228 !important; 
    border-radius: 0 6px 6px 0;
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    position: relative;
    font-style: italic;
}

blockquote p {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #384639 !important; 
    margin-bottom: 0;
}

blockquote p:first-child::before {
   content: "“";
   font-family: Georgia, 'Times New Roman', serif;
   font-size: 3.5rem;
   margin: -0.6em 0 0 -0.45em;
   position: absolute;
   opacity: 0.5;
}

blockquote footer, 
blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    font-style: normal;
    font-weight: 500;
    color: #647062 !important; 
    letter-spacing: 0.03em;
}

a.nav-link[hreflang="et"]::before {
    content: url("https://flagcdn.com/h20/ee.png");
    height: 20px;
    display: inline-block;
    margin-right: 5px;
}

a.nav-link[hreflang="et"]::after {
    content: " keeles";
}

a.nav-link[hreflang="en"]::before {
    content: url("https://flagcdn.com/h20/gb.png");
    height: 20px;
    display: inline-block;
    margin-right: 5px;
}

div.translations a[hreflang="et"]::after {
    content: " keeles";
}

div.translations a[hreflang="en"]::before {
    content: "In ";
}

p.byline.author {
    display: none;
}

p.dateline::before {
    content: "" !important; 
}