/* ============================================================
   jjwfan.com — "Viva Terlingua" design system
   Pure CSS. One stylesheet linked from every page.
   Inspired by the 1973 ¡Viva Terlingua! album cover:
   weathered wood, a pinned Luckenbach handbill, a red sash.
   ============================================================ */

:root {
  /* Wood tones */
  --wood-base: #8a7a68;
  /* Handbill paper */
  --paper-hero: #f1e6c8;
  --paper-card: #ede1c3;
  --paper-mini: #f3ead0;
  /* Ink / text */
  --ink: #1a1a1a;
  --ink-2: #2b1f15;
  --ink-muted: #4a3525;
  /* Sash red */
  --red: #b8312a;
  --red-hi: #c43830;
  --red-lo: #7a1d16;
  /* Cream accent */
  --cream: #f4ead5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Special Elite', 'Courier New', monospace;
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--wood-base);
  /* Weathered vertical wood planks via layered gradients (no images) */
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 78px,
      rgba(0,0,0,0.4) 78px,
      rgba(0,0,0,0.4) 80px,
      transparent 80px,
      transparent 82px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      90deg,
      #9a8978 0,   #9a8978 80px,
      #7d6c5a 80px, #7d6c5a 160px,
      #8a7868 160px,#8a7868 240px,
      #756352 240px,#756352 320px,
      #957f6b 320px,#957f6b 400px
    );
  overflow-x: hidden;
}

a { color: var(--red-lo); }

/* ------------------------------------------------------------
   Red sash banner across the top
   ------------------------------------------------------------ */
.vt-sash {
  position: relative;
  background: var(--red);
  background-image: linear-gradient(180deg, var(--red-hi) 0%, #a8281f 100%);
  transform: rotate(-1.8deg);
  margin: 36px -40px 0;
  padding: 18px 60px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 0 50px rgba(0,0,0,0.2),
    inset 0 -3px 0 rgba(0,0,0,0.25);
  border-top: 2px solid #d4453d;
  border-bottom: 2px solid var(--red-lo);
}
.vt-sash::before,
.vt-sash::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  background: rgba(0,0,0,0.35);
}
.vt-sash::before { left: 0;  clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.vt-sash::after  { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }

.vt-sash-text {
  font-family: 'Caveat', cursive;
  font-size: 54px;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
  letter-spacing: 2px;
  transform: rotate(-0.5deg);
  text-shadow: 2px 3px 0 rgba(0,0,0,0.5);
  line-height: 1;
  font-weight: 700;
  margin: 0;
}
.vt-sash-text a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------
   Inner-page logo — pinned just below the sash
   ------------------------------------------------------------ */
.vt-logo-link {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  transform: rotate(-1deg);
}
.vt-logo {
  display: block;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
}

/* ------------------------------------------------------------
   Navigation — a row of paper tags/stamps pinned to the wood
   ------------------------------------------------------------ */
.vt-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px auto 0;
  max-width: 1000px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  list-style: none;
}
.vt-nav a {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--ink-2);
  background: #efe4cb;
  padding: 8px 18px;
  text-decoration: none;
  border: 1px solid var(--ink-2);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  transition: transform 0.15s;
  transform: rotate(-0.5deg);
}
.vt-nav a:nth-child(even) { transform: rotate(0.7deg); }
.vt-nav a:nth-child(3n)   { transform: rotate(-0.3deg); }
.vt-nav a:hover { transform: translateY(-2px) rotate(0deg); }
.vt-nav a[aria-current="page"] {
  background: var(--red);
  color: var(--cream);
  border-color: var(--ink);
}

/* ------------------------------------------------------------
   The hero flyer — the Luckenbach handbill centerpiece
   ------------------------------------------------------------ */
