/* 888 Causeway: brand colours from the logo and the podcast art */
:root {
  --aqua: #54e7cb;
  --aqua-soft: #c9f7ec;
  --orange: #fe802b;
  --ink: #10201d;
  --ink-2: #1c332f;
  --paper: #fbf8f1;
  --white: #fff;
  --teal: #0b5f56;
  --line: #ded8ca;
  --display: "League Spartan", "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --body: Figtree, "Avenir Next", system-ui, sans-serif;
  --bs-heading-color: var(--ink);
  --bs-body-font-family: var(--body);
}

html { scroll-padding-top: 100px; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; }
.text-preline { white-space: pre-line; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--aqua); color: var(--ink); padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
p { max-width: 62ch; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Buttons */
.btn-888 {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  padding: .85rem 1.4rem; background: var(--orange); color: var(--ink); border: 2px solid var(--orange);
  border-radius: 999px; text-decoration: none; transition: transform .15s ease, background-color .15s ease, color .15s ease; cursor: pointer;
}
.btn-888:hover { transform: translateY(-2px); background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-line { background: transparent; border-color: var(--ink); }
.btn-sm-888 { padding: .55rem 1.05rem; font-size: 1rem; }
.nav-888 .btn-888:hover, .foot .btn-888:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }

.link-arrow { display: inline-flex; gap: .45rem; align-items: center; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.link-arrow i { transition: transform .15s ease; }
.link-arrow:hover i { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }

/* Navbar */
.nav-888 { background: var(--ink); padding-block: .4rem; }
.nav-888 .navbar-brand { padding: 0; }
.nav-888 .navbar-brand img { display: block; width: 120px; height: auto; }
.nav-888 .nav-link { color: var(--paper); font-weight: 600; padding-inline: .8rem !important; }
.nav-888 .nav-link:hover { color: var(--aqua); }
.nav-888 .nav-link.active { color: var(--aqua); }
@media (max-width: 991.98px) {
  .nav-888 .navbar-nav { padding-block: .75rem; align-items: flex-start; }
  .nav-888 .nav-link { padding-inline: 0 !important; font-size: 1.25rem; }
  .nav-888 .btn-888 { margin-top: .75rem; }
}

/* Hero */
.hero { background: var(--aqua); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero h1 { font-size: clamp(3.4rem, 7vw, 7.25rem); line-height: .92; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0; max-width: 34em; }
.hero-art { min-width: 0; }

/* The school of fish: each fish is one group, so it can swim on its own */
.school { display: block; width: 100%; height: auto; overflow: visible; }
.school .b { fill: var(--fish, var(--orange)); }
.school .l { fill: var(--ink); }
.school .f { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .school .f { animation: bob 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.45s); }
  .hero .school .f {
    animation:
      assemble 1.5s cubic-bezier(.2, .75, .2, 1) calc(var(--i) * 70ms) backwards,
      bob 5s ease-in-out calc(1.7s + var(--i) * .4s) infinite alternate;
  }
}
@keyframes assemble {
  from { opacity: 0; transform: translate(calc(var(--x) * 5), calc(var(--y) * 5)) rotate(var(--r)) scale(.7); }
  35% { opacity: 1; }
}
@keyframes bob {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(4px, -7px) rotate(1.6deg); }
}

/* 8 8 8 */
.eights { background: var(--ink); color: var(--paper); }
.eights-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.1rem; }
.eights p { margin: 0; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.eights b { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--aqua); }
.eights p:nth-child(2) b { color: var(--orange); }
.eights p:nth-child(3) b { color: var(--white); }

/* Bands */
.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-orange { background: var(--orange); color: var(--ink); --fish: var(--white); overflow: hidden; }
.band-aqua { background: var(--aqua); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { font-size: 1.2rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-text { align-items: start; grid-template-columns: 1.3fr 1fr; }
.split-events { align-items: start; grid-template-columns: 1fr 1.25fr; }
.split-pod { grid-template-columns: 1fr 1fr; }
.split-contact { align-items: start; }

figure { margin: 0; }
.photo-lane img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.25rem; display: block; }
.photo-wide { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.photo-wide img { width: 100%; display: block; max-height: 640px; object-fit: cover; }
.photo-door { margin-top: 2rem; max-width: 300px; }
.photo-door img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; display: block; border: 6px solid var(--aqua); }
.photo-board img { width: 100%; max-width: 380px; display: block; margin-inline: auto; border-radius: .75rem; transform: rotate(-1.5deg); box-shadow: 0 18px 40px rgba(16, 32, 29, .28); }

/* Membership levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.level { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; }
.band:not(.band-white) .level { background: var(--white); }
.level .btn-888 { margin-top: auto; text-align: center; font-size: 1rem; }
.level h3 { margin-bottom: .75rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .75rem; }
.price span { font-family: var(--body); font-size: .95rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.level-for { margin-bottom: 1.25rem; }
.level ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; font-size: 1rem; line-height: 1.35; }
.level li { padding-left: 1.4rem; position: relative; }
.level li::before { content: ""; position: absolute; left: 0; top: .32em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--aqua); }
.level-hi { background: var(--ink) !important; color: var(--paper); border-color: var(--ink); }
.level-hi li::before { background: var(--orange); }
.level-hi .btn-888:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.after-levels { margin-top: 1.75rem; max-width: none; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--orange); }

/* Events */
.list-title { font-size: 1.25rem; margin: 2.25rem 0 .5rem; color: inherit; }
.list-title:first-child { margin-top: 0; }
.event-row {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 1.25rem; gap: 1.25rem; align-items: start;
  padding-block: 1.1rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none;
}
.band-ink .event-row { border-top-color: rgba(251, 248, 241, .22); }
.event-row time { font-size: .9rem; line-height: 1.2; }
.event-row time b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.05; color: var(--teal); }
.band-ink .event-row time b { color: var(--aqua); }
.event-row h3 { font-size: 1.25rem; line-height: 1.2; margin: 0; }
.event-row p { margin: .4rem 0 0; font-size: 1rem; }
.event-row i { margin-top: .15rem; transition: transform .15s ease; }
.event-row:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.event-row:hover i { transform: translateX(4px); }
.band-ink .link-arrow { margin-top: 1.25rem; }
.none-yet { background: var(--aqua); color: var(--ink); border-radius: 1.25rem; padding: 1.5rem; margin-bottom: 2rem; }
.none-yet p { margin-bottom: 1rem; font-weight: 600; }
.band-ink .none-yet .btn-888:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.events-list { max-width: 860px; }
.event-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.event-facts { display: grid; gap: 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; }
.event-facts > div { display: flex; gap: .7rem; }
.event-facts .back { font-weight: 700; color: var(--teal); }

