/* =================================================================
   JDV Press — editorial wine magazine
   ----------------------------------------------------------------
   Palette : warm paper cream + oxblood ink + subtle gold accents.
   Type    : Fraunces (display, variable opsz + WONK) / Lora (body)
             / Pinyon Script (masthead nameplate).
   ================================================================= */

:root {
    --paper:        #F7F1E3;
    --paper-tint:   #FBF6E9;
    --paper-deep:   #ECE4D0;
    --vellum:       #FFFCF3;
    --ink:          #14110D;
    --ink-soft:     #3F352B;
    --ink-mute:     #6F6358;
    --ink-faint:    #998D80;
    --wine:         #6E1E2A;
    --wine-deep:    #4A0D14;
    --wine-soft:    #8D3743;
    --gold:         #A8843A;
    --gold-soft:    #C9A65E;
    --rule:         #D8CFC0;
    --rule-soft:    #E8E0D0;
    --grain-opacity: 0.035;

    --ff-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --ff-body:    'Lora', 'Iowan Old Style', 'Palatino', 'Georgia', serif;
    --ff-ui:      'Fraunces', Georgia, serif;
    --ff-script:  'Pinyon Script', 'Italianno', cursive;

    --container:  1320px;
    --container-wide: 1480px;
    --rail:       80px;

    --shadow-soft: 0 1px 2px rgba(20,17,13,.04), 0 8px 24px rgba(20,17,13,.05);
    --shadow-deep: 0 1px 3px rgba(20,17,13,.05), 0 20px 60px rgba(20,17,13,.10);
}

/* =================================================================
   Reset
   ================================================================= */

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

html {
    background: var(--paper);
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(168, 132, 58, 0.05), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0.6 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.55'/></svg>");
    background-attachment: fixed;
    background-size: auto, 240px 240px;
    overflow-x: hidden;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: var(--paper-deep); }

a { color: var(--wine); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--wine); color: var(--vellum); }

/* =================================================================
   Typography utility classes
   ================================================================= */

.jdv-display {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 0, "WONK" 1;
    font-feature-settings: "ss01" 1;
    line-height: 1.04;
    letter-spacing: -0.018em;
    color: var(--ink);
}

.jdv-script {
    font-family: var(--ff-script);
    font-weight: 400;
    line-height: 1;
}

.jdv-eyebrow {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.74rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--wine);
}

.jdv-meta {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 500;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

h1, h2, h3, h4, h5 {
    font-family: var(--ff-display);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 .4em;
}

p { margin: 0 0 1em; }

/* =================================================================
   Page container & rail
   ================================================================= */

.jdv-shell {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.jdv-shell--wide {
    max-width: var(--container-wide);
}

@media (max-width: 720px) {
    .jdv-shell { padding: 0 18px; }
}

/* =================================================================
   Header / masthead
   ================================================================= */

.jdv-header {
    position: relative;
    padding-top: 18px;
    background: linear-gradient(180deg, var(--paper-tint) 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--rule);
}

.jdv-header__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-soft);
}

