/* Colours are the DESIGN.md tokens. Light by default, dark follows the phone. */
:root {
  color-scheme: light dark;
  --paper: #FFFFFF; --desk: #F4F6F8; --rule: #D6DBE0; --ink: #15202B; --pencil: #5B6670;
  --blue: #2563EB; --on-blue: #FFFFFF; --blue-ink: #2563EB;
  --amber-ink: #8A5A00; --amber-wash: #FFF1D6; --ok-ink: #1B754E; --ok-wash: #E1F2EA;
  --missing: #B42318;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1116; --desk: #1A1F27; --rule: #333B47; --ink: #EDEFF2; --pencil: #9AA4B2;
    --blue-ink: #60A5FA;
    --amber-ink: #F2C166; --amber-wash: #3A2F12; --ok-ink: #4ADE80; --ok-wash: #15301F;
    --missing: #F37D68;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 15px/1.55 var(--sans); }
.page { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.text { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
section { display: flex; flex-direction: column; gap: 12px; }
h1, h2 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
a { color: var(--blue-ink); }
.lede { margin-top: 12px; color: var(--pencil); }
.meta { font-size: 13px; color: var(--pencil); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2400; object-fit: cover;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; font-size: 12px; color: var(--pencil); }
.shot.missing img { visibility: hidden; }
.shot.missing::before { content: ""; position: absolute; inset: 0 0 24px; border: 1px dashed var(--rule); border-radius: 14px; }
.shot figcaption { font-size: 12px; color: var(--pencil); text-align: center; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
form { display: flex; flex-direction: column; gap: 12px; }
form[hidden], .notice[hidden], .field-error[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 4px; }
label { font-weight: 600; }
input[type=email] { font: inherit; background: var(--desk); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 8px; padding: 12px; width: 100%; min-height: 44px; }
input[aria-invalid=true] { border-color: var(--missing); }
.field-error { font-size: 13px; color: var(--missing); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.primary { font: inherit; font-weight: 700; background: var(--blue); color: var(--on-blue); border: 0;
  border-radius: 8px; padding: 14px 16px; min-height: 44px; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: progress; }
:is(input, button, a):focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.notice { border-radius: 8px; padding: 12px; font-size: 14px; border: 1px solid; }
.notice.ok { background: var(--ok-wash); border-color: var(--ok-ink); }
.notice.warn { background: var(--amber-wash); border-color: var(--amber-ink); }
.notice:focus { outline: none; }

/* Support: a tip link, quieter than the form's button. The QR code keeps its white
   ground in dark mode so it still scans; it shows only on wide screens, since a
   phone can't scan its own screen (it gets the Open Venmo link). */
.support { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.support-qr { width: 148px; height: 148px; padding: 6px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 8px; }
.support-open { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule);
  border-radius: 8px; color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.support-open:hover { border-color: var(--blue-ink); }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .support-qr { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
