/* Fonts, served by the club itself so no third party learns who reads it.
----------------------------------------------------------------------------*/
@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/anton.woff2") format("woff2");
}

@font-face {
    font-family: "Courier Prime";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/courier-prime.woff2") format("woff2");
}

@font-face {
    font-family: "Courier Prime";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/courier-prime-bold.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair-display.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair-display-italic.woff2") format("woff2");
}

/* Colours and type.
----------------------------------------------------------------------------*/
:root {
    --paper: #f6d33c;
    --paper-2: #fff3c4;
    --ink: #1b1611;
    --ink-dim: #4a3b0f;
    --ink-faint: #665312;
    --red: #a3170a;
    --red-bg: #b81f0f;
    --on-red: #fff6d6;
    --dot: rgba(192, 30, 16, 0.22);
    --shadow: var(--ink);

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --display: "Anton", Impact, "Arial Narrow", sans-serif;
    --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

    /* The sizes type is set in, smallest first, each a clear step up from
       the one before. Nothing on a page is set smaller than `small`. */
    --size-small: 13px;
    --size-body: 16px;
    --size-lead: 18px;
    --size-title: 22px;
    --size-heading: 32px;
    --size-headline: clamp(36px, 5.5vw, 52px);

    /* The sheet every page is printed on, and the column a page of running
       text is set in. */
    --max: 1120px;

    /* The room between the edge of the sheet and what is printed on it. */
    --gutter: 40px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #17120c;
        --paper-2: #221a10;
        /* A pale straw rather than the paper's own yellow, which is too
           loud to read at length off a dark sheet. */
        --ink: #d6c89e;
        --ink-dim: #ab9d76;
        --ink-faint: #958660;
        --red: #ff5a43;
        --red-bg: #b01d0d;
        --on-red: #fff3c4;
        --dot: rgba(255, 90, 67, 0.2);
        --shadow: #000000;
        color-scheme: dark;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
    }
}

/* Core elements.
----------------------------------------------------------------------------*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--paper);
    /* Paper grain. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--mono);
    font-size: var(--size-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base rules for links weigh nothing, so any rule about a particular link
   has its way over them. */
:where(a) {
    color: inherit;
    text-decoration: none;
}

/* A link in running text. Anything that is a link of its own shape, such as
   a button or the way about, says so and goes without. */
:where(a:not(.no-feedback)) {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

:where(a:not(.no-feedback)):hover {
    color: var(--red);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
p,
ol,
ul,
blockquote {
    margin: 0;
}

h1 {
    margin-bottom: 2rem;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-headline);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

strong {
    color: var(--red);
}

::selection {
    background: var(--red-bg);
    color: var(--on-red);
}

/* The sheet every page is printed on.
----------------------------------------------------------------------------*/
.sheet {
    display: flex;
    flex-direction: column;
    max-width: var(--max);
    min-height: 100vh;
    margin: 0 auto;
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
}

.sheet > main {
    flex: 1 0 auto;
}

@media (max-width: 640px) {
    .sheet {
        border: none;
    }
}

/* Masthead.
----------------------------------------------------------------------------*/
.masthead {
    padding: 36px var(--gutter) 26px;
    border-bottom: 2px solid var(--ink);
    background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px);
    background-size: 7px 7px;
}

.masthead-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-family: var(--serif);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(44px, 10vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.035em;
}

.record {
    flex-shrink: 0;
    width: clamp(44px, 8vw, 88px);
    height: clamp(44px, 8vw, 88px);
}

@media (max-width: 640px) {
    .masthead {
        padding-top: 26px;
        padding-bottom: 18px;
    }

    .masthead-title {
        gap: 12px;
    }
}

/* The way about the club.
----------------------------------------------------------------------------*/
nav {
    display: flex;
    border-bottom: 2px solid var(--ink);
    background: var(--paper-2);
    overflow-x: auto;
    scrollbar-width: none;
}

nav::-webkit-scrollbar {
    display: none;
}

nav a {
    padding: 13px 24px;
    border-right: 2px solid var(--ink);
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
}

nav a:hover {
    background: var(--paper);
    color: inherit;
}

nav a:last-child {
    border-right: none;
}

/* The link to where the page is. */
nav a[aria-current="page"],
nav a[aria-current="page"]:hover {
    background: var(--red-bg);
    color: var(--on-red);
}

nav a.push {
    margin-left: auto;
    border-left: 2px solid var(--ink);
}

@media (max-width: 640px) {
    nav a {
        padding: 11px 14px;
        font-size: var(--size-small);
        letter-spacing: 0.12em;
    }
}

/* Footer.
----------------------------------------------------------------------------*/
footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: var(--red-bg);
    color: var(--on-red);
}