.jdv-topbar__date {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.jdv-topbar__quote {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 0.96rem;
    color: var(--ink-soft);
    text-align: center;
    flex: 1;
}

.jdv-topbar__social {
    display: flex;
    gap: 14px;
}

.jdv-topbar__social a {
    color: var(--ink-mute);
    font-family: var(--ff-ui);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jdv-topbar__social a:hover { color: var(--wine); }

.jdv-masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 26px 0 22px;
    gap: 24px;
}

.jdv-masthead__rule {
    height: 1px;
    background: var(--ink);
    opacity: 0.55;
    margin: 0;
}

.jdv-masthead__title {
    font-family: var(--ff-script);
    font-size: clamp(3.4rem, 7vw, 6rem);
    color: var(--ink);
    text-align: center;
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.005em;
}

.jdv-masthead__title a { color: inherit; }
.jdv-masthead__title a:hover { color: var(--wine); }

.jdv-masthead__tag {
    text-align: center;
    margin-top: 2px;
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 24, "wght" 400;
    font-style: italic;
    font-size: 0.96rem;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.jdv-masthead__edition {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: right;
}

.jdv-masthead__edition .num {
    display: block;
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 60, "wght" 500;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.6rem;
    color: var(--wine);
    margin-top: 4px;
}

.jdv-nav {
    border-top: 1px solid var(--ink);
    border-bottom: 1px double var(--ink);
    padding: 12px 0;
}

.jdv-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 38px;
}

.jdv-nav__list a {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 0;
    display: inline-block;
    position: relative;
}

.jdv-nav__list a:hover { color: var(--wine); }
.jdv-nav__list .current-menu-item > a,
.jdv-nav__list .current-cat > a {
    color: var(--wine);
}
.jdv-nav__list .current-menu-item > a::after,
.jdv-nav__list .current-cat > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--wine);
}

@media (max-width: 720px) {
    .jdv-masthead { grid-template-columns: 1fr; }
    .jdv-masthead__edition { text-align: center; order: 3; }
    .jdv-nav__list { gap: 0 22px; }
    .jdv-nav__list a { font-size: 0.7rem; letter-spacing: 0.18em; }
    .jdv-topbar__quote { display: none; }
}

/* =================================================================
   Hero (Home — Une)
   ================================================================= */

.jdv-hero {
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--rule);
}

.jdv-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}

.jdv-hero__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
    box-shadow: var(--shadow-deep);
}
.jdv-hero__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 6s ease;
}
.jdv-hero__media:hover img { transform: scale(1.03); }

.jdv-hero__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(20,17,13,0.18) 100%);
    pointer-events: none;
}

.jdv-hero__caption {
    position: absolute;
    left: 16px; bottom: 12px;
    font-family: var(--ff-ui);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--vellum);
    background: rgba(20, 17, 13, 0.55);
    padding: 4px 10px;
}

.jdv-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.jdv-hero__eyebrow .rule {
    width: 38px; height: 1px;
    background: var(--wine);
}

.jdv-hero__title {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 600, "WONK" 1;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin: 0 0 22px;
}

.jdv-hero__title a {
    color: inherit;
    background-image: linear-gradient(var(--wine), var(--wine));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .35s ease, color .15s ease;
}
.jdv-hero__title a:hover {
    color: var(--wine);
    background-size: 100% 1px;
}

.jdv-hero__excerpt {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 36, "wght" 400;
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0 0 24px;
    max-width: 56ch;
}

.jdv-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-family: var(--ff-ui);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.jdv-hero__meta::after, .jdv-hero__meta::before { content: none; }
.jdv-hero__meta .sep { color: var(--ink-faint); }

.jdv-hero__cta {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--wine);
    border-bottom: 1px solid var(--wine);
    padding: 6px 0;
    display: inline-block;
}
.jdv-hero__cta:hover {
    color: var(--ink);
    border-color: var(--ink);
}

@media (max-width: 980px) {
    .jdv-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .jdv-hero { padding: 40px 0 48px; }
}

/* =================================================================
   Section heads
   ================================================================= */

.jdv-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--rule-soft);
}

.jdv-section--tight { padding: 36px 0 28px; }
.jdv-section:last-of-type { border-bottom: none; }

.jdv-section-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
    padding-bottom: 6px;
}

.jdv-section-head__label {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
}
.jdv-section-head a.jdv-section-head__label:hover { color: var(--wine); }

.jdv-section-head .jdv-ornament {
    color: var(--wine);
    opacity: 0.9;
    flex-shrink: 0;
}

.jdv-section-head--ruled::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

/* =================================================================
   "À la une" — 3-up secondary
   ================================================================= */

.jdv-une-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 36px;
}

