/* Hallmark · shape: app screen · genre: editorial · theme: Broadside (deal 1/3, seed church-events-app-elderly-ec56·d5c9f4a0·2026-12-06·r0)
 * nav: one phone column, a wordmark row and a back link · signature: the week as a printed church bill, each date set big beside its gathering · states: full, empty list, language sheet · broadside: bill
 * axes: light/display-condensed/warm · posture: committed · contrast: pass · redesign: full · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a list of events fits any calendar; set it as the parish bill with the date as the loud thing and the congregation's own photographs */
/* Hallmark · theme override · photographs stay in colour, not the ink duotone · the owner asked for sunlit biblical colour scenes and the members recognise each gathering by its picture */
/* Hallmark · theme override · body set in Archivo, not Archivo Narrow · the members are elderly and read on a phone at arm's length; the wide cut reads better */
/* Hallmark · dismissed F4 · the inked seg and language buttons are the selected state of a choice, not a second primary action */
/* Hallmark · dismissed F4 · the language switch is an underlined text link, not a filled button; the install action is framed */
/* Hallmark · waive 37 · four style blocks in tokens.css, each naming at most three families · the chooser loads four church styles at once so the pastor can compare them on the phone */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --phone: 430px;
  --fit-max: 7rem;
}

html { font-size: 125%; background: var(--color-paper-3); }
body { background: var(--color-paper-3); line-height: 1.5; }

/* the phone column */
.phone { position: relative; max-width: var(--phone); min-height: 100vh; margin-inline: auto; background: var(--color-paper); }
@media (min-width: 40rem) {
  body { padding-block: var(--space-xl); }
  .phone { min-height: 860px; border: var(--rule-frame) solid var(--color-frame); border-radius: var(--radius-card); box-shadow: var(--keyline); }
}

.screen { padding: 0 var(--space-md) 128px; }
.screen[hidden] { display: none; }

/* running head */
.runhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 64px; border-bottom: var(--rule-hair) solid var(--color-ink); }
.wordmark { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-md); text-transform: var(--head-case); line-height: 1; }

.linkbtn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-2xs); border: 0; background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.linkbtn:hover { color: var(--color-accent); }
.linkbtn:active { color: var(--color-ink-2); }
.linkbtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.linkbtn:disabled { opacity: 0.55; cursor: not-allowed; }
.linkbtn svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* the parish */
.parish { padding-block: var(--space-lg) var(--space-md); border-bottom: var(--rule-bar) solid var(--color-bar); }
.parish h1 { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-2xl); text-transform: var(--head-case); line-height: 1.05; letter-spacing: 0; max-width: none; }
.parish p { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }

/* the bill: one gathering per row */
.bill { list-style: none; margin: 0; padding: 0; }
.bill li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.entry { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 64px; gap: var(--space-sm); align-items: center; width: 100%; padding: var(--space-md) 0; border: 0; background: transparent; color: var(--color-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.entry:hover { background: var(--color-paper-2); }
.entry:active { background: var(--color-paper-3); }
.entry:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.entry:disabled { opacity: 0.55; cursor: not-allowed; }
.when { display: grid; justify-items: center; border-right: var(--rule-hair) solid var(--color-ink); padding-right: var(--space-sm); }
.when b { font-family: var(--font-date); font-weight: var(--date-weight); font-size: 3.6rem; line-height: 0.88; }
.when span { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.what { min-width: 0; }
.what .t { display: block; overflow-wrap: break-word; font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-md); text-transform: var(--head-case); line-height: 1.1; letter-spacing: 0; max-width: none; }
.what p { margin-top: var(--space-2xs); font-size: var(--text-md); font-weight: 600; }
.what p + p { margin-top: 0; font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); }
.thumb { width: 64px; aspect-ratio: 1; object-fit: cover; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card); }

