/* ============================================================
   NARRALUME — Stylesheet  (v3.0 — 2026-06)
   Ground: warm rosy plaster  ·  Ink: near-black
   Accent: cable blue (flat, no glow)
   Type:   Archivo (variable width axis), one family
   Previous version backed up as style-v2-backup.css
   ============================================================ */

/* === VARIABLES === */
:root {
    --paper:  #e9ded2;   /* warm rosy plaster, matched to installed-piece photos */
    --paper2: #ded0c2;   /* slightly deeper, image-cell ground */
    --ink:    #181610;
    --grey:   #87837a;   /* aluminium / concrete mid-tone */
    --cable:  #1f3fd8;   /* the blue of the power cable */
    --pad: clamp(20px, 4vw, 56px);

    /* Legacy aliases — keep any not-yet-reviewed template rendering */
    --bg: var(--paper);
    --obsidian: var(--paper);
    --parchment: var(--ink);
    --ink-warm: var(--ink);
    --ink-soft: var(--grey);
    --ink-dim: var(--grey);
    --metal: var(--grey);
    --amber: var(--cable);
    --cobalt: var(--cable);
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-sans: 'Archivo', system-ui, sans-serif;
    --serif: var(--font-display);
    --sans: var(--font-sans);
    --header-h: 58px;
    --pad-x: var(--pad);
    --border: 2px solid var(--ink);
}

/* === RESET / BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wide {
    font-stretch: 125%;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    height: var(--header-h);
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}

.header-logo {
    font-stretch: 125%;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
}
.header-logo sup {
    color: var(--cable);
    font-size: 9px;
    font-stretch: 100%;
    vertical-align: super;
    margin-left: 2px;
}
/* Neutralise old wordmark spans if still present in cached markup */
.header-logo .lume { font-style: normal; font-weight: 700; color: inherit; }
.header-logo .dot { display: none; }

.header-nav { display: flex; gap: 28px; }
.header-nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    padding: 2px 0;
}
.header-nav a:hover { border-bottom-color: var(--cable); }
.header-nav a:hover::before { display: none; }

/* ============================================================
   SHARED
   ============================================================ */
.label, .kicker {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cable);
}
.label--muted { color: var(--grey); }
.rule { display: none; }

/* ============================================================
   SOMMAIRE — Hero
   ============================================================ */
.hero {
    padding: 0 var(--pad);
    min-height: calc(100svh - var(--header-h));
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: left;
    position: relative;
    overflow: visible;
}
.hero::after { display: none; }   /* kill old film grain */

/* The cable: one flat blue line. No gradient, no glow, no bead. */
.hero-filament { margin: 0; width: auto; display: block; }
.hero-cord, .hero-cable {
    display: block;
    width: 3px;
    height: clamp(60px, 14vh, 140px);
    background: var(--cable);
    margin-left: 1px;
}
.hero-cord::after { display: none; }
.hero-bead { display: none; }
.hero-scroll, .hero-scroll-tick { display: none; }

.hero-wordmark {
    font-stretch: 125%;
    font-weight: 650;
    font-style: normal;
    font-size: clamp(48px, 11.5vw, 180px);
    line-height: 0.92;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    display: block;
}
.hero-wordmark .narra, .hero-wordmark .lume {
    font-style: normal;
    font-weight: inherit;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.hero-wordmark .dot { display: none; }

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0 32px;
    border-top: 2px solid var(--ink);
    margin-top: 28px;
}

.hero-tagline {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-size: clamp(16px, 1.6vw, 21px);
    color: var(--ink);
    max-width: 34ch;
}
.hero-tagline .pause {
    display: inline;
    width: auto; height: auto;
    background: none; margin: 0; transform: none;
}

.hero-index {
    font-size: 13px;
    color: var(--grey);
    text-align: right;
    white-space: nowrap;
}
.hero-index b { color: var(--ink); font-weight: 600; }

/* ============================================================
   SOMMAIRE — Featured piece
   ============================================================ */
.featured { padding: 0; }

.featured-link {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2px;
    background: var(--ink);          /* seams via gap, no sliver */
    border-top: 2px solid var(--ink);
    min-height: 82vh;
}

