/* Hollybrook Community Choir: concert-programme look.
   Colours are set here, so you can change them in one place. */
:root {
  --paper: #f5f0e4;   /* cream background */
  --ink:   #1c1e21;   /* near-black text */
  --soft:  #4a4b4f;   /* softer grey text */
  --rust:  #a8421a;   /* rusty orange accent (dark enough to read easily) */
  --rule:  #cfc6b4;   /* thin lines */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

a { color: var(--rust); }
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  background: #fff;
}

/* "Skip to main content" link: hidden until a keyboard user tabs to it */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- Top bar ---- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand { font-weight: 700; padding: 10px 0; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.topbar nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  /* big enough to tap easily with a thumb */
  display: inline-block;
  padding: 12px 8px;
  min-height: 44px;
}
.topbar nav a:hover { color: var(--rust); text-decoration: underline; }

/* ---- Hero ---- */
.hero { padding: 48px 0 36px; }

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 11.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
/* each word on its own line (done in CSS so screen readers read normal words) */
h1 span { display: block; }

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--rust);
  margin: 0 0 18px;
}

.lead { margin: 0; color: var(--soft); max-width: 34em; }

/* ---- Numbered sections ---- */
section { border-top: 1px solid var(--rule); padding: 34px 0 30px; }
.hero { border-top: 0; }

h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.2;
}
.num { color: var(--rust); font-size: 1.15em; min-width: 0.7em; }

.body { padding-left: 0; }
@media (min-width: 560px) {
  .body { padding-left: 38px; }
}

.body p { margin: 0 0 14px; }
.body p:last-child { margin-bottom: 0; }

/* ---- Rehearsal facts ---- */
.facts { margin: 0; }
.facts div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
}
.facts div:last-child { border-bottom: 0; }
.facts dt {
  flex: 0 0 5em;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
  padding-top: 4px;
}
.facts dd { margin: 0; font-family: var(--serif); font-size: 21px; min-width: 0; }

/* On very small screens, put the label above the answer so nothing gets squeezed */
@media (max-width: 400px) {
  .facts div { flex-direction: column; gap: 0; }
  .facts dt { flex: none; padding-top: 0; }
}

/* ---- Concerts ---- */
.concert {
  border-left: 3px solid var(--rule);
  padding: 2px 0 2px 18px;
  margin-bottom: 26px;
}
.concert:last-child { margin-bottom: 0; }
.concert .date {
  margin: 0 0 2px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust);
}
.concert h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
}
.concert p:last-child { color: var(--soft); }

/* ---- Contact ---- */
.email {
  font-family: var(--serif);
  font-size: clamp(20px, 5.5vw, 26px);
  overflow-wrap: anywhere;
}
.email a { display: inline-block; padding: 6px 0; }

/* ---- Footer ---- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--soft);
}

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