.main-container {
    max-width: 1440px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    flex-direction: column;
    gap: var(--spacing-xl);
    margin: 0 auto;
}

#author-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    max-width: 80rem;
    width: 100%;
    margin: 0 var(--spacing-xl);
    background: var(--base-offwhite);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 2px dashed var(--brand600);
}

#author-hero img {
    width: 100%;
    max-width: 12rem;
    max-height: 20rem;
    border-radius: var(--radius-md);
    margin-right: var(--spacing-lg);
    box-shadow: -10px -10px 0 0 var(--gold700);
}

#author-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

#author-name h1 {
    color: var(--gray900);
    font-family: var(--font-serif), serif;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.75rem;
    letter-spacing: -0.045rem;
    margin: 0;
}

#author-name h2 {
    color: var(--gray600);
    align-self: flex-start;
    font-style: italic;
    line-height: 1rem;
    font-family: var(--font-serif), serif;
    margin: 0;
}

#author-name p {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    word-break: break-all;
}

#author-alt-names {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    max-width: 100%;
}

#author-alt-names span {
    color: var(--gray900);
    font-family: var(--font-serif), serif;

    /* Should have a middle dot between each name, only if there is another name */

    &:not(:last-child)::after {
        content: '·';
        color: var(--gray600);
        font-size: 1rem;
        font-style: normal;
        font-weight: 400;
        line-height: 1.5rem;
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
    }
}

#author-details {
    display: flex;
    flex-flow: row wrap;
    gap: var(--spacing-xl);
    align-items: flex-start;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

#author-books button {
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid var(--brand600);
    border-radius: var(--radius-md);
    background: var(--brand400);
    text-decoration: none;
    color: var(--gray900);
    cursor: pointer;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    align-self: center;
}

#author-details button {
    padding: 0 var(--spacing-md);
    margin: var(--spacing-sm) auto;
    background: var(--brand400);
    border: 2px solid var(--brand600);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray900);
    cursor: pointer;
    font-style: normal;
    font-weight: 400;
    place-self: center center;
    text-align: center;
}

#author-details button:hover, #author-books button:hover {
    background: var(--brand500);
}

#author-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 80rem;
    margin: 0 auto;
}

#author-bio h2 {
    text-align: center;
}

#author-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 80rem;
    margin: 0 auto;
}

#author-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#author-links h3 {
    text-align: center;
}

#author-identifiers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 80rem;
    margin: 0 auto;
}

#author-identifiers h3 {
    text-align: center;
}

#author-identifiers .id-row {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    justify-content: space-between;
    align-items: baseline;
    font-style: normal;
    font-weight: 400;
}

#author-identifiers .id-row[hidden] {
    display: none;
}

#author-identifiers .id-type {
    color: var(--gray600);
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

#author-identifiers .id-value {
    color: var(--gray900);
    font-size: 0.875rem;
}

#author-subjects h3 {
    text-align: center;
}

#author-subjects ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#author-subjects li {
    font-size: 0.875rem;
    color: var(--gray900);
}

#author-books {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 80rem;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--base-offwhite);
    box-shadow: -10px 30px 0 0 var(--brand600);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

#author-books h2 {
    font-family: var(--font-serif), serif;
    text-align: center;
}

#author-books p {
    font-style: italic;
}

#author-books .edition-list {
    display: flex;
    flex-flow: row wrap;
    gap: var(--spacing-lg);
    max-width: 80rem;
    margin: 0 auto;
    list-style-type: none;
}

#author-books .edition-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--gray900);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--brand200);
}

#author-books .edition-link:hover {
    background: var(--brand50);
}

#author-books .edition-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

#author-books .edition-title {
    display: flex;
    gap: var(--spacing-sm);
    align-items: baseline;
}

#author-books .edition-title .title {
    display: flex;
    color: var(--gray900);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.875rem;
}

#author-books .edition-title .subtitle {
    display: flex;
    color: var(--gray600);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
}

#author-books .edition-title .edition-name {
    display: flex;
    color: var(--gray600);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}

#author-books .edition-publisher {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

#author-books .edition-publisher .publisher {
    color: var(--gray600);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}

#author-books .edition-publisher .publish-date {
    color: var(--gray900);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}