.featured-image { overflow: hidden; background: var(--paper2); }
.featured-image img { transition: transform .8s cubic-bezier(.25,.1,.25,1); }
.featured-link:hover .featured-image img { transform: scale(1.02); }

.featured-info {
    padding: 40px var(--pad) 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--paper);
    border-left: none;
}

.featured-info .label, .featured-info .kicker { margin-bottom: auto; }

.featured-info h2 {
    font-stretch: 125%;
    font-weight: 600;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.02;
    text-transform: uppercase;
    margin: 48px 0 10px;
}

.featured-edition {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey);
    opacity: 1;
    margin-bottom: 40px;
}

.featured-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    opacity: 1;
    border-bottom: 2px solid var(--cable);
    padding-bottom: 3px;
    align-self: flex-start;
}
.featured-link:hover .featured-cta { color: var(--cable); }
.featured-cta .rule { display: none; }

/* ============================================================
   RUBRIQUE — Works
   ============================================================ */
.collection { padding-top: 0; }

.collection-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 22px var(--pad);
    border-bottom: none;
}
.collection-header h1, .collection-header h3 {
    font-stretch: 125%;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: uppercase;
}
.collection-header span { font-size: 13px; color: var(--grey); }

/* Seams drawn by grid background through a uniform 2px gap */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--ink);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.work-card {
    display: block;
    background: var(--paper);
    border: none;
    box-shadow: none;
    overflow: hidden;
}
.work-card:nth-child(odd) { box-shadow: none; }

/* Odd card count: fill the leftover grid cell with plaster so the
   ink background doesn't show as a dark block. The :has() guard adds
   the filler only when the last card sits alone in its row. */
.works-grid:has(.work-card:last-child:nth-child(odd))::after {
    content: '';
    background: var(--paper);
}

.work-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--paper2);
}
/* Images arrive pre-cropped to 3:2 by image_recadre in the templates;
   cover is just the safety net if a template skips the crop. */
.work-image img {
    object-fit: cover;
    transition: transform .8s cubic-bezier(.25,.1,.25,1);
}
.work-card:hover .work-image img { transform: scale(1.02); }

.work-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px var(--pad) 20px;
    border-top: 2px solid var(--ink);
}
.work-info h2 {
    font-stretch: 125%;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 1;
}
.work-info .edition {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey);
    opacity: 1;
    white-space: nowrap;
}

/* ============================================================
   ARTICLE — Single piece
   ============================================================ */
.piece {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: start;
    /* Full-height column divider drawn on the container: a 2px ink
       stripe at the 3fr/2fr boundary (60%). Runs the whole page even
       when one column is shorter than the other. */
    background:
        linear-gradient(90deg,
            var(--paper) calc(60% - 2px),
            var(--ink)   calc(60% - 2px),
            var(--ink)   60%,
            var(--paper) 60%);
    padding-top: 0;
}

.piece-images {
    display: flex;
    flex-direction: column;
    background: var(--paper2);
}
.piece-images img { width: 100%; height: auto; object-fit: initial; }

.piece-content {
    position: sticky;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 40px var(--pad) 56px;
    display: flex;
    flex-direction: column;
    background: transparent;   /* let the container's divider stripe show */
    border-left: none;
}

.piece-content .label, .piece-content .kicker { margin-bottom: 40px; }

.piece-content h1 {
    font-stretch: 125%;
    font-weight: 600;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.0;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.piece-subtitle {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey);
    opacity: 1;
    font-weight: 400;
    margin-bottom: 32px;
}

.piece-rule { display: none; }

.piece-narrative {
    font-family: 'Archivo', sans-serif;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    opacity: 1;
    max-width: 52ch;
    margin-bottom: 48px;
    flex-grow: 1;
}

/* Spec sheet */
.piece-meta {
    padding-top: 0;
    border-top: 2px solid var(--ink);
    display: block;
    margin-top: auto;
}
.meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink);
    font-size: 14px;
}
.meta-row dt, .meta-label {
    color: var(--grey);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
}
.meta-row dd, .meta-value {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    opacity: 1;
}
/* Old markup fallback: .meta-item pairs render as rows */
.meta-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink);
}

/* ============================================================
   TEXT PAGE (About article and similar prose pages)
   ============================================================ */
