﻿/*
    SAMLINGER HUB
    Alt er namespacet under .collections-hub for at undgå CSS-kollisioner.
    Font arves fra det eksisterende site.
  */
.collections-hub {
    --ch-ink: #171512;
    --ch-muted: #6f6a62;
    --ch-paper: #f4f0e9;
    --ch-paper-2: #ece5da;
    --ch-card: #fffdfa;
    --ch-accent: #8b4e2f;
    --ch-accent-dark: #60321e;
    --ch-green: #45584b;
    --ch-blue: #54646c;
    --ch-line: rgba(23,21,18,.15);
    --ch-shadow: 0 18px 48px rgba(23,21,18,.08);
    --ch-radius: 18px;
    color: var(--ch-ink);
    background: #fff;
    font-family: inherit;
    line-height: 1.55;
}

    .collections-hub *, .collections-hub *::before, .collections-hub *::after {
        box-sizing: border-box;
    }

    .collections-hub a {
        color: inherit;
    }

    .collections-hub button, .collections-hub input {
        font: inherit;
    }

.collections-hub__wrap {
    width: min(1180px,calc(100% - 40px));
    margin-inline: auto;
}

.collections-hub__section {
    padding: 76px 0;
}

.collections-hub__section--soft {
    background: var(--ch-paper);
}

.collections-hub__section--dark {
    background: var(--ch-green);
    color: #fffdf8;
}

.collections-hub__eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .74rem;
    font-weight: 800;
}

.collections-hub__title {
    margin: 0;
    font-family: Georgia,'Times New Roman',serif;
    font-weight: 500;
    font-size: clamp(3.4rem,8vw,7rem);
    line-height: .95;
    letter-spacing: -.035em;
}

.collections-hub__section-title {
    margin: 0;
    font-family: Georgia,'Times New Roman',serif;
    font-weight: 500;
    font-size: clamp(2.1rem,4.5vw,4rem);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.collections-hub__lead {
    margin: 24px 0 0;
    max-width: 800px;
    color: var(--ch-muted);
    font-size: clamp(1.08rem,2vw,1.34rem);
}

.collections-hub__intro {
    margin: 16px 0 0;
    max-width: 740px;
    color: var(--ch-muted);
    font-size: 1.03rem;
}

.collections-hub__section--dark .collections-hub__intro {
    color: rgba(255,255,255,.76);
}

/* HERO */
.collections-hub__hero {
    padding: 78px 0 58px;
    background: radial-gradient(circle at 82% 25%,rgba(139,78,47,.12),transparent 27%), linear-gradient(135deg,#f7f4ee 0%,#efe8dd 70%,#e7ddcf 100%);
    border-bottom: 1px solid var(--ch-line);
}

.collections-hub__hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr);
    gap: 64px;
    align-items: end;
}

.collections-hub__hero-aside {
    border-left: 1px solid var(--ch-line);
    padding-left: 28px;
    color: var(--ch-muted);
}

    .collections-hub__hero-aside strong {
        color: var(--ch-ink);
        display: block;
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

/* GLOBAL SEARCH */
.collections-hub__search-wrap {
    padding: 28px 0;
    border-bottom: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(23,21,18,.035);
}

.collections-hub__search {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 14px;
    align-items: center;
}

    .collections-hub__search label {
        font-weight: 800;
    }

    .collections-hub__search input {
        width: 100%;
        min-height: 54px;
        border: 1px solid rgba(23,21,18,.32);
        border-radius: 999px;
        padding: 0 20px;
        outline: none;
        background: #fff;
    }

        .collections-hub__search input:focus {
            border-color: var(--ch-accent);
            box-shadow: 0 0 0 3px rgba(139,78,47,.12);
        }

    .collections-hub__search button {
        min-height: 54px;
        border: 0;
        border-radius: 999px;
        padding: 0 25px;
        background: var(--ch-accent);
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }

        .collections-hub__search button:hover {
            background: var(--ch-accent-dark);
        }

.collections-hub__search-help {
    grid-column: 2/-1;
    margin: -2px 0 0 5px;
    color: var(--ch-muted);
    font-size: .88rem;
}

/* COLLECTION ROWS */
.collections-hub__collections-head {
    display: grid;
    grid-template-columns: 1fr .65fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 30px;
}

.collections-hub__rows {
    border-top: 1px solid var(--ch-line);
}

.collections-hub__row {
    --row-accent: #8b4e2f;
    display: grid;
    grid-template-columns: 54px minmax(180px,.8fr) minmax(280px,1.25fr) minmax(230px,.8fr) 40px;
    gap: 16px;
    align-items: center;
    min-height: 106px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ch-line);
    text-decoration: none;
    transition: background .18s ease,padding .18s ease;
    position: relative;
}

    .collections-hub__row:hover {
        background: rgba(139,78,47,.035);
        padding-inline: 16px;
    }

