/* Fonts are served from this site (SIL Open Font License), so nothing waits on another server */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); }

/* Thursday Morning Talks
   Two colours (paper, ink) and one accent (cranberry).
   One display face (Fraunces) and one text face (Source Serif 4). */

:root {
    --paper: #f6f1e8;
    --paper-deep: #ede5d7;
    --ink: #1c2540;
    --ink-soft: #3c4560;          /* ink, lightened; 8.4:1 on paper, 7.6:1 on paper-deep */
    --rule: rgba(28, 37, 64, 0.16);
    --accent: #9a2a3a;
    --accent-dark: #7d1f2d;

    --sky-top: #b9c4d3;
    --sky-mid: #d9d9dc;
    --sky-horizon: #ebe1d6;
    --horizon: 57%;

    --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --text: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

    --gutter: clamp(20px, 4vw, 56px);
    --measure: 1080px;
    --header-h: 76px;

    color-scheme: light;
}

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

html {
    font-size: 125%;   /* 20px at the browser's default text size, and follows it if changed */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-optical-sizing: auto;
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}
p { margin: 0; }
p + p { margin-top: 0.8em; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 10;
    background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 56px; padding: 0 28px;
    border: 2px solid var(--accent); border-radius: 8px;
    background: var(--accent); color: #fff;
    font: 600 1rem/1.2 var(--text);
    text-decoration: none; text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-small { min-height: 48px; padding: 0 20px; font-size: 0.95rem; }
.button-large { min-height: 64px; padding: 0 36px; font-size: 1.1rem; }

/* ---------- header ---------- */
.site-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: var(--header-h);
    padding: 12px var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    /* stays in view so Talks, Visit and Donate are always one tap away */
    position: sticky; top: 0; z-index: 20;
}
.wordmark {
    font-family: var(--display); font-weight: 600; font-size: 1.1rem;
    text-decoration: none; white-space: nowrap;
    padding: 8px 0;
    /* hidden while the big title below says the same thing; it keeps its space */
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.title-gone .wordmark { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .wordmark, .title-gone .wordmark { transition: none; } }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-nav a:not(.button) {
    padding: 10px 2px;  /* comfortable tap target */
    font-size: 1rem;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: max(420px, calc(100vh - var(--header-h)));
    min-height: max(420px, calc(100svh - var(--header-h)));
    display: flex;
    overflow: hidden;
    isolation: isolate;
}
.hero-sky, .hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sky {
    z-index: -2;
    background:
        radial-gradient(60% 34% at 58% var(--horizon), rgba(255, 238, 214, 0.9), rgba(255, 238, 214, 0) 70%),
        linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 34%, var(--sky-horizon) var(--horizon), #eee8e1 calc(var(--horizon) + 8%), #f2eee9 100%);
}
.hero-scene {
    z-index: -1;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.has-scene .hero-scene { opacity: 1; }
/* the scene fades into the page instead of ending in a hard edge */
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
    z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(246, 241, 232, 0), var(--paper));
}
@media (prefers-reduced-motion: reduce) { .hero-scene { transition: none; } }

.hero-inner {
    width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(20px, 8vh, 88px) var(--gutter) clamp(20px, 6vh, 64px);
    display: flex; flex-direction: column; justify-content: space-between; gap: clamp(16px, 4vh, 32px);
}
.hero-title {
    font-size: clamp(2.2rem, min(7.2vw, 11vh), 5.1rem);  /* by height too, for short screens and zoom */
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.02em;
    max-width: 12em;  /* Fraunces widens at smaller optical sizes */
    overflow-wrap: anywhere;
    color: var(--ink);
    text-shadow: 0 0 28px rgba(246, 241, 232, 0.55);
}
.hero-panel {
    background: var(--paper);
    overflow-wrap: anywhere;
    border-radius: 10px;
    padding: 28px 32px 32px;
    max-width: 600px;
    box-shadow: 0 18px 50px -24px rgba(28, 37, 64, 0.45);
}
.hero-tagline {
    font-family: var(--display); font-style: italic; font-weight: 500;
    font-size: 1.3rem; line-height: 1.3;
    color: var(--accent);
    margin-bottom: 18px;
}
.next-loading { color: var(--ink-soft); min-height: 286px; }  /* about the height of the next-talk block, so nothing jumps */
.next-label {
    font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
    margin-bottom: 6px;
}
.next-date { font-weight: 600; }
.next-talk { margin-top: 2px; }
.next-talk em { font-style: italic; }
.next-place { color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
.next-map { display: inline-block; padding: 6px 2px; margin: -6px 0; color: var(--ink); white-space: nowrap; }
.next-place-name { display: block; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.next .button { margin-top: 22px; }
.next-actions .button { margin-top: 0; }
.next-error p + p { margin-top: 0.6em; }

/* ---------- season / list of talks ---------- */
.season {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(48px, 8vw, 96px);
}
.season-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.season-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 20px; overflow-wrap: anywhere; }
.season-intro { font-size: 1.1rem; }
.season-facts { margin-top: 18px; color: var(--ink-soft); }
.season-all { margin-top: 26px; }
.season-all[hidden], .cal-choice[hidden] { display: none; }
.season-facts:empty, .season-intro:empty { display: none; }

/* past talks during the season, folded away */
.earlier { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 8px; }
.earlier summary {
    cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink-soft);
    width: fit-content;
}
.earlier-list { list-style: none; margin: 0 0 8px; padding: 0; overflow-wrap: anywhere; }
.earlier-list li { padding: 8px 0; border-top: 1px solid var(--rule); }
.earlier-list li:first-child { border-top: 0; }
.earlier-date { color: var(--ink-soft); display: inline-block; min-width: 8.5em; }

