/* Alex Petcu: same look as the original site (grey page, white rounded boxes,
   navy links), rebuilt so it reflows on phones. Colours and fonts are set here. */

:root {
  --page: #c8c8c8;
  --box: #fff;
  --border: #aaa;
  --rule: #ccc;
  --text: #111;
  --muted: #555;
  --link: #000080;
  --link-hover: #c00;
  --tint: #e6e6f2;
  --radius: 10px;
  --font: Arial, Helvetica, sans-serif;
  --max: 1000px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.55 var(--font);
}

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--box); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Frame ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px;
}

.box {
  background: var(--box);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
}

/* Banner: the old header photo on the left, name set as text. */
.masthead {
  background: var(--box) url("/images/header-photo.jpg") left center / auto 100% no-repeat;
  height: 163px;
  overflow: hidden;
}
.masthead__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  padding: 0 7% 0 40%;
  color: #000;
}
.masthead__link:hover { color: #000; text-decoration: none; }
.masthead__name {
  font-size: 2.75rem;
  font-weight: bold;
  letter-spacing: -0.01em;
  align-self: center;
}
.masthead__tag {
  font-size: 1.75rem;
  font-style: italic;
}

/* ---------- Menu ---------- */

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 4px 8px;
  position: relative;
  z-index: 5;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-expanded="true"] {
  background: var(--tint);
  color: var(--link);
  text-decoration: none;
}
.nav__link[aria-current="page"], .nav__link.is-current { font-weight: bold; }
.nav__item--parent > .nav__link::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  vertical-align: middle;
}
.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  padding: 4px;
  background: var(--box);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.nav__sub a {
  display: block;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav__sub a:hover { background: var(--tint); color: var(--link); text-decoration: none; }
.nav__sub a[aria-current="page"] { font-weight: bold; }
.nav__item--parent > button[aria-expanded="true"] + .nav__sub { display: block; }
@media (hover: hover) and (min-width: 861px) {
  .nav__item--parent:hover > .nav__sub { display: block; }
}
.no-js .nav__item--parent:focus-within > .nav__sub { display: block; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

.social {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #333;
}
.social a:hover { background: var(--tint); color: var(--link); }
.icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Content ---------- */

.content {
  padding: 12px 24px 32px;
  min-height: 50vh;
}
.page-title {
  margin: 0 0 1.25rem;
  padding: 8px 0 8px;
  border-bottom: 2px solid var(--rule);
  font-size: 1.75rem;
}
.content > :last-child { margin-bottom: 0; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }

.lead { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--tint);
  font-weight: bold;
}
.button:hover { text-decoration: none; border-color: var(--link); }

/* Photo with a credit underneath, right-aligned like the original. */
.photo { margin: 0 0 1.25rem; }
.photo img { display: block; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.photo figcaption { margin-top: 4px; font-size: 0.8rem; color: var(--muted); text-align: right; }
.photo--right { float: right; width: 200px; margin: 0.25rem 0 1rem 1.5rem; }
.photo--center { max-width: 580px; margin-left: auto; margin-right: auto; }

.clear { clear: both; }

/* ---------- Home ---------- */

.home {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 28px;
}
.home__side {
  border-right: 2px solid var(--rule);
  padding-right: 20px;
  text-align: center;
}
.home__side h2 { font-size: 1.1rem; font-weight: normal; margin: 0.5rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--rule); }
.home__side .gigs { text-align: center; }
.home__side .gig { border: 0; padding: 0.5rem 0 1rem; }
.home__side .gig__image { display: block; margin: 0.5rem auto; max-height: 140px; width: auto; }
.home__side .gig__more { display: none; }
.home__side .photo { margin: 2rem auto 0; width: fit-content; }

.quotes { margin: 2.5rem auto 0; max-width: 40rem; }
.quote { margin: 0 0 2.25rem; text-align: center; }
.quote p { margin: 0 0 0.75rem; font-style: italic; }
.quote footer { font-size: 0.8rem; color: var(--muted); }

/* ---------- Concerts ---------- */

.gigs { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.gig { padding: 0.75rem 0; border-bottom: 1px solid #e3e3e3; }
.gig:last-child { border-bottom: 0; }
.gig__title { margin: 0; font-weight: bold; }
.gig__details { margin: 0.1rem 0 0; font-size: 0.925rem; }
.gig__more { margin-top: 0.25rem; font-size: 0.875rem; color: #333; }
.gig__more p { margin: 0; }
.gigs--archive .gig__title { font-weight: normal; }
.gigs--archive .gig__details { font-size: 0.85rem; color: #333; }
.year-heading { margin-top: 2.5rem; padding-bottom: 4px; border-bottom: 2px solid var(--rule); }
.archive h2 { margin-top: 2.5rem; padding-bottom: 4px; border-bottom: 2px solid var(--rule); }
.archive h3 { font-size: 0.95rem; font-style: italic; font-weight: normal; color: var(--muted); }

/* ---------- Cards (projects, recordings) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: block;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
}
.card:hover { border-color: var(--border); text-decoration: none; color: var(--text); }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.card span { display: block; padding: 0.6rem 0.75rem; font-weight: bold; color: var(--link); }
.card:hover span { color: var(--link-hover); }

/* ---------- Video ---------- */

.embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.25rem; background: #000; border-radius: 8px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; margin: 1.5rem 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 1rem 0 1.5rem;
}
.video-card { margin: 0; }
.video-card__thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #000; }
.video-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card__play {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 40px; margin: -20px 0 0 -28px;
  border-radius: 10px; background: rgba(0, 0, 0, 0.7);
}
.video-card__play::after {
  content: ""; position: absolute; left: 23px; top: 12px;
  border: 8px solid transparent; border-left: 13px solid #fff; border-right: 0;
}
.video-card__thumb:hover .video-card__play { background: #c00; }
.video-card figcaption { margin-top: 0.5rem; font-size: 0.9rem; }
.video-card figcaption strong, .video-card figcaption span { display: block; }
.video-card figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Recordings ---------- */

.album { display: grid; grid-template-columns: 260px 1fr; gap: 0 28px; align-items: start; }
.album__cover img { display: block; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.album__links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tracks { padding-left: 1.75rem; }
.tracks li { margin-bottom: 0.2rem; }

/* ---------- Works ---------- */

.work { padding: 0.5rem 0 1.5rem; border-bottom: 2px solid var(--rule); margin-bottom: 1rem; }
.work:last-child { border-bottom: 0; }
.work h2 { margin-top: 0.5rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; margin: 0 0 1rem; font-size: 0.95rem; }
.facts dt { font-weight: bold; }
.facts dd { margin: 0; }
.work__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 1rem; }
.work__media h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.score img { display: block; max-height: 260px; width: auto; border: 1px solid #ddd; border-radius: 4px; }

/* ---------- Photos ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; border-radius: 8px; overflow: hidden; background: #eee; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s; }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid figcaption { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.photo-grid figcaption strong { display: block; color: var(--text); }

/* ---------- Instruments ---------- */

.instrument-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; }
.instrument-nav a { display: block; padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 0.9rem; }
.instruments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.instrument { border: 1px solid #ddd; border-radius: 8px; padding: 12px; }
.instrument h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.instrument__details { font-size: 0.875rem; color: #333; }
.instrument__details p { margin: 0 0 0.35rem; }
.instrument__details ul { margin: 0 0 0.35rem; padding-left: 1.1rem; }
.instrument__images { margin-top: 8px; }
.instrument__images img { display: block; max-height: 150px; width: auto; max-width: 100%; border-radius: 4px; }
.instrument__images--many { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.instrument__images--many img { width: 100%; height: 90px; object-fit: contain; }

/* ---------- Musicians (Bangers and Crash) ---------- */

.musicians { list-style: none; margin: 0; padding: 0; }
.musician { display: grid; grid-template-columns: 140px 1fr; gap: 0 20px; padding: 1rem 0; border-bottom: 1px solid #e3e3e3; }
.musician:last-child { border-bottom: 0; }
.musician img { border-radius: 6px; }
.musician h3 { margin: 0 0 0.5rem; }
.musician p { margin: 0 0 0.75rem; font-size: 0.925rem; }

.gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.gallery a { flex: 1 1 200px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* ---------- Press pack ---------- */

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 32rem; }
.downloads a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
}
.downloads a:hover { border-color: var(--border); background: var(--tint); text-decoration: none; }
.downloads small { color: var(--muted); white-space: nowrap; }

/* ---------- Footer ---------- */

.footer { padding: 4px 12px; font-size: 0.875rem; }
.footer p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .js .nav__list { display: none; }
  .js .nav.is-open .nav__list { display: block; }
  .nav__list { flex-basis: 100%; order: 3; padding: 4px 0 8px; }
  .nav__link { width: 100%; text-align: left; padding: 10px 12px; font-size: 1rem; }
  .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 4px 16px; min-width: 0; }
  .no-js .nav__sub { display: block; }
  .nav__sub a { padding: 8px 12px; font-size: 1rem; white-space: normal; }
  .nav__item--parent > .nav__link::after { float: right; margin-top: 9px; }
}

@media (max-width: 700px) {
  .wrap { padding: 6px; }
  .masthead { height: 110px; }
  .masthead__link { padding: 0 16px 0 46%; align-items: flex-end; }
  .masthead__name { font-size: 1.75rem; align-self: flex-end; }
  .masthead__tag { font-size: 1.15rem; }
  .content { padding: 8px 16px 24px; }
  .page-title { font-size: 1.5rem; }

  .home { grid-template-columns: 1fr; }
  .home__main { order: 1; }
  .home__side { order: 2; border-right: 0; padding-right: 0; border-top: 2px solid var(--rule); margin-top: 1rem; padding-top: 1rem; }

  .album { grid-template-columns: 1fr; }
  .album__cover { max-width: 300px; margin-bottom: 1rem; }
  .photo--right { float: none; width: auto; max-width: 240px; margin: 0 auto 1rem; }
  .musician { grid-template-columns: 96px 1fr; gap: 0 14px; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 0.4rem; }
}

@media (max-width: 420px) {
  .masthead { height: 96px; }
  .masthead__link { padding-left: 42%; }
  .masthead__name { font-size: 1.45rem; }
  .masthead__tag { font-size: 1rem; }
  .social a { width: 30px; height: 30px; }
  .icon { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.home__sub { margin: 0.5rem 0 0; font-size: 0.85rem; font-weight: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
