:root {
    color-scheme: dark;
    --bg: #030014;
    --bg-alt: #05001a;
    --bg-elevated: rgba(10, 7, 25, 0.96);
    --bg-soft: rgba(18, 14, 40, 0.96);
    --accent: #e879f9;
    --accent-soft: rgba(232, 121, 249, 0.16);
    --accent-strong: #f472b6;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(248, 250, 252, 0.12);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;
    --spacing: 1.5rem;
    --spacing-sm: 0.75rem;
    --spacing-xs: 0.4rem;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f4f6;
    --bg-alt: #e5e7eb;
    --bg-elevated: rgba(255, 255, 255, 0.97);
    --bg-soft: rgba(243, 244, 246, 0.96);
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.14);
    --accent-strong: #7c3aed;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-subtle: rgba(148, 163, 184, 0.4);
    --border-strong: rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, #3b0764 0, #030014 45%, #02000a 100%);
    background-attachment: fixed;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 0 0, rgba(232, 121, 249, 0.09) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.08) 0, transparent 55%);
    opacity: 0.8;
    mix-blend-mode: screen;
    z-index: -1;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at top, #eef2ff 0, #f3f4f6 45%, #e5e7eb 100%);
    color: var(--text-main);
}

html[data-theme="light"] body::before {
    background-image:
        radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.18) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.14) 0, transparent 55%);
    mix-blend-mode: normal;
    opacity: 0.55;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.site-main {
    flex: 1;
    padding-block: 2.5rem 3.5rem;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
}

h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

p {
    margin: 0 0 0.8rem;
    color: var(--text-main);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    padding-block: 1.25rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(22px);
    background: linear-gradient(to bottom, rgba(3, 0, 20, 0.96), rgba(3, 0, 20, 0.85), transparent);
    border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

html[data-theme="light"] .site-header {
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.98), rgba(249, 250, 251, 0.9), transparent);
    border-bottom-color: rgba(209, 213, 219, 0.9);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    flex-direction: column;     
    align-items: flex-start;    
    gap: 0.25rem;
    text-decoration: none;
}

.brand-logo {
    width: 180px;
    height: auto;
    display: block;
}

.brand-text {
    margin-left: 0.15rem;       
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease,
        transform 0.1s ease;
}

.nav-link:hover {
    border-color: rgba(148, 163, 184, 0.45);
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    text-decoration: none;
    transform: translateY(-0.5px);
}

html[data-theme="light"] .nav-link:hover {
    background-color: rgba(243, 244, 246, 0.98);
}

.theme-toggle {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease,
        transform 0.1s ease, box-shadow 0.16s ease;
}

.theme-toggle span {
    display: inline-flex;
    align-items: center;
}

.theme-toggle:hover {
    border-color: rgba(232, 121, 249, 0.85);
    box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.4);
    transform: translateY(-0.5px);
}

html[data-theme="light"] .theme-toggle {
    background: rgba(249, 250, 251, 0.95);
    color: var(--text-main);
}


.nav-link:last-child {
    border-color: rgba(232, 121, 249, 0.45);
    background: radial-gradient(circle at top left, rgba(232, 121, 249, 0.24), rgba(15, 23, 42, 0.94));
    color: #fdf2ff;
}


.hero {
    padding-block: 1.5rem 1rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 1.75rem;
    align-items: stretch;
}

.hero-text {
    padding: 1.6rem 1.6rem 1.8rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(232, 121, 249, 0.13), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .hero-text {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.14), rgba(255, 255, 255, 0.98));
}

.hero-title {
    background-image: linear-gradient(120deg, #e879f9, #a855f7, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-size: 0.97rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #a5b4fc;
    margin-bottom: 0.55rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-pill);
    padding: 0.24rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 0.78rem;
}

.chip-yellow::before {
    background: radial-gradient(circle, #facc15, #eab308);
}

.chip-green::before {
    background: radial-gradient(circle, #34d399, #10b981);
}

.chip-blue::before {
    background: radial-gradient(circle, #60a5fa, #3b82f6);
}

html[data-theme="light"] .chip {
    background: rgba(243, 244, 246, 0.98);
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.hero-aside {
    display: flex;
    align-items: stretch;
}

.hero-card {
    width: 100%;
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hero-card-title {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin-bottom: 0.2rem;
}

.hero--compact {
    padding-block: 0.2rem 0.3rem;
}

.hero--compact .hero-layout {
    grid-template-columns: minmax(0, 1fr);
}

.hero--compact .hero-aside {
    display: none;
}

.content {
    margin-top: 0.4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 1.4rem;
    align-items: flex-start;
}

.cards-grid > .card:last-child {
    grid-column: 1 / -1;
}

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.35rem 1.3rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
}

.card-accent {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.12), rgba(15, 23, 42, 0.98));
    border-color: rgba(232, 121, 249, 0.45);
}

html[data-theme="light"] .card-accent {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(255, 255, 255, 0.98));
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 0.86rem;
    color: #c4b5fd;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}


.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: radial-gradient(circle at top left, rgba(232, 121, 249, 0.14), rgba(15, 23, 42, 0.98));
    font-size: 0.86rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease;
}

html[data-theme="light"] .link-primary {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.1), rgba(255, 255, 255, 0.98));
    color: #111827;
}

