:root {
    --fog-bg: #EDEFEA;
    --on-surface: #1c1c1b;
    --primary: #040803;
    --on-surface-variant: #454842;
    --deep-teal: #2C5262;
    --hairline-border: #D2D5CB;
    --paper-surface: #F7F8F4;
    --surface-container-low: #f6f3f1;
    --surface-container-lowest: #ffffff;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
    background-color: var(--fog-bg);
    color: var(--on-surface);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Top Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(252, 249, 247, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline-border);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--on-surface-variant);
    transition: color 0.3s;
}

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

.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Main Content */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    margin-top: 112px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    flex: 1;
}

/* Hero */
.hero {
    background-color: var(--paper-surface);
    padding: 32px;
    border: 1px solid var(--hairline-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-text {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.05;
}

.terminal {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: var(--deep-teal);
}

.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid var(--primary);
    animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
    color: var(--primary);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--hairline-border);
    padding-bottom: 8px;
    margin-bottom: 24px;
    line-height: 1.15;
}

/* Log Entry */
.log-container {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--hairline-border);
    margin-left: 8px;
    padding-left: 24px;
    position: relative;
}

.log-entry {
    position: relative;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 9px;
    height: 9px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1px solid var(--paper-surface);
}

.log-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
}

.log-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
    flex-shrink: 0;
}

.log-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.log-desc {
    color: var(--on-surface);
}

.log-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 8px;
    border: 1px solid var(--hairline-border);
    background-color: var(--surface-container-low);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
}

/* Contact */
.contact-section {
    margin-top: 32px;
    border-top: 1px solid var(--hairline-border);
    padding-top: 32px;
}

.contact-links {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--hairline-border);
    background-color: var(--paper-surface);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary);
    transition: background-color 0.15s, color 0.15s;
}

.btn:hover {
    background-color: var(--deep-teal);
    color: #ffffff;
}

/* Footer */
footer {
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--hairline-border);
    background-color: var(--surface-container-lowest);
    margin-top: auto;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
    transition: color 0.3s, opacity 0.3s;
}

.footer-link:hover {
    color: #795900;
    opacity: 0.8;
}