.font-shop-page {
    height: calc(100dvh - var(--header-height, 59px));
    min-height: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.font-shop-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 4px 4px 0;
    padding: 0 0 4px;
    border-bottom: 1px solid var(--text-color);
    font-size: 12px;
    line-height: 1.2;
}

.font-shop-heading h1 {
    margin: 0;
    font: inherit;
}

.font-shop-list {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(5, minmax(112px, 1fr));
    overflow-y: auto;
}

.font-shop-family {
    position: relative;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 28px 4px 10px;
    border-bottom: 1px solid var(--text-color);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.font-shop-family:last-child {
    border-bottom: 0;
}

.font-shop-meta {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-family: '할배티카';
    font-size: 11px;
    font-weight: 300;
    line-height: 1.2;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
}

.font-shop-preview {
    width: 100%;
    margin: 0;
    overflow: visible;
    font-size: clamp(42px, 6.4vw, 110px);
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
    text-overflow: clip;
}

.halmetica-family .font-shop-preview {
    font-family: '할매티카';
    font-weight: 400;
    font-synthesis: none;
}

.halvetica-family .font-shop-preview {
    font-family: '할배티카';
    font-weight: 300;
}

.norm-family .font-shop-preview {
    font-family: '놂';
    font-weight: 400;
}

.bamboong-family .font-shop-preview {
    font-family: '대나뭉';
    font-weight: 400;
}

.spaceoddity-family .font-shop-preview {
    font-family: '별똥';
    font-weight: 400;
}

@media (max-width: 768px) {
    .font-shop-page {
        height: auto;
        min-height: calc(100svh - var(--header-height, 104px));
        overflow: visible;
    }

    .font-shop-list {
        display: block;
        overflow: visible;
    }

    .font-shop-family {
        min-height: min(50vw, 240px);
        padding: 28px 4px 12px;
    }

    .font-shop-preview {
        font-size: clamp(38px, 12vw, 72px);
        white-space: normal;
        word-break: keep-all;
    }
}
