/* Import Charter Font (fallback to Georgia) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes growUnderline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Entrance animations */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

:root {
    --bg-primary: #ffffff;
    --bg-white: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --walter-green: #4a6bd6;
    --border-color: #e0e0e0;
    --hover-bg: rgba(107, 140, 255, 0.03);
    --quote-bg: rgba(107, 140, 255, 0.02);
    --nav-bg: rgba(255, 255, 255, 0.98);
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Dark mode overrides - will be set via JavaScript */
body.dark-mode {
    --bg-primary: #1e1e1e;
    --bg-white: #2a2a2a;
    --text-primary: #c8c8c8;
    --text-secondary: #a0a0a0;
    --walter-green: #6b8cff;
    --border-color: #3a3a3a;
    --quote-bg: rgba(107, 140, 255, 0.06);
    --nav-bg: rgba(30, 30, 30, 0.98);
    --hover-bg: rgba(107, 140, 255, 0.08);
    background: linear-gradient(to bottom, #0A0A0A 0%, #121212 100%);
    background-attachment: fixed;
}

body.dark-mode::before {
    opacity: 0.02;
}

body.dark-mode nav {
    background-color: rgba(30, 30, 30, 0.98);
}

body.dark-mode .nav-logo {
    color: #e8e8e8 !important;
}

body.dark-mode .nav-logo:hover {
    color: #ffffff !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-primary);
    background: linear-gradient(to bottom, #f8f7f4 0%, #e9e6e2 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.8s ease-out;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
}

body.dark-mode::before {
    opacity: 0.01;
    mix-blend-mode: overlay;
}

/* Ring buffer scrollbar */
.ring-buffer-scrollbar {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 2px !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.05) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
}

.ring-buffer-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(120, 120, 120, 0.6) !important;
    transition: top 0.1s ease-out;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2) !important;
}

.ring-buffer-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(120, 120, 120, 0.3), transparent) !important;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

::selection {
    background-color: rgba(107, 140, 255, 0.18);
    color: var(--text-primary);
}

*:focus-visible {
    outline: 2px solid rgba(107, 140, 255, 0.55);
    outline-offset: 1px;
    border-radius: 2px;
}

