/* ==========================================================================
   GreedLearning
   A glossed document: a single column of argument with scripture, citation and
   dissent set in the margin beside it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Typefaces
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/fraunces-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/fraunces-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/karla-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/karla-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Karla';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/karla-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
    --paper: #ffffff;
    --paper-tint: #f2f5f7;
    --ink: #14243a;
    --ink-2: #43546c;
    --ink-3: #6d7a8c;
    --rule: #d8dee4;
    --gold: #a8792a;
    --gold-light: #c9a24e;
    --oxblood: #8c1c13;
    --oxblood-dark: #6f140d;
    --night: #101e33;
    --bone: #eef1f4;
    --bone-2: #c3cedb;
    --bone-3: #8b98a8;

    --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --text: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --measure: 38rem;
    --gutter: 19rem;
    --page: 60rem;
    --pad: 1.5rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.125rem;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-optical-sizing: auto;
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.14;
    text-wrap: balance;
}

a {
    color: var(--oxblood);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 1px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--bone);
    padding: 0.75rem 1.25rem;
    z-index: 20;
}

.skip:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}

.masthead__inner {
    max-width: 78rem;
    margin: 0 auto;
    padding: 1rem var(--pad);
    display: flex;
    align-items: center;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
}

.wordmark {
    text-decoration: none;
    color: var(--ink);
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    flex: 0 0 auto;
}

.wordmark__name {
    display: block;
}

.wordmark__rule {
    display: block;
    height: 2px;
    background: var(--gold);
    margin-top: 3px;
}

.nav-button {
    margin-left: auto;
    font: inherit;
    font-size: 0.95rem;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.4rem 0.8rem;
    color: var(--ink);
    cursor: pointer;
}

.nav-button:hover {
    border-color: var(--ink-3);
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--ink-2);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--rule);
}

.site-nav a[aria-current='page'] {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.button {
    display: inline-block;
    background: var(--oxblood);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    padding: 0.6rem 1.05rem;
    border-radius: 3px;
    border: 1px solid var(--oxblood);
    cursor: pointer;
}

.button:hover {
    background: var(--oxblood-dark);
    border-color: var(--oxblood-dark);
}

.button--pledge {
    margin-left: auto;
    flex: 0 0 auto;
}

@media (max-width: 63.9375rem) {
    .masthead__inner {
        justify-content: space-between;
    }

    .site-nav {
        order: 3;
        flex: 1 0 100%;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
        font-size: 1rem;
    }

    .site-nav__list li {
        border-top: 1px solid var(--rule);
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 0;
    }

    .site-nav a[aria-current='page'] {
        border-bottom: 0;
        box-shadow: inset 3px 0 0 var(--gold);
        padding-left: 0.75rem;
    }

    .button--pledge {
        margin-left: 0;
        order: 2;
    }

    .nav-button {
        order: 1;
        margin-left: auto;
    }

    .site-nav[data-collapsed='true'] {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   The opening spread
   -------------------------------------------------------------------------- */

.overture {
    background: var(--night);
    color: var(--bone);
    padding: clamp(3.5rem, 11vw, 8rem) var(--pad);
}

.overture__inner {
    max-width: var(--page);
    margin: 0 auto;
}

.overture__title {
    margin: 0;
    font-size: clamp(2.3rem, 6.2vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.028em;
    max-width: 20ch;
}

.overture__line {
    display: block;
}

.overture__pivot {
    display: block;
    width: 5.5rem;
    height: 3px;
    background: var(--gold-light);
    margin: 1.35rem 0;
    transform-origin: left center;
}

.overture__lede {
    margin: 2.25rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    line-height: 1.55;
    color: var(--bone-2);
}

.overture__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.9rem;
    margin: 2.5rem 0 0;
}

