/* =========================================================================
   The Ghost of Dodger Stadium
   A living archive — part shrine, part storyteller.
   Palette: Dodger blue, deep navy, aged cream, gold.
   Plain CSS. No build step. Edit freely.
   ========================================================================= */

:root {
  --navy-900: #060f1d;
  --navy-800: #0a1a2f;
  --navy-700: #0f2540;
  --blue-600: #1b5fa6;
  --blue-500: #2a72c4; /* Dodger blue */
  --blue-300: #6fa8dc;
  --cream-100: #f6efdc;
  --cream-200: #ece3c8;
  --cream-300: #d9cda6;
  --gold-500: #c9a24b;
  --gold-400: #d8b864;

  --ink: var(--cream-100);
  --ink-soft: #c5cdda;
  --ink-faint: #8a96aa;

  --font-display: "Anton", "Oswald", sans-serif;
  --font-serif: "Spectral", Georgia, serif;
  --font-quote: "Playball", "Playfair Display", cursive;
  --font-label: "Oswald", sans-serif;
  --font-creep: "Creepster", "Anton", cursive;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-label); /* Oswald */
  font-weight: 500; /* Oswald Medium */
  font-size: clamp(1.02rem, 0.55vw + 0.92rem, 1.18rem);
  line-height: 1.7;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  /* Subtle aged paper grain woven over the whole archive. */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(42, 114, 196, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 162, 75, 0.06), transparent 45%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--cream-100);
}

/* Film-grain overlay applied to the whole page for an aged, ethereal feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-400);
  margin: 0 0 1rem;
}

.eyebrow .es {
  color: var(--ink-faint);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  color: var(--cream-100);
}

.lede {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.gold-rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border: 0;
  margin: 0 0 1.75rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: linear-gradient(180deg, rgba(6, 15, 29, 0.92), rgba(6, 15, 29, 0));
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(6, 15, 29, 0.94);
  padding-block: 0.65rem;
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.18), 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--cream-100);
  line-height: 1;
}

.brand:hover {
  color: var(--cream-100);
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand span small {
  display: block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--gold-400);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--cream-100);
}

.nav .btn-follow {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--gold-400);
}

.nav .btn-follow:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--cream-100);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(86svh + 20px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 15, 29, 0.55) 0%, rgba(6, 15, 29, 0.15) 35%, rgba(6, 15, 29, 0.85) 78%, var(--navy-900) 100%),
    radial-gradient(120% 70% at 50% 12%, transparent 40%, rgba(6, 15, 29, 0.6) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) 0;
}

.hero .kicker {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  color: var(--gold-400);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.86;
  color: var(--cream-100);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.hero h1 .of {
  display: block;
  font-family: var(--font-creep);
  font-weight: 400;
  font-size: 0.6em;
  color: var(--blue-300);
  letter-spacing: 0.04em;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.1em;
}

.hero .tagline {
  margin: 1.5rem 0 0;
  max-width: 46ch;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--cream-200);
}

.hero .tagline .es {
  color: var(--blue-300);
}

/* ---------- Lead story (featured Facebook post) ---------- */
.lead {
  background:
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}

.lead-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 37, 64, 0.9), rgba(10, 26, 47, 0.7));
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lead-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(42, 114, 196, 0.18), transparent 60%);
  pointer-events: none;
}

.lead-body .post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.lead-body .post-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.lead-title {
  font-family: var(--font-quote);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--cream-100);
  margin: 0 0 1rem;
}

.lead-excerpt {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.lead-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-700);
}

.lead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85) contrast(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border: 1px solid var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-100);
  border: 1px solid rgba(245, 239, 220, 0.3);
}

.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* ---------- Legend / intro ---------- */
.legend {
  background: var(--navy-800);
}

.legend-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.legend p + p {
  margin-top: 1.2rem;
}

.legend .first-letter::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.2rem;
  line-height: 0.8;
  padding: 0.1em 0.12em 0 0;
  color: var(--gold-400);
}

.facts {
  display: grid;
  gap: 1rem;
}

.fact {
  border-left: 2px solid var(--gold-500);
  padding: 0.4rem 0 0.4rem 1.1rem;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.06), transparent);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--cream-100);
  line-height: 1;
}

.fact span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Echoes / pull quotes ---------- */
.echoes {
  background:
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

.echoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

.echo {
  background: linear-gradient(160deg, rgba(15, 37, 64, 0.6), rgba(10, 26, 47, 0.35));
  border: 1px solid rgba(111, 168, 220, 0.16);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
}

.echo .mark {
  font-family: var(--font-quote);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--gold-500);
  opacity: 0.55;
}

.echo h3 {
  font-family: var(--font-quote);
  text-transform: none;
  font-size: 1.3rem;
  color: var(--blue-300);
  margin: 0.75rem 0 0.5rem;
}

.echo p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--navy-900);
}

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.faq-item {
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative;
  font-family: var(--font-quote);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cream-100);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-400);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item .answer {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 75ch;
}

/* ---------- Follow CTA ---------- */
.follow {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(42, 114, 196, 0.2), transparent 60%),
    var(--navy-900);
}