footer > * {
    padding: 30px var(--gutter);
}

footer > * + * {
    border-left: 2px solid rgba(255, 243, 196, 0.35);
}

.footer-brand {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-heading);
    line-height: 1;
}

.footer-links a {
    display: block;
    padding: 3px 0;
    font-size: var(--size-small);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
}

.footer-links a:hover {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 760px) {
    footer {
        grid-template-columns: 1fr;
    }

    footer > * {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    footer > * + * {
        border-left: none;
        border-top: 2px solid rgba(255, 243, 196, 0.35);
    }
}

/* Blocks, each running the width of the sheet.
----------------------------------------------------------------------------*/
.block {
    padding: 36px var(--gutter) 44px;
    border-bottom: 2px solid var(--ink);
}

.block-head {
    margin-bottom: 26px;
    padding-bottom: 12px;
    border-bottom: 5px double var(--ink);
    font-family: var(--serif);
    font-weight: 900;
    font-style: italic;
    font-size: var(--size-headline);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Columns side by side, one under the other on a narrow screen. */
.spread {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-bottom: 2px solid var(--ink);
}

.column {
    padding: 32px 28px 36px;
}

.column:first-child {
    padding-left: var(--gutter);
}

.column:last-child {
    padding-right: var(--gutter);
}

.column + .column {
    border-left: 2px solid var(--ink);
}

@media (max-width: 760px) {
    .spread {
        grid-auto-flow: row;
    }

    .column,
    .column:first-child,
    .column:last-child {
        padding: 26px var(--gutter) 30px;
    }

    .column + .column {
        border-left: none;
        border-top: 2px solid var(--ink);
    }
}

.column-head {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 5px double var(--ink);
    font-family: var(--display);
    font-weight: 400;
    font-size: var(--size-heading);
    line-height: 1;
    text-transform: uppercase;
}

.column p {
    font-size: var(--size-body);
    line-height: 1.7;
}

.column p + p {
    margin-top: 12px;
}

/* Albums listed in a column, one to a row: those the home page reads from
   the archive, and those a member pitched. A row reads the same whether it
   leads to the pitch or, for an album still waiting for its week, nowhere. */
.from-archive,
ul.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.column p + ul.archive-list {
    margin-top: 12px;
}

.from-archive li,
ul.archive-list li {
    border-bottom: 1px solid var(--ink);
}

.from-archive a,
ul.archive-list a,
ul.archive-list .archive-waiting {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.from-archive-art,
.archive-art {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
}

.from-archive-text,
.archive-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
    min-width: 0;
}

.from-archive-title,
.archive-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.15;
}

.from-archive a:hover .from-archive-title,
ul.archive-list a:hover .archive-title {
    color: var(--red);
}

.from-archive-by,
.archive-artists,
.archive-week {
    font-size: var(--size-small);
    letter-spacing: 0.14em;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.from-archive-week {
    flex-shrink: 0;
    font-family: var(--display);
    font-size: var(--size-title);
    line-height: 1;
    text-transform: uppercase;
    color: var(--red);
}

/* A link on to more of what a column shows. */
.more {
    display: inline-block;
    margin-top: 20px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--red);
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.more::after {
    content: " →";
}

.more:hover {
    color: var(--red);
}

/* The paragraph a column opens with, its first letter set large. */
.opening::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 4.1em;
    line-height: 0.82;
    color: var(--red);
}

/* A box set apart from the text around it, as if cut out and pasted in. */
.clipping {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
}

/* The story a page leads with.
----------------------------------------------------------------------------*/
.lead {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    padding: 44px var(--gutter) 48px;
    border-bottom: 2px solid var(--ink);
}

@media (max-width: 860px) {
    .lead {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
        padding-bottom: 36px;
    }
}

.cover {
    display: block;
    align-self: start;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--red-bg);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--shadow);
}

