html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}

.main {
    position: relative;
    background: #fff;
}

.section-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 900px;

    background: url("../images/del_hero.png") center/cover no-repeat;

    mask-image: linear-gradient(
        to bottom,
        black 30%,
        transparent 75%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 30%,
        transparent 75%
    );

    z-index: 0;
}

.main > * {
    position: relative;
    z-index: 1;
}

main a {
    text-decoration: none;
    color: var(--click-link);
    font-style: italic;
}

.content-width {
    width: 100%;
    padding-inline: 10%;
    box-sizing: border-box;
}



.latest-grid {
    display: grid;
    gap: 2rem;
}

.reading-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;

    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.reading-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.reading-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reading-source {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.reading-title {
    margin: 0;
}

.reading-summary {
    line-height: 1.6;
}

.reading-link {
    margin-top: auto;
    width: fit-content;
}


/* =========================
   Hero
========================= */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;


    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    padding-top: 8rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    top: 70px;
    width: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0.18;

    z-index: -1;
    transition: background-image 1s ease,
                opacity .8s ease;

    mask-image: linear-gradient(
        to bottom,
        black 30%,
        transparent 80%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 30%,
        transparent 80%
    );
}




.hero-description h1 {

    font-weight: 300;

    line-height: 1.15;

    font-size:

        clamp(2.5rem, 5vw, 4.5rem);

    max-width: 12ch;

}

/* =========================
   Featured Reading
========================= */

.featured-reading {
    padding:  0;
    padding-left: 10%;
    padding-right: 10%;
    
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.featured-card {
    display: flex;
    flex-direction: column;

    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.5rem;
    flex: 1;
}

.featured-source {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.featured-title {
    margin: 0;
}

.featured-summary {
    flex: 1;
    line-height: 1.6;
}

.featured-summary {

    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.featured-link {
    margin-top: auto;
    width: fit-content;
}

.page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding-left: 10%;
    padding-right: 10%;
}