.text-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px var(--pad) 96px;
}
.text-page .kicker {
    display: block;
    margin-bottom: 20px;
}
.text-page h1 {
    font-stretch: 125%;
    font-weight: 650;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--ink);
}
.text-page-chapo {
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 56ch;
}
.text-page-body {
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 60ch;
}
.text-page-body p + p { margin-top: 1.1em; }
.text-page-body h2,
.text-page-body h3 {
    font-stretch: 125%;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 17px;
    margin: 2em 0 0.6em;
}
.text-page-body a {
    border-bottom: 1px solid var(--cable);
}
.text-page-body img { max-width: 100%; height: auto; margin: 1.5rem 0; }

/* ============================================================
   ABOUT (rubrique-2 / rubrique-3)
   ============================================================ */
.about { padding-top: 0; }

.about-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: 64px var(--pad) 48px;
    border-bottom: 2px solid var(--ink);
}
.about-hero h1 {
    font-stretch: 125%;
    font-weight: 650;
    font-size: clamp(48px, 8vw, 110px);
    letter-spacing: -0.015em;
    line-height: 0.95;
    text-transform: uppercase;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--ink);
    border-bottom: 2px solid var(--ink);
}

.about-statement {
    padding: 56px var(--pad);
    background: var(--paper);
    border: none;
}
.about-statement .label { display: block; margin-bottom: 32px; }
.about-statement p {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    opacity: 1;
}
.about-statement p + p { margin-top: 20px; }

.about-pillars {
    padding: 56px var(--pad);
    background: var(--paper);
    border: none;
}
.about-pillars .label { display: block; margin-bottom: 32px; }

.pillar { padding: 24px 0; border-bottom: 1px solid var(--ink); }
.pillar:first-of-type { border-top: 2px solid var(--ink); }
.pillar h3 {
    font-stretch: 125%;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.pillar p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    opacity: 0.75;
}

.about-quote {
    grid-column: 1 / -1;
    padding: 80px var(--pad);
    text-align: left;
    background: var(--paper);
}
.about-quote blockquote {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.4;
    color: var(--ink);
    opacity: 1;
    max-width: 760px;
    margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 24px var(--pad) 28px;
    border-top: 2px solid var(--ink);
    font-size: 13px;
}
.footer-brand, .site-footer .fb {
    font-stretch: 125%;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 1;
}
.footer-tagline {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    color: var(--ink);
    opacity: 1;
}
.footer-tagline .sep { display: none; }
.footer-tagline a { border-bottom: 1px solid var(--cable); }
.footer-copy { font-size: 13px; color: var(--grey); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    :root { --pad: 32px; --header-h: 54px; }

    .featured-link { grid-template-columns: 1fr; min-height: auto; }
    .featured-image { aspect-ratio: 4/3; }
    .featured-info { padding: 36px var(--pad) 44px; }

    .piece { grid-template-columns: 1fr; background: var(--paper); }
    .piece-content {
        position: static;
        max-height: none;
        padding: 40px var(--pad) 48px;
        border-top: 2px solid var(--ink);
    }

    .about-body { grid-template-columns: 1fr; }
    .about-hero { min-height: 30vh; padding: 48px var(--pad) 40px; }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero-index { text-align: left; }

    .site-footer {
        flex-direction: column;
        gap: 10px;
        padding: 24px var(--pad);
    }
}

@media (max-width: 600px) {
    :root { --pad: 20px; --header-h: 52px; }

    .header-nav { gap: 18px; }
    .header-nav a { font-size: 13px; }

    .hero { min-height: calc(100svh - var(--header-h)); }
    .hero-cord, .hero-cable { height: clamp(48px, 10vh, 90px); }

    .works-grid { grid-template-columns: 1fr; }
    .works-grid::after { display: none; }   /* no leftover cell in single column */
    .work-image { aspect-ratio: 4/3; }
    .work-info { padding: 14px var(--pad) 18px; }

    .featured-image { aspect-ratio: 1/1; }
    .featured-info h2 { font-size: clamp(26px, 8vw, 38px); }

    .piece-content h1 { font-size: clamp(28px, 8vw, 42px); }

    .about-hero h1 { font-size: clamp(38px, 11vw, 64px); }
    .about-statement, .about-pillars { padding: 40px var(--pad); }
    .about-quote { padding: 48px var(--pad); }
}
