/* RollCal's website: paper, film ink and one coral accent, like the app.
   Main buttons are film ink; links and small highlights are coral. */
:root {
  --paper: #f6f4ee;
  --card: #fffefa;
  --line: #e2dfd5;
  --ink: #161a17;
  --muted: #5f645c;
  --accent: #2a2420;      /* main buttons: film ink */
  --on-accent: #f6f4ee;
  --link: #b8452a;        /* coral */
  --film: #eae6db;        /* the photo strip's base */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111513;
    --card: #1e2420;
    --line: #2c332e;
    --ink: #eef0ea;
    --muted: #a0a89f;
    --accent: #efe9dd;
    --on-accent: #161a17;
    --link: #f0997b;
    --film: #0a0d0b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; }
a { color: var(--link); }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; margin-bottom: 40px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.button {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; padding: 14px 22px; border-radius: 10px; min-width: 220px;
}
.secondary { display: inline-block; color: var(--ink); font-weight: 600; padding: 12px 0; }
.code {
  font: 600 34px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.12em;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 18px 20px; margin: 16px 0 24px; display: inline-block;
}
.stores { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
footer a { color: var(--muted); margin-right: 16px; }

/* Beta install steps (/ios, /android). */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 8px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); font-weight: 700; text-align: center; line-height: 30px;
}
.steps h2 { margin: 2px 0 6px; line-height: 1.4; }
.steps .button { margin-top: 4px; }
/* A link that isn't set up yet. */
.button[href=""] { opacity: 0.4; pointer-events: none; }

ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }

/* Joining in the browser (join page, join-guest.js). */
button.button, button.secondary { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.secondary { background: none; }
button.button:disabled { opacity: 0.5; cursor: default; }
.button.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.small { font-size: 14px; }
.error { color: #a3282b; }
@media (prefers-color-scheme: dark) { .error { color: #e5534b; } }
[hidden] { display: none !important; }
.field { display: block; font-weight: 600; margin: 20px 0 12px; }
.field input, .field select {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: inherit;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.check { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
#turnstile { margin: 0 0 16px; min-height: 0; }
.roll-head h2 { display: flex; align-items: center; gap: 10px; }
.exp {
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; background: var(--card);
}
.exp b { color: var(--ink); font-size: 13px; letter-spacing: 0; margin-left: 2px; }
#add-photos { margin: 4px 0 16px; }
/* Edge to edge on a phone, like the app's roll. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 8px -20px 0; }
.tile { padding: 0; border: 0; background: var(--line); aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.get-app { margin-top: 32px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
dialog#viewer {
  border: 0; padding: 0; max-width: min(92vw, 720px); background: var(--paper); color: var(--ink); border-radius: 12px;
}
dialog#viewer::backdrop { background: rgba(22, 26, 23, 0.7); }
#viewer-img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.viewer-bar { display: flex; justify-content: space-between; padding: 4px 20px; }
#report-box, #report-note { padding: 0 20px 16px; }