body.dark-mode *:focus-visible {
    outline-color: rgba(107, 140, 255, 0.65);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.telemetry-header {
    display: none;
}

.nav-left {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-logo {
    font-size: 1.40rem;
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.02em;
    position: relative;
}

.nav-logo::after {
    content: '\2588';
    margin-left: 4px;
    animation: blink 1.2s step-end infinite;
    font-size: 0.75em;
    transform: scaleX(0.6) translateY(-0.1em);
    display: inline-block;
    color: #000000;
}

body.dark-mode .nav-logo::after {
    color: #ffffff;
}

.nav-logo:hover {
    color: var(--walter-green);
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 2px;
    font-weight: 600;
    line-height: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--walter-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

body.dark-mode .nav-links a::after {
    background: var(--walter-green);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.nav-secondary {
    opacity: 0.72;
    font-weight: 500;
}

.nav-links a.nav-secondary:hover {
    opacity: 0.9;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    align-self: baseline;
    position: relative;
    top: 2px;
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.theme-toggle:active svg {
    transform: scale(0.9);
}

/* Hero Section */
.hero {
    padding: 7rem 0 4rem;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-greeting {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -0.045em;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-spacer {
    height: 2rem;
}

.hero-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content {
    max-width: 42rem;
}

.hero-content > * {
    animation: slideUpFade 0.6s ease-out backwards;
}

.hero-greeting {
    animation-delay: 0.1s;
}

.hero-intro {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.3s;
}

.quote-box {
    animation-delay: 0.4s;
}

.quick-links {
    animation-delay: 0.5s;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bounce 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator svg {
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Quote Box */
.quote-box {
    padding: 0 0 0 2rem;
    max-width: 42rem;
    margin: 2rem 0;
    position: relative;
}

.quote-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0.5rem;
    width: 2px;
    background: var(--text-primary);
    opacity: 0.6;
}

.quote-text {
    font-size: 0.91rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.quote-author {
    font-size: 0.8rem;
    color: var(--walter-green);
    font-family: 'IBM Plex Sans', sans-serif;
    opacity: 0.65;
}

/* Buttons */
.quick-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 2px;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(120, 120, 120, 0.3);
}

.btn:last-child {
    border-right: none;
    padding-right: 0;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--walter-green);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.btn:hover::after {
    transform: scaleX(1);
}

.btn-primary {
    color: var(--text-primary);
}

.btn-primary:hover {
    color: var(--walter-green);
}

.btn-secondary {
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--walter-green);
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 2.5rem 0;
    animation: slideUp 0.6s ease-out;
    scroll-margin-top: 5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-white {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.section-title::before {
    content: '';
    display: none;
}

.section-title::after {
    content: attr(data-hex) ' :: ' attr(data-subtitle);
    font-size: 0.75rem;
    font-family: 'IBM Plex Sans', monospace;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.05em;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: left;
}

.work-section {
    background-color: var(--bg-primary);
    position: relative;
}

.work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.view-all-container {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

.btn-view-all {
    display: inline;
    font-family: 'IBM Plex Sans', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.15s ease;
    position: relative;
}

.btn-view-all::before {
    content: '';
    display: none;
}

.btn-view-all:hover::before {
    display: none;
}

.btn-view-all:hover {
    opacity: 1;
    color: var(--text-primary);
    text-decoration: underline dotted;
    text-decoration-color: var(--text-secondary);
    transform: translateX(2px);
    box-shadow: none;
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    max-width: 720px;
}

.about-paragraph {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 1.05rem;
}

.about-paragraph strong {
    color: var(--text-primary);
    font-weight: 500;
}

.about-details {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    align-items: flex-start;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.detail-group-separator {
    width: 1px;
    background-color: var(--border-color);
    align-self: stretch;
}

.detail-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.detail-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
}

/* Projects */
.project-card {
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    background-color: rgba(255, 255, 255, 0.4);
    position: relative;
}

body.dark-mode .project-card {
    background-color: rgba(42, 42, 42, 0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--walter-green), var(--text-primary));
    transition: height 0.3s ease;
}

.project-card:hover::before {
    height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.25;
    flex: 1;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: var(--walter-green);
}

.project-stars {
    font-size: 0.8rem;
    color: rgba(102, 102, 102, 0.9);
    font-weight: 400;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(136, 136, 136, 0.9);
}

.project-tag {
    padding: 0;
    background-color: transparent;
    border: none;
    color: rgba(136, 136, 136, 0.9);
    font-size: 0.85rem;
    font-family: inherit;
    transition: color 0.2s ease;
    position: relative;
    cursor: default;
}

.project-tag:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -9px;
    color: rgba(68, 68, 68, 0.6);
}

/* Monospaced log-style project block */
.project-log {
    font-family: var(--font-mono);
    background: transparent;
    color: var(--text-primary);
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    border-left: 2px solid rgba(107,140,255,0.12);
}

.project-log a { color: var(--walter-green); text-decoration: none; }

.project-log .meta { color: rgba(160,160,170,0.9); font-family: inherit; }

.project-tag:hover {
    color: var(--text-primary);
}

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.4);
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.project-link:hover {
    border-color: var(--walter-green);
    color: var(--walter-green);
    gap: 0.75rem;
}

/* Writing */
.post-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.75rem;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

body.dark-mode .post-item {
    background-color: rgba(42, 42, 42, 0.4);
}

.post-item:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
    background-image: linear-gradient(transparent calc(100% - 2px), var(--walter-green) 2px);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.post-title a:hover {
    color: var(--walter-green);
    background-size: 100% 100%;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0;
    font-size: 0.9rem;
}

/* Blog Search - now in nav */
.blog-search {
    display: none;
}

.search-input {
    display: none;
}

/* Blog Tags - now in nav */
.blog-tags {
    display: none;
}

/* Search Section */
.search-container {
    max-width: 680px;
}

.search-input-main {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.search-input-main:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--hover-bg);
}

.search-input-main::placeholder {
    color: var(--text-secondary);
}

#search-results {
    display: grid;
    gap: 1.25rem;
}

/* Contact Section */
.contact-content {
    max-width: 680px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--walter-green);
}

/* Notes */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.note-card:hover {
    border-color: var(--walter-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.note-category {
    font-size: 0.75rem;
    color: var(--walter-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.note-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.note-title a:hover {
    color: var(--walter-green);
}

.note-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Contact - now minimal/empty */
#contact {
    padding: 0;
    min-height: 0;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    transform-origin: left;
}

.contact-card:hover {
    border-color: var(--text-primary);
    background-color: var(--hover-bg);
    transform: translateX(4px);
}

.contact-card svg {
    color: var(--walter-green);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}

.contact-value {
    color: var(--walter-green);
    font-weight: 500;
}

/* Work Page */
.work-page {
    animation: fadeIn 0.5s ease-out;
    padding: 8rem 0 3rem;
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Contact Page */
.contact-page,
.verify-page {
    padding: 8rem 0 3rem;
    animation: fadeIn 0.5s ease-out;
    min-height: 100vh;
}

.contact-content-page,
.verify-content {
    max-width: 720px;
    margin: 0 auto;
}

.verify-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 2rem 0 3rem;
}

.pgp-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    padding: 2rem;
    margin: 3rem 0;
}

.pgp-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.key-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.key-rows {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin: 0 0 1.5rem;
}

.key-rows--compact {
    margin-top: 1.5rem;
}

.key-row {
    display: grid;
    grid-template-columns: 12ch 1fr;
    column-gap: 1rem;
    align-items: baseline;
}

.key-row + .key-row {
    margin-top: 1rem;
}

.key-label {
    opacity: 0.85;
    white-space: nowrap;
}

.key-info code {
    background: rgba(107, 140, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
}

.key-row code {
    background: rgba(107, 140, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
    display: block;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pgp-key {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-x: hidden;
    color: #333;
    margin: 1.5rem 0;
}

body.dark-mode .pgp-key {
    background: #1a1a1a;
    color: #e0e0e0;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 0.3rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--walter-green);
    color: var(--walter-green);
}

.copy-btn.is-copied {
    border-color: var(--walter-green);
    color: var(--walter-green);
    opacity: 0.9;
}

.copy-btn--small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.copy-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.verify-intro-secondary {
    margin-top: -2.25rem;
}

.verify-instructions {
    margin: 3rem 0;
}

.verify-instructions h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.verify-instructions > p {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.verify-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.verify-steps li {
    counter-increment: step-counter;
    margin-bottom: 1.7rem;
    position: relative;
    padding-left: 3rem;
}

.verify-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--walter-green);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.verify-steps pre {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    padding: 0.8rem 1rem;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre;
    overflow-x: hidden;
}

.cmd-block {
    position: relative;
    width: 100%;
}

.cmd-block pre {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding-right: 5.25rem;
}

.cmd-copy {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .cmd-block:hover .cmd-copy,
    .cmd-copy:focus {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (hover: none), (max-width: 768px) {
    .cmd-copy {
        opacity: 1;
        pointer-events: auto;
    }
}

.signed-pages {
    margin: 3rem 0;
}

.signed-pages h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.signed-list {
    list-style: none;
    padding: 0;
}

.signed-list li {
    margin-bottom: 0.75rem;
}

.signed-list a {
    color: var(--walter-green);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.signed-list a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.trust-note {
    background: rgba(107, 140, 255, 0.05);
    border-left: 3px solid var(--walter-green);
    padding: 1.5rem;
    margin: 3rem 0;
    border-radius: 0.3rem;
}

.trust-note p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.trust-note strong {
    color: var(--text-primary);
}

/* Vapor Link */
.vapor-link {
    opacity: 0.8;
    text-decoration: none;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    display: inline-block;
    margin-left: 0.25rem;
}

.vapor-link:hover {
    opacity: 1;
    color: var(--text-primary);
    text-decoration: underline dotted;
    text-decoration-color: var(--text-secondary);
    transform: translateX(2px);
}

/* Env Export List */
.env-list {
    margin: 2.5rem 0;
    padding: 1rem 1.25rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    line-height: 1.5;
    max-width: 36rem;
}

.env-list li {
    margin: 0;
    padding: 0.4rem 0;
}

.env-cmd-link {
    color: inherit;
    text-decoration: none;
}

.env-cmd-link:hover {
    text-decoration: none;
}

.cmd-block pre {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    padding: 0.8rem 1rem;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre;
    overflow-x: hidden;
}

@media (max-width: 420px) {
    .verify-steps pre,
    .cmd-block pre {
        font-size: 0.78rem;
        padding: 0.7rem 0.85rem;
    }

    .cmd-block pre {
        padding-right: 4.9rem;
    }

    .cmd-copy {
        right: 0.6rem;
    }
}

body.dark-mode .cmd-block pre {
    background: #1a1a1a;
}

.contact-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--quote-bg);
    border-left: 3px solid var(--walter-green);
    border-radius: 0 0.3rem 0.3rem 0;
}

.contact-note p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-note p + p {
    margin-top: 0.75rem;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 1.05rem;
}

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

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'IBM Plex Sans', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.7;
}

.footer-tagline.is-footer-toggle {
    cursor: pointer;
}

.footer-tagline.is-footer-toggle:hover {
    opacity: 0.9;
}

.footer-colophon {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', monospace;
    opacity: 0.5;
    letter-spacing: 0.02em;
}

body.dark-mode .footer-colophon {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.colophon-item {
    margin: 0 0.3rem;
}

.colophon-separator {
    margin: 0 0.4rem;
    opacity: 0.6;
}

.footer-hash {
    opacity: 0.35;
    font-variant-numeric: tabular-nums;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--walter-green);
    border-bottom-color: var(--walter-green);
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* Keyboard shortcuts modal */
.keyboard-shortcuts-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpFade 0.3s ease-out;
    display: none;
    font-family: var(--font-mono);
}

.keyboard-shortcuts-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.shortcuts-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.shortcuts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.shortcut-category {
    font-weight: 600;
    color: var(--walter-green);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.shortcuts-list li:has(.shortcut-category) {
    padding: 0.75rem 0 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.shortcuts-list li:has(.shortcut-category):first-child {
    margin-top: 0;
    padding-top: 0;
}

.shortcut-key {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    min-width: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

body.dark-mode .keyboard-shortcuts-modal {
    background: rgba(20, 20, 20, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .shortcut-key {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.25rem;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 0.35rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .project-card,
    .post-item {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .project-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .about-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .detail-group-separator {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-box {
        padding: 0 0 0 1.25rem;
        margin: 1.5rem 0;
    }
    
    .quote-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.25rem;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-greeting {
        font-size: 2.5rem;
    }
    
    .hero-intro,
    .hero-description {
        font-size: 0.9rem;
    }
    
    .quick-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .btn {
        width: auto;
        justify-content: flex-start;
    }
    
    .project-card,
    .post-item {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-colophon {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Ring buffer scrollbar */
.ring-buffer-scrollbar {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 2px !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.05) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
}

.ring-buffer-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(120, 120, 120, 0.6) !important;
    transition: top 0.1s ease-out;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2) !important;
}

.ring-buffer-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(120, 120, 120, 0.3), transparent) !important;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.dark-mode .ring-buffer-scrollbar {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Telemetry header */
.telemetry-header {
    display: none;
}

/* Keyboard navigation indicator */
.kbd-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: 'IBM Plex Sans', monospace;
    font-size: 1.5rem;
    color: var(--walter-green);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1001;
    pointer-events: none;
}

.kbd-indicator.show {
    opacity: 0.6;
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.command-palette-content {
    width: 90%;
    max-width: 600px;
    background: #000000;
    border: 1px solid var(--walter-green);
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 0 40px rgba(107, 140, 255, 0.3);
}

.command-palette #command-input {
    width: 100%;
    padding: 20px;
    background: #000000;
    border: none;
    color: var(--walter-green);
    font-family: 'IBM Plex Sans', monospace;
    font-size: 1rem;
    outline: none;
    caret-color: var(--walter-green);
}

.command-palette #command-input::placeholder {
    color: rgba(107, 140, 255, 0.5);
}

.command-palette #command-output {
    padding: 0 20px 20px;
    color: var(--walter-green);
    font-family: 'IBM Plex Sans', monospace;
    font-size: 0.9rem;
    min-height: 20px;
}

/* RSS Page Styles */
.rss-page {
    padding-top: 8rem;
    padding-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .rss-page {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .rss-page {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .feed-url {
        font-size: 0.8rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.rss-info {
    max-width: 720px;
    margin: 2rem auto;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rss-info p {
    margin: 0.75rem 0;
}

.feed-url {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--walter-green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
}

.feed-url a {
    color: var(--walter-green);
    text-decoration: none;
}

.feed-url a:hover {
    text-decoration: underline;
}

.signed-section {
    max-width: 720px;
    margin: 2rem auto;
}

.signed-details {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: var(--bg-secondary);
}

.signed-details summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    color: var(--text-primary);
}

.signed-details summary::marker {
    color: var(--walter-green);
}

.signed-details[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.signed-details .verify-steps {
    padding: 1.5rem;
}

.signed-message {
    margin: 0;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: hidden;
    white-space: pre;
    color: var(--text-secondary);
}

.feed-preview {
    max-width: 720px;
    margin: 2rem auto;
}

.feed-preview h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feed-preview p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feed-preview a {
    color: var(--walter-green);
    text-decoration: none;
}

.feed-preview a:hover {
    text-decoration: underline;
}