.cover-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.headline {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.95;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 16px 0 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    font-size: var(--size-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.byline span {
    color: var(--ink-dim);
}

@media (max-width: 640px) {
    .byline {
        gap: 4px 10px;
        font-size: var(--size-small);
        letter-spacing: 0.1em;
    }
}

.pullquote {
    padding-left: 22px;
    border-left: 6px solid var(--red);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.45;
}

.pullquote p + p {
    margin-top: 0.8em;
}

.credit {
    margin-top: 26px;
    padding: 12px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.2;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 26px;
}

/* Buttons.
----------------------------------------------------------------------------*/
.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: var(--red-bg);
    color: var(--on-red);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
    font-family: var(--mono);
    font-size: var(--size-body);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}

.button svg {
    width: 16px;
    height: 16px;
}

.button:hover {
    color: var(--on-red);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--shadow);
}

.button:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--shadow);
}

.button-wide {
    justify-content: center;
    width: 100%;
    min-height: 50px;
}

.button-ghost,
.button-ghost:hover {
    background: var(--paper);
    color: var(--ink);
}

/* Banners.
----------------------------------------------------------------------------*/
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
    text-decoration: none;
}

a.banner:hover {
    color: inherit;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--shadow);
}

a.banner:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--shadow);
}

.banner-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-header {
    color: inherit;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.2;
}

.banner-text {
    font-size: var(--size-body);
    color: var(--ink-dim);
}

.banner .icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* A banner calling on whoever reads it to write a pitch. */
.banner-call {
    gap: 24px;
    padding: 26px 22px;
    background: var(--red-bg);
    color: var(--on-red);
    box-shadow: 6px 6px 0 var(--shadow);
}

.banner-call .banner-header {
    font-family: var(--display);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
    text-transform: uppercase;
}

.banner-call .banner-text {
    color: var(--on-red);
}

/* The same, once the pitch is in and there is nothing left to do. */
.banner-done {
    background: var(--paper-2);
    color: var(--ink);
}

.banner-done .banner-text {
    color: var(--ink-dim);
}

.banner-call .button {
    flex-shrink: 0;
    padding: 14px 22px;
    font-size: var(--size-small);
    letter-spacing: 0.25em;
}

.banner-call .button::after {
    content: "→";
}

@media (max-width: 640px) {
    .banner-call {
        flex-direction: column;
        align-items: stretch;
        box-shadow: 4px 4px 0 var(--shadow);
    }

    .banner-call .button {
        justify-content: center;
    }
}

/* Members.
----------------------------------------------------------------------------*/
.member-roll {
    list-style: none;
    padding: 0;
}

.member-roll li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--ink-faint);
    font-size: var(--size-body);
}

.member-roll li:last-child {
    border-bottom: none;
}

.member-roll .member-nickname {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-lead);
    text-decoration: none;
}

.member-about {
    display: block;
    font-size: var(--size-small);
    color: var(--ink-dim);
}

.member-aside {
    font-size: var(--size-small);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
}

/* Comments read back in short, set like letters to the editor.
----------------------------------------------------------------------------*/
.letters {
    columns: 3 280px;
    column-gap: 36px;
    column-rule: 1px solid var(--ink);
}

.letter {
    break-inside: avoid;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 2px dotted var(--ink);
}

.letter a {
    text-decoration: none;
}

