/**
 * Portfolio Style — "Quiet Credibility" editorial-minimal theme.
 * Dark default + Light. Token-based, mobile-first.
 * Rules: hairlines over fills, mono as seasoning, no glows, no lifts.
 */

/* ------------------------------------------------------------------ *
 * Fonts (loaded via <link> in HTML) + design tokens
 * ------------------------------------------------------------------ */
:root {
    /* color */
    --bg: #0E0F11;
    --surface: #131417;
    --card: #16171A;
    --border: #23252A;
    --border-strong: #33363D;
    --text: #EDEEF0;
    --muted: #9BA1A9;
    --faint: #7B828C;
    --accent: #D9A441;
    --accent-soft: rgba(217, 164, 65, 0.10);
    --accent-contrast: #14130E;
    --danger: #E5765F;
    --success: #6FBF8E;
    --overlay: rgba(19, 20, 23, 0.92);
    --palette-selected: #1B1D21;

    /* type */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* space */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* geometry */
    --radius-sm: 6px;
    --radius-md: 8px;
    --content-max-width: 1080px;
    --prose-width: 65ch;
}

body[data-color-theme="light"] {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --border: #E6E4DE;
    --border-strong: #D3D0C7;
    --text: #16181C;
    --muted: #5F6672;
    --faint: #8A8F98;
    --accent: #D9A441;
    --accent-soft: rgba(217, 164, 65, 0.14);
    --danger: #C2503C;
    --success: #2E7D52;
    --overlay: rgba(255, 255, 255, 0.94);
    --palette-selected: #F1F0EA;
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

::selection {
    background: var(--accent-soft);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ------------------------------------------------------------------ *
 * Skip link
 * ------------------------------------------------------------------ */
.skip-navigation-link {
    position: absolute;
    left: -9999px;
}

.skip-navigation-link:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: var(--text);
    color: var(--bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.site-logo span {
    color: var(--accent);
    font-weight: 400;
}

.primary-navigation {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.primary-navigation a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

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

.primary-navigation a.active-section {
    color: var(--text);
    box-shadow: inset 0 -1px 0 var(--accent);
    border-radius: 0;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* ------------------------------------------------------------------ *
 * Buttons & controls
 * ------------------------------------------------------------------ */
.button-primary,
.button-ghost-small,
.filter-button {
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    min-height: 42px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
    font-weight: 600;
}

.button-primary:hover {
    background: var(--border-strong);
    border-color: var(--border-strong);
}

body[data-color-theme="light"] .button-primary:hover {
    background: #2A2D33;
    border-color: #2A2D33;
    color: #FAFAF8;
}

.button-ghost-small,
.filter-button {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.button-ghost-small:hover,
.filter-button:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.filter-button.active-filter {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.theme-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    flex: none;
}

.filter-button-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

.type-cursor {
    display: inline-block;
    width: 0.25em;
    height: 0.85em;
    margin-left: 3px;
    background: currentColor;
    vertical-align: -0.05em;
    animation: type-cursor-blink 0.85s steps(1) infinite;
}

@keyframes type-cursor-blink {
    50% { opacity: 0; }
}

/* ------------------------------------------------------------------ *
 * Layout & page rhythm
 * ------------------------------------------------------------------ */
.page-container {
    position: relative;
    z-index: 5;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--border);
    scroll-margin-top: 70px;
}

.section-heading {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 var(--space-6);
}

.section-number {
    color: var(--accent);
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-7);
    padding: var(--space-8) 0 var(--space-7);
    align-items: start;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 var(--space-5);
}

.hero-eyebrow .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex: none;
}

.hero-name {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 var(--space-5);
    color: var(--text);
}

.hero-summary {
    max-width: 54ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 var(--space-5);
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 var(--space-5);
}

.hero-availability .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex: none;
}

.hero-button-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: 0 0 var(--space-6);
}

.social-link-row {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    font-size: 13.5px;
    align-items: center;
}

.social-link-row a {
    color: var(--muted);
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.social-link-row a:hover {
    color: var(--text);
}

.social-link-row a:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--border);
    margin: 0 16px;
    vertical-align: middle;
}

/* ------------------------------------------------------------------ *
 * Standfirst band (motto — replaces the old marquee)
 * ------------------------------------------------------------------ */
.standfirst-band {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    text-align: center;
}

.standfirst-band p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Journey console (hero card — display only)
 * ------------------------------------------------------------------ */
