/* Colours from poster-creator's brand/tokens.css (the pub's website). */
:root {
  --green: #355733;
  --green-dark: #2b3c26;
  --cream: #f4ecd8;
  --cream-deep: #e9dcbf;
  --ink: #1a1a1a;
  --red: #8f1d1d;
}
* { box-sizing: border-box; }
/* The hidden attribute wins over any display set below (a styled button
   ignored it: "Show older photos" showed with nothing older). */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { color: var(--green-dark); font: 700 2rem/1.15 Georgia, "Times New Roman", serif; margin: 0.5rem 0 0.75rem; }
h2 { color: var(--green-dark); font: 700 1.25rem/1.3 Georgia, serif; margin: 1.75rem 0 0.5rem; }
a { color: var(--green); }
label { display: block; margin: 1.1rem 0; }
label > span { display: block; margin-bottom: 0.35rem; }
input[type="text"], textarea {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit;
  border: 1px solid #b9ab8a; border-radius: 6px; background: #fff;
}
input[type="file"] { font: inherit; max-width: 100%; }
.tick { display: flex; gap: 0.7rem; align-items: flex-start; }
.tick input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex: none; accent-color: var(--green); }
.tick span { margin: 0; }
.consent { border-top: 1px solid var(--cream-deep); margin-top: 1.5rem; padding-top: 0.5rem; }
button, .button {
  display: inline-block; font-family: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1;
  color: #fff; background: var(--green); border: 0; border-radius: 6px;
  padding: 0.9rem 1.3rem; text-decoration: none; cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
button.link { background: none; color: var(--green); padding: 0; font: inherit; text-decoration: underline; }
#chosen { list-style: none; padding: 0; margin: 0.5rem 0; }
#chosen li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--cream-deep); font-size: 0.95rem; }
#chosen .status { color: var(--green-dark); white-space: nowrap; }
.problem { color: var(--red); font-weight: 600; }
.problem:empty { display: none; }
.small, .who { font-size: 0.9rem; color: #4a4a40; }
.who { margin-top: 2.5rem; }
.prose li { margin: 0.4rem 0; }

/* The photo picker: the label is the button (the input is hidden, still
   focusable). Tap targets here are 48 px or more, as phones need. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.choose { margin: 1.25rem 0 0.5rem; }
.hint { margin: 0 0 0.9rem; }
.button.picker {
  display: block; width: 100%; margin: 0; text-align: center;
  min-height: 3.5rem; line-height: 1.3; padding: 1rem 1.3rem; font-size: 1.1rem;
}
#photos:focus-visible + .picker, button:focus-visible, .button:focus-visible {
  outline: 3px solid var(--green-dark); outline-offset: 3px;
}
.choose .small { margin: 0.5rem 0 0; }
#go { width: 100%; min-height: 3.5rem; font-size: 1.1rem; }
.tick { padding: 0.35rem 0; }
.tick input { width: 1.6rem; height: 1.6rem; }

/* The gallery. */
main.wide { max-width: 60rem; }
.batch { border-top: 1px solid var(--cream-deep); padding-top: 0.75rem; margin-top: 1.5rem; }
.batch h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.batch .note { margin: 0 0 0.75rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.photo { margin: 0; }
.photo img, .photo .no-preview {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--cream-deep);
}
.photo .no-preview { display: flex; align-items: center; justify-content: center; color: #6b6450; font-size: 0.9rem; }
.photo figcaption { font-size: 0.85rem; color: #4a4a40; margin-top: 0.3rem; }
#older { margin-top: 1.5rem; }
