/* Waaaghoto — light/editorial single-photo viewer.
   One committed look, on purpose — no theme toggle, no dark mode. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  background: #fdfdfb;
  color: #1a1a1a;
}

.bw-page {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 70px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bw-wordmark-h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.bw-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 34px;
}
.bw-wordmark-sep { color: #d8d4c9; letter-spacing: 0; font-weight: 400; }
.bw-wordmark-sub { color: #a8a296; font-weight: 500; }

.bw-frame {
  animation: bw-fade-in .9s ease both;
}
.bw-frame img {
  display: block;
  max-width: min(76vw, 900px);
  max-height: 62vh;
  width: auto;
  height: auto;
  border: 1px solid #111;
}
@keyframes bw-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bw-frame { animation: none; }
}

.bw-caption {
  margin-top: 22px;
  max-width: 46ch;
  text-align: center;
  font-size: .84rem;
  line-height: 1.7;
  color: #5a564e;
  letter-spacing: .01em;
  padding: 0 12px;
}

.bw-nav {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a857a;
}
.bw-nav a {
  color: inherit;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.bw-nav a:hover { color: #111; border-color: #111; }
.bw-nav .bw-nav-disabled {
  color: #d8d4c9;
  cursor: default;
}
.bw-counter { color: #b7b2a6; font-variant-numeric: tabular-nums; }

.bw-about {
  /* Now the last element on the page (footer folded into it) — margin-top:
     auto pushes it to the bottom of the flex column, same job the old
     standalone .bw-foot used to do. */
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 30px;
  max-width: 46ch;
  font-size: .72rem;
  color: #b7b2a6;
}
.bw-about summary {
  text-align: center;
  cursor: pointer;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .68rem;
  color: #8a857a;
}
.bw-about summary:hover { color: #111; }
.bw-about p {
  margin: 12px 0 0;
  line-height: 1.7;
  color: #8a857a;
  text-align: center;
}
.bw-about p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #c2bdb0;
  transition: color .2s ease, border-color .2s ease;
}
.bw-about p a:hover { color: #111; border-color: #111; }
.bw-about p.bw-about-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee9dc;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bw-about-contact a {
  color: #c2bdb0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.bw-about-contact a:hover { color: #111; border-color: #111; }

.bw-empty {
  margin-top: 40px;
  font-size: .85rem;
  color: #8a857a;
  text-align: center;
}

/* ── Admin ────────────────────────────────────────────────────────────── */
.bw-admin {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-size: .92rem;
  line-height: 1.6;
}
.bw-admin h1 {
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.bw-admin h2 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a564e;
  margin: 40px 0 14px;
  border-bottom: 1px solid #e4e0d6;
  padding-bottom: 6px;
}
.bw-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.bw-form label { font-size: .78rem; letter-spacing: .04em; color: #5a564e; display: block; margin-bottom: 4px; }
.bw-form input[type="text"],
.bw-form input[type="date"],
.bw-form input[type="password"],
.bw-form input[type="file"],
.bw-form textarea {
  width: 100%; font: inherit; font-size: .9rem;
  padding: 8px 10px; border: 1px solid #ccc7ba; border-radius: 3px;
  background: #fff;
}
.bw-form textarea { min-height: 90px; resize: vertical; }
.bw-btn {
  align-self: flex-start;
  font: inherit; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 22px; border: 1px solid #1a1a1a; background: #1a1a1a; color: #fff;
  border-radius: 3px; cursor: pointer;
}
.bw-btn:hover { background: #333; }
.bw-btn-danger { border-color: #8a2020; background: #8a2020; }
.bw-btn-danger:hover { background: #a02828; }
.bw-btn-quiet { background: #fff; color: #1a1a1a; }
.bw-btn-quiet:hover { background: #f2ede1; }

.bw-flash {
  background: #eef6ec; border: 1px solid #b7d8ac; color: #2a5a1a;
  padding: 10px 14px; border-radius: 3px; font-size: .82rem; margin-bottom: 20px;
}

.bw-photo-list { list-style: none; margin: 0; padding: 0; }
.bw-photo-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #eee9dc;
}
.bw-photo-row img {
  width: 90px; height: 90px; object-fit: cover; border: 1px solid #ddd;
  flex-shrink: 0;
}
.bw-photo-meta { flex: 1; min-width: 0; }
.bw-photo-caption { font-size: .85rem; margin: 0 0 4px; }
.bw-photo-date { font-size: .72rem; color: #8a857a; }
.bw-photo-actions { display: flex; gap: 10px; margin-top: 6px; }
.bw-photo-actions a, .bw-photo-actions button {
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  background: none; border: none; color: #5a564e; cursor: pointer; padding: 0;
  text-decoration: underline;
}
.bw-photo-actions .bw-danger-link { color: #8a2020; }

.bw-login-wrap {
  max-width: 320px; margin: 100px auto; padding: 0 20px;
}