/* the next gathering, set big */
.lead-entry { display: block; width: 100%; padding: var(--space-lg) 0 var(--space-md); border: 0; border-bottom: var(--rule-bar) solid var(--color-bar); background: transparent; color: var(--color-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lead-entry:hover { background: var(--color-paper-2); }
.lead-entry:active { background: var(--color-paper-3); }
.lead-entry:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lead-entry:disabled { opacity: 0.55; cursor: not-allowed; }
.lead-entry .t { display: block; font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-2xl); text-transform: var(--head-case); line-height: 1.05; letter-spacing: 0; max-width: none; margin-top: var(--space-sm); }
.lead-entry .meta { margin-top: var(--space-xs); font-weight: 600; }
.lead-entry .meta + .meta { margin-top: 0; font-weight: 400; color: var(--color-muted); }

.fit { display: block; white-space: nowrap; font-family: var(--font-date); font-weight: var(--date-weight); text-transform: var(--head-case); line-height: var(--date-lh); letter-spacing: var(--tracking-display); font-size: 4.5rem; }
.fit--red { color: var(--color-accent); }

.photo { display: block; margin: 0; border: var(--rule-frame) solid var(--color-frame); border-radius: var(--radius-card); box-shadow: var(--keyline); padding: var(--space-2xs); background: var(--color-paper); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* install band */
.band { margin-top: var(--space-xl); padding: var(--space-lg) var(--space-md); background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-bar); }
.band p { font-size: var(--text-md); margin-bottom: var(--space-md); }

/* buttons: one ink block a screen, the rest framed */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 56px; padding: 0 var(--space-lg); border: var(--btn-border) solid var(--color-btn); border-radius: var(--radius-btn); background: var(--color-btn); color: var(--color-btn-ink); font: 600 var(--text-md)/1 var(--font-body); text-transform: var(--btn-case); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-btn-hover); border-color: var(--color-btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--frame { background: transparent; color: var(--color-ink); border-color: var(--color-frame); box-shadow: var(--keyline); }
.btn--frame:hover { background: var(--color-paper-2); border-color: var(--color-frame); }
.btn + .btn { margin-top: var(--space-sm); }
.btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }

/* detail */
.detail-head { padding-top: var(--space-md); }
.detail-head h1 { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-3xl); text-transform: var(--head-case); line-height: 1.05; letter-spacing: 0; max-width: none; margin-top: var(--space-sm); }
.particulars { margin-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-bar); }
.particulars > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.particulars dt { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); line-height: 1.4; }
.particulars dd { margin: 0; font-weight: 600; }
.particulars dd span { display: block; font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); }
.map { display: block; margin-top: var(--space-md); border: var(--rule-hair) solid var(--color-ink); }
.map svg { width: 100%; height: 150px; }
.map .land { fill: var(--color-paper-2); }
.map .road { stroke: var(--color-paper); stroke-width: 12; }
.map .main { stroke: var(--color-rule); stroke-width: 6; }
.map .block { fill: var(--color-paper-3); }
.map .pin { fill: var(--color-accent); }
.map .pin-dot { fill: var(--color-paper); }
.map:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.desc { margin-block: var(--space-lg); font-size: var(--text-lg); line-height: 1.5; }
.small { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* language sheet */
.veil { position: fixed; inset: 0; z-index: var(--z-modal); background: color-mix(in oklab, var(--color-ink) 55%, transparent); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--phone); margin-inline: auto; padding: var(--space-lg) var(--space-md) var(--space-xl); background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-bar); }
.sheet h2 { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-xl); text-transform: var(--head-case); letter-spacing: 0; }
.sheet > p { margin: var(--space-xs) 0 var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.choice { display: grid; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.choice label:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule); }
.choice label:hover { background: var(--color-paper-2); }
.choice input:checked + label { background: var(--color-ink); color: var(--color-paper); }
.choice input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: -2px; }

/* install steps */
.steps-head { padding-block: var(--space-md); }
.steps-head h1 { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-2xl); text-transform: var(--head-case); line-height: 1.05; letter-spacing: 0; max-width: none; }
.steps-head p { margin-top: var(--space-xs); color: var(--color-muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: var(--space-md) 0; border: var(--rule-hair) solid var(--color-ink); }
.seg button { min-height: 52px; border: 0; background: transparent; color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.seg button + button { border-left: var(--rule-hair) solid var(--color-ink); }
.seg button:hover { background: var(--color-paper-2); }
.seg button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.seg button:disabled { opacity: 0.55; cursor: not-allowed; }
.step-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-bar); }
.step-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-md); align-items: start; padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.step-list b { font-family: var(--font-date); font-weight: var(--date-weight); font-size: 3.4rem; line-height: 0.88; }
.step-list p { font-size: var(--text-lg); }