.hero-journey-card {
    border: 1px solid var(--border);
    background: #101114;
    color: #C7CAD0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

body[data-color-theme="light"] .hero-journey-card {
    background: #101114;
    border-color: #23252A;
}

.terminal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #23252A;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7B828C;
}

.terminal-card-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    min-height: 190px;
    white-space: pre-wrap;
    margin: 0;
    color: #C7CAD0;
}

.terminal-card-hint {
    border-top: 1px solid #23252A;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #6B7280;
}

/* ------------------------------------------------------------------ *
 * Experience — hairline rail + hollow markers
 * ------------------------------------------------------------------ */
.compact-row-list {
    position: relative;
    display: grid;
    gap: var(--space-5);
    padding-left: 28px;
}

.compact-row-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border);
}

.compact-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: baseline;
}

.compact-row::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border-strong);
}

.compact-row:first-child::before {
    border-color: var(--accent);
}

.compact-row strong {
    display: block;
    font-size: 16.5px;
    font-weight: 600;
}

.compact-row span {
    color: var(--muted);
    font-size: 14px;
}

.compact-row .current-badge {
    display: inline-block;
    margin: 6px 0 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ------------------------------------------------------------------ *
 * Certifications — quiet two-column rows
 * ------------------------------------------------------------------ */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: var(--space-7);
}

.compact-card {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.compact-card strong {
    font-size: 15px;
    font-weight: 500;
}

.compact-card span {
    color: var(--faint);
    font-size: 13px;
    white-space: nowrap;
}

.compact-card span::before {
    content: "";
}

/* ------------------------------------------------------------------ *
 * Writeup feature card
 * ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.single-feature {
    grid-template-columns: minmax(0, 620px);
}

.information-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: border-color 0.15s ease;
}

.information-card:hover {
    border-color: var(--border-strong);
}

.information-card h3 {
    margin: var(--space-2) 0 var(--space-3);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.information-card .muted-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.information-card p {
    margin: 0 0 var(--space-3);
    color: var(--muted);
    font-size: 15px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-2);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.feature-link::after {
    content: "→";
}

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

/* ------------------------------------------------------------------ *
 * Research / Hall of Fame — severity dot rows
 * ------------------------------------------------------------------ */
.hall-of-fame-list {
    display: grid;
    gap: var(--space-2);
}

.hall-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: border-color 0.15s ease;
}

.hall-row:hover {
    border-color: var(--border-strong);
}

.severity-high,
.severity-medium,
.severity-low {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 0;
    padding: 0;
}

.severity-high { color: var(--danger); }
.severity-medium { color: var(--accent); }
.severity-low { color: var(--faint); }

.severity-high::before,
.severity-medium::before,
.severity-low::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.hall-row strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.hall-row small {
    color: var(--muted);
    font-size: 13.5px;
}

.hall-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.hall-proof-link:hover,
.hall-proof-link:focus-visible {
    color: var(--accent);
}

/* ------------------------------------------------------------------ *
 * About
 * ------------------------------------------------------------------ */
.about-summary {
    max-width: var(--prose-width);
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 var(--space-5);
}

.proof-pill-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.proof-pill:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

/* ------------------------------------------------------------------ *
 * Contact & footer
 * ------------------------------------------------------------------ */
.contact-single-column {
    max-width: var(--prose-width);
}

.contact-details p {
    margin: 0 0 var(--space-4);
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    transition: border-color 0.15s ease;
}

.contact-details a:hover {
    border-color: var(--accent);
}

.contact-details .button-ghost-small {
    margin-left: var(--space-2);
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.contact-details a.button-primary {
    color: var(--bg);
    border-bottom: 1px solid var(--text);
}

.contact-details a.button-primary:hover {
    color: var(--bg);
    border-bottom-color: var(--border-strong);
}

.site-footer {
    position: relative;
    z-index: 5;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--space-7) 20px 120px;
    color: var(--faint);
    font-size: 13.5px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--faint);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--text);
}

/* ------------------------------------------------------------------ *
 * Command palette (replaces the floating terminal dock)
 * ------------------------------------------------------------------ */
.palette-root {
    position: fixed;
    right: 50%;
    bottom: 20px;
    transform: translateX(50%);
    z-index: 40;
    width: min(560px, calc(100vw - 32px));
    font-family: var(--font-sans);
}

.palette-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.palette-bar:hover,
.palette-root[data-open="true"] .palette-bar {
    border-color: var(--border-strong);
    color: var(--text);
}