.vt-flyer {
  background: var(--paper-hero);
  background-image:
    radial-gradient(ellipse at top left, rgba(0,0,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(120,80,40,0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(160,100,40,0.18), transparent 6%),
    radial-gradient(circle at 75% 25%, rgba(140,80,30,0.12), transparent 5%),
    radial-gradient(circle at 90% 70%, rgba(100,60,20,0.10), transparent 4%);
  max-width: 580px;
  margin: 48px auto 0;
  padding: 40px 44px 36px;
  position: relative;
  transform: rotate(-1.2deg);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.45),
    0 4px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(0,0,0,0.1);
}
/* red push-pin */
.vt-flyer::before {
  content: '';
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: radial-gradient(circle at 35% 35%, #e85548, var(--red-lo));
  border-radius: 50%;
  box-shadow: 0 4px 5px rgba(0,0,0,0.5);
  z-index: 3;
}
.vt-flyer-logo {
  display: block;
  height: auto;
  max-width: 260px;
  margin: 0 auto 14px;
}
.vt-flyer-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}
.vt-flyer-sub {
  text-align: center;
  font-size: 13px;
  letter-spacing: 5px;
  margin: 10px 0 22px;
  color: #3a2a1c;
}
.vt-flyer-divider,
.vt-card hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 22px 0;
}
.vt-flyer-main {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 8px;
}
.vt-flyer-loc {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  text-align: center;
  margin: 6px 0 18px;
  color: var(--ink-2);
}
.vt-flyer-date {
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 0;
}
.vt-flyer-memorial {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  margin: 26px 0 10px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.vt-flyer-dates {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  margin: 10px 0 0;
}

/* ------------------------------------------------------------
   Three section "handbills" pinned below the hero
   ------------------------------------------------------------ */
.vt-handbills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 64px auto 40px;
  padding: 0 32px;
}
.vt-handbill {
  background: var(--paper-card);
  background-image:
    radial-gradient(ellipse at top, rgba(0,0,0,0.06), transparent 70%),
    radial-gradient(circle at 80% 90%, rgba(140,80,30,0.14), transparent 30%),
    radial-gradient(circle at 15% 15%, rgba(120,70,20,0.08), transparent 20%);
  padding: 24px 24px 26px;
  position: relative;
  box-shadow: 0 10px 22px rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.vt-handbill:nth-child(1) { transform: rotate(-2deg); }
.vt-handbill:nth-child(2) { transform: rotate(1.2deg); margin-top: 12px; }
.vt-handbill:nth-child(3) { transform: rotate(-0.8deg); }
/* dark push-pin */
.vt-handbill::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 35%, #5a4530, #1a1108);
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0,0,0,0.5);
}
.vt-handbill h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 1.5px;
  margin: 4px 0 14px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}
.vt-handbill img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  border: 1px solid rgba(0,0,0,0.25);
  filter: sepia(0.15);
}
.vt-handbill p {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--ink-2);
}
.vt-handbill .cta { margin-top: auto; }

/* ------------------------------------------------------------
   CTA buttons — red, with an offset drop shadow (match the sash)
   ------------------------------------------------------------ */
.cta {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--cream);
  background: var(--red);
  padding: 7px 16px;
  text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  align-self: flex-start;
}
.cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }

/* ------------------------------------------------------------
   Flat content card — inner pages (tables, galleries, long-form)
   Sits nearly flat so content stays comfortable to read.
   ------------------------------------------------------------ */
.vt-card {
  display: block;
  background: var(--paper-hero);
  background-image:
    radial-gradient(ellipse at top left, rgba(0,0,0,0.05), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(120,80,40,0.12), transparent 50%),
    radial-gradient(circle at 12% 88%, rgba(160,100,40,0.10), transparent 5%),
    radial-gradient(circle at 88% 18%, rgba(140,80,30,0.08), transparent 4%);
  max-width: 1040px;
  margin: 44px auto 40px;
  padding: 38px 44px 40px;
  position: relative;
  transform: rotate(0.2deg);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.42),
    0 4px 8px rgba(0,0,0,0.28);
  border: 1px solid rgba(0,0,0,0.1);
}
.vt-card.flat { transform: none; }
.vt-card.narrow { max-width: 760px; }
/* dark push-pins, top corners */
.vt-card::before,
.vt-card::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 35%, #5a4530, #1a1108);
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0,0,0,0.5);
}
.vt-card::before { left: 38px; }
.vt-card::after  { right: 38px; }

.vt-card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 6px;
  color: var(--ink);
}
.vt-card-note {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 640px;
}
.vt-card hr.vt-card-rule {
  border: none;
  border-top: 3px double var(--ink);
  width: 240px;
  max-width: 60%;
  margin: 18px auto 26px;
}
.vt-card p { line-height: 1.7; color: var(--ink-2); }
.vt-card h4, .vt-card h5, .vt-card h6 { color: var(--ink); }
.vt-card img { max-width: 100%; height: auto; }
.vt-card-banner { text-align: center; margin: 0 0 6px; }
.vt-card-banner img { border: 3px solid #fff8e8; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }

/* ------------------------------------------------------------
   Lightweight responsive grid (replaces skeleton columns)
   ------------------------------------------------------------ */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  margin: 0 0 26px;
}
.row .column        { flex: 1 1 260px; }
.row .one-third     { flex: 1 1 260px; max-width: 300px; }
.row .one-half      { flex: 1 1 320px; max-width: 440px; }
.row .two-thirds    { flex: 2 1 380px; }
.twelve.columns     { width: 100%; }

/* ------------------------------------------------------------
   Photo / memorabilia / article galleries — pinned snapshots
   ------------------------------------------------------------ */
