/* ═══════════════════════════════════════════════════════════
   sw1nn.com — Technical Blueprint Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
    --navy-base: #0a192f;
    --navy-light: #112240;
    --navy-lighter: #1e3a5f;
    --teal: #64ffda;
    --text-heading: #e6f1ff;
    --text-body: #ccd6f6;
    --text-muted: #8892b0;
    --warm: #f97316;
    --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --grid-line: rgba(100, 255, 218, 0.03);
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--navy-base);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-heading);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ── Blueprint Background (reusable) ───────────────────── */
.blueprint-bg {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navy-light);
    border-bottom: 1px solid var(--grid-line);
    backdrop-filter: blur(10px);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

.navbar-logo:hover {
    color: var(--teal);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--teal);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-body);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--navy-lighter);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--teal);
}

/* ── Main Content ───────────────────────────────────────── */
.main-content {
    padding-top: 64px;
    min-height: 100vh;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background-color: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.1);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.1);
    color: inherit;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
}

.card-description {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-content {
    color: var(--text-body);
    font-size: 0.95rem;
}

.card-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--teal);
    border-left: 2px solid var(--teal);
    padding-left: 0.75rem;
    margin: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
}

.section-content {
    margin-top: 1rem;
}

.section-cta {
    margin-top: 2rem;
    text-align: center;
}

.section-footer {
    margin-top: 1.5rem;
    text-align: right;
}

.link-arrow {
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.link-arrow:hover {
    opacity: 0.8;
}

.about-content {
    max-width: 700px;
    line-height: 1.8;
}

.about-content h3 {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border: 1px dashed var(--navy-lighter);
    border-radius: 4px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--teal);
    border-radius: 4px;
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--teal);
    color: var(--navy-base);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--navy-lighter);
    border-radius: 4px;
    color: var(--text-body);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--navy-lighter);
    color: var(--text-heading);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--navy-lighter);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Utility ────────────────────────────────────────────── */
.text-muted {
    color: var(--text-muted);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section,
.cta {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-body);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-links,
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Demo Components ────────────────────────────────────── */
.demo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px dashed var(--navy-lighter);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.demo-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.demo-shell-header {
    margin-bottom: 2rem;
}

.demo-shell-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.demo-shell-description {
    color: var(--text-body);
    font-size: 0.95rem;
}

.demo-shell-content {
    margin-top: 1.5rem;
}

.demo-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.demo-canvas-wrap {
    position: relative;
}

.demo-canvas {
    width: 100%;
    display: block;
    border-radius: 4px;
    background-color: var(--navy-light);
}

.demo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.demo-overlay-inner {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.85);
    border: 1px solid var(--navy-lighter);
    max-width: 400px;
}

.demo-overlay-inner p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
}

.demo-overlay-inner .demo-overlay-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Demo control elements */
.demo-select {
    background: var(--navy-light);
    color: var(--text-body);
    border: 1px solid var(--navy-lighter);
    padding: 6px 12px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
}

.demo-select:focus {
    outline: 1px solid var(--teal);
    outline-offset: 1px;
}

.demo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: var(--navy-lighter);
    border-radius: 2px;
    outline: none;
}

.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--teal);
    border-radius: 50%;
    cursor: pointer;
}

