.nvn-archive {
    --nvn-ink: #1f1711;
    --nvn-muted: #6d5a48;
    --nvn-paper: #f8f0df;
    --nvn-paper-deep: #ead8b8;
    --nvn-line: rgba(48, 34, 22, 0.24);
    --nvn-red: #8d2f22;
    --nvn-shadow: 0 18px 42px rgba(44, 28, 12, 0.16);
    width: 100%;
    margin: 42px 0;
    color: var(--nvn-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.nvn-archive * {
    box-sizing: border-box;
}

.nvn-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--nvn-line);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 12% 18%, rgba(141, 47, 34, 0.13), transparent 28%),
        repeating-linear-gradient(0deg, rgba(31, 23, 17, 0.035) 0 1px, transparent 1px 7px),
        var(--nvn-paper);
    box-shadow: var(--nvn-shadow);
}

.nvn-hero::after {
    content: "1914";
    position: absolute;
    right: 22px;
    bottom: -24px;
    color: rgba(31, 23, 17, 0.07);
    font-size: clamp(76px, 16vw, 180px);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.nvn-kicker {
    margin-bottom: 10px;
    color: var(--nvn-red);
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nvn-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.nvn-title {
    margin: 0;
    max-width: 760px;
    font-size: clamp(34px, 6vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.nvn-subtitle {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--nvn-muted);
    font-size: 18px;
    line-height: 1.55;
}

.nvn-counter {
    min-width: 138px;
    padding: 16px 18px;
    border: 2px solid rgba(31, 23, 17, 0.72);
    border-radius: 50%;
    background: rgba(255, 250, 236, 0.64);
    text-align: center;
    transform: rotate(2deg);
}

.nvn-counter span {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.nvn-counter small {
    display: block;
    margin-top: 5px;
    color: var(--nvn-muted);
    font-family: "Courier New", monospace;
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
}

.nvn-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.nvn-stats span {
    padding: 8px 12px;
    border: 1px solid var(--nvn-line);
    border-radius: 999px;
    background: rgba(255, 250, 236, 0.62);
    color: var(--nvn-muted);
    font-size: 14px;
}

.nvn-stats strong {
    color: var(--nvn-ink);
}

.nvn-months {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 7px;
    margin: 18px 0;
}

.nvn-month {
    border: 1px solid var(--nvn-line);
    background: #fff8e8;
    color: var(--nvn-ink);
    cursor: pointer;
    font: inherit;
}

.nvn-month {
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nvn-month span {
    font-size: 13px;
}

.nvn-month strong {
    font-family: "Courier New", monospace;
    font-size: 15px;
}

.nvn-month:hover:not(:disabled),
.nvn-month.is-active {
    border-color: rgba(141, 47, 34, 0.76);
    background: #2c1f15;
    color: #fff8e8;
    transform: translateY(-2px);
}

.nvn-month:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.nvn-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(170px, 0.75fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--nvn-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22)),
        #f3e4c8;
}

.nvn-control {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--nvn-muted);
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nvn-control select,
.nvn-control input {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(31, 23, 17, 0.35);
    border-radius: 12px;
    background: #fffaf0;
    color: var(--nvn-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.nvn-control input:focus,
.nvn-control select:focus,
.nvn-month:focus-visible,
.nvn-reset:focus-visible,
.nvn-button:focus-visible {
    outline: 3px solid rgba(141, 47, 34, 0.32);
    outline-offset: 2px;
}

.nvn-reset,
.nvn-button {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #2c1f15;
    border-radius: 12px;
    background: #2c1f15;
    color: #fff8e8;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    transition: transform 160ms ease, background 160ms ease;
}

.nvn-reset:hover,
.nvn-button:hover {
    background: var(--nvn-red);
    color: #fff8e8;
    text-decoration: none;
    transform: translateY(-1px);
}

.nvn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.nvn-card[hidden],
.nvn-empty[hidden] {
    display: none !important;
}

.nvn-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--nvn-line);
    border-radius: 18px;
    background:
        repeating-linear-gradient(0deg, rgba(31, 23, 17, 0.03) 0 1px, transparent 1px 8px),
        #fff7e8;
    box-shadow: 0 10px 24px rgba(44, 28, 12, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.nvn-card:hover {
    border-color: rgba(141, 47, 34, 0.48);
    box-shadow: 0 18px 38px rgba(44, 28, 12, 0.14);
    transform: translateY(-4px);
}

.nvn-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.75), rgba(232, 216, 188, 0.18) 60%),
        #e8d8bc;
    border-bottom: 1px solid var(--nvn-line);
}

.nvn-card-image {
    width: 100%;
    height: 310px;
    object-fit: contain;
    display: block;
    background: #fffaf0;
    filter: sepia(0.18) contrast(1.03);
    box-shadow: 0 10px 24px rgba(44, 28, 12, 0.18);
}

.nvn-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.nvn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nvn-date,
.nvn-issue {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(31, 23, 17, 0.28);
    border-radius: 999px;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.nvn-issue {
    border-color: rgba(141, 47, 34, 0.44);
    color: var(--nvn-red);
}

.nvn-card-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.nvn-card-title a {
    color: inherit;
    text-decoration: none;
}

.nvn-card-title a:hover {
    color: var(--nvn-red);
}

.nvn-excerpt {
    margin: 0;
    color: var(--nvn-muted);
    font-size: 15px;
    line-height: 1.55;
}

.nvn-button {
    margin-top: auto;
    align-self: flex-start;
}

.nvn-empty {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px dashed rgba(141, 47, 34, 0.55);
    border-radius: 16px;
    background: #fff8e8;
    color: var(--nvn-muted);
}

@media (max-width: 980px) {
    .nvn-months {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .nvn-controls {
        grid-template-columns: 1fr 1fr;
    }

    .nvn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {
    .nvn-archive {
        margin: 22px 0;
    }

    .nvn-hero {
        padding: 18px 16px;
        border-radius: 16px;
        box-shadow: 0 10px 26px rgba(44, 28, 12, 0.11);
    }

    .nvn-hero::after {
        display: none;
    }

    .nvn-kicker {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .nvn-header {
        flex-direction: column;
        align-items: start;
        gap: 14px;
    }

    .nvn-title {
        font-size: clamp(34px, 13vw, 50px);
        line-height: 0.95;
        letter-spacing: -0.04em;
    }

    .nvn-subtitle {
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.45;
    }

    .nvn-counter {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-width: 1px;
        border-radius: 14px;
        transform: none;
    }

    .nvn-counter span {
        font-size: 28px;
    }

    .nvn-counter small {
        margin-top: 0;
        text-align: right;
    }

    .nvn-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 14px;
    }

    .nvn-stats span {
        padding: 7px 10px;
        font-size: 13px;
    }

    .nvn-months {
        display: flex;
        gap: 8px;
        margin: 14px -16px 16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .nvn-months::-webkit-scrollbar {
        height: 0;
    }

    .nvn-month {
        min-width: 62px;
        min-height: 52px;
        padding: 7px 8px;
        border-radius: 13px;
        scroll-snap-align: start;
    }

    .nvn-month:hover:not(:disabled),
    .nvn-month.is-active {
        transform: none;
    }

    .nvn-controls,
    .nvn-grid {
        grid-template-columns: 1fr;
    }

    .nvn-controls {
        gap: 10px;
        margin-bottom: 16px;
        padding: 13px;
        border-radius: 16px;
    }

    .nvn-control {
        gap: 5px;
        font-size: 10px;
        letter-spacing: 0.07em;
    }

    .nvn-control select,
    .nvn-control input {
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 11px;
        font-size: 15px;
    }

    .nvn-reset {
        min-height: 42px;
        width: 100%;
        padding: 9px 14px;
    }

    .nvn-grid {
        gap: 14px;
    }

    .nvn-card {
        border-radius: 15px;
        box-shadow: 0 8px 18px rgba(44, 28, 12, 0.08);
    }

    .nvn-card:hover {
        transform: none;
    }

    .nvn-image-link {
        min-height: 220px;
        padding: 12px;
    }

    .nvn-card-image {
        height: 240px;
    }

    .nvn-card-body {
        padding: 14px;
        gap: 9px;
    }

    .nvn-date,
    .nvn-issue {
        min-height: 25px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .nvn-card-title {
        font-size: 21px;
    }

    .nvn-excerpt {
        font-size: 14px;
        line-height: 1.45;
    }

    .nvn-button {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .nvn-title {
        font-size: 32px;
    }

    .nvn-subtitle {
        font-size: 14px;
    }

    .nvn-card-image {
        height: 220px;
    }
}
