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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #238636;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  flex: 1;
}
.logo span { color: var(--accent); }
.header-date {
  font-size: 13px;
  color: var(--muted);
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}

/* ── Day navigation ── */
.day-nav {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  margin-bottom: 12px;
}
.day-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text);
  font-size: 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.day-arrow:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.day-arrow.disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
.image-frame {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.image-frame figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.attribution {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.description {
  font-size: 15px;
  color: var(--text);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.meta-item {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface2);
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