.demo-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--teal);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.demo-status {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.demo-status.success {
    color: var(--teal);
}

.demo-status.error {
    color: var(--warm);
}

.demo-instructions {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.demo-instructions p {
    margin: 2px 0;
}

.demo-instructions strong {
    color: var(--text-body);
}

.demo-instructions kbd {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1;
    color: var(--text-body);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    padding: 2px 6px;
    vertical-align: baseline;
}

.mouse-icon {
    display: inline-block;
    width: 12px;
    height: 16px;
    vertical-align: text-bottom;
    margin: 0 2px;
}

/* Demo description and legend */
.demo-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

.demo-legend {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.demo-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.demo-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Pathfinder specific */
.pathfinder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pathfinder .demo-controls {
    flex-wrap: wrap;
}

.pathfinder .demo-canvas {
    cursor: crosshair;
}

/* ── Particle System ───────────────────────────────────── */
.particle-system .demo-canvas {
    cursor: crosshair;
}

.particle-showcase,
.sorting-showcase,
.pathfinder-showcase,
.raytracer-showcase {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.particle-showcase:hover,
.sorting-showcase:hover,
.pathfinder-showcase:hover,
.raytracer-showcase:hover {
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.15);
}

.particle-showcase .demo-canvas,
.sorting-showcase .demo-canvas,
.pathfinder-showcase .demo-canvas,
.raytracer-showcase .demo-canvas {
    cursor: pointer;
    max-height: 400px;
    width: auto;
    margin: 0 auto;
}

.demo-control-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.demo-control-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--teal);
    min-width: 2.5em;
    text-align: right;
}

/* ── Demo Carousel ─────────────────────────────────────── */
.demo-carousel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-carousel-header {
    min-height: 3.5rem;
}

.demo-carousel-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.demo-carousel-stage {
    min-height: 300px;
}

.demo-carousel-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-carousel-dot {
    background: var(--navy-light);
    color: var(--text-muted);
    border: 1px solid var(--navy-lighter);
    border-radius: 2px;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.demo-carousel-dot:hover {
    color: var(--text-body);
    border-color: var(--text-muted);
}

.demo-carousel-dot.active {
    color: var(--teal);
    border-color: var(--teal);
}

.demo-carousel-timer {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ── Regex Tester ──────────────────────────────────────── */
.regex-tester {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.regex-input-wrap {
    position: relative;
    width: 100%;
    height: 36px;
    border: 1px solid var(--navy-lighter);
    border-radius: 2px;
    background: var(--navy-light);
}

.regex-flags-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.regex-input-wrap.regex-input-error {
    border-color: var(--warm);
}

.regex-input-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    white-space: pre;
    overflow: hidden;
    pointer-events: none;
}

.regex-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: transparent;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    box-sizing: border-box;
    caret-color: var(--teal);
}

.regex-input:focus {
    outline: 1px solid var(--teal);
    outline-offset: 1px;
}

.regex-input::selection {
    background: rgba(100, 255, 218, 0.3);
}

/* Regex syntax highlighting */
.rx-literal { color: var(--text-body); }
.rx-meta { color: var(--teal); font-weight: bold; }
.rx-escape { color: var(--warm); }
.rx-charclass { color: #58a6ff; }
.rx-posix-name { color: #a78bfa; font-style: italic; }
.rx-group-name { color: #a78bfa; font-style: italic; }
.rx-group-0 { color: #64ffda; font-weight: bold; }
.rx-group-1 { color: #a78bfa; font-weight: bold; }
.rx-group-2 { color: #f97316; font-weight: bold; }
.rx-group-3 { color: #58a6ff; font-weight: bold; }
.rx-group-4 { color: #ec4899; font-weight: bold; }
.rx-group-5 { color: #a3e635; font-weight: bold; }


.regex-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.regex-flag {
    background: var(--navy-light);
    color: var(--text-muted);
    border: 1px solid var(--navy-lighter);
    padding: 4px 10px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.regex-flag.active {
    background: var(--teal);
    color: var(--navy-base);
    border-color: var(--teal);
}

.regex-output {
    background: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    padding: 12px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-body);
    min-height: 100px;
}


.regex-error {
    color: var(--warm);
    font-family: var(--font-mono);
    font-size: 13px;
}

.regex-annotations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.regex-annot-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 2px;
    padding: 10px 12px;
}

.regex-annot-label {
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.regex-annot-lines {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.1;
}

.regex-annot-row {
    white-space: pre;
}

.regex-annot-text {
    color: var(--text-body);
    margin-bottom: 2px;
}

.regex-groups {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--navy-light);
    border-radius: 2px;
}

.regex-groups th {
    text-align: left;
    padding: 6px 12px;
    border-bottom: 1px solid var(--navy-lighter);
    color: var(--teal);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.regex-groups td {
    padding: 4px 12px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.5);
    color: var(--text-body);
}

.regex-groups tr:hover td {
    background: rgba(100, 255, 218, 0.03);
}

.regex-match-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.regex-match-count .count {
    color: var(--teal);
}

.regex-backtrack-note {
    color: var(--warm);
    font-size: 11px;
}

.regex-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.regex-examples-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.regex-example-btn {
    background: var(--navy-light);
    color: var(--text-muted);
    border: 1px solid var(--navy-lighter);
    padding: 3px 10px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.regex-example-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.regex-cheatsheet {
    margin-top: 8px;
}

.regex-cheatsheet-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.regex-cheatsheet-toggle:hover {
    color: var(--teal);
}

.regex-cheatsheet-body {
    margin-top: 12px;
    background: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 2px;
    padding: 16px;
}

.regex-cheatsheet-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .regex-cheatsheet-columns {
        grid-template-columns: 1fr;
    }
}

.regex-cheatsheet-section h4 {
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.regex-cheatsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.regex-cheatsheet-table td {
    padding: 3px 8px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.regex-cheatsheet-table td.pat {
    color: var(--text-heading);
    white-space: nowrap;
    width: 1%;
}

/* ── Blog ───────────────────────────────────────────────── */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.1);
    color: inherit;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.blog-card-summary {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Blog Article ───────────────────────────────────────── */
.blog-article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-article-header {
    margin-bottom: 2.5rem;
}

.blog-article-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-article-summary {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.blog-article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-article-body p {
    margin-bottom: 1.25rem;
}

.blog-article-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--navy-lighter);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.blog-article-body pre {
    background-color: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-article-body pre code {
    background: none;
    padding: 0;
}

.blog-article-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--navy-lighter);
}

/* ── Page ───────────────────────────────────────────────── */
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--navy-light);
        padding: 1rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--navy-lighter);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-article-title {
        font-size: 1.75rem;
    }
}