.palette-key {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    padding: 5px 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--palette-selected);
    color: var(--muted);
    flex: none;
}

.palette-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(420px, 60vh);
}

/* author display rules override the UA [hidden] style — restore it */
.palette-panel[hidden],
.palette-results[hidden],
.palette-output[hidden] {
    display: none;
}

body[data-color-theme="light"] .palette-panel {
    box-shadow: 0 24px 60px rgba(30, 28, 20, 0.16);
}

.palette-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.palette-prompt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    flex: none;
}

.palette-input-row input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font: inherit;
    font-size: 14.5px;
    min-width: 0;
}

.palette-input-row input::placeholder {
    color: var(--faint);
}

.palette-results {
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.palette-results::-webkit-scrollbar { width: 6px; }
.palette-results::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.palette-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.palette-item[aria-selected="true"] {
    background: var(--palette-selected);
    color: var(--text);
    box-shadow: inset 2px 0 0 var(--accent);
}

.palette-item-code {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--faint);
}

.palette-item-hint {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--faint);
}

.palette-footer {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--faint);
}

.palette-empty {
    padding: 18px 16px;
    font-size: 13.5px;
    color: var(--faint);
}

/* command output inside the palette */
.palette-output {
    padding: 12px 16px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.terminal-command-echo {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 10px;
    color: var(--text);
    font-weight: 500;
}

.terminal-command-echo:first-child {
    margin-top: 0;
}

.terminal-echo-symbol {
    color: var(--accent);
}

.terminal-system-reply {
    margin: 4px 0 4px 14px;
    padding-left: 12px;
    border-left: 1px solid var(--border-strong);
    color: var(--muted);
}

.terminal-heading-line {
    color: var(--text);
    border-left-color: var(--accent);
    font-weight: 500;
}

.terminal-stage-line {
    color: var(--text);
    border-left-color: var(--accent);
    font-weight: 500;
    margin-top: 10px;
}

.terminal-stage-line ~ .terminal-stage-line {
    border-top: 0;
}

.terminal-stage-detail {
    color: var(--muted);
    margin-bottom: 8px;
}

.terminal-error-line {
    color: var(--danger);
    border-left-color: var(--danger);
}

/* ------------------------------------------------------------------ *
 * Shared bits
 * ------------------------------------------------------------------ */
.prompt-symbol {
    color: var(--accent);
    user-select: none;
}

.mobile-only {
    display: none;
}

/* ------------------------------------------------------------------ *
 * Article page (writeups)
 * ------------------------------------------------------------------ */
.article-page {
    max-width: 720px;
    padding-top: var(--space-7);
    padding-bottom: var(--space-9);
}

.article-page > p:first-child a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.article-page > p:first-child a:hover {
    color: var(--text);
}

.article-page h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: var(--space-5) 0 var(--space-5);
}

.article-page h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: var(--space-7) 0 var(--space-3);
}

.article-page a {
    color: var(--accent);
}

.article-page p,
.article-page li {
    color: var(--muted);
    font-size: 16.5px;
}

.article-page strong {
    color: var(--text);
}

.article-page pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    overflow-x: auto;
    margin: var(--space-4) 0;
    line-height: 1.6;
}

.article-page code {
    font-family: var(--font-mono);
    font-size: 13px;
}

.article-page pre code {
    color: #C7CAD0;
}

.article-page :not(pre) > code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text);
    font-size: 0.85em;
}

.article-page blockquote {
    margin: var(--space-4) 0;
    padding: 2px 0 2px 18px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}

.article-page li {
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------ *
 * Mobile menu
 * ------------------------------------------------------------------ */
@media (max-width: 860px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .primary-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0 14px;
        gap: 0;
    }

    .primary-navigation.navigation-open {
        display: flex;
    }

    .primary-navigation a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .mobile-only {
        display: inline-flex;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        padding: 8px 20px;
    }

    .compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .content-section {
        padding: var(--space-7) 0;
    }

    .hero-section {
        padding: var(--space-6) 0 var(--space-6);
    }

    .hall-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .compact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .contact-details a,
    .social-link-row a {
        overflow-wrap: anywhere;
    }

    .palette-footer {
        gap: 10px;
        flex-wrap: wrap;
    }

    .site-footer {
        padding-bottom: 100px;
    }
}

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

    .type-cursor {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}


/*__APPEND__*/

