/* Joy Street: the tartan look, shared by every page.
   Linked LAST in each page's <head>, so it wins over the page's own styles.
   Each page also has <div class="tartan-bg"></div> straight after <body>.

   How it works: every page already colours its words with var(--ink) and its
   paper with var(--bg). Swapping those two turns dark red writing on cream
   into cream writing on the tartan, without rewriting each page. The few
   colours a page sets by hand are fixed further down. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');

/* ONE TYPEFACE: everything in Playfair Display, upright, no italics. */
*, *::before, *::after {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: normal !important;
}
svg text { font-family: 'Playfair Display', Georgia, serif !important; }

:root {
  --ink: #f5eee4;
  --ink-light: rgba(245,238,228,0.7);
  --ink-faint: rgba(245,238,228,0.28);
  --ink-soft: rgba(245,238,228,0.82);
  --ink-hair: rgba(245,238,228,0.18);
  --faint: rgba(245,238,228,0.28);
  --bg: #5a1212;
  --cream: #f5eee4;
}

html { background: #6e3a3a; }

body {
  background: transparent !important;
  color: #f5eee4;
  text-shadow: 0 1px 3px rgba(30,8,8,0.55);
}

/* The tartan, pinned to the window so it isn't stretched down long pages,
   with a soft dark wash so cream writing stays easy to read. */
.tartan-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(40,12,14,0.38), rgba(40,12,14,0.38)),
    url("uploads/subscribe-tartan.webp") center / cover no-repeat;
}

/* Buttons and boxes filled with cream need no shadow on their writing. */
button, input, select, textarea, .btn, .submit-btn { text-shadow: none; }

/* Form fields: cream lines and cream writing. */
input, select, textarea {
  color: #f5eee4;
  border-color: rgba(245,238,228,0.45);
}
input::placeholder, textarea::placeholder { color: rgba(245,238,228,0.6) !important; }
select { color: #f5eee4 !important; }
select option { color: #5a1212; }

/* MENU: the shared menu writes in dark red, which vanishes on tartan. */
@media (min-width: 721px) {
  .site-nav-list > li > a { color: #f5eee4; }
  /* It stays pinned to the top elsewhere; here it scrolls away so cream
     words never slide over cream writing. */
  nav.site-nav { position: absolute; }
}

/* LOGO: the logo picture is dark red; this turns it cream on the tartan. */
img[src*="Joy Street Logo"] {
  filter: brightness(0) invert(94%) sepia(12%) saturate(300%) hue-rotate(340deg)
          drop-shadow(0 1px 3px rgba(30,8,8,0.5));
}

/* FOOTER */
footer.site-footer { color: #f5eee4; }
footer.site-footer::before { background: #f5eee4; }
footer.site-footer .foot-link { text-decoration-color: rgba(245,238,228,0.35); }
