/* Montres : Le Choix Passionné — Warm Navy Design System */
/* Personal, passionate, warm approach to watches */

/* ========== Tokens ========== */
:root {
    --c-bg: #f5f3f0;
    --c-surface: #ffffff;
    --c-text: #1e2a3a;
    --c-text-muted: #5a6a7a;
    --c-accent: #c0392b;
    --c-accent-hover: #a02e24;
    --c-accent-light: rgba(192, 57, 43, 0.10);
    --c-steel: #2c3e50;
    --c-steel-light: rgba(44, 62, 80, 0.10);
    --c-border: #d5d0ca;
    --c-border-light: #e8e4de;
    --c-hero-bg: #1e2a3a;
    --c-hero-text: #f5f3f0;
    --c-footer-bg: #1e2a3a;
    --c-footer-text: #c0c8d0;
    --font-sans: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --max-w: 1280px;
    --radius: 2px;
    --radius-sm: 1px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;

    /* Grid-paper background for cards (CSS-only texture) */
    --grid-pattern: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 19px,
        rgba(184, 115, 51, 0.04) 19px,
        rgba(184, 115, 51, 0.04) 20px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 19px,
        rgba(184, 115, 51, 0.04) 19px,
        rgba(184, 115, 51, 0.04) 20px
    );
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========== Header — Prop C "Six Voix" ========== */
header {
    background: var(--c-surface);
    position: relative;
    z-index: 100;
}

.header-brand {
    text-align: center;
    padding: 1.8rem 1.5rem 0.4rem;
    border-bottom: 1px solid var(--c-border-light);
}

/* Logo 5: Floating index markers — no circle, ultra minimal */
.header-clock {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.7rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cline x1='24' y1='3' x2='24' y2='10' stroke='%231e2a3a' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='24' y1='38' x2='24' y2='45' stroke='%231e2a3a' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='3' y1='24' x2='10' y2='24' stroke='%231e2a3a' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='38' y1='24' x2='45' y2='24' stroke='%231e2a3a' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='38.8' y1='9.2' x2='34.5' y2='13.5' stroke='%231e2a3a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='9.2' y1='38.8' x2='13.5' y2='34.5' stroke='%231e2a3a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='38.8' y1='38.8' x2='34.5' y2='34.5' stroke='%231e2a3a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='9.2' y1='9.2' x2='13.5' y2='13.5' stroke='%231e2a3a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='24' y1='24' x2='16' y2='12' stroke='%231e2a3a' stroke-width='2.8' stroke-linecap='round'/%3E%3Cline x1='24' y1='24' x2='33' y2='17' stroke='%23c0392b' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='24' cy='24' r='2.5' fill='%23c0392b'/%3E%3C/svg%3E");
}

.header-tagline {
    font-size: 0.78rem;
    color: var(--c-text-muted);
    margin-top: 0.15rem;
    font-weight: 400;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
}
.logo:hover { color: var(--c-accent); }

.header-nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    border-bottom: 2px solid var(--c-accent);
}

header nav ul, .header-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.3rem 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

header nav ul a {
    color: var(--c-text-muted);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}
header nav ul a:hover { color: var(--c-text); }

.rss-link {
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--c-border-light);
    letter-spacing: 0.06em;
}
.rss-link:hover {
    border-color: var(--c-accent);
    color: var(--c-accent) !important;
}

/* ========== Main ========== */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    background-image: radial-gradient(circle at 50% 10%, rgba(192, 57, 43, 0.02) 0%, transparent 50%);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.breadcrumb a { color: var(--c-text-muted); flex-shrink: 0; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.breadcrumb svg { opacity: 0.4; flex-shrink: 0; }

/* ========== Hero — Prop C full-width dark ========== */
.hero {
    background: linear-gradient(135deg, var(--c-hero-bg) 0%, var(--c-steel) 100%);
    color: var(--c-hero-text);
    padding: 3.5rem 2rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 30%, rgba(192, 57, 43, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
    line-height: 1.25;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 600px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* ========== Sections ========== */
.section { margin-bottom: 3rem; }

.section-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    color: var(--c-steel);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-border-light);
    position: relative;
}
.section-title::before {
    content: '\2014\00a0';
    color: var(--c-accent);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border-light);
}
.page-header h1 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-text);
}
.page-header p {
    color: var(--c-text-muted);
    margin-top: 0.5rem;
    font-size: 0.92rem;
}

/* ========== Cards ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
@media (min-width: 1100px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--c-surface);
    border-radius: 6px;
    border-top: 3px solid var(--c-accent);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.card-body h3 a { color: var(--c-text); }
.card-body h3 a:hover { color: var(--c-accent); }

.card-body p {
    font-size: 0.88rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
    flex: 1;
}

.card-body time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--c-text-muted);
    letter-spacing: 0.04em;
}

.card-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
}

/* ========== Chips ========== */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: 0.03em;
    transition: all var(--transition);
}
.chip:hover {
    background: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}

.chip-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
}

/* ========== Article ========== */
.article {
    max-width: 760px;
}

