/* invite.css — /invite (speaking invitations) and its tap-to-confirm page (invite-token.html).
   Dressed as the author site, measured from web/index.html (2026-09-13): the #f1ebdf ground and
   the #fbf9f4 page with its soft shadow; on a wide screen the 340px left rail (JONATHAN SPEEGLE,
   the gold rule, the italic verse, the dotted nav, Ask the Library, PASTOR AT MONTICELLO UMC ›,
   ◆ Soli Deo Gloria ◆) beside an 840px reading page; on a phone the sticky masthead with its
   three-line menu. EB Garamond caps, Cormorant Garamond headings, Newsreader text, JetBrains Mono
   labels, wine #7A2E2E and gold #b08d4f, black #1c1a17 buttons.
   Two deliberate departures for a form older readers fill in: text and inputs are 16px or more
   (the site's 13–14px, and iOS zooms into anything smaller), and the #8a6d3b mono labels are
   darkened to #7a5f30 so they pass WCAG AA at their size. Mobile first. */

:root{
  --ground:#f1ebdf; --paper:#fbf9f4; --drawer:#faf7f0; --field:#fff; --picked:#f6f0e2;
  --ink:#1c1a17; --body:#3d352b; --text:#4c443a; --soft:#6b6257; --muted:#8b8175; --faint:#a99a80;
  --gold:#b08d4f; --label:#7a5f30; --wine:#7A2E2E; --wine-deep:#5e2020;
  --rule:rgba(0,0,0,.1); --hair:rgba(0,0,0,.08); --dotted:rgba(0,0,0,.12); --edge:rgba(0,0,0,.2);
  --error:#9b2c2c;
  --caps:'EB Garamond',Georgia,serif;
  --display:'Cormorant Garamond',Georgia,serif;
  --serif:'Newsreader',Georgia,'Times New Roman',serif;
  --mono:'JetBrains Mono',ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--ground);color:var(--ink);font-family:var(--serif);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-size:1rem;line-height:1.6}
::selection{background:#e4d3a8}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
a{color:var(--wine);text-decoration:none;border-bottom:1px dotted var(--gold)}
a:hover{border-bottom-style:solid}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--paper);padding:.75rem 1rem;z-index:60;border:0}
.skip:focus{left:.5rem;top:.5rem}

/* ── the page on its ground ── */
.ground{min-height:100vh;background:var(--ground);display:flex;justify-content:center}
.shell{width:100%;min-height:100vh;background:var(--paper);box-shadow:0 0 50px rgba(60,45,25,.14);position:relative;display:flex;flex-direction:column}
.main{flex:1 1 auto;min-width:0;min-height:100vh;display:flex;flex-direction:column}

