/* Stroud Common Music — simplified flat style */
:root{
  --bg:#0f4430;
  --card:#155090;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#34d399;
  --accent-2:#93c5fd;
  --border:#1f2937;
  --link:#a78bee;
  --link-hover:#c4b5ee;
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0;
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: bold;
  color: var(--text);
  background: linear-gradient(180deg, #0b1d4d, #32054d);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
  }
  .nav a {
    width: 100%;   /* each tile takes full width */
  }
}

img {
  max-width: 80%;
  height: auto;
  display: block;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

header {
  border-bottom: 1px solid var(--border);
  background: #310084;
  position: static; /* no sticky */
}


.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;   /* keeps aspect ratio */
  display: block;
}


h1,h2,h3{line-height:1.2;margin:0 0 12px}
h1{font-size: clamp(24px, 4vw, 36px)}
h2{font-size: clamp(20px, 3vw, 28px)}
p{margin:0 0 12px;color:var(--text)}

.nav {
  display: flex;
  flex-wrap: wrap;        /* allow wrapping */
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  max-width: 100%;        /* keep inside viewport */
  overflow-x: hidden;     /* force-disable horizontal scroll */
}

.nav a {
  flex: 1 1 0;            /* shrink aggressively if needed */
  min-width: 0;           /* <- IMPORTANT: lets Safari shrink */
  text-align: center;

  text-decoration: none;
  color: #000;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-weight: bold;

  box-sizing: border-box;
}

.nav a:hover {
  background: #eee;
}

.nav a.active {
  background: #ddd;
  border-color: #999;
}

/* Mobile fallback: stack vertically */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
  }
  .nav a {
    width: 100%;
  }
}


.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
}
@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
@media (max-width: 1024px){ .grid{ grid-template-columns: repeat(2,1fr) } }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr } }

.footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
  margin-top:40px;
  padding-top:14px;
}

.figure{
  width:100%; aspect-ratio: 16/9;
  border:1px solid var(--border);
  background: #0a0f1e;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
}

/* Artists list */
.artist-list{display:grid; grid-template-columns: repeat(2, 1fr); gap:18px}
@media (max-width: 900px){ .artist-list{ grid-template-columns: 1fr } }
.artist-card{
  display:grid; grid-template-columns: 120px 1fr; gap:16px;
  align-items:center;
  border:1px solid var(--border);
  padding:12px;
  background: var(--card);
}
.artist-card img{
  width:100%; height:100px; object-fit:cover; border:1px solid var(--border);
}
.artist-card b a{ color:var(--link); text-decoration:none }
.artist-card b a:hover{ color:var(--link-hover); text-decoration:underline }
.artist-meta{color:var(--muted); font-size:14px}

/* What's on */
.event{
  display:grid; grid-template-columns: 120px 1fr; gap:16px;
  border:1px solid var(--border);
  padding:12px;
  background: var(--card);
}
.event-date{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:1px solid var(--border);
  padding:8px; font-weight:700;
}
.event h3{margin:0}
.event .where{ color:var(--muted); font-size:14px }
