@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700');
@import url('https://fonts.googleapis.com/css2?family=Lusitana:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

/* Main template */

#body {
    font-family: 'Cabin', sans-serif;
    margin: 1rem 1rem;
}

blockquote {
    margin: 0.25rem 1rem;
    font-style: italic;
}

blockquote > p:before {
    content: '“';
}

blockquote > p:after {
    content: '”';
}

blockquote > p:before, blockquote > p:after {
    font-size: 1.75rem;
    line-height: 1rem;
}

@media only screen and (min-width: 1024px) {
    body {
        max-width: 1152px;
        margin: 0 auto;
    }

    #body {
        margin: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    main, nav {
        grid-column: 2;
    }
}

.management {
    text-align: right;
}

#title h1 {
    font-size: 1.25rem;
    line-height: 1.35rem;
    font-family: 'Lusitana', serif;
}

p {
    line-height: 1.25rem;
}

em, p.note {
    color: #444444;
}

p.note {
    font-size: 0.75rem;
    line-height: 0.9rem;
}

form {
    max-width: 1024px;
}

form p {
    text-align: justify;
}

fieldset, form .form-submit-controls {
    margin-top: 1rem;
}

.single-action-form {
    padding: 0.5rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 0.5rem;
    grid-row-gap: 0.5rem;
    align-items: center;
}

@media only screen and (max-width: 1023px) {
    form, fieldset {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media only screen and (min-width: 1024px) {
    fieldset {
        padding: 0.5rem 0;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-column-gap: 0.5rem;
        grid-row-gap: 0.5rem;
        align-items: center;
    }

    legend {
        padding: 0 0.25rem;
    }

    fieldset, form .form-submit-controls {
        text-align: right;
    }

    fieldset label, fieldset .validation-error, fieldset .note {
        margin-left: 0.25rem;
    }

    fieldset .checkbox-form-field {
        grid-column: span 2;
        justify-self: start;
    }

    fieldset input {
        grid-column: 2;
    }

    fieldset .validation-error, fieldset .note {
        grid-column: span 2;
    }

    fieldset > label, .single-action-form label {
        grid-column: 1;
        display: flex;
        align-self: stretch;
        justify-self: end;
    }
}

fieldset .input-with-note {
    display: grid;
}

legend {
    display: flex;
    font-size: 1.1rem;
    line-height: 1.3rem;
}

label {
    font-weight: 500;
}

.validation-error {
    color: red;
    display: block;
}

fieldset .validation-error {
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

fieldset .note {
    margin-bottom: 0.25rem;
}

@media only screen and (min-width: 1024px) {
    #title {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    #title nav, #title .blog-frequencies {
        justify-self: end;
    }

    #title .blog-frequencies {
        grid-row: 2;
        grid-column: 2;
    }
}

@media only screen and (max-width: 1023px) {
    #title {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
    }

    #title .blog-frequencies {
        margin-top: 0.25rem;
    }
}

#title .h-card a {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: black;
}

.u-photo {
    width: 2rem;
}

#title .blog-frequencies {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex;
    gap: 0.35rem;
    font-size: 0.85rem;
}

#title .blog-frequencies img {
    height: 16px;
    width: 100px;
}

.message {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid darkgreen;
    box-shadow: 0.25rem 0.125rem 0.125rem lightgreen;
    background: white;
}

.new-page-form textarea,
.new-post-form textarea,
.edit-page-form textarea,
.edit-post-form textarea {
    height: 10vh;
}

textarea.large-text {
    height: 25vh;
}

footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.links div {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0 0.5rem 0 0;
}

.links div:last-child {
    padding: 0;
}

.links .subtext {
    font-size: 0.8rem;
    color: #a3a3a3;
}

a {
    color: #408cbb;
    text-decoration: none;
}

/* Page contents */

.multi-section, .sub-contents {
    display: flex;
    flex-direction: column;
}

.sub-contents {
    gap: 1.5rem;
}

.multi-section, article.single-post {
    gap: 2.5rem;
}

.h-feed {
    gap: 1rem;
}

strong, h2, h3 {
    font-weight: bold;
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.25rem;
}

h4, h5, .entry-title {
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
}

h4 {
    font-size: 1.1rem;
}

h4 {
    font-weight: 700;
}

h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

section, article {
    display: flex;
    flex-direction: column;
}

.page-contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul, ol {
    list-style-position: inside;
}

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
}

ul ul ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

ul li, ol li {
    margin-left: 0.5rem;
}

.content-footer {
    margin: 0 auto;
}

.content-date {
    font-size: 0.85rem;
    display: block;
    color: #666;
}

.single-post .content-date {
    margin-top: 0.5rem;
}

.copyright {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.emoji {
    font-size: 1.25rem;
}

.post-summary {
    display: flex;
    flex-direction: column;
}

.post-summary .post-date {
    font-size: 0.85rem;
}

article .h-card, article.single-post .p-summary {
    display: none;
}

.h-feed article {
    gap: 0.5rem;
    border: 1px solid #e7e7e7;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.h-cite .h-card {
    display: inline;
}

.tags {
    display: flex;
    gap: 0.75rem;
}

.mentions ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mentions li {
    margin: 0;
}

.p-comment .p-author {
    font-size: 0.85rem;
}

.p-comment .content-date {
    display: inline;
}

.webmention-actions {
    padding: 0.5rem 0;
}

code {
    font-family: 'Roboto Mono', monospace;
}

.activities {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

@media only screen and (min-width: 1024px) {
    .perform-activity {
        display: grid;
        grid-template-columns: 4fr 1.5fr;
        grid-column-gap: 2rem;
        width: 70%;
    }

    .activities {
        gap: 1rem;
    }
}

@media only screen and (max-width: 1023px) {
    .activities .perform-activity {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .activities {
        gap: 2rem;
    }
}

.manual-webmention {
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px dashed lightgray;
    border-bottom: 1px dashed lightgray;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manual-webmention form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    max-width: 512px;
}