/* The printable handout for a feed: one sheet for a class, a quorum or a
   family. Laid out for paper first — US Letter or A4, whichever the
   printer has — and readable on a projector or screen as well. */

.handout-page { background: var(--bg); }

.handout-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.handout-toolbar .home-link { margin: 0; }
.handout-screen-note { flex: 1 1 240px; font-size: 0.85rem; color: var(--text-soft); }

.handout {
    max-width: 760px;
    margin: 20px auto 48px;
    padding: 44px 48px;
    background: #fff;
    color: #23211e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.handout-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    color: #6b5844;
}

.handout-brand .site-mark { width: 28px; height: 29px; color: #6b5844; }

.handout h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.15;
    margin: 18px 0 6px;
}

.handout-description { margin: 0; color: #6b665e; font-size: 1.05rem; }

.handout-subscribe {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 28px 0;
    padding: 24px 0;
    border-top: 1px solid #e4e1da;
    border-bottom: 1px solid #e4e1da;
}

.handout-qr { flex: none; width: 190px; text-align: center; }
.handout-qr svg { width: 190px; height: 190px; display: block; }
.handout-url { margin: 8px 0 0; font-size: 0.78rem; color: #6b665e; line-height: 1.35; }
.handout-url span { color: #23211e; font-weight: 600; word-break: break-all; }

.handout-steps h2,
.handout-talks h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.handout-steps ol { margin: 0; padding-left: 1.3em; font-size: 1.05rem; line-height: 1.6; }
.handout-free { margin: 12px 0 0; font-weight: 600; color: #6b5844; }

.handout-talks ol { margin: 0; padding-left: 1.6em; }
.handout-talks li { margin: 0 0 8px; break-inside: avoid; }
.handout-talk-title { display: block; font-weight: 600; }
.handout-talk-meta { display: block; font-size: 0.85rem; color: #6b665e; }

.handout-foot {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #e4e1da;
    font-size: 0.72rem;
    color: #979186;
}

@media (max-width: 640px) {
    .handout { padding: 28px 20px; margin: 12px 0 32px; border-radius: 0; }
    .handout-subscribe { flex-direction: column; align-items: flex-start; }
}

/* Dark mode is for the screen; the sheet itself stays black on white. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .handout { border-color: transparent; }
}

@media print {
    @page { margin: 14mm; }
    .handout-page { background: #fff; }
    .handout-toolbar { display: none; }
    .handout { margin: 0; padding: 0; border: none; max-width: none; }
    .handout-qr, .handout-qr svg { width: 42mm; height: auto; }
    .handout { font-size: 10.5pt; }
    .handout h1 { font-size: 20pt; margin-top: 10pt; }
    .handout-subscribe { margin: 14pt 0; padding: 12pt 0; }
    .handout-steps ol { font-size: 11pt; }
    /* Two columns of talks keep a ten-talk list to one sheet. */
    .handout-talks ol { columns: 2; column-gap: 10mm; }
    .handout-talks li { margin-bottom: 5pt; }
    .handout-talk-meta { font-size: 8.5pt; }
    .handout-foot { margin-top: 14pt; }
}

/* The flyer: the same sheet, laid out to be read from across a room. */
.flyer { text-align: center; }
.flyer-brand { display: inline-flex; align-items: center; gap: 12px;
               font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #6b5844; }
.flyer-brand .site-mark { width: 48px; height: 50px; color: #6b5844; }
.flyer h1 { font-size: 2.6rem; margin: 22px auto 18px; max-width: 16ch; }
.flyer-points { list-style: none; padding: 0; margin: 0 auto; font-size: 1.25rem; line-height: 1.7; }
.flyer-qr { margin: 28px auto 8px; width: 220px; }
.flyer-qr svg { width: 220px; height: 220px; display: block; }
.flyer-scan { margin: 8px 0 0; font-weight: 700; font-size: 1.15rem; }
.flyer-url { margin: 2px 0 0; color: #6b665e; font-weight: 600; }
.flyer-free { margin: 20px 0 0; font-size: 1.1rem; font-weight: 600; color: #6b5844; }

@media print {
    .flyer h1 { font-size: 30pt; }
    .flyer-points { font-size: 15pt; }
    .flyer-qr, .flyer-qr svg { width: 60mm; height: 60mm; }
}