.link-strong {
    color: var(--bone);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: underline;
    text-decoration-color: var(--gold-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.link-strong:hover {
    text-decoration-color: var(--bone);
}

.overture :focus-visible {
    outline-color: var(--gold-light);
}

@media (prefers-reduced-motion: no-preference) {
    .overture__title > *,
    .overture__lede,
    .overture__actions {
        animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    }

    .overture__title > :nth-child(1) { animation-delay: 0.05s; }
    .overture__title > :nth-child(3) { animation-delay: 0.42s; }
    .overture__lede { animation-delay: 0.62s; }
    .overture__actions { animation-delay: 0.74s; }

    .overture__pivot {
        animation: draw 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }
}

@keyframes draw {
    from {
        transform: scaleX(0);
    }
}

/* --------------------------------------------------------------------------
   The document: text column with a margin for glosses
   -------------------------------------------------------------------------- */

.doc {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.prose {
    max-width: var(--measure);
}

.prose::after {
    content: '';
    display: block;
    clear: both;
}

/* Only a document that opens a page carries the top padding. Chapter pages get
   their spacing from .chapter-head instead. */
.overture + .doc > .prose,
main > .doc:first-child > .prose:first-child {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose p {
    margin: 0 0 1.35rem;
}

.prose h2 {
    margin: 3.2rem 0 1.1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.prose h3 {
    margin: 2.4rem 0 0.85rem;
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
}

.prose ul,
.prose ol {
    margin: 0 0 1.35rem;
    padding-left: 1.2rem;
}

.prose li {
    margin-bottom: 0.6rem;
}

.prose strong {
    font-weight: 700;
}

.prose__opening {
    font-size: 1.24rem;
    line-height: 1.6;
}

.prose__opening::first-letter {
    float: left;
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 3.85em;
    line-height: 0.8;
    color: var(--gold);
    margin: 0.04em 0.1em 0 0;
}

.prose__emphasis {
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    line-height: 1.3;
    font-weight: 500;
}

.prose .pronouncement {
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--oxblood);
    margin: 2rem 0;
}

/* Chapter openings -------------------------------------------------------- */

.chapter-head {
    max-width: var(--measure);
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.chapter-head::after {
    content: '';
    display: block;
    clear: both;
}

.chapter-head__title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    letter-spacing: -0.025em;
}

.chapter-head__standfirst {
    margin: 1.1rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 32rem;
}

.chapter-head__position {
    font-family: var(--display);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    margin: 0 0 1.2rem;
}

.chapter-head + .prose {
    padding-top: 2.6rem;
}

/* Margin notes ------------------------------------------------------------ */

.note {
    margin: 0 0 1.6rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}

.note__text {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--ink-2);
    margin: 0;
}

.note__cite {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-3);
}

/* A gloss names a term and defines it, so the definition carries more weight than
   a citation would. */
.note--gloss .note__text {
    font-size: 1.16rem;
}

.note--gloss .note__cite {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ink-2);
}

@media (min-width: 64rem) {
    .doc .prose,
    .doc .chapter-head {
        margin-left: var(--gutter);
    }

    /* Pages that carry no margin notes center their column instead */
    .doc--single .prose {
        margin-left: auto;
        margin-right: auto;
    }

    .note,
    .chapter-head__position {
        float: left;
        width: 15rem;
        margin-left: calc(var(--gutter) * -1);
        margin-top: 0.45rem;
        padding-left: 0;
        padding-top: 0.7rem;
        border-left: 0;
        border-top: 2px solid var(--gold);
    }

    .chapter-head__position {
        margin-top: 0.9rem;
        margin-bottom: 0;
    }
}

@media (max-width: 63.9375rem) {
    .chapter-head__position {
        padding-left: 1rem;
        border-left: 2px solid var(--gold);
    }
}

/* --------------------------------------------------------------------------
   The three questions
   -------------------------------------------------------------------------- */

.questions {
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: clamp(3rem, 7vw, 4.5rem) 0;
    padding: clamp(2.75rem, 6vw, 4.25rem) var(--pad);
}

.questions__inner {
    max-width: var(--page);
    margin: 0 auto;
}

.questions__heading {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    max-width: 22ch;
}

.questions__list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    max-width: var(--measure);
}

.questions__list li {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
    border-top: 1px solid var(--rule);
    padding: 1.1rem 0;
}

.questions__count {
    font-family: var(--display);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
}

.questions__list p {
    margin: 0;
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-size: clamp(1.12rem, 2.3vw, 1.42rem);
    line-height: 1.32;
    font-weight: 500;
}

@media (min-width: 64rem) {
    .questions__inner {
        padding-left: var(--gutter);
    }
}