/* Page heads */
.head { padding-block: clamp(3rem, 7vw, 6rem); }
.head-aqua { background: var(--aqua); }
.head-ink { background: var(--ink); color: var(--paper); }
.head-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; margin: 1.25rem 0 0; max-width: 34em; }
.head-date { font-weight: 600; color: var(--aqua); margin-bottom: 1rem; }
.head-ink h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 18em; }
.head-pod { --fish: var(--orange); }

/* Story */
.story .lead { font-size: 1.35rem; line-height: 1.45; font-weight: 500; }
.purpose { background: var(--aqua); border-radius: 1.25rem; padding: 1.75rem; }
.purpose h2 { font-size: 1.75rem; }
.purpose ul { margin: 0; padding-left: 1.1rem; }
.purpose .actions { margin-top: 1.25rem; }
.people-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.people { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.people b { display: block; }
.people span { font-size: .95rem; }

/* Podcast */
.pod-art { min-width: 0; }
.pod-q { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }

/* Members */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.wall-item { background: var(--white); border: 1.5px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.wall-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.wall-logo { display: flex; align-items: center; justify-content: center; height: 90px; }
.wall-logo img { max-height: 90px; max-width: 100%; object-fit: contain; }
.wall-item p { margin: 1rem 0 0; font-size: 1rem; line-height: 1.4; }
.section-head + .list-title { margin-top: 0; }

/* Contact */
.big-link { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: -.02em; color: var(--teal); overflow-wrap: anywhere; }
.contact-address { font-size: 1.2rem; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.foot a { color: inherit; }
.foot-news { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding-bottom: 3rem; border-bottom: 1px solid rgba(251, 248, 241, .22); }
.foot-news h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .5rem; }
.foot-news p { margin: 0; }
.news-form { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; }
.news-form input[type=email] { flex: 1 1 220px; min-width: 0; padding: .85rem 1.2rem; border-radius: 999px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font: inherit; }
.news-form input::placeholder { color: rgba(251, 248, 241, .65); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.foot-grid address { margin: 0; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--aqua); }
.foot-base { font-size: .9rem; margin: 0; max-width: none; opacity: .75; }

@media (max-width: 991.98px) {
  .levels { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split-events, .split-text, .event-page { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .hero-grid, .split, .split-pod, .foot-news { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .split-pod .pod-art { order: 2; max-width: 360px; }
  .levels { grid-template-columns: 1fr; }
  .eights-row { grid-template-columns: 1fr; gap: .2rem; padding-block: .9rem; }
  .eights b { font-size: 1.5rem; }
  .people-cols { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .photo-door { display: none; }
}

.nb { white-space: nowrap; }
p { text-wrap: pretty; }

/* Membership forms */
.join-wrap { max-width: 760px; }
.join { display: grid; gap: 1.25rem; }
.join h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.5rem 0 0; }
.join h2:first-child { margin-top: 0; }
.join h3 { font-size: 1.25rem; margin: .5rem 0 0; }
.join fieldset { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.join legend { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 1rem; }
.field label span { font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #8f8a7c; border-radius: .65rem; padding: .7rem .85rem; }
.field input:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.field input:disabled { background: #f0ece2; color: #5a5f58; border-color: var(--line); cursor: not-allowed; }
.choice { display: flex; gap: .6rem; align-items: flex-start; }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: .22rem; flex: none; accent-color: var(--teal); }
.choice label { line-height: 1.4; }
.agreement { background: var(--white); border: 1.5px solid var(--line); border-radius: 1rem; padding: 1.25rem; max-height: 300px; overflow-y: auto; font-size: 1rem; }
.agreement p:last-child { margin-bottom: 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.02em; }
.card-box { display: grid; gap: 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; }
.card-box h3 { margin: 0; }
.card-box p { margin: 0; font-size: 1rem; }
.join > .btn-888 { justify-self: start; }
.join-done { background: var(--aqua); border-radius: 1.25rem; padding: 1.75rem; }
.join-done:focus { outline: none; }
.join-done p { margin: 0; }
@media (max-width: 575.98px) { .field-row { grid-template-columns: 1fr; } }

/* Search */
.nav-search { background: none; border: 0; display: inline-flex; align-items: center; }
#searchModal { color: var(--ink); }
#searchModal .modal-content { border-radius: 1.25rem; border: 0; }
#searchModal .modal-title { font-family: var(--display); font-weight: 800; color: var(--ink) !important; }
#searchModal .form-control { border: 1.5px solid #8f8a7c; }
#searchResults a { color: var(--ink); }
#searchResults h6 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; }
#searchResults .text-secondary { color: var(--ink) !important; }