.link-primary:hover {
    border-color: rgba(232, 121, 249, 0.9);
    box-shadow: 0 12px 30px rgba(232, 121, 249, 0.24);
    text-decoration: none;
    transform: translateY(-0.5px);
}

.link-primary::after {
    content: "↗";
    font-size: 0.8rem;
    opacity: 0.8;
}

.link-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.78rem;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.3;
}

html[data-theme="light"] .link-pill {
    background: rgba(243, 244, 246, 0.98);
}

.link-pill:hover {
    border-color: rgba(232, 121, 249, 0.9);
    color: var(--text-main);
    text-decoration: none;
}


.link-inline {
    font-size: 0.8rem;
    text-decoration: underline;
}

.link-inline:hover {
    text-decoration: none;
}

.link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: radial-gradient(circle at top left, rgba(232, 121, 249, 0.14), rgba(15, 23, 42, 0.98));
    font-size: 0.86rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease;
}

html[data-theme="light"] .link-primary {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.1), rgba(255, 255, 255, 0.98));
    color: #111827;
}

.link-primary:hover {
    border-color: rgba(232, 121, 249, 0.9);
    box-shadow: 0 12px 30px rgba(232, 121, 249, 0.24);
    text-decoration: none;
    transform: translateY(-0.5px);
}

.link-primary::after {
    content: "↗";
    font-size: 0.8rem;
    opacity: 0.8;
}

.link-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.link-inline {
    font-size: 0.8rem;
    text-decoration: underline;
}

.link-inline:hover {
    text-decoration: none;
}

.equipment-list {
    margin-top: 2.2rem;
    padding: 1.4rem 1.5rem 1.6rem;
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.equipment-list h2 {
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    color: #bfdbfe;
}

.equipment-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.equipment-list th,
.equipment-list td {
    padding: 0.7rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

html[data-theme="light"] .equipment-list th,
html[data-theme="light"] .equipment-list td {
    border-bottom-color: rgba(209, 213, 219, 0.9);
}

.equipment-list th {
    background: rgba(15, 23, 42, 0.98);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #a5b4fc;
}

html[data-theme="light"] .equipment-list th {
    background: rgba(249, 250, 251, 0.98);
    color: #4b5563;
}

.equipment-list tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.9);
}

.equipment-list tbody tr:nth-child(even) {
    background: rgba(12, 10, 32, 0.95);
}

html[data-theme="light"] .equipment-list tbody tr:nth-child(odd) {
    background: rgba(249, 250, 251, 0.96);
}

html[data-theme="light"] .equipment-list tbody tr:nth-child(even) {
    background: rgba(243, 244, 246, 0.98);
}

.equipment-list tbody tr:hover {
    background: rgba(31, 41, 55, 0.95);
}

html[data-theme="light"] .equipment-list tbody tr:hover {
    background: rgba(229, 231, 235, 0.98);
}

.equipment-list a {
    color: var(--accent-strong);
    text-decoration: underline;
    font-size: 0.86rem;
}

.equipment-list a:hover {
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(3, 0, 20, 0.98));
    padding-block: 1.4rem 1.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

html[data-theme="light"] .site-footer {
    border-top-color: rgba(209, 213, 219, 0.9);
    background: radial-gradient(circle at top, #f9fafb, #e5e7eb);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left,
.footer-right {
    max-width: 20rem;
}

.footer-text-main {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.footer-text-sub {
    font-size: 0.8rem;
}

.footer-meta {
    margin-bottom: 0.25rem;
}

.footer-meta a {
    color: var(--accent);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.muted {
    color: var(--text-muted);
}

@media (max-width: 800px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        margin-top: 0.5rem;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid > .card:last-child {
        grid-column: auto;
    }

    .site-main {
        padding-block: 1.6rem 2.5rem;
    }
}

.commit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.86rem;
}

.commit-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.commit-message {
    color: var(--text-main);
    text-decoration: none;
}

.commit-message:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.commit-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.link-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    background: rgba(15, 23, 42, 0.96);
}

html[data-theme="light"] .link-pill {
    background: rgba(243, 244, 246, 0.98);
}

.link-pill:hover {
    border-color: rgba(232, 121, 249, 0.9);
    text-decoration: none;
}

.commit-list,
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.commit-row,
.post-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.commit-message,
.post-title {
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
}

.commit-message:hover,
.post-title:hover {
    text-decoration: underline;
}

.commit-meta,
.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-summary {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.page-heading {
    max-width: 960px;
    margin: 2.5rem auto 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-title {
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.page-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-heading-back {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.blog-heading-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.blog-heading-title {
    position: relative;
    padding-bottom: 0.4rem;
}

.blog-heading-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0)
    );
}

.blog-heading-meta {
    font-size: 0.9rem;
    opacity: 0.75;
}

.blog-post-card {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .blog-heading-main {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.push-right {
    margin-left: auto;
    text-align: right;
    float:right;
}