.letter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.letter-age {
    font-size: var(--size-small);
    font-weight: 400;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.letter-about {
    margin-top: 14px;
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.letter-about a {
    color: var(--red);
}

.letter-text {
    margin-top: 14px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: var(--size-lead);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* The comment written last, newest first in the columns, stands out. */
.letter:first-child {
    padding: 22px 18px;
    background: var(--red-bg);
    color: var(--on-red);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--shadow);
}

.letter:first-child .letter-age .faint {
    color: var(--on-red);
}

/* Red would vanish on red, so links here are in ink, also when pointed at. */
.letter:first-child .letter-about a,
.letter:first-child a:hover {
    color: var(--ink);
}

.letter:first-child .letter-text {
    font-style: italic;
    font-size: var(--size-title);
    line-height: 1.3;
}

.letter:first-child .letter-text::before {
    content: "\201D";
}

.letter:first-child .letter-text::after {
    content: "\201D";
}

/* Narrow, in the middle of the sheet. */
.narrow {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* A note at the foot of what a page says. */
.footnote {
    padding-top: 18px;
    border-top: 2px solid var(--ink);
    font-size: var(--size-body);
    line-height: 1.65;
}

/* A page opening with a band naming it, and a word about it to the side.
----------------------------------------------------------------------------*/
.band {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    padding: 30px var(--gutter);
    border-bottom: 2px solid var(--ink);
}

.band h1 {
    margin: 0;
    line-height: 1;
}

.band-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.band-note {
    font-size: var(--size-small);
    letter-spacing: 0.14em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--ink-dim);
}

/* A document of the club's own, such as its terms, set the way a paper sets
   its columns: justified, ruled apart, and opening with a capital in red.
----------------------------------------------------------------------------*/
.prose {
    columns: 2 300px;
    column-gap: 44px;
    column-rule: 1px solid var(--ink);
    font-size: var(--size-body);
    line-height: 1.75;
}

.prose p,
.prose li {
    text-align: justify;
    hyphens: auto;
}

.prose > * + * {
    margin-top: 14px;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > p:first-of-type::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 4.1em;
    line-height: 0.82;
    color: var(--red);
}

.prose h1,
.prose h2 {
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 5px double var(--ink);
    font-family: var(--display);
    font-style: normal;
    font-weight: 400;
    font-size: var(--size-heading);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    break-after: avoid;
}

.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 24px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.2;
    break-after: avoid;
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li::marker {
    color: var(--red);
    font-weight: 700;
}

.prose li + li {
    margin-top: 6px;
}

/* A quote is pulled out between rules, the way a paper pulls one out. */
.prose blockquote {
    padding: 14px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.35;
    color: var(--red);
    break-inside: avoid;
}

.prose blockquote p {
    text-align: left;
    hyphens: manual;
}

.prose hr {
    margin: 28px 0;
    border: none;
    border-top: 2px dotted var(--ink);
}

.prose pre {
    padding: 14px 16px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    overflow-x: auto;
    break-inside: avoid;
}

/* The founder signing off a document of the club's own, as a letter is. */
.prose .signature {
    margin-top: 28px;
    text-align: right;
    break-inside: avoid;
}

.prose .signature p {
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
}

.prose .signature-name {
    margin-top: 2px;
    font-weight: 900;
    font-size: var(--size-title);
    color: var(--red);
}

/* The landing page: what the club is, beside the way in for members.
----------------------------------------------------------------------------*/
.landing {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}

.landing-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    font-family: var(--display);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(56px, 9vw, 104px);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-title-end {
    color: var(--red);
}

/* What the club is, kept to a readable measure. The card has its own. */
.landing > :first-child p {
    max-width: 48ch;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .landing {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

/* Cards.
----------------------------------------------------------------------------*/
.card {
    padding: 24px 22px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--shadow);
}

.card-head {
    margin: 4px 0 8px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-heading);
    line-height: 1.1;
}

.card p {
    font-size: var(--size-body);
    line-height: 1.65;
}

.card > * + * {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .card {
        padding: 20px 16px;
        box-shadow: 4px 4px 0 var(--shadow);
    }
}

/* A page that says one thing, set in the middle of the sheet both ways. */
.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px var(--gutter) 88px;
}

@media (max-width: 560px) {
    .centered {
        padding-top: 40px;
        padding-bottom: 60px;
    }
}

.note {
    margin: 0.5rem 0 1rem;
    color: var(--ink-dim);
}

/* Somebody invited that has not joined yet, on the roll of the member that
   invited them.
----------------------------------------------------------------------------*/
.member-pending {
    font-weight: 700;
    font-size: var(--size-body);
    overflow-wrap: anywhere;
}

/* The way to invite more, set off from the roll of those already invited. */
.clipping + .banner {
    margin-top: 28px;
}

.member-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

/* The tree of members, each under whoever invited them.
----------------------------------------------------------------------------*/
ul.member-tree {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

ul.member-tree ul.member-tree {
    margin: 0 0 0 16px;
}

/* Each member under another is joined to the line running down from them,
   which stops at the last of them. */
ul.member-tree ul.member-tree > li {
    position: relative;
    padding-left: 24px;
}

ul.member-tree ul.member-tree > li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-left: 2px solid var(--ink);
}

ul.member-tree ul.member-tree > li:last-child::before {
    bottom: auto;
    height: 26px;
}

ul.member-tree ul.member-tree > li::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 0;
    width: 18px;
    border-top: 2px solid var(--ink);
}