@media (max-width: 920px) {
    .jdv-une-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .jdv-une-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   Card — building block
   ================================================================= */

.jdv-card {
    display: grid;
    gap: 16px;
    position: relative;
}

.jdv-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
    position: relative;
}

.jdv-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s ease;
}

.jdv-card:hover .jdv-card__media img { transform: scale(1.04); }

.jdv-card__media::after {
    content: '';
    position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(20,17,13,0.04);
    pointer-events: none;
}

.jdv-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jdv-card__cat {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wine);
    text-decoration: none;
    align-self: flex-start;
}

.jdv-card__cat:hover { color: var(--ink); }

.jdv-card__link { color: inherit; text-decoration: none; }
.jdv-card__title {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 60, "wght" 600;
    font-size: 1.3rem;
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0;
    transition: color .15s ease;
}
.jdv-card__link:hover .jdv-card__title { color: var(--wine); }

.jdv-card__excerpt {
    font-family: var(--ff-body);
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

.jdv-card__meta {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 500;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 4px;
}

/* Variant: lead — bigger title in archive intros */
.jdv-card--lead .jdv-card__title { font-size: 1.65rem; }
.jdv-card--lead .jdv-card__media { aspect-ratio: 16 / 10; }

/* Variant: compact — list rows in the sidebar */
.jdv-card--compact {
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule-soft);
}
.jdv-card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.jdv-card--compact .jdv-card__media { aspect-ratio: 1; }
.jdv-card--compact .jdv-card__title { font-size: 0.98rem; line-height: 1.22; }
.jdv-card--compact .jdv-card__cat { font-size: 0.62rem; letter-spacing: 0.18em; }

/* =================================================================
   Section "Dernières dépêches" — list + sidebar
   ================================================================= */

.jdv-feed {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

@media (max-width: 980px) {
    .jdv-feed { grid-template-columns: 1fr; gap: 40px; }
}

.jdv-feed__main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 36px;
}

@media (max-width: 720px) {
    .jdv-feed__main { grid-template-columns: 1fr; }
}

.jdv-feed__rail {
    border-left: 1px solid var(--rule);
    padding-left: 32px;
    align-self: stretch;
}

@media (max-width: 980px) {
    .jdv-feed__rail { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
}

.jdv-rail-head {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 60, "wght" 600, "WONK" 1;
    font-size: 1.4rem;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
}

.jdv-rail-list { display: flex; flex-direction: column; gap: 16px; }

.jdv-pullquote {
    margin: 28px 0 6px;
    padding: 22px 0 22px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 96, "wght" 400;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.32;
    color: var(--ink-soft);
    text-align: center;
    position: relative;
}
.jdv-pullquote::before {
    content: '“';
    position: absolute;
    top: -42px; left: 50%; transform: translateX(-50%);
    background: var(--paper);
    padding: 0 12px;
    font-family: var(--ff-display);
    color: var(--wine);
    font-size: 5.6rem;
    line-height: 1;
}
.jdv-pullquote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--ff-ui);
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--wine);
}

/* =================================================================
   Categories ribbon (Home — Rubriques)
   ================================================================= */

