/* Joshua Luke Bray — light editorial.
   Paper and ink with one accent: the deep green of Valletta's painted balconies.
   Bodoni Moda carries the voice; Hanken Grotesk does the reading. */

:root {
  --paper: #fafaf7;
  --ink: #1c1b19;
  --muted: #5e5b55;
  --rule: #dddad3;
  --green: #24513f;
  --green-soft: #e3ebe6;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.01em; }
h3 { font-size: 24px; line-height: 1.2; }

/* ---------- Header ---------- */

.site-head {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between;
}
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; }
.site-head ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-head nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
.site-head nav a:hover { text-decoration: underline; }
.nav-book { color: var(--green); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font: 600 16px/1 var(--body);
  background: var(--green); color: #fff; border: 0; border-radius: 2px;
  padding: 15px 24px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 500; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero-name {
  font-size: clamp(64px, 12.4vw, 176px);
  line-height: 0.86; letter-spacing: -0.025em; font-weight: 500;
  font-variation-settings: "opsz" 96;
}
/* The name steps across the page like a phrase walking up the neck. */
.hero-name span { display: block; }
.hero-name span:nth-child(2) { padding-left: 0.42em; }
.hero-name span:nth-child(3) { padding-left: 0.84em; }

.hero-line { font-size: clamp(19px, 1.8vw, 23px); max-width: 30ch; margin: 36px 0 28px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 0; }

.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }

/* ---------- Section scaffolding ---------- */

.shows, .about, .bands, .rooms, .book {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter) 0;
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(24px, 4vw, 64px);
  align-items: end; margin-bottom: clamp(28px, 4vw, 48px);
}
.section-note { margin: 0; color: var(--muted); max-width: 40ch; }

/* ---------- Shows ---------- */

.gig-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.gig {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 8px 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.gig-date { display: flex; align-items: baseline; gap: 10px; }
.gig-day { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.gig-month { font-size: 15px; line-height: 1.25; color: var(--muted); }
.gig-venue { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.gig-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.gig-link { font-weight: 600; color: var(--green); white-space: nowrap; }
.gig-empty { padding: 28px 0; color: var(--muted); border-bottom: 1px solid var(--rule); }

.regulars { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(24px, 4vw, 64px); }
.regulars h3 { grid-column: 1 / -1; }
.regulars ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.regulars li { border-top: 1px solid var(--rule); padding-top: 12px; }
.regulars strong { display: block; font-weight: 600; }
.regulars span { color: var(--muted); font-size: 15px; }

/* ---------- Full-bleed photograph ---------- */

.band-photo { margin-top: clamp(64px, 9vw, 128px); }
.band-photo img { width: 100%; height: clamp(280px, 52vw, 640px); object-fit: cover; object-position: 50% 45%; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about h2 { margin-bottom: 28px; }
.about-text p { max-width: 62ch; margin: 0 0 1.1em; }
.about-text .lead { font-family: var(--display); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.4; }
.about-photo { margin-top: clamp(0px, 8vw, 104px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; }

/* ---------- Bands ---------- */

.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.band { border-top: 2px solid var(--ink); padding-top: 16px; }
.band h3 { margin-bottom: 10px; }
.band p { margin: 0; color: var(--muted); max-width: 40ch; }
.band a { color: var(--green); }
.also { margin: 40px 0 0; color: var(--muted); }

/* ---------- Where he's played ---------- */

.room-wall {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3.5vw, 46px); line-height: 1.24; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.room-wall span { white-space: nowrap; margin-right: 0.32em; }
.room-wall span:nth-child(even) { font-style: italic; color: var(--green); }

/* ---------- Booking ---------- */

.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(64px, 9vw, 128px); }
.book-intro p { max-width: 44ch; margin: 24px 0 32px; }
.book-photo img { width: 100%; filter: grayscale(1); }

.book-form { background: #fff; border: 1px solid var(--rule); padding: clamp(20px, 3vw, 40px); align-self: start; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.book-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; font: 17px/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid #b9b5ac; border-radius: 2px; padding: 11px 12px;
}
.book-form textarea { resize: vertical; min-height: 140px; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.book-form [aria-invalid="true"] { border-color: #9b2c1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; min-height: 1.6em; font-weight: 500; }
.form-status.is-error { color: #9b2c1f; }
.form-status.is-ok { color: var(--green); }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--rule); }
.site-foot p { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); color: var(--muted); font-size: 15px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero, .section-head, .about, .book { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .about-photo { margin-top: 0; max-width: 560px; }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .hero-name { font-size: 24vw; }
  .gig { grid-template-columns: 76px minmax(0, 1fr); padding: 18px 0; }
  .gig-day { font-size: 38px; }
  .gig-date { flex-direction: column; gap: 2px; }
  .gig-link { grid-column: 2; }
  .regulars ul, .band-grid, .field-row { grid-template-columns: 1fr; }
  .room-wall span { white-space: normal; }
}
