@font-face {
    font-family: 'MesloLGS Nerd Font Mono';
    src: url('/assets/MesloLGSNerdFontMono-Regular.90fb4a2d0049.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --or-bg: #efede5;
    --or-surface: #ffffff;
    --or-surface-hover: #f5f5f5;
    --or-text: #1a1a1b;
    --or-text-muted: #595959;
    --or-border: #634936;
    --or-grid: rgba(99, 73, 54, 0.1);
    --or-selection: #1a1a1b;
    --or-selection-text: #efede5;

    --or-space-xs: 0.5rem;
    --or-space-sm: 1rem;
    --or-space-md: 1.5rem;
    --or-space-lg: 2rem;
    --or-space-xl: 4rem;

    --or-theme-transition: 0.3s ease;

    --or-font-sans: 'Inter', system-ui, sans-serif;
    --or-font-mono: 'MesloLGS Nerd Font Mono', 'Space Mono', monospace;
}

html.dark {
    --or-bg: #1a1a1b;
    --or-surface: #202021;
    --or-surface-hover: #2a2a2b;
    --or-text: #efede5;
    --or-text-muted: #a3a393;
    --or-border: #634936;
    --or-grid: #2a2a2b;
    --or-selection: #efede5;
    --or-selection-text: #1a1a1b;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background: var(--or-bg);
    color: var(--or-text);
    font-family: var(--or-font-sans);
    line-height: 1.6;
    transition: background-color var(--or-theme-transition), color var(--or-theme-transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--or-selection);
    color: var(--or-selection-text);
}

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

.or-button {
    min-height: 40px;
    padding: 0.55rem 1rem;
    border: 0;
    background: var(--or-text);
    color: var(--or-bg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--or-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color var(--or-theme-transition), color var(--or-theme-transition), opacity 0.2s ease;
}

.or-button:hover {
    opacity: 0.88;
}

.or-button:focus-visible {
    outline: 1px solid var(--or-text);
    outline-offset: 3px;
}

.or-button:disabled,
.or-button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.35;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-text {
    color: var(--or-text);
    font-family: var(--or-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color var(--or-theme-transition);
}

.badge-line {
    width: 2rem;
    height: 1px;
    opacity: 0.5;
    background-color: var(--or-border);
    transition: background-color var(--or-theme-transition);
}

.ohrats-grid {
    position: absolute;
    inset: 0;
    background-size: var(--or-grid-size, 40px) var(--or-grid-size, 40px);
    background-image:
        linear-gradient(to right, var(--or-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--or-grid) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black var(--or-grid-fade-start, 40%), transparent var(--or-grid-fade-end, 100%));
    -webkit-mask-image: linear-gradient(to bottom, black var(--or-grid-fade-start, 40%), transparent var(--or-grid-fade-end, 100%));
    opacity: var(--or-grid-opacity, 0.2);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
.site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 4rem;
    z-index: 100;
    background: color-mix(in srgb, var(--or-bg) 95%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--or-border);
    transition: background-color var(--or-theme-transition), border-color var(--or-theme-transition);
}

.nav-container {
    max-width: 1400px;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--or-text);
    text-decoration: none;
    transition: opacity 0.2s, color var(--or-theme-transition);
}

.logo-image {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: var(--or-font-mono);
    font-size: 0.875rem;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-number {
    margin-bottom: 0.25rem;
    color: var(--or-text-muted);
    font-family: var(--or-font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    transition: color var(--or-theme-transition);
}

.menu-label {
    color: var(--or-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--or-theme-transition);
}

.menu-item:hover .menu-number,
.menu-item:hover .menu-label {
    color: var(--or-text);
}

.menu-item.nav-highlight .menu-label {
    border-bottom: 1px solid var(--or-border);
}

.theme-toggle {
    padding: 0.25rem;
    border: 0;
    background: none;
    color: var(--or-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--or-theme-transition);
}

.theme-toggle:hover {
    color: var(--or-text);
}

.mobile-menu-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--or-text);
    cursor: pointer;
    display: block;
}

.mobile-menu {
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    border-bottom: 1px solid var(--or-border);
    background: var(--or-bg);
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
    transition: background-color var(--or-theme-transition), border-color var(--or-theme-transition);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    color: var(--or-text);
    font-family: var(--or-font-mono);
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-theme-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-theme-label {
    color: var(--or-text-muted);
    font-family: var(--or-font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.mobile-theme-btn {
    padding: 0.5rem;
    border: 1px solid var(--or-border);
    border-radius: 4px;
    background: none;
    color: var(--or-text);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.cta-link {
    color: var(--or-text-muted);
    font-family: var(--or-font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--or-theme-transition);
}

.cta-link:hover {
    color: var(--or-text);
}


.github-link {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--or-text-muted);
    display: inline-grid;
    place-items: center;
    transition: color var(--or-theme-transition);
}

.github-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    background: currentColor;
    -webkit-mask: url("/assets/github.bce494189797.svg") center / contain no-repeat;
    mask: url("/assets/github.bce494189797.svg") center / contain no-repeat;
}

.github-link:hover {
    color: var(--or-text);
}

.divider {
    width: 1px;
    height: 1rem;
    background: var(--or-border);
    transition: background-color var(--or-theme-transition);
}

.mobile-divider {
    width: 100%;
    height: 1px;
    background: var(--or-border);
    transition: background-color var(--or-theme-transition);
}

@media (min-width: 1024px) {
    .desktop-menu,
    .cta-buttons {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu,
    .mobile-menu.open {
        display: none;
    }
}
footer {
    background-color: var(--or-bg);
    border-top: 1px solid var(--or-border);
    padding: 4rem 1.5rem 3rem;
    transition: background-color var(--or-theme-transition), border-color var(--or-theme-transition);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
.footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    display: block;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    color: var(--or-text-muted);
    width: 1.5rem;
    height: 1.5rem;
    transition: color 0.2s;
}

.footer-social-link:hover {
    color: var(--or-text);
}

.footer-social-link svg,
.footer-social-link .github-icon {
    width: 100%;
    height: 100%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    flex: 1;
    max-width: 800px;
}

@media (min-width: 768px) {
.footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.footer-column-label {
    font-family: var(--or-font-mono);
    font-size: 0.75rem;
    color: var(--or-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--or-text-muted);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--or-text);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--or-border);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--or-text-muted);
    font-family: var(--or-font-mono);
}
:root {
    --or-article-max-width: 800px;
}

.or-article {
    width: 100%;
    max-width: var(--or-article-max-width);
    margin: 0 auto;
    padding: var(--or-space-xl) var(--or-space-md);
}

.or-article-header {
    margin-bottom: var(--or-space-xl);
    border-bottom: 1px solid var(--or-border);
    padding-bottom: var(--or-space-lg);
}

.or-article-meta {
    display: block;
    margin-bottom: var(--or-space-sm);
    color: var(--or-text-muted);
    font-family: var(--or-font-mono);
    font-size: 0.875rem;
}

.or-article-header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.or-article-content {
    color: var(--or-text);
    font-size: 1.125rem;
    line-height: 1.7;
}

.or-article-content h2 {
    margin: 3rem 0 var(--or-space-md);
    border-left: 4px solid var(--or-border);
    padding-left: var(--or-space-md);
    font-size: 1.75rem;
    font-weight: 500;
}

.or-article-content p { margin-bottom: var(--or-space-md); }
.or-article-content ul,
.or-article-content ol { margin-bottom: var(--or-space-lg); padding-left: var(--or-space-md); }
.or-article-content li { margin-bottom: var(--or-space-sm); }