.article-header {
    margin-bottom: 2rem;
}
.article-header h1 {
    font-family: var(--font-sans);
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--c-text-muted);
    margin-bottom: 0.6rem;
}
.article-meta time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.article-category {
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    padding: 0.15rem 0.5rem;
    background: var(--c-accent-light);
}
.article-category:hover { color: var(--c-accent-hover); }

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

/* ========== Prose (article body) ========== */
.article-body {
    line-height: 1.8;
}

.prose {
    font-size: 1rem;
    line-height: 1.8;
}

.prose h1, .prose h2, .prose h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.6rem;
    color: var(--c-text);
}
.prose h2 {
    font-size: 1.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--c-border-light);
}
.prose h3 { font-size: 1.15rem; }

.prose p { margin-bottom: 1.3rem; }

.prose ul, .prose ol {
    margin-bottom: 1.3rem;
    padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.3rem; }

.prose a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-color: rgba(184, 115, 51, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition), color var(--transition);
}
.prose a:hover {
    text-decoration-color: var(--c-accent);
}

.prose blockquote {
    border-left: 3px solid var(--c-accent);
    padding: 0.8rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--c-text-muted);
    font-style: italic;
    background: var(--c-accent-light);
}

.prose code {
    font-family: var(--font-mono);
    background: var(--c-steel-light);
    padding: 0.15rem 0.4rem;
    font-size: 0.86em;
    color: var(--c-steel);
}

.prose pre {
    background: #1e2a30;
    color: #d8dee2;
    padding: 1.2rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(184, 115, 51, 0.2);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
}
.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--c-border-light);
    margin: 2.5rem 0;
}

.prose img {
    margin: 1.5rem 0;
    border: 1px solid var(--c-border-light);
}

.prose strong { color: var(--c-text); }

/* Technical tables — caliber specification sheet feel */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.prose th {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--c-steel-light);
    color: var(--c-steel);
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid var(--c-border);
}
.prose td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px dashed var(--c-border-light);
}

/* ========== Article footer ========== */
.article-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-muted);
    letter-spacing: 0.02em;
}
.article-footer time {
    font-family: var(--font-mono);
}

/* ========== Related articles ========== */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border-light);
}

/* ========== Draft banner ========== */
.draft-banner {
    display: inline-block;
    background: transparent;
    color: #c0392b;
    padding: 0.3rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 2px dashed #c0392b;
    margin-bottom: 1rem;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}
.pagination-info {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--c-text-muted);
    letter-spacing: 0.04em;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-outline {
    border: 1px solid var(--c-border-light);
    color: var(--c-text);
    background: var(--c-surface);
}
.btn-outline:hover {
    border-color: var(--c-accent);
    border-style: solid;
    color: var(--c-accent);
    background: var(--c-accent-light);
}

/* ========== Empty state ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--c-text-muted);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
}
.empty-state h1 {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: 0.15em;
}

/* ========== Series ========== */
.series-banner {
    background: var(--c-surface);
    background-image: var(--grid-pattern);
    border: 1px solid var(--c-border-light);
    border-left: 3px solid var(--c-accent);
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
}

.series-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    text-decoration: none;
    color: var(--c-text);
}
.series-link:hover { color: var(--c-accent); }

.series-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    background: var(--c-accent-light);
    padding: 0.15rem 0.5rem;
}

.series-progress {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-left: auto;
    letter-spacing: 0.04em;
}

.series-nav {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

/* Square dots — like jewel positions on a technical drawing */
.series-dot {
    width: 10px;
    height: 10px;
    border-radius: 0;
    display: inline-block;
    transition: transform var(--transition);
}
.series-dot:hover { transform: scale(1.3); }

.series-dot-current { background: var(--c-accent); }
.series-dot-published { background: var(--c-steel); }
.series-dot-upcoming {
    background: transparent;
    border: 1px solid var(--c-border-light);
}

/* Series index page — full-width rows */
.series-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.series-row {
    display: flex;
    flex-direction: row;
    background: var(--c-surface);
    background-image: var(--grid-pattern);
    border: 1px solid var(--c-border-light);
    border-left: 3px solid var(--c-steel);
    overflow: hidden;
    text-decoration: none;
    color: var(--c-text);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.series-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--c-border);
    color: var(--c-text);
}

.series-row-image {
    width: 240px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}
.series-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.05);
    transition: filter var(--transition);
}
.series-row:hover .series-row-image img {
    filter: saturate(1) contrast(1);
}

.series-row-body {
    padding: 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.series-row-body h2 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.series-row-body p {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    line-height: 1.55;
    margin-bottom: 0.6rem;
    flex: 1;
}
.series-card-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-accent);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Series detail — timeline layout */
.series-timeline {
    position: relative;
    padding-left: 40px;
}
.series-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: row;
    background: var(--c-surface);
    background-image: var(--grid-pattern);
    border: 1px solid var(--c-border-light);
    border-left: 3px solid var(--c-accent);
    overflow: hidden;
    text-decoration: none;
    color: var(--c-text);
    transition: box-shadow var(--transition), transform var(--transition);
}
.timeline-published:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--c-text);
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-accent);
    border: 2px solid var(--c-bg);
    transform: translateY(-50%);
}
.timeline-upcoming { opacity: 0.5; }
.timeline-upcoming::after { background: var(--c-border); }