.follow .section-title {
  margin-inline: auto;
}

.follow .lede {
  margin: 0 auto 2rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(201, 162, 75, 0.18);
  padding-block: 3rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--cream-100);
  font-size: 1.3rem;
}

.footer-brand small {
  display: block;
  font-family: var(--font-quote);
  font-style: italic;
  text-transform: none;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.copyright {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- About page ---------- */
.about-hero {
  position: relative;
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 80% 10%, rgba(42, 114, 196, 0.18), transparent 55%),
    var(--navy-900);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-hero h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  color: var(--cream-100);
}

.about-hero .ghost-portrait {
  position: relative;
}

.about-hero .ghost-portrait img {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.story {
  background: var(--navy-800);
}

.story-prose {
  max-width: 62ch;
  margin-inline: auto;
}

.story-prose p {
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--cream-200);
}

.pullquote {
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--cream-100);
}

.pullquote blockquote .es {
  color: var(--blue-300);
}

.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-label);
  font-style: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-400);
}

.es {
  font-style: italic;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem var(--gutter);
    background: rgba(6, 15, 29, 0.98);
    border-left: 1px solid rgba(201, 162, 75, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .lead-card { grid-template-columns: 1fr; }
  .lead-figure { order: -1; aspect-ratio: 16 / 10; }
  .legend-grid { grid-template-columns: 1fr; }
  .echoes-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .about-hero .ghost-portrait { max-width: 280px; margin-inline: auto; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   BLOG (Latest) + EDITOR — added for the PHP blog.
   ========================================================================= */

/* ---- Blog archive ---- */
.blog-intro {
  max-width: 60ch;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
}
.blog-empty {
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(15, 37, 64, 0.4);
}
.blog-empty .es {
  color: var(--ink-faint);
  font-style: italic;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 37, 64, 0.7), rgba(10, 26, 47, 0.7));
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 184, 100, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}
.blog-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}
.blog-card-title a {
  color: var(--cream-100);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--gold-400);
}
.blog-card-excerpt {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}
.read-more {
  margin-top: auto;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--gold-400);
  text-decoration: none;
}
.read-more:hover {
  color: var(--cream-100);
}

/* ---- Single post ---- */
.post-hero {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}
.post-hero img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: cover;
  object-position: center top;
}
.post-container {
  max-width: 760px;
}
.post-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0.3rem 0 0;
  color: var(--cream-100);
}
.post-body {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.28rem);
  line-height: 1.85;
  color: var(--ink);
}
.post-body p {
  margin: 0 0 1.4rem;
}
.post-back {
  margin-top: 2.5rem;
}

/* ---- Editor (admin) ---- */
.admin-body {
  background-image: none;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
  background: rgba(6, 15, 29, 0.9);
}
.admin-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.admin-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.admin-nav a:hover {
  color: var(--gold-400);
}
.admin-logout {
  color: var(--gold-400) !important;
}
.admin-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 2rem) 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-card {
  background: linear-gradient(180deg, rgba(15, 37, 64, 0.55), rgba(10, 26, 47, 0.55));
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.admin-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  margin: 0.2rem 0 1.2rem;
  color: var(--cream-100);
}
.admin-auth {
  max-width: 440px;
  margin: 2rem auto 0;
}
.admin-hint {
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: -0.4rem 0 1.4rem;
}
.admin-form,
.admin-auth form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.admin-card label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.admin-card input[type="text"],
.admin-card input[type="password"],
.admin-card input[type="file"],
.admin-card textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--cream-100);
  background: rgba(6, 15, 29, 0.7);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.admin-card textarea {
  resize: vertical;
  line-height: 1.7;
}
.admin-card input:focus,
.admin-card textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px rgba(216, 184, 100, 0.25);
}
.admin-flash {
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.admin-flash--success {
  background: rgba(42, 114, 196, 0.18);
  border-color: rgba(111, 168, 220, 0.5);
  color: var(--cream-100);
}
.admin-flash--error {
  background: rgba(160, 40, 40, 0.18);
  border-color: rgba(214, 90, 90, 0.5);
  color: #ffd7d7;
}
.admin-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-post-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(201, 162, 75, 0.18);
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.4);
}
.admin-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.admin-post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.admin-post-meta strong {
  color: var(--cream-100);
  font-family: var(--font-label);
  font-weight: 600;
}
.admin-post-meta span {
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.admin-date-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  flex-wrap: wrap;
}
.admin-date-form input[type="date"] {
  background: rgba(6, 15, 29, 0.6);
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 8px;
  color: var(--cream-100);
  font-family: var(--font-label);
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  color-scheme: dark;
}
.admin-optional {
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}
.admin-post-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}
.btn-danger {
  background: rgba(160, 40, 40, 0.85);
  color: #fff;
  border: 1px solid rgba(214, 90, 90, 0.6);
  border-radius: 999px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn-danger:hover {
  background: rgba(190, 50, 50, 0.95);
}
@media (max-width: 540px) {
  .admin-post-row {
    flex-wrap: wrap;
  }
  .admin-post-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