/* ── desktop rail (hidden on phones) ── */
.rail{display:none}
.rail .name{margin:0;font-family:var(--caps);font-weight:400;font-size:15px;letter-spacing:.26em;color:var(--ink)}
.rail .name a{color:inherit;border:0}
.rule{width:34px;height:1px;background:var(--gold);margin-top:15px}
.verse{font-family:var(--display);font-style:italic;font-size:15px;line-height:1.5;color:#8a6d3b;margin-top:15px}
.nav{margin-top:28px;display:flex;flex-direction:column;padding:0;list-style:none}
.nav a{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;line-height:1.25;border:0;border-bottom:1px dotted var(--dotted);font-family:var(--display);font-size:19px;font-weight:500;color:var(--ink)}
.nav a[aria-current]{color:var(--wine)}
.nav a:hover{color:var(--wine)}
.nav .hint{font-family:var(--mono);font-size:8px;letter-spacing:.1em;color:#8f8672}
.library{margin-top:22px;display:flex;align-items:center;gap:10px;border:1px solid rgba(122,46,46,.35);padding:11px 13px;color:var(--ink)}
.library:hover{border-color:var(--wine);border-bottom-style:solid}
.library .books{flex:none;display:inline-flex;align-items:flex-end}
.library .books i{display:block;width:3px;background:linear-gradient(180deg,var(--c) 0 40%,#e2b356 40% 50%,var(--c) 50%)}
.library .t{flex:1;line-height:1.2}
.library .t b{display:block;font-family:var(--display);font-size:15px;font-weight:500;color:var(--ink)}
.library .t span{font-family:var(--caps);font-size:11px;color:#6f6552}
.library .go{font-family:var(--caps);font-size:12px;color:var(--wine)}
.rail .spacer{flex:1}
.pastor{font-family:var(--caps);font-size:10px;letter-spacing:.12em;color:#7d7468;margin-top:24px;border:0;text-transform:uppercase}
.sdg{font-family:var(--display);font-style:italic;font-size:13px;color:#8f8066;margin-top:12px}

/* ── phone masthead ── */
.mast{position:sticky;top:0;z-index:40;background:rgba(251,249,244,.96);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mast-row{display:flex;justify-content:space-between;align-items:center;padding:12px 22px 10px;border-bottom:1px solid var(--hair)}
.mast .home{font-family:var(--caps);font-size:14px;letter-spacing:.22em;color:var(--ink);border:0;padding:6px 0}
.menu{background:none;border:0;padding:10px 4px;margin:-6px -4px;cursor:pointer;display:flex;flex-direction:column;gap:3px}
.menu span{display:block;width:18px;height:1px;background:var(--ink)}
.menu span:last-child{width:12px;align-self:flex-end}
.drawer{border-bottom:1px solid var(--hair);background:var(--drawer);padding:6px 22px 12px;animation:drawerIn .22s ease-out both}
.drawer .nav{margin-top:0}
.drawer .nav a{padding:9px 0;font-size:18px}
.drawer .library{margin-top:10px;background:#5a4a3a;border:0;justify-content:center;padding:10px 0;font-family:var(--caps);font-size:11px;letter-spacing:.14em;color:var(--paper)}
@keyframes drawerIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ── the reading page ── */
main{flex:1;padding:26px 22px 44px;animation:leafTurn .4s ease-out both}
@keyframes leafTurn{0%{opacity:0;transform:translateX(10px)}100%{opacity:1;transform:none}}
.back{display:inline-block;font-family:var(--caps);font-size:11px;letter-spacing:.14em;color:#7d7468;padding:6px 0;border:0;text-transform:uppercase}
.back:hover{color:var(--wine)}
.head{text-align:center;padding-top:4px}
.eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.24em;color:var(--label);margin:0;text-transform:uppercase}
h1{font-family:var(--display);font-weight:500;font-size:30px;line-height:1.12;color:var(--ink);margin:8px 0 0}
h1 em{font-style:italic}
.lede{font-weight:300;font-size:16px;line-height:1.58;color:var(--text);margin:10px auto 0;max-width:30em}

/* sections: the site's top rule, centred mono label and short gold rule */
.form{margin-top:22px}
.section{border:0;border-top:1px solid var(--rule);margin:26px 0 0;padding:16px 0 0;min-width:0}
.section:first-of-type{margin-top:4px}
.section > legend,.section-label{float:left;width:100%;padding:0;margin:0;font-family:var(--mono);font-size:10px;letter-spacing:.2em;color:var(--label);text-align:center;text-transform:uppercase}
.section > legend::after,.section-label::after{content:"";display:block;width:26px;height:1px;background:var(--gold);margin:8px auto 0}
.section > :not(legend){clear:both}
.section > legend + *{margin-top:14px}

.q{margin-top:16px}
.q:first-child{margin-top:0}
.label{display:block;font-family:var(--display);font-size:20px;font-weight:500;line-height:1.25;color:var(--ink);margin:0 0 6px}
.opt{font-family:var(--serif);font-weight:300;font-size:14px;color:var(--soft)}
.hint{font-weight:300;font-size:15px;line-height:1.5;color:var(--text);margin:-2px 0 8px}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=time],input[type=number],select,textarea{display:block;width:100%;border:1px solid var(--edge);border-radius:0;background:var(--field);padding:11px 13px;font-family:var(--serif);font-size:16px;line-height:1.4;color:var(--ink);min-height:48px;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--ink)}
textarea{min-height:120px;resize:vertical;line-height:1.55}
select{appearance:auto}
[aria-invalid=true]{border-color:var(--error)!important;box-shadow:inset 0 0 0 1px var(--error)}
.two{display:grid;gap:10px}

/* choices: the site's bordered rows; chosen = wine edge on warm paper */
.choices{display:grid;gap:8px}
.choice{display:flex;gap:11px;align-items:flex-start;border:1px solid rgba(0,0,0,.15);background:transparent;padding:11px 13px;cursor:pointer;min-height:48px}
.choice:hover{border-color:rgba(0,0,0,.35)}
.choice input{flex:none;width:20px;height:20px;margin:3px 0 0;accent-color:var(--wine);cursor:pointer}
.choice .c-main{display:block;font-family:var(--display);font-size:19px;font-weight:500;line-height:1.2;color:var(--ink)}
.choice .c-sub{display:block;font-weight:300;font-size:14.5px;line-height:1.45;color:var(--text);margin-top:1px}
.choice:has(input:checked){border-color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine);background:var(--picked)}
.choice:has(input:focus-visible){outline:3px solid var(--ink);outline-offset:2px}
.choices.inline{grid-template-columns:1fr 1fr}

/* date rows */
.date-row{border-left:2px solid var(--gold);padding:2px 0 2px 14px;margin-top:12px}
.date-row:first-child{margin-top:0}
.date-row .row-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.date-row .row-title{font-family:var(--mono);font-size:10px;letter-spacing:.18em;color:var(--label);text-transform:uppercase}
.date-row .cells{display:grid;gap:8px;grid-template-columns:1fr;margin-top:6px}
.cell label{display:block;font-weight:300;font-size:14px;color:var(--soft);margin-bottom:3px}
.link-btn{background:none;border:0;padding:8px 0;font-family:var(--caps);font-size:14px;letter-spacing:.04em;color:var(--wine);cursor:pointer;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.link-btn:hover{text-decoration-style:solid}

/* buttons: the site's black caps button; outline for the quiet one */
.btn{display:inline-block;font-family:var(--caps);font-size:13px;letter-spacing:.14em;text-transform:uppercase;line-height:1.3;padding:14px 26px;min-height:48px;cursor:pointer;border:1px solid var(--ink);border-radius:0}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:#000}
.btn-primary[disabled]{opacity:.7;cursor:progress}
.btn-quiet{background:transparent;color:var(--ink)}
.submit-row{text-align:center;margin-top:28px;border-top:1px solid var(--rule);padding-top:22px}
.small{font-weight:300;font-size:14.5px;color:var(--soft);margin:10px 0 0}

.field-error{color:var(--error);font-weight:500;font-size:15px;margin:2px 0 6px}
.field-error::before{content:"\26A0\FE0E  ";content:"\26A0\FE0E  " / ""}
.error-summary{border:2px solid var(--error);background:var(--field);padding:14px 16px;margin:18px 0 0}
.error-summary h2{font-family:var(--serif);font-weight:500;font-size:17px;margin:0 0 6px;color:var(--error)}
.error-summary ul{margin:0;padding-left:20px}
.error-summary a{color:var(--error);border-bottom-color:var(--error)}
.notice{margin:18px 0 0;border-left:2px solid var(--gold);padding:8px 0 8px 14px;font-weight:300;font-size:16px;color:var(--body)}

/* honeypot — off-screen, not announced, not tabbable */
.hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* place autocomplete (visit-places.js) */
.ac{position:relative}
.ac-list{list-style:none;margin:2px 0 0;padding:0;background:var(--field);border:1px solid var(--edge);box-shadow:0 8px 24px rgba(60,45,25,.18);max-height:18rem;overflow-y:auto;position:absolute;left:0;right:0;z-index:20}
.ac-list li{padding:11px 13px;min-height:44px;cursor:pointer;border-top:1px solid var(--hair);line-height:1.35;font-size:15px}
.ac-list li:first-child{border-top:0}
.ac-list li[aria-selected=true],.ac-list li:hover{background:var(--picked);box-shadow:inset 3px 0 0 var(--wine)}

/* sealed and sent — the site's wax seal */
.done{margin-top:26px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.seal{position:relative;width:88px;height:88px;display:flex;align-items:center;justify-content:center;animation:sealPress .62s cubic-bezier(.34,1.32,.5,1) both;background:radial-gradient(circle at 36% 30%,#b23a34 0%,#8a2321 44%,#661918 100%);border-radius:47% 53% 48% 52% / 53% 47% 53% 47%;box-shadow:inset 0 2px 7px rgba(255,214,210,.28),inset 0 -8px 15px rgba(52,10,10,.5),0 7px 18px rgba(94,23,23,.42)}
.seal::before{content:"";position:absolute;inset:9px;border:1px solid rgba(255,220,214,.32);border-radius:46% 54% 49% 51% / 52% 48% 52% 48%}
.seal span{font-family:var(--display);font-weight:600;font-size:23px;letter-spacing:.02em;color:#f2cfc9;text-shadow:0 1px 0 rgba(52,10,10,.7)}
@keyframes sealPress{0%{opacity:0;transform:translateY(-54px) scale(1.85) rotate(-13deg)}52%{opacity:1;transform:translateY(0) scale(.9) rotate(-4deg)}70%{transform:translateY(0) scale(1.05) rotate(-4deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(-4deg)}}
.done h2{font-family:var(--display);font-style:italic;font-weight:500;font-size:24px;color:#6e2323;margin:4px 0 0}
.done h2:focus{outline:none}
.done p{font-weight:300;font-size:16.5px;line-height:1.55;color:var(--soft);margin:0;max-width:30em}
.signoff{margin-top:26px;text-align:center}
.signoff .peace{font-family:var(--display);font-style:italic;font-size:16px;color:var(--muted)}
.signoff .who{font-family:var(--display);font-size:18px;color:var(--ink);margin-top:2px}
.signoff .site{font-family:var(--caps);font-size:10px;letter-spacing:.2em;color:#8f8672;margin-top:11px}

/* phone footer (the rail carries these on a wide screen) */
.foot{border-top:1px solid var(--rule);margin:0 22px;padding:18px 0 26px;text-align:center}
.foot .pastor{display:inline-block;margin-top:0}

/* tap-to-confirm page */
.facts{margin:22px auto 0;max-width:34em;border-left:2px solid var(--gold);padding:4px 0 4px 16px;display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:baseline;text-align:left}
.facts dt{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--label)}
.facts dd{margin:0;font-family:var(--display);font-size:19px;font-weight:500;color:var(--ink)}
.token h1:focus{outline:none}
.token h1:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.token .submit-row{border-top:0;padding-top:0;margin-top:24px}
.token-help{text-align:center;margin-top:34px;font-weight:300;font-size:15px;color:var(--soft)}

/* Aa — the site's reading-comfort button */
#a11y-btn{position:fixed;left:16px;bottom:16px;z-index:50;width:46px;height:46px;border-radius:50%;background:var(--wine);color:#f0d79a;border:1px solid #f0d79a;box-shadow:0 2px 10px rgba(0,0,0,.35);cursor:pointer;font:600 17px Georgia,serif}
#a11y-panel{position:fixed;left:16px;bottom:70px;z-index:50;width:236px;background:var(--paper);border:1px solid var(--gold);border-radius:6px;box-shadow:0 8px 28px rgba(0,0,0,.3);padding:13px 15px}
#a11y-panel h2{font-family:var(--display);font-weight:500;font-size:19px;margin:0}
#a11y-panel .a11y-lbl{font-family:var(--mono);font-size:9px;letter-spacing:.2em;color:var(--label);margin:13px 0 6px}
#a11y-panel .a11y-row{display:flex;gap:6px}
#a11y-panel .a11y-row.col{flex-direction:column}
#a11y-panel button.o{flex:1;border:1px solid rgba(138,109,59,.6);background:var(--drawer);color:var(--ink);font-family:var(--caps);font-size:14px;padding:8px 4px;cursor:pointer;border-radius:2px}
#a11y-panel button.o[aria-pressed=true]{background:var(--wine);color:#f0d79a;border-color:var(--wine)}
#a11y-panel .reset{margin-top:13px;width:100%;background:none;border:none;color:var(--wine);font-family:var(--caps);font-size:13px;cursor:pointer;text-decoration:underline;padding:4px}
html.a11y-contrast{filter:contrast(1.45)}
html.a11y-contrast a{text-decoration:underline!important}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important}
html.a11y-space :is(p,li,label,.hint){line-height:1.9!important}

@media (min-width:34rem){
  .two{grid-template-columns:1fr 1fr}
  .date-row .cells{grid-template-columns:2fr 1fr 1fr}
  main{padding:30px 32px 48px}
}

/* wide screens: the rail and the reading page (index.html: landscape ≥1000px, portrait ≥1100px) */
@media (min-width:1000px) and (orientation:landscape),(min-width:1100px){
  .shell{flex-direction:row}
  .rail{display:flex;flex-direction:column;flex:none;width:340px;align-self:stretch;border-right:1px solid var(--rule);position:sticky;top:0;height:100vh;overflow-y:auto;padding:38px 30px 26px;background:var(--paper)}
  .mast,.foot{display:none}
  .main{max-width:840px;padding:0 40px}
  main{padding:34px 24px 60px}
  h1{font-size:32px}
}
@media (prefers-reduced-motion:reduce){ main,.seal,.drawer{animation:none} }
@media (forced-colors:active){ .choice:has(input:checked){outline:3px solid CanvasText} }
@media print{ .rail,.mast,.foot,#a11y-btn,#a11y-panel{display:none!important} }