.jdv-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 36px 0 0;
}
@media (max-width: 820px) { .jdv-ribbon { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .jdv-ribbon { grid-template-columns: 1fr; } }

.jdv-ribbon__item {
    background: var(--vellum);
    border: 1px solid var(--rule);
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.jdv-ribbon__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--wine);
}
.jdv-ribbon__num {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 300;
    font-style: italic;
    font-size: 2.2rem;
    color: var(--wine);
    line-height: 1;
    margin-bottom: 4px;
}
.jdv-ribbon__name {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 36, "wght" 600;
    font-size: 1.15rem;
}
.jdv-ribbon__count {
    font-family: var(--ff-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* =================================================================
   Single article
   ================================================================= */

.jdv-article {
    padding: 56px 0 24px;
}

.jdv-article__shell {
    max-width: 760px;
    margin: 0 auto;
}

.jdv-article__breadcrumb {
    font-family: var(--ff-ui);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 22px;
    text-align: center;
}
.jdv-article__breadcrumb a { color: var(--wine); }

.jdv-article__cat {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--wine);
    text-align: center;
    margin-bottom: 14px;
    display: block;
}

.jdv-article__title {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 600, "WONK" 1;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
    margin: 0 0 24px;
}

.jdv-article__lede {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 36, "wght" 400;
    font-style: italic;
    font-size: 1.28rem;
    line-height: 1.5;
    color: var(--ink-soft);
    text-align: center;
    margin: 0 0 36px;
}

.jdv-article__byline {
    text-align: center;
    margin-bottom: 36px;
    font-family: var(--ff-ui);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.jdv-article__byline span + span::before {
    content: '·';
    margin: 0 10px;
    color: var(--ink-faint);
}

.jdv-article__media {
    margin: 28px 0 40px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-deep);
    box-shadow: var(--shadow-deep);
}
.jdv-article__media img { width: 100%; height: 100%; object-fit: cover; }

.jdv-article__body {
    font-family: var(--ff-body);
    font-size: 1.075rem;
    line-height: 1.78;
    color: var(--ink);
}

.jdv-article__body p {
    margin: 0 0 1.2em;
}

.jdv-article__body > p:first-of-type::first-letter {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 600;
    font-size: 4.6em;
    line-height: 0.86;
    float: left;
    padding: 0.06em 0.12em 0 0;
    color: var(--wine);
    margin-right: 8px;
    margin-top: 4px;
}

.jdv-article__body h2 {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 96, "wght" 600;
    font-size: 1.7rem;
    margin: 1.8em 0 0.7em;
    color: var(--ink);
}
.jdv-article__body h3 {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 60, "wght" 600;
    font-size: 1.32rem;
    margin: 1.6em 0 0.5em;
    color: var(--ink);
}

.jdv-article__body blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.4em;
    border-left: 3px solid var(--wine);
    background: var(--paper-tint);
    font-style: italic;
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 36, "wght" 400;
    color: var(--ink-soft);
    font-size: 1.15rem;
    line-height: 1.5;
}

.jdv-article__body a {
    color: var(--wine);
    background-image: linear-gradient(var(--wine), var(--wine));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    transition: background-size .25s ease;
}
.jdv-article__body a:hover { background-size: 0 1px; }

.jdv-article__body ul, .jdv-article__body ol {
    margin: 0 0 1.4em;
    padding-left: 1.6em;
}

.jdv-article__body li { margin-bottom: 0.4em; }

.jdv-article__footer {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--rule);
    text-align: center;
}
.jdv-article__footer .jdv-eyebrow { display: block; margin-bottom: 12px; }
.jdv-article__sig {
    font-family: var(--ff-script);
    font-size: 2.6rem;
    color: var(--wine);
    line-height: 1;
}

.jdv-article__share {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 36px 0 12px;
    font-family: var(--ff-ui);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.jdv-article__share a {
    color: var(--ink-mute);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 3px;
}
.jdv-article__share a:hover { color: var(--wine); border-color: var(--wine); }

.jdv-related {
    background: var(--paper-tint);
    padding: 56px 0 60px;
    border-top: 1px solid var(--rule);
}
.jdv-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 32px;
}
@media (max-width: 820px) { .jdv-related__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .jdv-related__grid { grid-template-columns: 1fr; } }

/* =================================================================
   Archive / Category / Tag / Search
   ================================================================= */

.jdv-archive-head {
    padding: 56px 0 32px;
    text-align: center;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 48px;
}
.jdv-archive-head__kicker {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.76rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 16px;
}
.jdv-archive-head__title {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 600, "WONK" 1;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.02;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.jdv-archive-head__desc {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto;
}

.jdv-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 36px;
    margin-bottom: 64px;
}
@media (max-width: 920px) { .jdv-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .jdv-archive-grid { grid-template-columns: 1fr; } }