.timeline-img {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
}
.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 120px;
    filter: saturate(0.7) contrast(1.05);
    transition: filter var(--transition);
}
.timeline-published:hover .timeline-img img {
    filter: saturate(1) contrast(1);
}

.timeline-body {
    padding: 1rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.timeline-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--c-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}
.timeline-body h3 {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.timeline-body p {
    font-size: 0.82rem;
    color: var(--c-text-muted);
    line-height: 1.45;
}

/* ========== Comments ========== */
.comments-section { margin-top: 3rem; }

.comment {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-left: 3px solid var(--c-steel);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
}

.comment-reply {
    margin-left: 2rem;
    border-left-color: var(--c-accent);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 0.92rem;
    color: var(--c-text);
    font-weight: 600;
}

.comment-meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--c-accent);
    background: var(--c-accent-light);
    padding: 0.15rem 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-header time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-text-muted);
    margin-left: auto;
    letter-spacing: 0.03em;
}

.comment-reply-to {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.comment-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== Footer ========== */
footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-text);
    margin-top: 4rem;
    border-top: 3px solid var(--c-accent);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-col { }

.footer-brand {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--c-accent);
}

.footer-tagline {
    font-size: 0.82rem;
    opacity: 0.6;
    line-height: 1.5;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.4;
    margin-bottom: 0.8rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul a {
    color: var(--c-footer-text);
    opacity: 0.65;
    font-size: 0.85rem;
    transition: opacity var(--transition), color var(--transition);
}
footer ul a:hover {
    opacity: 1;
    color: var(--c-accent);
}

.footer-privacy {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.footer-privacy p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.4;
    letter-spacing: 0.04em;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    opacity: 0.3;
    text-align: center;
    letter-spacing: 0.06em;
}

/* ========== Selection ========== */
::selection {
    background: var(--c-accent);
    color: white;
}

/* ========== Focus styles (accessibility) ========== */
a:focus-visible,
.btn:focus-visible,
.chip:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* ========== Responsive (mobile) ========== */
@media (max-width: 768px) {
    /* Header: horizontal scroll nav, no wrapping */
    .header-inner {
        padding: 0.7rem 1rem 0.2rem;
    }

    .header-nav {
        padding: 0.2rem 0.5rem 0.5rem;
    }

    .header-nav ul {
        justify-content: center;
        gap: 0.2rem 0.7rem;
    }

    .logo {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    header nav ul {
        gap: 0.2rem 0.7rem;
        flex-wrap: wrap;
    }

    header nav ul a {
        font-size: 0.72rem;
        padding: 0.25rem 0;
    }

    /* Main content padding */
    main { padding: 1.5rem 1rem 3rem; }

    /* Hero */
    .hero { padding: 2.5rem 1.2rem; }
    .hero h1 { font-size: 1.5rem; letter-spacing: 0.06em; }
    .hero-tagline { font-size: 0.88rem; }
    .hero::after { width: 80px; height: 80px; }

    /* Article */
    .article-header h1 { font-size: 1.45rem; }
    .article-meta { flex-wrap: wrap; gap: 0.4rem; }

    /* Section titles */
    .section-title { font-size: 0.95rem; }

    /* Page header */
    .page-header h1 { font-size: 1.4rem; }

    /* Series banner */
    .series-banner { padding: 0.8rem 1rem; }
    .series-link { font-size: 0.88rem; }
    .series-progress { font-size: 0.7rem; margin-left: 0; }
    .series-nav { flex-wrap: wrap; gap: 0.3rem; }
    .series-dot { width: 8px; height: 8px; }

    /* Cards */
    .card-grid { grid-template-columns: 1fr; }
    .series-row { flex-direction: column; }
    .series-row-image { width: 100%; min-height: 160px; }
    .timeline-item { flex-direction: column; }
    .timeline-img { width: 100%; min-height: 140px; }

    /* Card corner fold */
    .card::before { border-width: 0 14px 14px 0; }

    /* Breadcrumb */
    .breadcrumb {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .breadcrumb::-webkit-scrollbar { display: none; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    .footer-privacy p { font-size: 0.65rem; }

    /* Comments */
    .comment-reply { margin-left: 1rem; }
    .comment-header { gap: 0.4rem; }
    .comment-header time { margin-left: 0; }

    /* Series parts */
    .series-part { padding: 1rem; }
    .series-part-number { font-size: 1.2rem; }

    /* Chips */
    .category-chips { gap: 0.5rem; }

    /* Pagination */
    .pagination { gap: 0.75rem; }
    .btn { padding: 0.45rem 1rem; font-size: 0.72rem; }
}

/* ---------- Search ---------- */
.search-page { max-width: var(--max-w); margin: 0 auto; }
.search-page input[type="search"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text);
    margin-bottom: 0.5rem;
    transition: border-color var(--transition);
}
.search-page input[type="search"]:focus {
    outline: none;
    border-color: var(--c-accent);
}
.search-count {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 1.5rem;
}
.search-link { font-size: 0.9rem; }