.member-branch {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    line-height: 48px;
}

.member-branch .member-nickname {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    letter-spacing: -0.01em;
}

.member-you .member-nickname {
    color: var(--red);
}

.branch-joined {
    font-size: var(--size-small);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.branch-pitches {
    font-size: var(--size-small);
    color: var(--ink-dim);
}

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

.single-action-form {
    display: block;
    width: unset;
}

.single-action-form button {
    padding: 0.25rem 0.75rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    gap: 1rem;
}

fieldset {
    border: 0;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    width: 100%;
}

fieldset label {
    text-align: left;
    font-weight: bold;
}

input,
textarea {
    min-width: 0;
    padding: 10px 14px;
    background: var(--paper-2);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 0;
    font-family: var(--mono);
    font-size: var(--size-body);
}

input {
    flex: 1;
}

textarea {
    width: 100%;
    line-height: 1.6;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

input:user-invalid {
    border-color: var(--red);
}

/* A labelled field. */
.field {
    width: 100%;
}

.field label,
.card-part h3,
.comment-new label,
.comment-actions label {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.input {
    display: block;
    width: 100%;
    min-height: 48px;
    background: var(--paper);
    -webkit-appearance: none;
    appearance: none;
}

.hint {
    font-size: var(--size-small);
    line-height: 1.55;
    color: var(--ink-dim);
}

/* A box to tick, drawn in ink over the one the browser would draw. */
.check {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: var(--size-body);
    line-height: 1.55;
    cursor: pointer;
}

.check input {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.check-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--paper);
    border: 2px solid var(--ink);
}

.check input:checked + .check-mark {
    background: var(--red-bg);
}

.check input:checked + .check-mark::after {
    content: "✓";
    color: var(--on-red);
    font-weight: 700;
    font-size: var(--size-body);
    line-height: 1;
}

.check input:focus-visible + .check-mark {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
}

.error {
    font-size: var(--size-small);
    font-weight: 700;
    color: var(--red);
}

/* Icons.
----------------------------------------------------------------------------*/
.icon {
    width: 24px;
    height: 24px;
}

/* Typography.
----------------------------------------------------------------------------*/
.faint {
    color: var(--ink-faint);
}

.fine-print {
    font-size: var(--size-small);
    color: var(--ink-faint);
}

/* Albums and pitches.
----------------------------------------------------------------------------*/
.track-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.track-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ink);
}

.track-number {
    min-width: 22px;
    font-family: var(--display);
    font-size: var(--size-body);
    color: var(--red);
}

.track-title {
    flex-grow: 1;
    min-width: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--size-body);
}

.track-length {
    font-size: var(--size-small);
    color: var(--ink-dim);
}

.pitch-text {
    line-height: 1.7;
}

/* The album as the page about it opens. */
.headline {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.headline-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--shadow);
}