.feature {
  background: var(--paper-mini);
  padding: 14px 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  text-align: center;
}
.row .feature:nth-child(odd)  { transform: rotate(-0.7deg); }
.row .feature:nth-child(even) { transform: rotate(0.8deg); }
.feature img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 0 auto 8px;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.feature p {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
/* Hide empty layout-spacer cells (no image and no link) so they
   don't show as blank paper boxes. Newsletter columns have links, so kept. */
.feature:not(:has(img)):not(:has(a)) { display: none; }

/* ------------------------------------------------------------
   Guitars page — image + description rows
   ------------------------------------------------------------ */
h6.guitars {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--ink);
}
p.guitars {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.row .two-thirds.column img,
.row .one-third.column img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------
   Discography / tablature tables
   ------------------------------------------------------------ */
.table-scroll { width: 100%; overflow-x: auto; }

.vt-card table {
  border-collapse: collapse;
  margin: 0 auto;
  background: rgba(255,255,255,0.18);
}
tr.discohead th {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  padding: 10px 14px;
  border: 1px solid var(--ink);
}
tr.disco td {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  vertical-align: middle;
}
tr.disco:nth-child(even) td { background: rgba(120,80,40,0.06); }
tr.disco td a { color: var(--ink); font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--red); }
tr.disco td a:hover { color: var(--red-lo); }

/* Streaming buttons */
.spotify-btn, .apple-btn {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 4px 10px;
  margin: 2px 3px;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  white-space: nowrap;
}
/* scoped above tr.disco td a so the button text colors win */
tr.disco td a.spotify-btn,
tr.disco td a.apple-btn { font-weight: normal; border-bottom: 1px solid var(--ink); }
tr.disco td a.spotify-btn { background: #1db954; color: #06210f; }
tr.disco td a.apple-btn   { background: #fa243c; color: #fff; }
.spotify-btn:hover, .apple-btn:hover { transform: translate(-1px,-1px); }

/* Songtitles discography table */
table.songtitles { border-collapse: separate; border-spacing: 0; margin: 0 auto; }
table.songtitles > tbody > tr > td,
table.songtitles > tr > td {
  vertical-align: top;
  padding: 18px 16px;
  border-bottom: 2px solid rgba(0,0,0,0.18);
}
table.songtitles img {
  max-width: 200px;
  height: auto;
  border: 3px solid #fff8e8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
p.albumtitle {
  margin: 0 0 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
p.albumtitle a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
/* album anchors: keep a little breathing room when jumped to */
p.albumtitle a[id] { scroll-margin-top: 20px; }
table.songtitles ol { font-family: 'Special Elite', monospace; font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0 0 6px; padding-left: 26px; }
table.songtitles ol a { color: var(--ink); border-bottom: 1px solid var(--red); text-decoration: none; }
table.songtitles ol a:hover { color: var(--red-lo); }

/* ------------------------------------------------------------
   Search form (preserve name="q" / name="sitesearch")
   ------------------------------------------------------------ */
.vt-search { text-align: center; margin: 8px 0 4px; }
.vt-search input[type="text"] {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  padding: 9px 12px;
  width: 280px;
  max-width: 80%;
  color: var(--ink);
  background: #fff8e8;
  border: 1px solid var(--ink-2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.vt-search input[type="submit"] {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--cream);
  background: var(--red);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  padding: 9px 18px;
  margin-left: 8px;
  cursor: pointer;
}
.vt-search input[type="submit"]:hover { transform: translate(-1px,-1px); }

/* Newsletter PDF link lists */
.vt-card .one-half .row p { margin: 0 0 6px; }
.vt-card .one-half a {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--red);
  text-decoration: none;
}
.vt-card .one-half a:hover { color: var(--red-lo); }

/* ------------------------------------------------------------
   404 page
   ------------------------------------------------------------ */
.vt-404 { text-align: center; }
.vt-404 img { max-width: 100%; height: auto; border: 3px solid #fff8e8; box-shadow: 0 6px 16px rgba(0,0,0,0.4); margin: 6px 0 14px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.vt-footer {
  text-align: center;
  margin: 30px 0 44px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: #efe4cb;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.vt-footer a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(244,234,213,0.5); }
.vt-footer a:hover { border-bottom-color: var(--cream); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 820px) {
  .vt-handbills { grid-template-columns: 1fr; max-width: 520px; }
  .vt-handbill:nth-child(2) { margin-top: 0; }
  .vt-card { padding: 30px 22px 32px; }
  .vt-card-title { font-size: 26px; }
}
@media (max-width: 720px) {
  .vt-sash-text { font-size: 38px; }
  .vt-flyer { padding: 28px 24px; }
  .vt-flyer-title { font-size: 32px; }
  .row .one-third, .row .one-half { max-width: 100%; }
}
