/* The homepage. Colours and fonts come from the app's stylesheet (app/app.css);
   this file undoes the app's fixed-window rules and lays out a page that
   scrolls, from phone width up. */
html, body { height: auto }
body { overflow: visible; user-select: text; -webkit-user-select: text; cursor: auto; font-size: 16px; line-height: 1.55 }
a { color: var(--accent) }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2 }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600 }

.top, main, .foot { max-width: 1080px; margin: 0 auto; padding-inline: 20px }
.top { display: flex; align-items: center; gap: 20px; padding-block: 16px }
.top .mark { padding: 0; color: var(--ink); text-decoration: none }
.links { display: flex; gap: 20px; margin-left: auto; font-weight: 500 }
.links a { color: var(--muted); text-decoration: none }
.links a:hover { color: var(--ink) }
a.btn { text-decoration: none; color: var(--ink); display: inline-block }
a.btn.primary { color: var(--accent-ink) }
.btn.big { padding: 12px 22px; font-size: 17px; border-radius: 9px }
/* Not there yet: looks set aside and does nothing when pressed. */
.soon { pointer-events: none; color: var(--muted) }
a.btn.soon { color: var(--muted); border-style: dashed }
.soon .tag { margin-left: 4px }

.hero { text-align: center; padding-block: clamp(36px, 8vw, 84px) 0; display: flex; flex-direction: column; align-items: center; gap: 18px }
.lede { max-width: 620px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted) }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px }
.small { font-size: 14px; color: var(--muted) }
/* While the web version is closed for the month: the line on the homepage
   and the page shown in its place (closed.html). */
.closed-line { max-width: 560px; font-size: 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 10px 16px }
.closed-line b { color: var(--ink) }
.closed-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding-block: 40px }
.closed-page h1 { font-size: clamp(26px, 4vw, 36px) }
.closed-page p { max-width: 540px; color: var(--muted); margin: 0 }
.shot { display: block; margin-top: 24px; width: 100% }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow) }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px }
@media (min-width: 860px) { .cards.three { grid-template-columns: repeat(3, 1fr) } }
main > .cards { padding-block: clamp(48px, 8vw, 88px) }
.cards article { background: var(--side); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px }
.cards article p { color: var(--muted) }
.cards article .btn { margin-top: auto; align-self: flex-start }

.how, .get { padding-bottom: clamp(48px, 8vw, 88px); display: flex; flex-direction: column; gap: 22px }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px }
.how li { counter-increment: step; color: var(--muted); display: flex; flex-direction: column; gap: 6px }
.how li::before { content: counter(step); font: 600 15px var(--mono); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.how li b { color: var(--ink); font-weight: 600 }

.foot { border-top: 1px solid var(--line); padding-block: 22px 32px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--muted) }
.foot-links { display: flex; gap: 16px }

/* The donate page (donate/index.html). */
.donate-page { max-width: 620px; margin: 0 auto; padding-block: clamp(36px, 7vw, 72px); display: flex; flex-direction: column; gap: 16px }
.donate-page h1 { font-size: clamp(30px, 5vw, 44px) }
.donate-page p { margin: 0; color: var(--muted) }
.donate-page .cta { justify-content: flex-start; margin-top: 8px }

@media (pointer: coarse) { a.btn { padding-block: 11px } }
@media (max-width: 640px) {
  .links { display: none }
  .top .btn { margin-left: auto }
  .cta { width: 100% }
  .cta .btn { flex: 1 1 100%; text-align: center }
  .shot { max-width: 300px }
}
