/* One stylesheet for the whole shrine. Phone-first, quiet, no build step:
   the page exists to be restyled, the photos are the decoration. */

:root {
  --ink: #2b2b2b;
  --paper: #faf7f2;
  --accent: #8c3b3b;
  --muted: #6f6a63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

a {
  color: var(--accent);
}

.dedication {
  text-align: center;
  margin-bottom: 2rem;
}

.dedication-text {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Feed: a simple wall. Thumbnails carry the page. */
.feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 40rem) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.15rem 0.1rem 0.4rem;
}

.notice {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: italic;
}

/* Gate and contribute forms */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
}

label {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.optional {
  color: var(--muted);
  font-weight: normal;
}

input[type='password'],
input[type='text'] {
  padding: 0.6rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--muted);
  border-radius: 3px;
  background: #fff;
}

input[type='file'] {
  font-size: 0.9rem;
}

button {
  margin-top: 1rem;
  padding: 0.65rem 1.2rem;
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  min-height: 1.4rem;
  color: var(--muted);
  margin: 0;
}

.error {
  color: var(--accent);
}

.gate {
  text-align: center;
}

.gate form {
  margin: 1.5rem auto 0;
  text-align: left;
}

/* Upload progress: one bar, no spinner theatre. */
.progress {
  margin-top: 0.75rem;
}

.progress-track {
  height: 0.6rem;
  background: rgba(111, 106, 99, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 120ms linear;
}

.progress-label {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
