/* ============================================================
   PHOTO FOR A DAY — Brutalist-Minimalist
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 56px;
}

html, body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ──────────────────────────────────────────────── */

header {
  height: var(--header-h);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

#site-logo {
  width: 120px;
  height: auto;
  display: block;
}

/* ── MAIN ────────────────────────────────────────────────── */

main {
  flex: 1;
}

/* ── PHOTO STACK ─────────────────────────────────────────── */

#photo-stack {
  display: flex;
  flex-direction: column;
}

/* ── DATE DIVIDER ────────────────────────────────────────── */

.date-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  height: 44px;
  flex-shrink: 0;
}

.date-divider::before,
.date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1f1f1f;
}

.date-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── PHOTO ENTRY ─────────────────────────────────────────── */

.photo-entry {
  width: 100%;
}

.photo-frame {
  width: 100%;
  height: 75vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── SKELETON LOADING ────────────────────────────────────── */

.photo-frame.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  animation: pulse 1.4s ease-in-out infinite;
  z-index: 1;
}

.photo-frame.skeleton .photo-img {
  opacity: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #333;
  text-transform: uppercase;
}

/* ── EMPTY / ERROR STATE ─────────────────────────────────── */

.no-photos {
  padding: 48px 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #444;
  text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .date-divider {
    padding: 0 16px;
    gap: 12px;
  }

  .photo-frame {
    height: 60vw;
  }
}