.jdv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 60px;
    font-family: var(--ff-ui);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.jdv-pagination a, .jdv-pagination span {
    padding: 8px 14px;
    border: 1px solid var(--rule);
    background: var(--vellum);
    color: var(--ink);
    text-decoration: none;
}
.jdv-pagination .current {
    background: var(--ink);
    color: var(--vellum);
    border-color: var(--ink);
}
.jdv-pagination a:hover {
    background: var(--wine);
    color: var(--vellum);
    border-color: var(--wine);
}

/* =================================================================
   404
   ================================================================= */

.jdv-404 {
    text-align: center;
    padding: 96px 0 120px;
}
.jdv-404__num {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 144, "wght" 300, "WONK" 1;
    font-style: italic;
    font-size: clamp(7rem, 18vw, 14rem);
    color: var(--wine);
    line-height: 1;
    margin: 0;
}
.jdv-404__title {
    font-family: var(--ff-display);
    font-variation-settings: "opsz" 96, "wght" 600;
    font-size: 1.8rem;
    color: var(--ink);
    margin: 8px 0 18px;
}
.jdv-404__text {
    font-family: var(--ff-display);
    font-style: italic;
    color: var(--ink-soft);
    max-width: 50ch;
    margin: 0 auto 28px;
}

/* =================================================================
   Search form
   ================================================================= */

.jdv-search {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 6px;
}
.jdv-search input[type=search] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: var(--ink);
    outline: none;
}
.jdv-search input[type=search]::placeholder { color: var(--ink-faint); font-style: italic; }
.jdv-search button {
    border: none;
    background: var(--wine);
    color: var(--vellum);
    padding: 8px 18px;
    font-family: var(--ff-ui);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease;
}
.jdv-search button:hover { background: var(--ink); }

/* =================================================================
   Footer
   ================================================================= */

.jdv-footer {
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
    border-top: 1px solid var(--ink);
    margin-top: 40px;
    padding: 64px 0 28px;
    color: var(--ink-soft);
    position: relative;
}

.jdv-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wine) 0%, var(--gold) 50%, var(--wine) 100%);
}

.jdv-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 44px;
}
@media (max-width: 760px) { .jdv-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

.jdv-footer__mast {
    font-family: var(--ff-script);
    font-size: 3.4rem;
    color: var(--ink);
    line-height: 0.95;
    margin: 0 0 6px;
}
.jdv-footer__tag {
    font-family: var(--ff-display);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 0.96rem;
    margin: 0 0 18px;
}
.jdv-footer__desc {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 42ch;
}

.jdv-footer__heading {
    font-family: var(--ff-ui);
    font-variation-settings: "opsz" 14, "wght" 600;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}

.jdv-footer__list { list-style: none; padding: 0; margin: 0; }
.jdv-footer__list li { margin-bottom: 8px; }
.jdv-footer__list a {
    color: var(--ink-soft);
    font-family: var(--ff-body);
    font-size: 0.96rem;
}
.jdv-footer__list a:hover { color: var(--wine); }

.jdv-footer__bottom {
    border-top: 1px solid var(--rule);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ff-ui);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    gap: 16px;
}
@media (max-width: 600px) { .jdv-footer__bottom { flex-direction: column; gap: 10px; } }

/* =================================================================
   Misc utilities
   ================================================================= */

.jdv-sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.jdv-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0;
    color: var(--wine);
}
.jdv-divider::before,
.jdv-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--rule);
}

/* Print */
@media print {
    body { background: white; }
    .jdv-header, .jdv-footer, .jdv-related { display: none; }
}

/* Tiny anim — page fade-in for editorial polish */
@keyframes jdvFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.jdv-hero, .jdv-section, .jdv-article, .jdv-archive-head { animation: jdvFadeUp .45s ease both; }
