/* One stylesheet, no build step. The photographs are the content, so the
   interface stays out of their way: a dark neutral ground, generous space, and
   no colour that competes with a picture. */

:root {
  --bg: #14151a;
  --panel: #1c1e25;
  --line: #2c2f39;
  --ink: #e9eaee;
  --quiet: #969aa8;
  --accent: #c9a227;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- chrome */

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 21, 26, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.crumbs {
  color: var(--quiet);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: 0.4; margin: 0 0.45rem; }

.signout { margin-left: auto; }
.signout button {
  background: none;
  border: 1px solid var(--line);
  color: var(--quiet);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
}
.signout button:hover { color: var(--ink); border-color: var(--quiet); }

main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
body.wide main { max-width: 1600px; }

h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.3rem; }
h2.group {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 2.5rem 0 0.9rem;
}
.quiet { color: var(--quiet); margin: 0 0 1.8rem; font-size: 0.92rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}
footer p { color: var(--quiet); font-style: italic; font-size: 0.86rem; margin: 0; }

/* ----------------------------------------------------------- gallery grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card img,
.card .noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #23262f;
  /* An un-migrated thumbnail 404s. Keep the tile shaped rather than collapsed. */
  color: transparent;
}

.card .meta { padding: 0.65rem 0.75rem 0.8rem; display: block; }
.card .meta b { display: block; font-weight: 500; font-size: 0.92rem; }
.card .meta i {
  display: block;
  font-style: normal;
  color: var(--quiet);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.card .meta i.cap { font-style: italic; }

.grid.years .card .meta b { font-size: 1.15rem; letter-spacing: 0.02em; }

/* --------------------------------------------------------------- one gallery */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.shot {
  display: block;
  background: #23262f;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}
.shot:hover img { opacity: 0.82; }

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.videos video { width: 100%; border-radius: var(--radius); background: #000; }

/* ------------------------------------------------------------------- login */

body.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-box {
  width: min(92vw, 360px);
  text-align: center;
  padding: 2rem 1.5rem;
}
.login-box h1 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.login-box .quiet { margin-bottom: 1.6rem; }
.login-box form { display: flex; flex-direction: column; gap: 0.6rem; }
.login-box input,
.login-box button {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.login-box input { background: var(--panel); color: var(--ink); }
.login-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-box button {
  background: var(--accent);
  color: #1b1608;
  font-weight: 600;
  border-color: transparent;
  cursor: pointer;
}
.login-box .error { color: #e28a7a; font-size: 0.86rem; margin-top: 1rem; }

@media (max-width: 620px) {
  header { padding: 0.75rem 1rem; gap: 0.6rem; }
  .crumbs { display: none; }
  main { padding: 1.5rem 1rem 3rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.35rem; }
}