@media (max-width: 34rem) {
    .questions__list li {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Where to begin
   -------------------------------------------------------------------------- */

.ways {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.ways li {
    border-top: 1px solid var(--rule);
    padding: 1.05rem 0;
    margin: 0;
}

.ways a {
    display: block;
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
}

.ways a:hover {
    color: var(--oxblood);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.ways span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Reading order
   -------------------------------------------------------------------------- */

.pager {
    max-width: var(--page);
    margin: clamp(3rem, 7vw, 4.5rem) auto clamp(3.5rem, 8vw, 5.5rem);
    padding: 1.4rem var(--pad) 0;
    border-top: 2px solid var(--ink);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.pager__item {
    text-decoration: none;
    max-width: 20rem;
}

.pager__item--next {
    margin-left: auto;
    text-align: right;
}

.pager__role {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-3);
    margin-bottom: 0.15rem;
}

.pager__title {
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.25;
    color: var(--ink);
}

.pager__item:hover .pager__title {
    color: var(--oxblood);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.colophon {
    background: var(--night);
    color: var(--bone-2);
    padding: clamp(2.75rem, 6vw, 4.25rem) var(--pad);
    font-size: 0.98rem;
}

.colophon__inner {
    max-width: var(--page);
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

.colophon__lede {
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-size: 1.12rem;
    line-height: 1.45;
    color: var(--bone);
    margin: 0 0 1rem;
}

.colophon__statement p:last-child {
    margin: 0;
    line-height: 1.6;
}

.colophon__heading {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    color: var(--gold-light);
}

.colophon__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
}

/* Twelve chapters run tall against the statement beside them, so the list splits
   once there is width for it. */
@media (min-width: 40rem) {
    .colophon__contents .colophon__list {
        column-count: 2;
        column-gap: 2rem;
    }

    .colophon__list li {
        break-inside: avoid;
    }
}

.colophon__list li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.colophon__list a {
    display: block;
    padding: 0.42rem 0;
    color: var(--bone-2);
    text-decoration: none;
}

.colophon__list a:hover {
    color: var(--bone);
    text-decoration: underline;
    text-decoration-color: var(--gold-light);
    text-decoration-thickness: 2px;
}

.colophon__rights {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: var(--bone-3);
}

.colophon :focus-visible {
    outline-color: var(--gold-light);
}

@media (min-width: 52rem) {
    .colophon__inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3.5rem;
    }

    .colophon__rights {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   Paths of study and work
   -------------------------------------------------------------------------- */

.paths {
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: clamp(3rem, 7vw, 4.5rem) 0;
    padding: clamp(2.75rem, 6vw, 4.25rem) var(--pad);
}

.paths__inner {
    max-width: var(--page);
    margin: 0 auto;
}

.path + .path {
    margin-top: 2.75rem;
}

.path__heading {
    margin: 0;
    font-size: clamp(1.22rem, 2.2vw, 1.45rem);
}

.path__list {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    font-size: 1.02rem;
    line-height: 1.6;
}

.path__list li {
    border-top: 1px solid var(--rule);
    padding: 0.8rem 0;
    margin: 0;
    color: var(--ink-2);
}

.path__list strong {
    color: var(--ink);
}

@media (min-width: 52rem) {
    /* Columns rather than a grid, so a short section does not leave a hole beneath
       it waiting for the tallest section in its row. */
    .paths__inner {
        column-count: 2;
        column-gap: 3.5rem;
    }

    .path {
        break-inside: avoid;
        margin-bottom: 2.75rem;
    }

    .path + .path {
        margin-top: 0;
    }
}

/* --------------------------------------------------------------------------
   The pledge, set apart as an instrument to be signed
   -------------------------------------------------------------------------- */

.instrument {
    background: var(--night);
    color: var(--bone);
    margin: clamp(3rem, 7vw, 4.5rem) 0;
    padding: clamp(2.75rem, 7vw, 4.5rem) var(--pad);
}

.instrument__inner {
    max-width: var(--page);
    margin: 0 auto;
}

.instrument__beliefs p {
    margin: 0 0 1.1rem;
    max-width: 36rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bone-2);
}

.instrument__lead {
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    color: var(--bone);
}

.instrument__heading {
    margin: 2.5rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--bone);
}

.clauses {
    list-style: none;
    counter-reset: clause;
    margin: 1.6rem 0 0;
    padding: 0;
    max-width: 40rem;
}

.clauses li {
    counter-increment: clause;
    position: relative;
    margin: 0;
    padding: 1.05rem 0 1.05rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.06rem;
    line-height: 1.55;
}

.clauses li::before {
    content: counter(clause);
    position: absolute;
    left: 0;
    top: 1.05rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-light);
}

.instrument__closing {
    margin: 2.25rem 0 0;
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--bone);
}

.instrument :focus-visible {
    outline-color: var(--gold-light);
}

@media (min-width: 64rem) {
    .instrument__inner {
        padding-left: var(--gutter);
    }
}

/* --------------------------------------------------------------------------
   The letter
   -------------------------------------------------------------------------- */

.prose .letter__salutation {
    font-family: var(--display);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.prose .letter__signoff {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    line-height: 1.7;
}

.letter__signature {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.letter__note {
    font-size: 0.92rem;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Questions and answers
   -------------------------------------------------------------------------- */

.question {
    border-top: 1px solid var(--rule);
}

.question:last-of-type {
    border-bottom: 1px solid var(--rule);
}

.question__ask {
    position: relative;
    display: block;
    padding: 1rem 2.4rem 1rem 0;
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.32;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.question__ask::-webkit-details-marker {
    display: none;
}

.question__ask::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 1.35rem;
    width: 0.62rem;
    height: 0.62rem;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

.question[open] .question__ask::after {
    top: 1.6rem;
    transform: rotate(-135deg);
}

.question__ask:hover {
    color: var(--oxblood);
}

.question__answer {
    padding: 0 0 0.4rem;
}

.prose .question__answer p {
    color: var(--ink-2);
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Signing the pledge
   -------------------------------------------------------------------------- */

.signing {
    max-width: var(--page);
    /* The top margin separates the form from prose above it. Where the form follows
       the pledge instrument, this collapses with that section's own margin. */
    margin: clamp(2.5rem, 6vw, 4rem) auto clamp(3.5rem, 8vw, 5.5rem);
    padding: 0 var(--pad);
}

.signing__inner {
    max-width: 38rem;
}

.signing__heading {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.signing__lede {
    margin: 0.75rem 0 2rem;
    color: var(--ink-2);
}

@media (min-width: 64rem) {
    .signing__inner {
        margin-left: var(--gutter);
    }
}

/* Forms ------------------------------------------------------------------- */

.form {
    margin: 0;
}

/* Hidden from sighted people and offered to bots. Deliberately not aria-hidden: the
   field is focusable, and hiding a focusable control from assistive technology is a
   conformance failure. Anyone who reaches it hears its label, which tells them to
   leave it alone. */
.form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.field {
    margin-bottom: 1.5rem;
}

.field__label {
    display: block;
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.field__hint {
    font-weight: 400;
    color: var(--ink-3);
}

.field__input {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 1.02rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink-3);
    border-radius: 3px;
    padding: 0.65rem 0.75rem;
}

.field__input:focus-visible {
    border-color: var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.field__input--long {
    line-height: 1.55;
    resize: vertical;
}

.field__input[aria-invalid='true'] {
    border-color: var(--oxblood);
}

.field__error {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: var(--oxblood);
    font-weight: 600;
}

.field__error--form {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--oxblood);
    background: #fbf1f0;
}

.field-row {
    display: grid;
    gap: 0 1.25rem;
}

.choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.choice input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.28rem 0 0;
    accent-color: var(--oxblood);
}

.button--large {
    margin-top: 1rem;
    font-size: 1.05rem;
    padding: 0.8rem 1.6rem;
}

.form__note {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-3);
}

.notice {
    border-top: 3px solid var(--gold);
    padding-top: 1.4rem;
}

.notice__heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
}

.notice p {
    margin: 0 0 1rem;
    max-width: 34rem;
    line-height: 1.6;
}

.notice p:last-child {
    margin-bottom: 0;
}

@media (min-width: 34rem) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* The signatures ---------------------------------------------------------- */

.signatures {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prose .signature {
    margin: 0;
    padding: 1.1rem 0;
    border-top: 1px solid var(--rule);
}

.signature__name {
    margin: 0;
    font-family: var(--display);
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
    font-weight: 600;
    font-size: 1.16rem;
    line-height: 1.3;
}

.prose .signature__where {
    margin: 0.15rem 0 0;
    font-size: 0.96rem;
    color: var(--ink-2);
}

.signature__stage {
    color: var(--ink-3);
}

.signature__stage::before {
    content: ' — ';
}

.prose .signature__reason {
    margin: 0.6rem 0 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.prose .signatures__foot {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    border-top: 2px solid var(--ink);
}
