/* ==========================================================================
   Ukes of the Rock — stylesheet
   Palette taken from the badge: deep navy, saltire blue, thistle purple,
   tartan green, warm cream. No frameworks, no build step, no webfonts
   (system fonts keep it fast and offline-friendly).
   ========================================================================== */

:root {
  --navy:      #16233d;
  --navy-2:    #1e2f52;
  --blue:      #2f5fa8;
  --blue-light:#5b8bd0;
  --purple:    #6d4a8f;
  --green:     #2f5d3a;
  --cream:     #f6f2e7;
  --cream-2:   #efe9da;
  --ink:       #1c1c22;
  --ink-soft:  #4a4a55;
  --gold:      #c9a227;

  --wrap: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 61, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 35, 61, .97);
  color: #fff;
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; margin-right: auto;
}
.brand-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.brandmark {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
/* Author `display` beats the UA's [hidden] rule, so state it explicitly.
   Without this the fallback mark shows even when the logo loads fine. */
.brandmark[hidden] { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: .2px; }
.brand-text span { font-size: 12.5px; opacity: .8; text-transform: uppercase; letter-spacing: 1.2px; }

.site-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-header nav a {
  color: #e9edf6; text-decoration: none;
  padding: 8px 12px; border-radius: 8px; font-size: 15px;
}
.site-header nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--blue-light) !important; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  /* Photograph generated locally with ComfyUI (Juggernaut XL), deliberately
     free of text and people — see comfy-hero.py. The dark overlay on top is
     what keeps the headline readable, so do not remove it without re-checking
     contrast. Mobile gets a smaller file via media query below. */
  background:
    linear-gradient(180deg, rgba(13,21,38,.80) 0%, rgba(16,28,52,.68) 50%, rgba(22,35,61,.90) 100%),
    radial-gradient(1100px 420px at 15% -10%, rgba(109,74,143,.30), transparent 60%),
    url("assets/hero.jpg") center 32% / cover no-repeat,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 74px 0 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero { background:
    linear-gradient(180deg, rgba(13,21,38,.82) 0%, rgba(16,28,52,.70) 50%, rgba(22,35,61,.92) 100%),
    url("assets/hero-mobile.jpg") center 32% / cover no-repeat,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
}
/* subtle tartan-ish weave, pure CSS so there is no image to load */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, rgba(201,162,39,.5) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.4px; font-size: 12.5px;
  color: var(--gold); margin: 0 0 14px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08; margin: 0 0 18px; letter-spacing: -.5px;
}
.lede { font-size: clamp(1.02rem, 2.1vw, 1.22rem); max-width: 46ch; color: #dbe3f2; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }

.btn {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 2px solid var(--blue);
  transition: transform .12s ease, background .18s ease;
}
.btn:hover { background: var(--blue-light); border-color: var(--blue-light); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-small { padding: 10px 18px; font-size: 15px; }

.facts {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.facts li {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.facts strong { display: block; font-size: 16px; }
.facts span { font-size: 14px; color: #c8d3e8; }

/* ---------------------------------------------------------------- bands --- */

.band { padding: 66px 0; }
.band-alt { background: var(--cream-2); }

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  margin: 0 0 20px; color: var(--navy);
  letter-spacing: -.3px;
}
h2::after {
  content: ""; display: block; width: 62px; height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  margin-top: 12px; border-radius: 2px;
}
h3 { color: var(--navy); margin: 0 0 12px; font-size: 1.1rem; }

p { margin: 0 0 16px; }
.band p:last-child { margin-bottom: 0; }

.two-col { display: grid; gap: 28px; grid-template-columns: 1.15fr .85fr; align-items: start; }

.big-day { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 800; color: var(--navy); margin: 0 0 2px; }
.big-time { font-size: 1.15rem; color: var(--purple); font-weight: 700; margin: 0 0 16px; }
address { font-style: normal; font-size: 1.05rem; line-height: 1.6; margin-bottom: 20px; }

.panel {
  background: #fff; border: 1px solid rgba(22,35,61,.1);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed rgba(22,35,61,.12); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "♪"; position: absolute; left: 0; top: 6px;
  color: var(--green); font-size: 17px;
}

.closing { font-weight: 700; color: var(--navy); font-size: 1.08rem; }

/* --------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--navy); color: #cfd8e8;
  padding: 34px 0; border-top: 3px solid var(--gold);
}
.footer-inner p { margin: 0 0 6px; font-size: 15px; }
.footer-inner strong { color: #fff; }
.site-footer a { color: var(--blue-light); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 720px) {
  .header-inner { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .site-header nav { width: 100%; overflow-x: auto; }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 46px; }
  .band { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* print: groups do print these for the hall noticeboard */
@media print {
  .site-header, .hero-actions, .skip { display: none; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; }
  .hero h1, .eyebrow { color: #000; }
  .facts li { border-color: #999; }
}