.talks { list-style: none; margin: 0; padding: 0; }
.talk {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 200px;
    grid-template-areas: "photo body object";
    column-gap: clamp(28px, 4vw, 48px);
    align-items: start;
    padding: 48px 0;
    border-top: 1px solid var(--rule);
    scroll-margin-top: 16px;
}
.talk:last-child { border-bottom: 1px solid var(--rule); }
.talk.is-next {
    background: var(--paper-deep);
    border-top-color: transparent;
    border-radius: 12px;
    padding-left: clamp(20px, 3vw, 36px);
    padding-right: clamp(20px, 3vw, 36px);
    margin: 0 calc(-1 * clamp(20px, 3vw, 36px));
}
.talk.is-next + .talk { border-top-color: transparent; }

.talk-photo { grid-area: photo; }
.talk-body { grid-area: body; min-width: 0; overflow-wrap: anywhere; }
.talk-object { grid-area: object; }

.talk-when { font-weight: 600; color: var(--ink-soft); }
.talk-flag { color: var(--accent); font-weight: 600; }
.talk-flag::before { content: "\00b7\00a0"; color: var(--ink-soft); }
.talk-lead { font-size: clamp(1.45rem, 2.3vw, 1.75rem); line-height: 1.2; margin-top: 6px; text-wrap: balance; }
.talk-sub {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.3;
    margin-top: 8px;
}
.talk-bio { margin-top: 16px; max-width: 38em; }
.talk-bio + .talk-bio { margin-top: 0.8em; }
.talk-actions { margin-top: 24px; }
.talk-past-note { margin-top: 18px; color: var(--ink-soft); font-style: italic; }

.talk.is-past .talk-when { color: var(--ink-soft); }
.talk.is-past .portrait img { filter: grayscale(0.9) contrast(0.92) brightness(1.04); }
.talk.is-past .talk-object { opacity: 0.6; }

/* photo: one consistent square frame; initials underneath show if the photo is missing or fails */
.portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper-deep);
    margin: 0;
}
.talk.is-next .portrait { background: #e2d8c7; }
.portrait img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 28%;
    background: var(--paper-deep);
}
.portrait-initials {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--display); font-weight: 500; font-size: 2.4rem; color: var(--ink-soft);
    letter-spacing: 0.02em;
}

/* the little 3D object: its poster (a still picture) at once, then the live object
   drawn over it at the same size and angle (vendor/knickknacks, set up in js/three/index.js) */
.talk-object {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    touch-action: pan-y;
}
.talk-object .kk-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }

/* ---------- support ---------- */
.support {
    background: var(--ink);
    color: var(--paper);
}
.support-inner {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(72px, 11vw, 128px) var(--gutter);
}
.support h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); max-width: 18em; overflow-wrap: anywhere; }
.support p { font-size: 1.05rem; max-width: 36em; }
.support .button { margin-top: 32px; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.support-text { margin-top: 24px; }
@media (min-width: 761px) {
    /* heading and button on the left, the organiser's paragraph on the right */
    .support-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 88px); align-items: start; }
    .support-text { margin-top: 0.35em; }
}
.support .button:hover { background: #fff; border-color: #fff; }
.support .thanks { font-family: var(--display); font-style: italic; font-size: 1.2rem; margin-bottom: 20px; }
.support :focus-visible { outline-color: var(--paper); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); }
.footer-inner {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 48px var(--gutter) 56px;
}
@media (min-width: 761px) {
    /* same two columns as the section above it */
    .footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 88px); align-items: start; }
    .footer-name { grid-column: 1; }
    .footer-small { grid-column: 1; margin-top: 0; }
    .footer-where { grid-column: 2; grid-row: 1 / span 3; }
    .footer-edit { grid-column: 1; }
}
.footer-where p + p { margin-top: 0.6em; }
.footer-where:empty { display: none; }
.footer-where a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.footer-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-small { color: var(--ink-soft); margin-bottom: 18px; }
/* for the organiser: small, at the very end */
.footer-edit { font-size: 0.85rem; color: var(--ink-soft); margin-top: 24px; }
.footer-edit a { display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (min-width: 761px) { .footer-edit { margin-top: 8px; } }

.noscript { max-width: 40em; margin: 40px auto; padding: 0 var(--gutter); }

/* ---------- calendar chooser ---------- */
dialog:not([open]) { display: none; }
.cal-dialog {
    border: 0; padding: 0;
    width: min(460px, calc(100vw - 32px));
    border-radius: 14px;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 30px 80px -20px rgba(28, 37, 64, 0.55);
}
.cal-dialog::backdrop { background: rgba(28, 37, 64, 0.45); }
/* where <dialog> is not supported: a plain panel fixed in the middle of the screen */
.cal-dialog.is-fallback {
    display: block; position: fixed; z-index: 20; left: 50%; top: 50%;
    transform: translate(-50%, -50%); margin: 0;
    max-height: calc(100vh - 32px); overflow: auto;
}
.cal-form { padding: 28px 28px 20px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.cal-title { font-size: 1.4rem; }
.cal-title:focus { outline: none; }
.cal-what { margin-top: 8px; color: var(--ink-soft); }
.cal-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
/* three equal choices */
.cal-choice { width: 100%; background: transparent; color: var(--ink); border-color: var(--ink); }
.cal-choice:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cal-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; text-align: center; }
.cal-cancel {
    align-self: center; margin-top: 10px;
    min-height: 48px; padding: 0 20px;
    background: none; border: 0; color: var(--ink);
    font: 1rem var(--text); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 760px) {
    :root { --header-h: 68px; }
    html { font-size: 118.75%; }   /* 19px */
    body { line-height: 1.55; }
    .wordmark { display: none; }
    .site-nav { width: 100%; gap: 22px; }
    .site-nav .button { margin-left: auto; }

    .hero { min-height: max(420px, calc(100vh - var(--header-h))); }
    .hero { min-height: max(420px, calc(100svh - var(--header-h))); }
    .hero { --horizon: 41%; }
    .hero-inner { padding-top: 32px; padding-bottom: 16px; gap: 24px; }
    .hero-title { font-size: clamp(2rem, min(12vw, 8vh), 3.1rem); }
    .hero-panel { padding: 20px 20px 22px; border-radius: 10px; }
    .hero-tagline { font-size: 1.1rem; margin-bottom: 10px; }
    .next-loading { min-height: 300px; }
    .next .button { margin-top: 16px; }
    .next-label, .button-small { font-size: 1rem; }
    .next .button { width: 100%; }
    .next-actions .button { flex: 1 1 100%; }
    .next-map { padding: 9px 0; margin: -9px 0; }
    .next-talk a { padding: 9px 0; }  /* a taller place to tap; the line does not move */

    .season { padding-top: 48px; padding-bottom: 44px; }
    .season-head { margin-bottom: 26px; }
    .season-head h2 { margin-bottom: 14px; }
    .season-intro { font-size: 1.05rem; }
    .season-facts { margin-top: 14px; }
    /* said in the card at the top already: the countdown repeats the date, and this line repeats the time and place */
    .next-count { display: none; }
    html[data-phase="before"] .facts-more, html[data-phase="during"] .facts-more { display: none; }
    .season-all { margin-top: 20px; width: 100%; max-width: 440px; padding: 10px 18px; }

    /* each talk: the photo with the date and the speaker's name beside it,
       then the title across the full width, then the rest */
    .talk {
        grid-template-columns: 84px minmax(0, 1fr) 104px;
        grid-template-areas: none;
        column-gap: 16px;
        padding: 28px 0 26px;
    }
    .talk.is-next { padding-left: 16px; padding-right: 16px; margin: 0 -12px; }
    .talk-body, .talk-head, .talk-rest { display: contents; }
    .talk-photo { grid-area: auto; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
    .talk-when { grid-column: 2; grid-row: 1; align-self: end; line-height: 1.3; }
    .talk-sub, .talk-lead:last-child { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.2rem; line-height: 1.2; margin-top: 4px; }
    .talk-lead:not(:last-child) { grid-column: 1 / -1; grid-row: 3; font-size: 1.3rem; line-height: 1.18; margin-top: 16px; }
    .talk-bio { grid-column: 1 / -1; margin-top: 12px; }
    .talk-bio + .talk-bio { margin-top: 0.7em; }
    .talk-actions, .talk-past-note { grid-column: 1 / -1; margin-top: 18px; }
    /* the object sits up beside the date and name, across from the photo */
    .talk-object { grid-area: auto; grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: -6px -6px -6px 0; width: calc(100% + 6px); }
    .talk-actions .button { padding: 0 18px; min-height: 52px; }
    .talk-flag { display: block; }
    .talk-flag::before { content: none; }
    .portrait-initials { font-size: 1.6rem; }

    /* (the last talk's rule already closes the list) */
    .earlier { margin-top: 10px; border-top: 0; padding-top: 0; }
    .earlier summary { padding: 14px 0; }
    .earlier-list li { padding: 10px 0; }
    .earlier-date { display: block; min-width: 0; font-weight: 600; }

    .support-inner { padding-top: 52px; padding-bottom: 56px; }
    .support .button { margin-top: 24px; width: 100%; max-width: 440px; }
    .support-text { margin-top: 28px; }
    .footer-inner { padding-top: 40px; padding-bottom: 44px; }

    .cal-dialog { margin-bottom: 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: calc(100% - 24px); }
    .cal-form { padding: 24px 20px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .cal-choices { margin-top: 18px; }
}

/* phones held upright: the picture has its own band at the top, so the church is
   always in view. The title sits on the sky, the church stands in a window of
   reserved height under it, and the card begins where the street does, covering
   only the foreground. The card then runs on down the page over plain paper.
   (js/three/index.js reads --band and aims the camera at the window.) */
@media (max-width: 760px) and (max-aspect-ratio: 1/1) {
    .hero { --band: 1; --horizon: 76%; display: block; min-height: 0; overflow: visible; }
    .hero::after { content: none; }
    .hero-inner {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        /* the title, the window for the church, the picture's run under the card, the rest of the card */
        grid-template-rows: auto clamp(156px, 29vh, 300px) 88px auto;
        grid-template-rows: auto clamp(156px, 29svh, 300px) 88px auto;
        padding: 0 0 4px; gap: 0;
        max-width: none;
    }
    /* (positioned children of a grid take their grid area as their frame) */
    .hero-sky, .hero-scene { grid-column: 1; grid-row: 1 / 4; }
    /* the picture's foot fades into the paper on either side of the card */
    .hero-sky, .hero-scene {
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 60px), rgba(0, 0, 0, 0));
        mask-image: linear-gradient(to bottom, #000 calc(100% - 60px), rgba(0, 0, 0, 0));
    }
    /* two lines at any width, so the right of the sky stays clear */
    .hero-title { grid-column: 1; grid-row: 1; margin: 20px var(--gutter) 0; max-width: 8.5em; font-size: clamp(2rem, min(12vw, 8vh), 3.1rem); }
    .hero-panel {
        grid-column: 1; grid-row: 3 / 5; margin: 0 var(--gutter); max-width: none;
        padding: 18px 20px 22px;
        border: 1px solid var(--rule);
        box-shadow: 0 14px 36px -22px rgba(28, 37, 64, 0.5);
    }
    /* without the 3D street there is no church to make room for: a shorter band of painted sky */
    .no-webgl .hero-inner { grid-template-rows: auto 64px 88px auto; }
}
/* big phones on their side and small tablets: there is room for the name in the header */
@media (min-width: 600px) and (max-width: 760px) {
    .wordmark { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .site-nav { width: auto; flex: none; }
    .site-nav .button { margin-left: 0; }
}

/* the narrowest phones: a little more room for the words */
@media (max-width: 350px) {
    :root { --gutter: 16px; }
    .hero-panel { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 761px) {
    .talk-head, .talk-rest { display: block; }
}
@media (min-width: 761px) and (max-width: 980px) {
    .talk { grid-template-columns: 140px minmax(0, 1fr) 150px; }
}

/* phones: beside the date and name the object squeezes the speaker's name into
   three lines, so it is left out; the photo and words are what matter */
@media (max-width: 479px) {
    .talk { grid-template-columns: 84px minmax(0, 1fr); }
    .talk-object { display: none; }
}

/* short screens and big zoom (a laptop at 200%): keep the button in view */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
    :root { --header-h: 60px; }
    .site-header { padding-top: 6px; padding-bottom: 6px; }
    .hero { min-height: 0; }
    .hero-inner { padding-top: 12px; padding-bottom: 20px; gap: 12px; justify-content: flex-start; }
    .next-label + p { margin-top: 4px; }
    .hero-title { font-size: clamp(1.8rem, 9vh, 3rem); }
    .hero-tagline { display: none; }
    .hero-panel { padding: 14px 20px 16px; line-height: 1.4; }
    .next-label { margin-bottom: 2px; }
    .next-place-name, .next-place-addr { display: inline; }
    .next-place-name + .next-place-addr::before { content: ", "; }
    .next-actions, .next .button { margin-top: 12px; }
    .next .button { width: auto; min-height: 48px; }
    .next-actions .button { flex: 0 0 auto; margin-top: 0; }
}

/* tall portrait tablets: raise the horizon so the town fills the space under the title */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
    .hero { --horizon: 41%; }
}
