/* Layout: one narrow column; the coffee card and the message form are the only raised objects. */
:root{
  --bg:#f7f4f1; --surface:#ffffff; --ink:#2a1e17; --muted:#6c5d53;
  --line:#e4dbd3; --crema:#b5733b; --crema-soft:#f5e7da; --light:#fff8ef;
  --yt:#e62117; --btn:#ffc439; --btn-ink:#1a1a1a; --ok:#2e7d4f;
  --display:"DM Serif Display", Georgia, serif;
  --body:"Karla", "Segoe UI", system-ui, sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#17110d; --surface:#221a14; --ink:#f3ebe4; --muted:#bba99b;
  --line:#3a2d24; --crema:#e0a56c; --crema-soft:#3b2a1d; --light:#fff8ef; --ok:#6fcf97; color-scheme:dark } }
:root[data-theme="dark"]{
  --bg:#17110d; --surface:#221a14; --ink:#f3ebe4; --muted:#bba99b;
  --line:#3a2d24; --crema:#e0a56c; --crema-soft:#3b2a1d; --light:#fff8ef; --ok:#6fcf97; color-scheme:dark }

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6}
[hidden]{display:none!important}
.wrap{max-width:700px;margin:0 auto;padding-block:44px 64px;
  padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px));
  display:flex;flex-direction:column;gap:60px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.12;text-wrap:balance;margin:0}
h1{font-size:clamp(2.3rem,7.5vw,3.5rem)}
h2{font-size:clamp(1.8rem,5vw,2.3rem);text-align:center}
h3{font-size:1.5rem}
p{margin:0}
.muted{color:var(--muted)}
a{color:var(--crema)}
:focus-visible{outline:3px solid var(--crema);outline-offset:2px}

header{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.cup{width:64px;height:64px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:30px}
.eyebrow{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--crema);font-weight:700}
header p{max-width:54ch}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px 22px;
  box-shadow:0 14px 34px -22px rgba(60,30,10,.45);display:flex;flex-direction:column;gap:16px}
.card.center{text-align:center}

/* coffee picker */
.cups{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
@media (max-width:560px){.cups{grid-template-columns:repeat(3,1fr)}}
.cups button{font:700 1.25rem var(--body);padding:14px 4px;border-radius:12px;border:1.5px solid var(--line);
  background:var(--surface);color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;font-variant-numeric:tabular-nums}
.cups button small{font-weight:400;color:var(--muted);font-size:.8rem}
.cups button[aria-pressed="true"]{border-color:var(--crema);background:var(--crema-soft)}
#other-box{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap}
#other{width:8rem;font:700 1.1rem var(--body);padding:10px 12px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink)}
.total{font-size:1.05rem;font-variant-numeric:tabular-nums}
.total b{font-size:1.5rem;font-family:var(--display);font-weight:400}
#meaning{font-style:italic;color:var(--muted);min-height:1.6em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font:700 1.05rem var(--body);
  padding:14px 22px;border-radius:999px;border:0;cursor:pointer;transition:filter .15s}
.btn:hover{filter:brightness(.94)}
.btn.pay{background:var(--btn);color:var(--btn-ink);width:100%;font-size:1.1rem;padding:16px}
.btn.yt{background:var(--yt);color:#fff}
.btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn[aria-disabled="true"]{opacity:.5;pointer-events:none}
.secure{font-size:.88rem;color:var(--muted)}
.warn{color:#c0392b;font-size:.92rem}

/* subscribe + share */
.follow{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:600px){.follow{grid-template-columns:1fr}}
.follow .card{gap:12px}
.follow .card > *{min-width:0}
.share{display:flex;flex-wrap:wrap;gap:8px}
.share a,.share button{font:600 .9rem var(--body);padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);
  background:var(--surface);color:var(--ink);text-decoration:none;cursor:pointer}
.share a:hover,.share button:hover{border-color:var(--crema)}

blockquote{margin:0;text-align:center;font-family:var(--display);font-size:1.5rem;line-height:1.4}
cite{display:block;margin-top:10px;font-family:var(--body);font-style:normal;font-size:.78rem;letter-spacing:.14em;color:var(--crema);font-weight:700}

.section{display:flex;flex-direction:column;gap:24px}
.section > p{text-align:center;max-width:54ch;margin:0 auto}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 28px}
@media (max-width:540px){.grid{grid-template-columns:1fr}}
.grid > div{min-width:0;border-top:2px solid var(--crema);padding-top:12px;display:flex;flex-direction:column;gap:6px}
.grid h4{margin:0;font-size:1.08rem}
.grid .verse{font-family:var(--display);font-size:1.08rem;line-height:1.45}
.grid .ref{font-size:.75rem;letter-spacing:.12em;color:var(--crema);font-weight:700}

/* gospel band */
.band{background:var(--ink);color:var(--light);border-radius:18px;padding:32px 24px;display:flex;flex-direction:column;gap:14px;text-align:center}
.band h2{color:var(--light)}
.band p{max-width:54ch;margin:0 auto;opacity:.88}

/* form */
form{display:flex;flex-direction:column;gap:14px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:520px){.row{grid-template-columns:1fr}}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem}
input,select,textarea{font:400 1rem var(--body);padding:11px 12px;border-radius:10px;border:1.5px solid var(--line);
  background:var(--bg);color:var(--ink);width:100%}
textarea{min-height:120px;resize:vertical}
.check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted)}
.check input{width:auto;margin-top:5px}
.sent{color:var(--ok);font-weight:700}

details{border-bottom:1px solid var(--line);padding:14px 0}
summary{cursor:pointer;font-weight:700}
details p{margin-top:8px;color:var(--muted)}

footer{text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center}
footer .btn{width:100%;max-width:380px}
.small{font-size:.82rem;color:var(--muted)}

/* thank-you page */
.thanks-hero{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.thanks-hero .cup{width:84px;height:84px;font-size:40px;animation:pop .6s ease-out both}
@keyframes pop{from{transform:scale(.6)}to{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){.thanks-hero .cup{animation:none}}