.collections-hub__row-number {
    color: var(--ch-muted);
    font-variant-numeric: tabular-nums;
}

.collections-hub__row-title {
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.15;
}

.collections-hub__row-copy {
    color: var(--ch-muted);
    font-size: .95rem;
}

.collections-hub__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.collections-hub__keyword {
    border: 1px solid var(--ch-line);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: .74rem;
    color: var(--ch-muted);
    background: rgba(255,255,255,.5);
}

.collections-hub__row-arrow {
    font-size: 1.35rem;
    justify-self: end;
    transition: transform .18s ease;
}

.collections-hub__row:hover .collections-hub__row-arrow {
    transform: translateX(4px);
}

.collections-hub__row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 2px;
    background: var(--row-accent);
    opacity: 0;
    transition: opacity .18s ease;
}

.collections-hub__row:hover::before {
    opacity: 1;
}

.collections-hub__row--hca {
    --row-accent: #8b4e2f;
}

.collections-hub__row--amcn {
    --row-accent: #7d6757;
}

.collections-hub__row--cnm {
    --row-accent: #765c35;
}

.collections-hub__row--obm {
    --row-accent: #52604f;
}

.collections-hub__row--kmo {
    --row-accent: #5f6870;
}

.collections-hub__row--coins {
    --row-accent: #8a7642;
}

.collections-hub__row--dmm {
    --row-accent: #536b72;
}

/* DON'T KNOW WHERE TO START */
.collections-hub__interest-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 14px;
    margin-top: 34px;
}

.collections-hub__interest {
    min-height: 230px;
    padding: 22px;
    border-radius: var(--ch-radius);
    border: 1px solid var(--ch-line);
    background: var(--ch-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease;
    cursor: pointer;
    text-align: center;
}

    .collections-hub__interest:hover {
        transform: translateY(-3px);
        box-shadow: var(--ch-shadow);
        border-color: rgba(139,78,47,.35);
    }

.collections-hub__interest-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ch-paper);
    color: var(--ch-accent-dark);
}

    .collections-hub__interest-icon svg {
        width: 23px;
        height: 23px;
    }

.collections-hub__interest h3 {
    margin: 24px 0 8px;
    font-family: Georgia,'Times New Roman',serif;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.08;
}

.collections-hub__interest p {
    margin: 0;
    color: var(--ch-muted);
    font-size: .9rem;
}

.collections-hub__interest strong {
    display: block;
    margin-top: 18px;
    font-size: .9rem;
}

/* SEVEN OBJECTS */
.collections-hub__objects {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 12px;
    margin-top: 36px;
}

.collections-hub__object {
    min-height: 330px;
    border-radius: var(--ch-radius);
    overflow: hidden;
    background: rgba(127, 127, 127, 0.1);
    border: 1px solid rgba(255,255,255,.22);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease,background .18s ease;
}

    .collections-hub__object:hover {
        transform: translateY(-4px);
        background: rgba(255,255,255,.08);
    }

.collections-hub__object-art {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.07);
}

    .collections-hub__object-art::before,
    .collections-hub__object-art::after {
        content: '';
        position: absolute;
    }

    .collections-hub__object-art::before {
        inset: 24px 32px;
        border: 1px solid rgba(255,255,255,.38);
        transform: rotate(-5deg);
        background: rgba(255,255,255,.06);
    }

.collections-hub__object:nth-child(2) .collections-hub__object-art::before {
    border-radius: 50% 50% 45% 45%;
    transform: none;
    inset: 20px 42px;
}

.collections-hub__object:nth-child(3) .collections-hub__object-art::before {
    inset: 22px 54px;
    border-radius: 48% 48% 35% 35%;
    transform: none;
}

.collections-hub__object:nth-child(4) .collections-hub__object-art::before {
    clip-path: polygon(50% 0,66% 33%,100% 45%,69% 59%,63% 100%,38% 73%,13% 100%,27% 58%,0 43%,36% 33%);
    border: 0;
    background: rgba(255,255,255,.18);
    transform: none;
}

