.index-main-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-image: var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: center;

    width: 100%;
    height: calc(100vh - var(--nav-bar-height));

    margin: 0;
    padding: 0;
}

.index-main-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;

    gap: var(--text-font-size);
}

.index-main-title-element {
    font-family: "CottageStone Regular", serif;
    font-size: calc(var(--h1-font-size) * 3);
    font-weight: normal;
    color: var(--main-title-base-color);

    text-wrap: nowrap;

    line-height: 1;
    word-spacing: -20%;

    position: relative;

    z-index: 1;

    margin: 0;
    padding: 0;
}

.index-main-title-element::before {
    content: attr(data-text);

    font-family: "CottageStone Inline", serif;
    font-weight: inherit;
    color: var(--main-title-engraving-color);

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 1;
}

.index-main-title-element::after {
    content: attr(data-text);

    font-family: "CottageStone Extrude", serif;
    font-weight: inherit;
    color: var(--main-title-backdrop-color);

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: -1;
}

.index-main-title-element.smaller.offset {
    font-size: calc(var(--h1-font-size) * 3 * 0.8);

    margin-left: calc(var(--h1-font-size) * 3 * 0.8);
}

.quote-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: auto;

    background-color: var(--quote-panel-bg-color);

    margin: 0;
    padding: 64px 0;
}

.quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--quote-font-size);

    width: auto;

    margin: 0;
    padding: 0;
}

.quote-message {
    font-size: var(--quote-font-size);
    font-style: italic;
    text-align: center;

    color: var(--quote-font-color);

    margin: 0;

    padding: 0;
}

.quote-speaker {
    font-size: var(--quote-font-size);
    font-style: italic;
    text-align: right;

    align-self: end;

    color: var(--quote-font-color);

    box-sizing: border-box;

    margin: 0;

    padding: 0;
    padding-right: calc(var(--quote-font-size) * 2);
}

.segment-title {
    font-size: var(--h1-font-size);

    color: var(--heading-color);

    margin: 0;
    margin-bottom: var(--h1-font-size);

    padding: 0;
}

.post-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--text-font-size);

    list-style: none;

    width: 100%;

    box-sizing: border-box;

    margin: 0;
    padding: 0;
}

.post-showcase-item-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: calc(var(--subtext-font-size) * 0.5);

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}

.post-showcase-item {
    display: flex;
    flex-direction: row;
    gap: 0;

    aspect-ratio: 3 / 1;
    width: 960px;
    height: auto;

    text-decoration: none;

    box-sizing: border-box;

    margin: 0;
    padding: 0;
}

.post-showcase-item-thumb {
    display: block;

    flex: 0 0 auto;

    aspect-ratio: 3 / 2;
    width: auto;
    height: 100%;

    overflow: hidden;

    margin: 0;
    padding: 0;
}

.post-showcase-item-thumb img {
    display: block;

    width: 100%;
    height: 100%;
    
    object-fit: cover;
}

.post-showcase-item-body {
    display: flex;
    flex-direction: column;
    gap: var(--text-font-size);

    box-sizing: border-box;

    width: auto;
    height: auto;

    margin: 0;
    padding: var(--text-font-size);
}

.post-showcase-item-title {
    text-align: left;
    color: var(--heading-color);

    min-width: 0;
    overflow-wrap: break-word;

    margin: 0;
    padding: 0;
}

.post-showcase-item-excerpt {
    text-align: left;
    color: var(--text-color);

    min-width: 0;
    overflow-wrap: break-word;

    margin: 0;
    padding: 0;
}

.subtext.post-showcase-item-date {
    flex: 0 0 auto;
    white-space: nowrap;

    box-sizing: border-box;

    margin: 0;
    padding: 0;
    padding-left: var(--subtext-font-size);
}

.post-showcase-item-niche-container {
    display: flex;
    flex-direction: row;
    gap: var(--subtext-font-size);

    margin: 0;
    padding: 0;
}

.post-showcase-item-niche {
    display: inline-block;
    background-color: red;

    height: 100%;
    width: auto;

    margin: 0;
    padding: 0;
}

/* ==== desktop == */
/* smaller display */
@media (max-width: 1280px) {
    .central-panel {
        padding: 5%;
    }

    .post-showcase-item {
        height: 240px;
    }
}

/* === tablet === */
@media (max-width: 1080px) {
    p {
        font-size: calc(var(--text-font-size) * 0.9);
    }

    .index-main-title-element {
        font-size: calc(var(--h1-font-size) * 3 * 0.5);
    }

    .index-main-title-element.smaller.offset {
        font-size: calc(var(--h1-font-size) * 3 * 0.8 * 0.5);
        margin-left: calc(var(--h1-font-size) * 3 * 0.8 * 0.5);
    }

    .central-panel {
        padding: 5%;
    }

    .segment-title {
        font-size: calc(var(--h1-font-size) * 0.75);

        margin-bottom: calc(var(--h1-font-size) * 0.75);
    }

    .post-showcase-item-container {
        width: 100%;
        height: auto;

        gap: calc(var(--text-font-size) * 0.5);
    }

    .post-showcase-item {
        aspect-ratio: 4 / 1;

        width: 100%;
        height: auto;
    }

    .post-showcase-item-body {
        gap: calc(var(--text-font-size) * 0.9 * 0.5);

        width: 100%;
        height: auto;

        padding: calc(var(--text-font-size) * 0.9);
    }
}

/* ==== phone === */
@media (max-width: 600px) {
    .index-main-title-element{
        font-size: calc(var(--h1-font-size) * var(--font-size-modifier-phone-small));
    }

    .index-main-title-element.smaller.offset {
        font-size: calc(var(--h1-font-size) * 0.875 * var(--font-size-modifier-phone-small));
        margin-left: calc(var(--main-title-primary-font-size) * 0.2 * var(--font-size-modifier-phone-small));
    }

    .central-panel {
        width: 100%;

        margin: 0;
        padding: calc(var(--text-font-size) * var(--font-size-modifier-phone));
    }

    .quote-message {
        font-size: calc(var(--quote-font-size) * var(--font-size-modifier-phone));
    }

    .quote-speaker {
        font-size: calc(var(--quote-font-size) * var(--font-size-modifier-phone));
    }

    .segment-title {
        font-size: calc(var(--h2-font-size) * var(--font-size-modifier-phone));

        margin-bottom: calc(var(--h2-font-size) * var(--font-size-modifier-phone));
    }

    .post-showcase {
        gap: calc(var(--text-font-size) * var(--font-size-modifier-phone));

        padding: 0;
    }

    .subtext.post-showcase-item-date {
        align-self: flex-end;
        padding: 0;
    }

    .post-showcase-item {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .post-showcase-item-thumb {
        width: 100%;
        height: auto;
    }

    .post-showcase-item-body{
        gap: calc(var(--text-font-size) * var(--font-size-modifier-phone));
        aspect-ratio: unset;
        width: 100%;
        height: auto;

        padding: 0;
        padding-top: calc(var(--text-font-size) * var(--font-size-modifier-phone));
    }

    .post-showcase-item-title {
        font-size: calc(var(--h3-font-size) * var(--font-size-modifier-phone));
    }

    .post-showcase-item-excerpt {
        font-size: calc(var(--text-font-size) * var(--font-size-modifier-phone));
    }
}