@font-face {
    font-family: "Sabon";
    src: url('/fonts/sabon/Sabon.woff2') format('woff2');
}

@font-face {
    font-family: "Sabon";
    src: url('/fonts/sabon/SabonBold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: "Sabon";
    src: url('/fonts/sabon/SabonItalic.woff2') format('woff2');
    font-style: italic;
}

@font-face {
    font-family: "Sabon";
    src: url('/fonts/sabon/SabonBoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

:root {
    --primary-font: "PP Radio Grotesk";
    --serif-font: "Sabon", Georgia, Times, serif;
    --secondary-gray: #707070;
    --link-colour: #205b8f;
    --sans: "PP Radio Grotesk", "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    font-size: 18px;
}

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

html {
    font-family: var(--sans);
    padding: 10px;
    box-sizing: border-box;
}

.embeddable-buttondown-form {
    margin-top: 16px;
}

main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-family: var(--serif-font);
    margin-bottom: 10vmin;
    margin-top: 10vmin;
}

section {
    margin-bottom: 3rem;
    width: clamp(320px, 100%, 40rem);
    padding: 0 1.5rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid currentColor;
    font-variant: all-small-caps;
    margin-bottom: 5px;
}

h2 {
    display: inline-block;
    border-bottom: 1px solid currentColor;
    font-variant: all-small-caps;
    font-size: 1.8rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

p {
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 1rem;
    orphans: 3;
    widows: 3;
}

p + h3 {
    margin: 3.5rem 0 0;
}

a {
    color: currentColor;
    text-decoration: underline;
}

a:hover {
    color: var(--link-colour)
}

blockquote {
    max-width: 40rem;
    padding-left: 2rem;
    border-left: 1px solid #ddd;
    margin: 2rem 0;
}

blockquote p {
    font-size: 0.9rem;
    line-height: 1.5;
}

form {
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 20px;
}

form.disabled {
    pointer-events: none;
    opacity: 0.5;
}

form fieldset {
    border: none;
    padding: 10px 0;
    margin: 10px 0;
}

form legend {
    color: var(--secondary-gray);
    margin: 8px 0;
    border-bottom: 1px solid #999;
    font-variant: all-small-caps;
    letter-spacing: 1px;
}

form label {
    margin-bottom: 1rem;
    display: block;
}

.form-label-title {
    display: block;
    margin-bottom: 5px;
}

form input:not(input[type="radio"]):not(input[type="checkbox"]) {
    border: none;
    border-bottom: 1px solid #999;
    width: 100%;
    display: block;
    padding: 8px 12px;
}

form input[type="checkbox"] {
    width: auto;
    margin: 0 10px;
}

form input[type="radio"] {
    margin-right: 10px;
}

.article-footer {
    margin-top: 5rem;
    border-top: 1px solid black;
}

.support-callout {
    margin-top: 5rem;
    border-top: 1px solid black;
}

.body-wrapper {
    padding: 0 1.5rem;
    margin-top: 6rem;
    max-width: 40rem;
    position: relative;
}

@media (max-width: 600px) {
    :root {
        font-size: 16px;
    }
    body {
        margin: 0;
    }
    article header {
        padding-bottom: 0;
    }
    blockquote {
        padding-left: 0;
    }
    p, h3, section {
        padding: 0;
    }
    h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) {
    form legend {
        transform: translateX(-20px);
    }
}