/* ==========================================================
   Harbour Sessions – custom styles on top of Bootstrap 5.3
   Change the colours and fonts in :root to re-theme the site.
   ========================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ink: #1e2a4a;          /* harbour blue: hero, nav, footer */
  --ink-soft: #2c3b63;
  --accent: #f2b134;       /* marigold: buttons, ticket stub */
  --accent-dark: #d9961a;
  --paper: #ffffff;
  --mist: #eef2f7;         /* alternating section background */
  --text: #1c2333;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Hand our choices to Bootstrap */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--ink-soft);
  --bs-link-color-rgb: 44, 59, 99;
  --bs-link-hover-color-rgb: 30, 42, 74;
  --bs-border-radius: .375rem;
  --bs-focus-ring-color: rgba(242, 177, 52, .5);
}

html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3, .h5, .navbar-brand {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2000;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn-accent {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  font-weight: 600;
}
.btn-ink {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ink-soft);
  --bs-btn-hover-border-color: var(--ink-soft);
  --bs-btn-active-bg: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--ink);
  padding-block: .75rem;
}
.site-nav .navbar-brand { font-weight: 700; }
.site-nav .nav-link { color: rgba(255, 255, 255, .8); }
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 11ch;
}
.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, .85);
  max-width: 34ch;
  margin-bottom: 2rem;
}

/* The ticket stub: two parts joined by a perforated edge */
.stub {
  display: flex;
  color: var(--ink);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25));
  transform: rotate(-2deg);
}
.stub-main,
.stub-side { background: var(--accent); }
.stub-main {
  flex: 1;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: .75rem 0 0 .75rem;
  /* half-circle notches at top and bottom of the tear line */
  -webkit-mask: radial-gradient(circle at 100% 0, transparent .7rem, #000 .72rem) top / 100% 51% no-repeat,
                radial-gradient(circle at 100% 100%, transparent .7rem, #000 .72rem) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 100% 0, transparent .7rem, #000 .72rem) top / 100% 51% no-repeat,
                radial-gradient(circle at 100% 100%, transparent .7rem, #000 .72rem) bottom / 100% 51% no-repeat;
}
.stub-side {
  width: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 3px dotted rgba(30, 42, 74, .45);
  border-radius: 0 .75rem .75rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  -webkit-mask: radial-gradient(circle at 0 0, transparent .7rem, #000 .72rem) top / 100% 51% no-repeat,
                radial-gradient(circle at 0 100%, transparent .7rem, #000 .72rem) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent .7rem, #000 .72rem) top / 100% 51% no-repeat,
                radial-gradient(circle at 0 100%, transparent .7rem, #000 .72rem) bottom / 100% 51% no-repeat;
}
.stub-side span:first-child { font-size: 2.75rem; }
.stub-side span:last-child { font-size: 1.25rem; }

.stub dt {
  font-size: .9rem;
  font-weight: 600;
  opacity: .75;
}
.stub dd {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.stub dd:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .stub { animation: stub-in .7s cubic-bezier(.2, .8, .2, 1) both .15s; }
  @keyframes stub-in {
    from { opacity: 0; transform: rotate(4deg) translateY(1.5rem); }
    to   { opacity: 1; transform: rotate(-2deg); }
  }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--mist); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.prose { max-width: 66ch; }
.prose .lead {
  font-size: 1.35rem;
  font-weight: 500;
}

/* Programme timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(30, 42, 74, .15);
}
.timeline li:last-child { border-bottom: 1px solid rgba(30, 42, 74, .15); }
.timeline time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timeline h3 {
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: .25rem;
}
.timeline p { margin: 0; color: #4a5368; }

/* Tickets */
.tickets {
  background: var(--accent);
  color: var(--ink);
}
.widget-frame {
  background: var(--paper);
  border-radius: .75rem;
  padding: clamp(1rem, 3vw, 2rem);
  min-height: 12rem;
}

/* FAQ accordion */
.accordion {
  --bs-accordion-active-bg: var(--mist);
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(242, 177, 52, .5);
}
.accordion-button {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Contact */
.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.contact-list dt {
  font-weight: 600;
  font-size: .95rem;
  color: #4a5368;
}
.contact-list dd {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  padding-block: 2rem;
  font-size: 1rem;
}
.site-footer a { color: #fff; }

@media (max-width: 575.98px) {
  .stub-side { width: 5rem; }
  .timeline li { grid-template-columns: 4rem 1fr; gap: .75rem; }
}
