/* ==========================================================================
   Cuckoo Comics - The Cuckoo Gallery theme
   Vintage animation-art museum archive: ivory paper, midnight indigo ink,
   celluloid amber, museum placards, filmstrip dividers.
   ========================================================================== */

:root {
  --ink: #1d2150;            /* evolved from original #191970 midnight blue */
  --ink-deep: #14172e;
  --paper: #f7f1e3;          /* warm ivory */
  --paper-bright: #fdfaf1;
  --amber: #b8862c;          /* celluloid amber/gold */
  --amber-light: #d9a843;
  --powder: #9cb8d4;         /* nod to the 2005-era powder blue panels */
  --sepia: #5d5546;
  --rule: #d8cdb4;
  --placard: #efe7d2;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--amber-light);
  color: var(--ink-deep);
}

/* ---------- Typography ---------- */

h1, h2, h3, .title {
  font-family: 'Marcellus', 'Times New Roman', serif;
  color: var(--ink);
  font-weight: 400;
}

.content h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.content h2 {
  font-size: 1.65rem;
  color: var(--ink);
  margin-top: 2.75rem;
  padding-bottom: 0.45rem;
  position: relative;
}

/* deco double rule with amber tick under every h2 */
.content h2::after {
  content: "";
  display: block;
  margin-top: 0.55rem;
  height: 5px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(to right, var(--amber) 0 64px, transparent 64px) no-repeat left center / 64px 1px;
}

.content p {
  color: #2c2f52;
}

.content a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 44, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.content a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.content ul li {
  margin-bottom: 0.55rem;
}

.content strong {
  color: var(--ink-deep);
}

/* ---------- Masthead / navigation ---------- */

.gallery-masthead {
  background: var(--paper-bright);
  border-bottom: 3px double var(--rule);
}

.gallery-masthead .navbar {
  background: transparent;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-wordmark {
  font-family: 'Poiret One', 'Marcellus', serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--ink) !important;
  text-transform: uppercase;
}

.brand-wordmark .brand-bird {
  color: var(--amber);
  font-size: 1.15rem;
  margin-right: 0.45rem;
}

.gallery-masthead .navbar-item,
.gallery-masthead .navbar-link {
  font-family: 'Marcellus', serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
}

.gallery-masthead .navbar-item:hover,
.gallery-masthead .navbar-link:hover,
.gallery-masthead .navbar-item:focus,
.gallery-masthead .navbar-link:focus {
  background: transparent !important;
  color: var(--amber) !important;
}

.gallery-masthead .navbar-item.is-active {
  color: var(--amber) !important;
  box-shadow: inset 0 -2px 0 var(--amber);
}

.gallery-masthead .navbar-dropdown {
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--amber);
  border-radius: 0;
}

.gallery-masthead .navbar-dropdown .navbar-item {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.gallery-masthead .navbar-burger {
  color: var(--ink);
}

.gallery-masthead .navbar-menu.is-active {
  background: var(--paper-bright);
  border-bottom: 1px solid var(--rule);
}

/* ---------- Filmstrip divider (signature element) ---------- */

.filmstrip {
  height: 26px;
  background-color: var(--ink-deep);
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0 10px,
      var(--paper) 10px 18px,
      transparent 18px 28px
    );
  background-size: 28px 8px;
  background-repeat: repeat-x;
  background-position: 0 4px, 0 14px;
  position: relative;
}

.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0 10px,
    var(--paper) 10px 18px,
    transparent 18px 28px
  );
}

.filmstrip::before { top: 3px; }
.filmstrip::after { bottom: 3px; }

/* ---------- Hero exhibit ---------- */

.hero-exhibit {
  position: relative;
  background: var(--ink-deep);
}

.hero-exhibit img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  opacity: 0.92;
}

.hero-exhibit.is-tall img {
  max-height: 620px;
}

.hero-placard {
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  transform: translateX(-50%);
  background: var(--placard);
  border: 1px solid var(--amber);
  outline: 6px solid var(--placard);
  padding: 1.1rem 2.4rem;
  text-align: center;
  max-width: min(720px, 88vw);
  box-shadow: 0 14px 34px rgba(20, 23, 46, 0.25);
}

