/* editorial.css — look for the upload and admin pages, matching
   ledfordwilliams2026.com's design system (Playfair Display + Inter,
   green/gold editorial palette). The fullscreen slideshow keeps its own
   distinct vintage "supper club" look on purpose — see css/styles.css. */

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

:root {
  --green:      #2B6B3A;
  --green-mid:  #3A7D4A;
  --gold:       #B8882E;
  --gold-light: #D4A84B;
  --black:      #1A1A1A;
  --ink:        #2C2C2C;
  --muted:      #6B6B6B;
  --rule:       #E4E2DC;
  --bg:         #FAFAF8;
  --bg-alt:     #F2F1ED;
  --danger:     #A23B3B;
}

/* The hidden attribute must always win over the flex rules below — the JS
   shows/hides every view by toggling it. */
[hidden] { display: none !important; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--black); }

/* ── MAIN / CONTENT ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.content-narrow {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.content-narrow h1,
.content-narrow h2 {
  font-size: clamp(30px, 6vw, 44px);
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.lede {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 4px;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; }

.btn-secondary {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--green); color: #fff; }

/* ── STATUS / BANNERS ── */
.status-line {
  min-height: 1.2rem;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.error-line { color: var(--danger); }

.banner-warning {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: left;
}
.banner-warning code {
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

/* ── ADMIN PAGE ── */
.admin-content { max-width: 900px; width: 100%; }

.login-card {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.login-card input {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.login-card input:focus {
  outline: none;
  border-color: var(--green);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-toolbar h1 { font-size: 24px; margin-bottom: 0; }

.admin-toolbar-actions { display: flex; gap: 10px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  text-align: left;
  margin-top: 24px;
}

.photo-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-card.is-hidden img { opacity: 0.35; }

.photo-card .meta {
  padding: 10px 12px 4px;
  font-size: 11px;
  color: var(--muted);
}

.photo-card button {
  width: 100%;
  border: none;
  padding: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 8px;
}

.photo-card button.showing { background: var(--green); color: #fff; }
.photo-card button.hidden-state { background: var(--danger); color: #fff; }

/* ── FOOTER ── */
.full-rule { border: none; border-top: 1px solid var(--rule); }

footer {
  padding: 32px 48px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 720px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  main { padding: 48px 20px; }
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 28px 24px;
  }
  .footer-meta { text-align: center; }
  .admin-toolbar { justify-content: center; text-align: center; }
}
