:root {
    --bg: #ffffff;
    --text: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Noto Serif', Georgia, serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    width: 100%;
    padding: 2rem 3vw;
    min-height: 100vh;
    align-content: center;
}

.bio {
    grid-column: span 6;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.55;
}

.bio p {
    margin-bottom: 0.95em;
}

.bio p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

.location {
    display: inline-block;
}

.clock {
    font-variant-numeric: tabular-nums;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem;
    }

    .bio {
        grid-column: span 1;
    }

    .bio p {
        margin-bottom: 0.65em;
    }

}

/* Desktop - tighter line height for larger text */
@media (min-width: 601px) {
    .bio {
        line-height: 1.35;
    }
}

/* Selection styling */
::selection {
    background-color: var(--text);
    color: var(--bg);
}

/* Bouncing text */
.bouncing-text {
    position: fixed;
    font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    padding: 0.5em 1.2em;
    border: 4px solid var(--text);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .bouncing-text {
        border-width: 2.5px;
    }
}
