/* ============================================================
   barnettbass.co.uk — shared styles
   Dark / brass. Edit colours in :root below.
   ============================================================ */

:root {
  --bg: #17130f;
  --bg-soft: #211a14;
  --card: #251d16;
  --line: #3a2e23;
  --text: #f2e7db;
  --muted: #b6a390;
  --accent: #c9a15a;   /* brass / warm wood */
  --accent-soft: #e2c48a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a2118 0%, rgba(42,33,24,0) 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- Ambient background: two wandering stage-light pools + film grain.
       Pools move on different paths/speeds so the motion reads. ---- */
html::before {
  /* warm brass pool */
  content: "";
  position: fixed;
  top: -20vh; left: -10vw;
  width: 90vw; height: 90vh;
  min-width: 560px; min-height: 560px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 161, 90, .20), transparent 72%);
  animation: pool-warm 17s ease-in-out infinite alternate;
  will-change: transform;
}

html::after {
  /* cool blue pool */
  content: "";
  position: fixed;
  bottom: -25vh; right: -15vw;
  width: 100vw; height: 100vh;
  min-width: 620px; min-height: 620px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(88, 108, 180, .16), transparent 72%);
  animation: pool-cool 23s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes pool-warm {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  55%  { transform: translate3d(28vw, 14vh, 0) scale(1.15); }
  100% { transform: translate3d(45vw, 4vh, 0) scale(.9); }
}

@keyframes pool-cool {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  45%  { transform: translate3d(-24vw, -18vh, 0) scale(1.2); }
  100% { transform: translate3d(-42vw, -6vh, 0) scale(1); }
}

body::after {
  /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html::before, html::after { animation: none; }
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
nav a:hover { color: var(--accent-soft); }
nav a.active {
  color: var(--accent-soft);
  border-color: var(--line);
  background: var(--card);
}

/* ---- Header / hero ---- */
header.hero { text-align: center; }

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2f251b, #191410);
  border: 2px solid var(--accent);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 60px rgba(201,161,90,.12);
  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  color: var(--accent-soft);
  letter-spacing: 1px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3rem);
  margin: 0 0 6px;
  letter-spacing: .5px;
}

.tagline {
  color: var(--accent-soft);
  font-size: .95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.bio {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
  font-size: .98rem;
}

/* ---- Page title (inner pages) ---- */
.page-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 0 0 6px;
  text-align: center;
}
.page-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 auto 8px;
  max-width: 50ch;
}

/* ---- Sections ---- */
section { margin-top: 44px; }

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---- Cards (what I do) ---- */
.cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  display: block;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .ico { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* Mute emoji icons into the brass palette so they sit with the design */
.card .ico, .link .ico {
  filter: grayscale(1) sepia(.9) saturate(1.4) hue-rotate(-8deg) brightness(1.05);
  opacity: .9;
}
.card h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---- Links list ---- */
.links { display: grid; gap: 12px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #2b2118;
}
.link .ico { font-size: 1.3rem; width: 26px; text-align: center; }
.link .label { font-weight: 500; }
.link .sub { color: var(--muted); font-size: .8rem; display: block; margin-top: 1px; font-weight: 400; }
.link .arrow { margin-left: auto; color: var(--muted); }

/* ---- Events ---- */
.events { display: grid; gap: 12px; }

.event {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
}
.event .date { text-align: center; min-width: 52px; line-height: 1.1; }
.event .date .day { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; color: var(--accent-soft); }
.event .date .mon { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.event .body { flex: 1; }
.event .title { font-weight: 600; }
.event .meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.event a.tickets {
  color: var(--accent-soft);
  font-size: .85rem;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.event a.tickets:hover { border-color: var(--accent); }

.empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 18px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
}

/* ---- Media page ---- */
.videos { display: grid; gap: 20px; }
.video {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video .frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.video .frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video .caption { padding: 12px 16px; color: var(--muted); font-size: .9rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

/* ---- Prose (about page) ---- */
.prose { color: var(--text); }
.prose p { color: var(--muted); margin: 0 0 14px; }
.prose strong { color: var(--text); }
.prose ul { color: var(--muted); margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---- Dep sheet / fact table ---- */
.facts {
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.fact:last-child { border-bottom: 0; }
.fact .k {
  color: var(--accent-soft);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-top: 2px;
}
.fact .v { color: var(--text); }
.fact .v small { color: var(--muted); display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .5px;
  transition: background .12s ease, transform .12s ease;
}
.btn:hover { background: rgba(201,161,90,.1); transform: translateY(-1px); }
.center { text-align: center; }

/* ---- Footer ---- */
footer {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}
footer a { color: var(--muted); }
