body {
    text-align: center;
    margin: 0;
    padding: 0;
    background: var(--near-white-cream);
    color: black;
}

header {
    display: flex;
    width: 100vw;
    height: 460px;
    text-align: center;
    opacity: 100%;
    background-image: url(../img/last-family-header.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    color: var(--near-white-cream);
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

@media (max-width: 1046px) {
    header { background-image: url(../img/last-family-header-med.jpg); }
}

@media (max-width: 528px) {
    header { background-image: url(../img/last-family-header-small.jpg); }
}

header .title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: calc(min(60pt, 9vw));
    line-height: 1.25;
    position: relative;
    top: 16px;
}

header .author {
    font-size: 25%;
}

header .subscribe-area {
    padding: 0 1em;
    font-size: 15pt;
    position: relative;
    top: 24px;
}

header .subscribe-area .explanation {
    text-shadow: 0px 0px 4px black, 0px 0px 6px black, 0px 0px 12px black;

    /* Use built-in fonts for faster loading */
    font-family: Garamond, Georgia, serif;
    font-size: 12pt;
}
header .subscribe-area .subscribe-button {
    filter: none;
    box-shadow: 0 1px 2px black;
}

header .subscribe-area .subscribe-button.disabled .label {
    opacity: 75%;
}

header .subscribe-completed-message, .subscribe-failed-message {
    color: var(--near-white-cream);
}

article {
    display:flex;
    flex-direction: column;
    align-items: center;
}

article.contents h1 {
    text-align: center;
    font-family: "Rosewood", "Buket Retro Basic", serif;
    font-size: 200%;
    padding-top: 1em;
    margin-bottom: 0;
}

article.contents:has(main.contents:empty) h1 {
    display: none;
}

main.contents:not(:empty) + main.preview {
    display: none;
}

main.contents {
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    padding: 0 1em;
    box-sizing: border-box;
}

main.contents .section-heading {
    margin: 8em 0 4em 0;
    padding: 0;
    font-size: 80%;
}

main.contents a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
}

.entries {
    list-style-type: upper-roman;
    font-family: "Buket Retro Basic", serif;
    margin: 0 auto;
    display: flex;
    flex-direction:column;
    gap: 1em;
}

.entries .entry-listing::marker {
    font-family: "Buket Retro Basic", serif;
    font-size: 75%;
}

.entries .entry-listing {
    font-family: "Buket Retro Basic", serif;
    /* text-align: center; */
    padding-left: 0.5em;
}

@media (max-device-width: 520px) {
    .entries {
        padding-left: 1em;
    }
}

.entries .entry-listing a:hover {
    text-decoration-thickness: 1.5px;
}

.entries .entry-listing .writer {
    font-style: italic;
}

@media (max-width: 640px) {
    .entries {
        list-style-type: decimal;
    }

    .entries .entry-listing {
        margin-left: 0;
    }
}

main.preview {
    font-family: "Buket Retro Basic", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3em 1em;

}

main.preview .announcement {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
    color: #483732;
}

main.preview .launch-date {
    font-size: 125%;
    color: black;
}

main.preview .explanation {
    padding-top: 2em;
    display: block;
    font-family: "Adobe Garamond Pro", "Garamond", "Georgia", serif;
}

footer {
    margin-top: 6rem;
    margin-bottom: 4rem;
}