.headline-title {
    margin: 0;
    font-family: var(--display);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.headline-facts,
.headline-week {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    font-size: var(--size-small);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.headline-facts {
    margin-top: 16px;
}

.headline-artists {
    font-weight: 700;
    color: var(--red);
}

.headline-by {
    margin-top: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
}

.headline-by a {
    text-decoration: none;
}

.headline-week {
    margin-top: 4px;
}

.headline-note {
    margin-top: 16px;
    font-size: var(--size-body);
    line-height: 1.7;
}

.headline-play {
    margin-top: 20px;
}

@media (max-width: 640px) {
    .headline {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* The buttons a step of the pitch wizard ends with, the one it is for
   first. */
.wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

/* The pitch, on a card of its own, opening with a capital in red. */
.pitch-card {
    padding: 22px 20px 34px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--shadow);
}

.pitch-card .pitch-text {
    font-size: var(--size-body);
    line-height: 1.75;
}

.pitch-card .pitch-text p + p {
    margin-top: 1em;
}

.pitch-card .pitch-text p:first-child::first-letter {
    float: left;
    margin: 4px 8px 0 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 3.6em;
    line-height: 0.8;
    color: var(--red);
}

/* The archive.
----------------------------------------------------------------------------*/
/* What the archive holds, counted on a strip of ink. */
.tally {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 14px var(--gutter);
    background: var(--ink);
    color: var(--paper);
    font-family: var(--display);
    font-size: var(--size-lead);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tally-dot {
    color: var(--red);
}

/* The albums that played in one year, under the year. */
.year + .year {
    margin-top: 48px;
}

/* A header with a rule running out from it to a count at the far end. */
.ruled-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-headline);
    line-height: 1;
}

.ruled-head::after {
    content: "";
    order: 1;
    flex: 1;
    border-top: 5px double var(--ink);
}

.ruled-head-count {
    order: 2;
    padding: 6px 10px;
    background: var(--red-bg);
    color: var(--on-red);
    font-family: var(--display);
    font-style: normal;
    font-weight: 400;
    font-size: var(--size-lead);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 36px 26px;
    list-style: none;
    padding: 0;
}

.album-card {
    display: block;
}

.album-card-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--shadow);
}

.album-card.on-air .album-card-art {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.album-card-week {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-family: var(--display);
    font-size: var(--size-title);
    line-height: 1;
    text-transform: uppercase;
    color: var(--red);
}

.on-air-tag {
    padding: 5px 8px;
    background: var(--red-bg);
    color: var(--on-red);
    font-family: var(--mono);
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.album-card-title {
    margin-top: 4px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: var(--size-title);
    line-height: 1.15;
}

.album-card:hover .album-card-title {
    color: var(--red);
}

.album-card-artists,
.album-card-comments {
    font-size: var(--size-small);
    color: var(--ink-dim);
}

.album-card-by {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dotted var(--ink);
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.album-card-comments {
    margin-top: 4px;
}

/* Comments on a pitch.
----------------------------------------------------------------------------*/
ul.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.comment-list > li + li {
    margin-top: 18px;
}

.comment-card {
    padding: 16px 18px 14px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
}

.comment-by {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-size: var(--size-small);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.comment-by a {
    text-decoration: none;
}

.comment-by .faint {
    font-size: var(--size-small);
    font-weight: 400;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.comment-text {
    font-size: var(--size-body);
    line-height: 1.65;
}

ul.comment-list .pitch-text {
    margin-bottom: 0;
}

/* A reply sits under the comment it answers, and the way to write one is
   folded away until it is wanted. */
ul.comment-list ul.comment-list {
    margin: 18px 0 0 18px;
    padding-left: 18px;
    border-left: 3px solid var(--red);
}

ul.comment-list ul.comment-list .comment-card {
    background: var(--paper);
}

/* The form a new comment is written in, ruled off from those before it. */
.comment-new {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 5px double var(--ink);
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 10px;
}

.comment-reply,
.comment-edit {
    font-size: var(--size-small);
}

/* Open, a form needs the room a full row gives it, and wraps whichever of
   the two is folded away onto a row of its own. */
.comment-actions details[open] {
    flex: 1 0 100%;
}

.comment-reply summary,
.comment-edit summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
}

.comment-reply summary::-webkit-details-marker,
.comment-edit summary::-webkit-details-marker {
    display: none;
}

/* Small devices.
----------------------------------------------------------------------------*/
@media (max-width: 560px) {
    .album {
        flex-direction: column;
    }
}