.hero-placard .placard-kicker {
  font-family: 'Marcellus', serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.2rem;
}

.hero-placard .placard-title {
  font-family: 'Poiret One', serif;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}

.hero-spacer {
  height: 3.6rem;
}

/* ---------- Article layout ---------- */

.exhibit-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
}

/* museum placard caption under inline images */
.placard-caption {
  background: var(--placard);
  border-top: 2px solid var(--amber);
  font-family: 'Marcellus', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--sepia);
  padding: 0.6rem 1rem;
  margin: 0;
}

/* ---------- Wing cards (homepage) ---------- */

.wing-card {
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: 0 1px 0 var(--rule), 0 10px 24px rgba(29, 33, 80, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wing-card .card-image img {
  object-fit: cover;
  height: 190px;
  width: 100%;
  border-bottom: 2px solid var(--amber);
}

.wing-card .card-content {
  padding: 1.25rem 1.4rem 1.5rem;
  flex-grow: 1;
}

.wing-card .wing-title {
  font-family: 'Marcellus', serif;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.wing-card .wing-title a {
  color: var(--ink);
  border-bottom: none;
}

.wing-card .wing-title a:hover {
  color: var(--amber);
}

.wing-card p {
  font-size: 0.94rem;
  color: var(--sepia);
}

/* ---------- Contact form ---------- */

.archive-form {
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-top: 3px double var(--amber);
  padding: 1.8rem;
  margin-top: 1.5rem;
}

.archive-form .input,
.archive-form .textarea {
  background: #fff;
  border-color: var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  box-shadow: none;
}

.archive-form .input:focus,
.archive-form .textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.archive-form .label {
  font-family: 'Marcellus', serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
}

.btn-amber {
  background: var(--ink);
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: 'Marcellus', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.7em 2.2em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-amber:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-deep);
}

/* ---------- Footer ---------- */

.gallery-footer {
  background: var(--ink-deep);
  color: #cfd2e8;
  padding: 3rem 1.4rem 2.2rem;
}

.gallery-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-footer .footer-brand {
  font-family: 'Poiret One', serif;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-bright);
  margin-bottom: 0.8rem;
}

.gallery-footer .footer-brand span {
  color: var(--amber-light);
}

.gallery-footer h3 {
  font-family: 'Marcellus', serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.7rem;
}

.gallery-footer a {
  color: #cfd2e8;
  font-size: 0.92rem;
  text-decoration: none;
}

.gallery-footer a:hover {
  color: var(--amber-light);
}

.gallery-footer ul li {
  margin-bottom: 0.35rem;
}

.gallery-footer .footer-rule {
  border: 0;
  border-top: 1px solid rgba(217, 168, 67, 0.35);
  margin: 2rem 0 1.4rem;
}

.gallery-footer .footer-legal {
  font-size: 0.8rem;
  color: #9aa0c4;
  line-height: 1.7;
}

/* ---------- 404 ---------- */

.lost-cel {
  text-align: center;
  padding: 5rem 1.4rem 6rem;
}

.lost-cel .lost-code {
  font-family: 'Poiret One', serif;
  font-size: 6rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  line-height: 1;
}

.lost-cel h1 {
  font-family: 'Marcellus', serif;
  font-size: 1.9rem;
  margin: 1rem 0;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 768px) {
  .content h1 { font-size: 2rem; }
  .hero-placard { padding: 0.8rem 1.2rem; position: static; transform: none; margin: -1.6rem auto 0; }
  .hero-spacer { height: 1.6rem; }
  .hero-exhibit img { max-height: 320px; }
}

/* ---------- Helper classes (no inline styles) ---------- */

.footer-tagline {
  font-size: 0.9rem;
}

.wing-section {
  padding: 3rem 1.4rem;
}

.wing-container {
  max-width: 1100px;
}

.lost-cel .lost-actions {
  margin-top: 2rem;
}

.lost-cel .lost-link {
  text-decoration: none;
}

.lost-cel .lost-map {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.lost-cel .lost-map a {
  color: var(--amber);
}