/* organizer */
.org-head { padding-block: var(--space-md); border-bottom: var(--rule-bar) solid var(--color-bar); }
.org-head h1 { font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-2xl); text-transform: var(--head-case); letter-spacing: 0; max-width: none; }
.org-head p { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.form label, .form .label { display: block; margin: var(--space-md) 0 var(--space-xs); font-size: var(--text-sm); font-weight: 600; }
.form input, .form textarea { width: 100%; min-height: 52px; padding: var(--space-sm); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; }
.form input:focus-visible, .form textarea:focus-visible { outline-color: var(--color-focus); }
.form textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.picks button { position: relative; aspect-ratio: 1; padding: 0; border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-2); overflow: hidden; cursor: pointer; transition: opacity var(--dur-short) var(--ease-out); }
.picks button img { width: 100%; height: 100%; object-fit: cover; }
.picks button:hover { opacity: 0.85; }
.picks button[aria-pressed="true"] { outline: 4px solid var(--color-accent); outline-offset: -4px; }
.picks button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.picks .add { font: 600 var(--text-sm)/1.2 var(--font-body); color: var(--color-ink); }
.langs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.langs button { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.langs button:hover { background: var(--color-paper-2); }
.langs button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.langs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.preview { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md) 0; background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-bar); }
.preview > p { font-size: var(--text-sm); color: var(--color-muted); }
.note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* poster */
.poster { margin-top: var(--space-md); padding: var(--space-lg) var(--space-md); border: var(--rule-frame) solid var(--color-frame); border-radius: var(--radius-card); box-shadow: var(--keyline); text-align: center; }
.poster .say { font-size: var(--text-md); color: var(--color-ink-2); }
.poster h2 { margin: var(--space-xs) auto 0; font-family: var(--font-head); font-weight: var(--display-weight); font-size: var(--text-2xl); text-transform: var(--head-case); letter-spacing: 0; }
.poster .fit { margin-top: var(--space-sm); }
.poster img { width: 220px; height: 220px; margin: var(--space-lg) auto var(--space-md); }
.poster .scan { font-size: var(--text-md); font-weight: 600; }
.poster .url { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); overflow-wrap: anywhere; }

/* style sheet chooser */
.styles { display: grid; }
.styles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.styles label { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-md); align-items: center; min-height: 72px; padding: var(--space-xs) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.styles label:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule); }
.styles label:hover { background: var(--color-paper-2); }
.styles input:checked + label { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.styles input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.styles b { display: block; font-size: var(--text-lg); }
.styles small { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.swatch { display: grid; grid-template-columns: 1fr 1fr; width: 56px; height: 56px; border: var(--rule-hair) solid var(--color-ink); }
.swatch span { display: block; }
.sw-bill-1 { background: var(--sw-bill-paper); } .sw-bill-2 { background: var(--sw-bill-accent); }
.sw-inked-1 { background: var(--sw-inked-paper); } .sw-inked-2 { background: var(--sw-inked-accent); }
.sw-solstice-1 { background: var(--sw-solstice-paper); } .sw-solstice-2 { background: var(--sw-solstice-gold); }
.sw-garden-1 { background: var(--sw-garden-paper); } .sw-garden-2 { background: var(--sw-garden-green); }
.demo .seg { grid-template-columns: 1fr 1fr 1fr; }

/* mockup switch, not part of the product */
.demo { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); }
.demo .seg { max-width: var(--phone); margin: 0 auto; background: var(--color-paper); border: 0; border-top: var(--rule-bar) solid var(--color-bar); }

@media print {
  body, html { background: var(--color-paper); padding: 0; }
  .phone { border: 0; box-shadow: none; }
  .screen:not(#s-qr), .demo, .runhead, .poster ~ * { display: none !important; }
}
