/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 2;
    background-color: #f5f5f0;
    color: #2c3e50;
    padding: 2rem;
    font-size: 1rem;
}

/* Typography */
h1 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
}

h2 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: #2c3e50;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
}

/* Custom underline only for main page */
.center-content a {
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    font-weight: bold;
}

.center-content a:hover {
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    font-weight: bold;
}

/* Navigation links (no underline) */
nav a,
.minimal-nav a {
    text-decoration: none;
}

nav a:hover,
.minimal-nav a:hover {
    text-decoration: none;
}

/* Layout */
.center-content {
    max-width: 650px;
    margin: 15vh auto;
    text-align: center;
}

.center-content p {
    font-size: 1rem;
}

/* Blog styles */
.blog-list {
    max-width: 650px;
    margin: 5vh auto;
    text-align: left;
}

.blog-list h1 {
    font-weight: bold;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

.post-title {
    text-align: left;
}

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

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

.post-date {
    text-align: right;
    color: #666;
}

/* Post content */
.post-content {
    max-width: 650px;
    margin: 5vh auto;
    text-align: left;
}

.post-content h1 {
    font-size: 1rem;
    font-weight: bold;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    text-decoration: underline;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #666;
    margin-bottom: 2rem;
}

/* About page */
.about-content {
    margin-top: 2rem;
}

.about-content .dropdown {
    margin: 0.5rem 0 1rem 0;
}

.about-content .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.about-content .dropdown-toggle .triangle {
    display: inline-block;
    width: 1rem;
}

.about-content .dropdown-content {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.about-content ul {
    list-style: square;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Bookshelf */
.bookshelf-content {
    margin-top: 2rem;
    line-height: 1.3;
}

.bookshelf-content a {
    display: inline-block;
    margin-bottom: 0;
    text-decoration: none;
}

.bookshelf-content a:hover {
    text-decoration: underline;
}

/* Navigation */
.minimal-nav {
    margin-bottom: 1rem;
    text-align: left;
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .center-content {
        margin: 10vh auto;
    }
}

/* Bookshelf notes */
.book-notes {
    display: none;
    margin: 0.25rem 0 0.75rem 1rem;
    color: #444;
}

.bookshelf-content .book-link {
    cursor: pointer;
    display: block;
    margin-bottom: 0;
}

/* Inline badge with dotted rounded outline and tooltip */
.uga {
    position: relative;
    border: 2px dotted #2c3e50;
    border-radius: 999px;
    padding: 0.15em 0.5em;
    line-height: 1;
    display: inline-block;
}

.uga::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: -0.4rem;
    transform: translate(-50%, -100%);
    background: #2c3e50;
    color: #f5f5f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    white-space: nowrap;
    font-size: 0.85em;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.uga:hover::after {
    opacity: 1;
    transform: translate(-50%, -110%);
}