/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.8rem;
    line-height: 1.7;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #008080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
    text-transform: lowercase;
}

.site-nav a:hover {
    color: #008080;
    text-decoration: none;
}

/* Main Content */
.site-content {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

/* Post */
.post-title {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #111;
    letter-spacing: -0.02em;
}

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

.post-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #111;
}

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

/* Blockquote */
.post-content blockquote {
    border-left: 3px solid #008080;
    padding-left: 2rem;
    margin: 0 0 2rem 0;
    font-style: normal;
}

.post-content blockquote p {
    color: #444;
}

/* Highlight (callout yellow) */
.highlight {
    background: rgba(240, 165, 15, 0.13);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* Proficiency tooltip */
.special-text {
    position: relative;
    border-bottom: 1px dashed #008080;
    cursor: pointer;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.6rem 2rem;
    font-family: inherit;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    white-space: normal;
    width: max-content;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hover on desktop */
@media (hover: hover) {
    .special-text:hover .tooltip {
        display: block;
        opacity: 1;
    }
}

/* Click/tap toggle (all devices) */
.special-text.active .tooltip {
    display: block;
    opacity: 1;
}

/* Lists */
.post-content ul {
    margin: 0 0 2rem 2rem;
    list-style: disc;
}

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

.post-content li em {
    color: #666;
    font-size: 1.6rem;
}

/* Full-width image */
.full-width-image {
    margin: 3rem 0;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.full-width-image figcaption {
    margin-top: 0.8rem;
    font-size: 1.4rem;
    color: #999;
    text-align: center;
}

.full-width-image figcaption a {
    color: #999;
    text-decoration: underline;
}

/* Calendar embed */
.calendar-embed {
    margin: 2rem 0;
    overflow-x: auto;
}

.calendar-embed iframe {
    max-width: 100%;
    display: block;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    font-size: 1.4rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 600px) {
    .post-title {
        font-size: 3rem;
    }

    .post-content h2 {
        font-size: 2.2rem;
    }

    .logo {
        height: 45px;
    }

    .tooltip {
        left: 0;
        transform: none;
        max-width: calc(100vw - 6rem);
    }
}
