/* Public pages: a musician's shows, one show, and the site pages. A musician's own colors and
   font arrive through /@handle/theme.css as the --brand-* variables. */

@font-face {
  font-family: "Poster Bold";
  src: url("/static/fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Poster Tall";
  src: url("/static/fonts/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Poster Classic";
  src: url("/static/fonts/AbrilFatface-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Poster Hand";
  src: url("/static/fonts/PermanentMarker-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --ink: #1f1d1a;
  --muted: #5f5a52;
  --line: #ddd5c8;
  --card: #ffffff;
  --brand-panel: #1f1d1a;
  --brand-on-panel: #ffffff;
  --brand-accent: #b4462f;
  --brand-font: "Poster Bold", system-ui, sans-serif;
  --brand-transform: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--brand-accent);
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main.wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.artist-header {
  background: var(--brand-panel);
  color: var(--brand-on-panel);
}

.artist-header .wrap {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.artist-header h1 {
  margin: 0;
  font-size: inherit;
}

.artist-header .name {
  display: block;
  font-family: var(--brand-font);
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1.1;
  text-transform: var(--brand-transform);
  overflow-wrap: anywhere;
}

.artist-header .home {
  color: inherit;
  text-decoration: none;
}

.artist-header .logo {
  display: block;
  max-width: min(18rem, 100%);
  max-height: 6rem;
}

h2 {
  font-family: var(--brand-font);
  text-transform: var(--brand-transform);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.shows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.show-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.show-link img {
  display: block;
  width: 100%;
  height: auto;
}

.show-link .when,
.show-link .title,
.show-link .where {
  padding: 0 0.9rem;
}

.show-link .when {
  padding-top: 0.75rem;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.show-link .title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
}

.show-link .where {
  padding-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.show-link:hover .title,
.show-link:focus-visible .title {
  text-decoration: underline;
}

.empty,
.subscribe {
  color: var(--muted);
}

.subscribe {
  margin-top: 1.5rem;
}

.event {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 44rem) {
  .event {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.event .poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.details h1 {
  margin: 0 0 0.5rem;
  font-family: var(--brand-font);
  text-transform: var(--brand-transform);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.details p {
  margin: 0 0 0.6rem;
}

.details .when {
  color: var(--brand-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.details .where {
  font-size: 1.1rem;
  font-weight: 600;
}

.details .past {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.8rem 1.4rem;
  border-radius: 0.6rem;
  background: var(--brand-panel);
  color: var(--brand-on-panel);
  font-weight: 700;
  text-decoration: none;
}

.add-to,
.more {
  font-size: 0.95rem;
}

.prose {
  max-width: 40rem;
}

.prose h1 {
  font-size: 1.9rem;
  line-height: 1.2;
}

.prose h2 {
  font-family: inherit;
  text-transform: none;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: inherit;
}

.prose .lede { font-size: 1.15rem; margin-top: -0.5rem; }
