/* Quodid: "Purple Masthead" design (A2) */

:root {
    --purple: #552299;
    --purple-deep: #2a1450;
    --purple-soft: #ddd0f0;
    --lavender: #ece4f6;
    --gold: #f5d97a;
    --paper: #f6f3ec;
    --ink: #1b1a17;
    --muted: #5e5a52;
    --rule: #cfc8b8;
    --serif: Newsreader, Georgia, "Times New Roman", serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --wide: 1120px;
    --narrow: 760px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--purple);
}
a:hover {
    color: var(--purple-deep);
}

img {
    max-width: 100%;
    height: auto;
}

/* Masthead */

.masthead {
    background: var(--purple);
    color: #fff;
}

.site-header {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 24px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.wordmark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}
.wordmark:hover {
    color: #fff;
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: var(--gold);
}

.site-nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.site-nav a {
    color: var(--purple-soft);
    text-decoration: none;
    padding: 8px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.masthead-hero {
    max-width: var(--narrow);
    margin: 0 auto;
    padding: 48px 24px 56px;
    text-align: center;
}
.masthead-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 9vw, 96px);
    line-height: 1.05;
    letter-spacing: -2px;
}
.masthead-hero h1 em {
    font-style: italic;
}
.masthead-hero a {
    color: #fff;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold);
}

.masthead-pills {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}
.masthead-pills a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 8px 16px;
}
.masthead-pills a:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Main column */

.site-main {
    max-width: var(--narrow);
    margin: 0 auto;
    padding: 24px 24px 80px;
}

.page h2,
.page h3,
.section-title {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.page h2 {
    font-size: 30px;
    margin: 40px 0 12px;
}
.page h3,
.section-title {
    font-size: 26px;
    margin: 48px 0 8px;
}
.page h2 a,
.page h3 a,
.section-title a {
    text-decoration: none;
}
.page ul {
    padding-left: 1.2em;
}
.page li {
    margin: 6px 0;
}
.page hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 32px 0;
}

.person-portrait {
    float: right;
    width: 40%;
    margin: 0 0 16px 24px;
    border-radius: 4px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Quotes */

.quote {
    padding: 48px 0 44px;
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

.quote::before {
    content: "\201C";
    display: block;
    height: 36px;
    font-family: var(--serif);
    font-size: 72px;
    line-height: 0.6;
    color: var(--purple);
}

.quote-text {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.quote-text a {
    color: var(--ink);
    text-decoration: none;
}
.quote-text a:hover {
    color: var(--purple);
}

.quote-single {
    padding-top: 32px;
}
.quote-single .quote-text {
    font-size: clamp(30px, 5vw, 44px);
}

.quote-long .quote-text,
.quote-single.quote-long .quote-text {
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
}

.quote-citation {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--muted);
}
.quote-citation a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.quote-citation em a {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: underline;
}
.quote-citation a:hover {
    color: var(--purple);
}

.quote-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tag {
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    padding: 6px 14px;
}
.tag:hover {
    background: var(--purple-deep);
    color: #fff;
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-left: 12px;
}

.quote-action {
    font: inherit;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 6px 8px;
    min-height: 32px;
    text-decoration: none;
    cursor: pointer;
}
.quote-action:hover {
    color: var(--purple);
    background: var(--lavender);
}

.share-links {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.share-links[hidden] {
    display: none;
}

/* Lists of things */

.tag-cloud {
    text-align: center;
    line-height: 1.5;
    font-family: var(--serif);
}
.tag-cloud a {
    display: inline-block;
    margin: 4px 10px;
    text-decoration: none;
}

/* Pagination */

.pagination {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
}
.pagination a:hover {
    background: var(--lavender);
}
.pagination .active span {
    background: var(--purple);
    color: #fff;
}
.pagination .disabled span {
    color: var(--rule);
}

/* Messages, ads, forms */

.message {
    margin: 24px 0 0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}
.message p {
    margin: 0;
}
.success {
    background: #dcefdc;
    color: #1d5a1d;
}
.error {
    background: #f7dada;
    color: #8a1c1c;
}

.advert {
    margin: 40px auto;
    text-align: center;
}

.form label {
    display: block;
    margin: 16px 0 4px;
    font-weight: 600;
    font-size: 15px;
}
.form input[type="text"],
.form textarea {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #fff;
}
.form input[type="submit"],
.button {
    margin-top: 20px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--purple);
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    cursor: pointer;
}
.form input[type="submit"]:hover,
.button:hover {
    background: var(--purple-deep);
}

/* Footer */

.site-footer {
    background: var(--purple-deep);
    color: var(--purple-soft);
    font-size: 14px;
}
.site-footer-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 32px 24px 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    align-items: baseline;
}
.site-footer p {
    margin: 0;
}
.site-footer a {
    color: #fff;
}
.footer-motto {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: #fff;
}

/* Accounts (login) layout */

.accounts-box {
    max-width: 420px;
    margin: 64px auto;
    padding: 24px 32px 32px;
    background: #fff;
    border-radius: 16px;
    border-top: 8px solid var(--purple);
}
.accounts-box h1 {
    margin: 0 0 16px;
}
.accounts-box h1 a {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    .site-nav {
        margin-left: 0;
        flex-basis: 100%;
    }
    .tagline {
        display: none;
    }
    .masthead-hero {
        padding: 24px 24px 40px;
    }
    .quote-actions {
        margin-left: 0;
    }
    .person-portrait {
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }
}