.collections-hub__object:nth-child(5) .collections-hub__object-art::before {
    inset: 24px 30px;
    border-radius: 10px;
    transform: rotate(2deg);
}

.collections-hub__object:nth-child(6) .collections-hub__object-art::before {
    border-radius: 50%;
    inset: 30px 42px;
    transform: none;
}

.collections-hub__object:nth-child(7) .collections-hub__object-art::before {
    inset: 35px 28px 28px;
    border-radius: 8px;
    transform: none;
}

.collections-hub__object-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

    .collections-hub__object-body small {
        color: rgba(255,255,255,.62);
        font-size: .72rem;
    }

    .collections-hub__object-body h3 {
        margin: 8px 0 6px;
        font-family: Georgia,'Times New Roman',serif;
        font-weight: 500;
        font-size: 1.12rem;
        line-height: 1.12;
    }

    .collections-hub__object-body p {
        margin: 0;
        color: rgba(255,255,255,.7);
        font-size: .83rem;
    }

    .collections-hub__object-body span {
        margin-top: auto;
        padding-top: 16px;
        font-weight: 800;
        font-size: .82rem;
    }

/* BOTTOM SEARCH */
.collections-hub__search-cta {
    text-align: center;
    max-width: 820px;
    margin: auto;
}

.collections-hub__search-bottom {
    display: flex;
    gap: 10px;
    margin: 28px auto 0;
    max-width: 720px;
}

    .collections-hub__search-bottom input {
        flex: 1;
        min-height: 54px;
        border: 1px solid rgba(23,21,18,.32);
        border-radius: 999px;
        padding: 0 20px;
        outline: none;
        background: #fff;
    }

    .collections-hub__search-bottom button {
        min-height: 54px;
        border: 0;
        border-radius: 999px;
        padding: 0 25px;
        background: var(--ch-accent);
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }

.collections-hub__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.collections-hub__notice {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 999;
    max-width: min(560px,calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--ch-ink);
    color: #fff;
    box-shadow: var(--ch-shadow);
    font-size: .9rem;
}

    .collections-hub__notice[data-show="true"] {
        display: block;
    }

@media (max-width:1050px) {
    .collections-hub__interest-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .collections-hub__objects {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media (max-width:900px) {
    .collections-hub__hero-grid, .collections-hub__collections-head {
        grid-template-columns: 1fr;
    }

    .collections-hub__hero-aside {
        border-left: 0;
        border-top: 1px solid var(--ch-line);
        padding: 22px 0 0;
    }

    .collections-hub__search {
        grid-template-columns: 1fr auto;
    }

        .collections-hub__search label, .collections-hub__search-help {
            grid-column: 1/-1;
        }

    .collections-hub__row {
        grid-template-columns: 42px minmax(160px,.8fr) 1.2fr 34px;
    }

    .collections-hub__keywords {
        grid-column: 2/4;
    }

    .collections-hub__objects {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width:680px) {
    .collections-hub__wrap {
        width: min(100% - 24px,1180px);
    }

    .collections-hub__section {
        padding: 54px 0;
    }

    .collections-hub__hero {
        padding: 54px 0 38px;
    }

    .collections-hub__search {
        grid-template-columns: 1fr;
    }

        .collections-hub__search button {
            width: 100%;
        }

    .collections-hub__row {
        grid-template-columns: 34px 1fr 28px;
        gap: 10px;
        min-height: 0;
        padding: 22px 0;
    }

    .collections-hub__row-title {
        grid-column: 2;
    }

    .collections-hub__row-copy {
        grid-column: 2/4;
    }

    .collections-hub__keywords {
        grid-column: 2/4;
    }

    .collections-hub__row-arrow {
        grid-column: 3;
        grid-row: 1/3;
        align-self: start;
    }

    .collections-hub__interest-grid, .collections-hub__objects {
        grid-template-columns: 1fr;
    }

    .collections-hub__interest {
        min-height: 190px;
    }

    .collections-hub__object {
        min-height: 0;
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .collections-hub__object-art {
        height: auto;
        min-height: 170px;
    }

    .collections-hub__search-bottom {
        flex-direction: column;
    }

        .collections-hub__search-bottom button {
            width: 100%;
        }
}

@media (prefers-reduced-motion:reduce) {
    .collections-hub *, .collections-hub *::before, .collections-hub *::after {
        transition: none !important;
    }
}
