/* CSS Variables */
:root {
    --background: oklch(0.12 0.005 250);
    --foreground: oklch(0.88 0.01 85);
    --accent: oklch(0.7 0.12 145);
    --muted: oklch(0.55 0.01 85);
    --border: oklch(0.25 0.005 250);
    --card: oklch(0.15 0.005 250);

    --font-serif: 'IBM Plex Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

/* Base */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-mono);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 5rem 1.5rem;
    }
}

/* Header */
.header {
    margin-bottom: 3rem;
}

.name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .name {
        font-size: 1.875rem;
    }
}

.cursor {
    display: inline-block;
    width: 0.5rem;
    height: 1rem;
    background-color: var(--foreground);
    margin-left: 0.25rem;
    vertical-align: middle;
    opacity: 1;
    transition: opacity 0.1s;
}

.cursor.hidden {
    opacity: 0;
}

.title {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.prompt {
    color: var(--accent);
}

/* About Section */
.about {
    margin-bottom: 3rem;
}

.about p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.highlight {
    color: var(--foreground);
    border-bottom: 1px dotted var(--border);
}

/* Links Section */
.links-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link {
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: baseline;
}

.link:hover {
    color: var(--accent);
}

.link-bullet {
    color: var(--muted);
    margin-right: 0.5rem;
    transition: color 0.15s;
}

.link-arrow {
    color: var(--accent);
    display: none;
    margin-right: 0.5rem;
}

.link:hover .link-bullet {
    display: none;
}

.link:hover .link-arrow {
    display: inline;
}

.link-desc {
    color: var(--muted);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.project-link {
    flex-wrap: wrap;
}

.project-desc {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.status-indicator {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
}

.status-dot {
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    border-radius: 50%;
}

.status-pulse {
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-text {
    color: var(--accent);
}

.separator {
    color: var(--border);
}

.last-updated {
    color: var(--muted);
}

.visitor-count {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.made-with {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.html-tag {
    color: var(--accent);
}

.quote {
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
    border-left: 2px solid var(--border);
    padding-left: 0.75rem;
}

/* Selection */
::selection {
    background-color: var(--accent);
    color: var(--background);
}
