/* =========================================================
   Lisa Out Loud — shared styles for every page
   Colors come from the original lisasullivan.net palette.
   All text/background pairs meet WCAG AA contrast (4.5:1+).
   ========================================================= */

:root {
  --cream: #F5EFE4;      /* page background */
  --sand: #DBCCB5;       /* soft panels / borders */
  --ink: #2C1F1E;        /* main text (≈15:1 on cream) */
  --brown: #50312F;      /* headings, header bar (≈10:1 on cream) */
  --gold: #C9973A;       /* accents on dark backgrounds only */
  --teal: #1A3F4B;       /* links (≈10:1 on cream) */
  --red: #8E1B22;        /* Love Street accent (≈8:1 on cream) */
  --white: #FFFFFF;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Alice", Georgia, "Times New Roman", serif;
  --font-script: "Sacramento", cursive;

  --max: 70rem;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px base for easy reading */
  line-height: 1.65;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brown); }

/* Clear, high-visibility keyboard focus on everything */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: bold;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.2;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2.5rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; max-width: 65ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header & navigation ---------- */
.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand span { color: var(--gold); }
.brand:hover { color: var(--white); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.site-nav a {
  display: block;
  padding: .55rem .85rem;          /* large tap targets (44px+) */
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.05rem;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
  font-weight: bold;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brown), var(--ink));
  color: var(--cream);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 { color: var(--cream); margin-bottom: .5rem; }
.hero .script {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--gold);
  line-height: 1.1;
  margin: 0 auto .75rem;
}
.hero p { margin-left: auto; margin-right: auto; font-size: 1.2rem; }
.hero.lovestreet { background: linear-gradient(135deg, #5a1015, var(--ink)); }
.hero.justcuz { background: linear-gradient(135deg, var(--teal), var(--ink)); }

main { padding-bottom: 3rem; }
main:focus { outline: none; }

/* ---------- Act cards (home page) ---------- */
.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.act-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-top: 6px solid var(--brown);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.act-card.justcuz { border-top-color: var(--teal); }
.act-card.lovestreet { border-top-color: var(--red); }
.act-photo {
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
}
.act-photo.top { object-position: center 15%; }
.act-card { overflow: hidden; }
.act-card .tag {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown);
  margin-bottom: .25rem;
}
.act-card p { flex: 1; }
.act-card p.tag { flex: 0 0 auto; }
.act-card .btn { align-self: flex-start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: .75rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--brown);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.outline { background: transparent; color: var(--brown); }
.btn.outline:hover { background: var(--brown); color: var(--white); }
.btn.on-dark { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.on-dark:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }

/* ---------- Two-column feature (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}
.feature > * { min-width: 0; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
.feature img, figure img { border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: 1rem; color: var(--brown); margin-top: .5rem; }

/* ---------- Band members ---------- */
.members {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1.25rem;
}
.members li {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}
.members img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.members .photo-placeholder {
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5a1015, var(--ink));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
}
.members .who { padding: .9rem 1rem 1rem; }
.members .name { font-family: var(--font-display); font-weight: 700; color: var(--brown); font-size: 1.2rem; }
.members .role { font-size: 1rem; }

/* ---------- Video embeds ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 50rem;
  margin-top: 1rem;
}
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Shows table ---------- */
.shows-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.shows-table caption {
  text-align: left;
  font-size: 1rem;
  padding-bottom: .5rem;
  color: var(--brown);
}
.shows-table th, .shows-table td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--sand);
  vertical-align: top;
}
.shows-table thead th { background: var(--brown); color: var(--white); }
.act-label {
  display: inline-block;
  font-size: .9rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--brown);
  color: var(--white);
  white-space: nowrap;
}
.act-label.justcuz { background: var(--teal); }
.act-label.lovestreet, .act-label.lovestreetduo { background: var(--red); }

/* On phones, each row becomes a stacked card (labels stay readable) */
@media (max-width: 40rem) {
  .shows-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shows-table, .shows-table tbody, .shows-table tr, .shows-table td { display: block; width: 100%; }
  .shows-table caption { display: block; padding: .75rem 1rem .25rem; }
  .shows-table tr { border-bottom: 3px solid var(--sand); padding: .5rem 0; }
  .shows-table td { border: 0; padding: .3rem 1rem; }
  .shows-table td::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: var(--brown);
  }
}
.no-shows { font-style: italic; }

/* ---------- Notice / placeholder box ---------- */
.notice {
  background: var(--white);
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

/* ---------- Contact blocks ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: bold; color: var(--brown); margin-top: .5rem; }
.contact-card dd { margin: 0; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 0;
  border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin: .35rem 0; }
.footer-inner h2 { color: var(--gold); font-size: 1.15rem; margin: 0 0 .5rem; }
.social { display: flex; gap: .75rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { margin-top: 1.5rem; font-size: .95rem; }

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
}
