body {
    margin: 0;
}

main {
    max-width: 36rem;
    margin: 0 auto;
    padding: 52px 24px 80px;
}

.page-title {
    display: inline-block;
    margin: 0 0 48px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.page-title a:first-child {
    text-transform: none;
}

.page-title .current-title {
    text-transform: none;
}

.page-title .lexicon-title {
    text-transform: capitalize;
}

.article-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 48px;
}

.article-header .page-title,
.article-meta {
    margin: 0;
}

.article-meta {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
}

a {
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

main h2 {
    margin: 0 0 28px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 100px;
    padding-top: 16px;
    border-top: 1px solid;
}

.page-links a {
    text-decoration: none;
}

.page-links a:hover {
    text-decoration: underline;
}

main ul,
main ol {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

main li {
    margin-bottom: 16px;
}

.synth-methods li {
    margin-bottom: 4px;
}

article p {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

article p.about-interests {
    margin-bottom: 50px;
}

article > :first-child {
    margin-top: 0;
}

article h2 {
    margin-top: 40px;
    font-weight: 500;
}

article h2 + ul,
article h2 + ol,
article h2 + .concept {
    margin-top: -16px;
}

.music-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    box-sizing: border-box;
    height: 22px;
    padding: 0 5px;
    border: 1px solid;
    background: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.play-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 10px;
}

.play-icon svg {
    display: block;
    fill: currentColor;
}

.music-icon {
    font-size: 16px;
    transform: translateY(1px);
}

article blockquote {
    margin: 0 0 28px 20px;
    padding-left: 16px;
    border-left: 1px solid;
}

.bookshelf > blockquote {
    font-style: italic;
}

.bookshelf li {
    margin-bottom: 0;
}

.bookshelf ul {
    line-height: 22px;
}

.project-note {
    margin-top: 40px;
}

.poem {
    margin-bottom: 8px;
}

.poem summary {
    cursor: pointer;
}

.poem[open] summary {
    margin-bottom: 20px;
}

.concept {
    margin-top: 32px;
}

.synth-guide {
    margin-top: 0;
    margin-bottom: 20px;
}

.concept summary {
    cursor: pointer;
    font-weight: 500;
    line-height: 28px;
}

.concept[open] summary {
    margin-bottom: 20px;
}

.concept[open] > :not(summary) {
    margin-left: 20px;
}

.synth-description {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.inline-definition {
    display: inline;
}

.inline-definition-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.inline-definition label {
    cursor: help;
    padding-left: 3px;
    border-left: 1px solid;
    border-bottom: 1px solid;
}

.inline-definition > span {
    display: none;
}

.inline-definition-toggle:checked ~ span {
    display: inline;
}

.inline-definition-toggle:focus-visible + label {
    outline: 1px dotted;
    outline-offset: 2px;
}

.synth-visual-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.synth-visual-row p {
    margin-bottom: 0;
}

.synth-visual {
    display: block;
    width: 100%;
    height: auto;
}

.synth-gif {
    width: 220px;
    justify-self: end;
}

.waveform-explanations {
    display: grid;
    gap: 24px;
    padding-left: 20px;
    list-style: none;
}

.waveform-explanations li {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 24px;
    margin: 0;
}

.waveform-explanations li::before {
    position: absolute;
    left: -18px;
    content: "•";
}

.waveform-explanations figure {
    margin: 0;
}

.waveform-explanations img {
    display: block;
    width: 100%;
    height: auto;
}

article p.visual-credit {
    margin-top: 48px;
    font-size: 14px;
    line-height: 22px;
}

.media-item {
    margin: 32px 0;
}

.media-item video {
    display: block;
    width: 100%;
    max-height: 75vh;
}

.media-item figcaption {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
}

.writing-image {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 32px;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1.1fr 1.36fr 0.96fr;
    gap: 12px;
    margin: 20px 0 8px;
}

.about-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.about-footer-image,
.synth-setup-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 32px;
}

.synth-mixer-section {
    margin-top: 32px;
}

.synth-mixer-section::after {
    display: block;
    clear: both;
    content: "";
}

.synth-mixer-image {
    float: right;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 0 20px 24px;
}

article p.synth-next-step {
    margin-top: 32px;
}

@media (max-width: 640px) {
    main {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: clamp(28px, 8vw, 36px) clamp(12px, 4vw, 20px) 64px;
    }

    .synth-mixer-image {
        float: none;
        margin: 0 0 20px;
    }

    .page-title {
        margin-bottom: 36px;
    }

    .article-header {
        gap: 8px;
        margin-bottom: 36px;
    }

    .article-meta {
        font-size: 14px;
        white-space: nowrap;
    }

    .page-links {
        margin-top: 72px;
        gap: 10px 18px;
    }

    main ul,
    main ol {
        padding-left: 18px;
    }

    article blockquote {
        margin-left: 0;
        padding-left: 12px;
    }

    .about-gallery {
        gap: 6px;
    }

    .synth-visual-row {
        grid-template-columns: 1fr 220px;
        gap: 16px;
    }

    .waveform-explanations li {
        grid-template-columns: 1fr 200px;
        gap: 16px;
    }

    .about-gallery img {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .synth-visual-row,
    .waveform-explanations li {
        grid-template-columns: 1fr;
    }

    .synth-visual,
    .waveform-explanations figure {
        width: 280px;
        max-width: 100%;
    }

    .synth-gif {
        width: 220px;
        justify-self: start;
    }
}
