/* The Lincolnville Boat Club design. One file for the whole site.
   The colours, fonts and spacing are set once, here at the top, as design tokens. Use them by name
   (var(--blue)) everywhere else. Do not add new colours, fonts or sizes: ask Kirk (see AGENTS.md). */

:root {
  /* Club colours (from the club's WordPress theme). */
  --blue: #2b6cb0; /* buttons and links */
  --blue-dark: #265e9a; /* buttons when pointed at */
  --sky: #83cdf5; /* the home page welcome band */
  --ink: #222222; /* headings, footer */
  --text: #3b3b3b; /* body text */
  --muted: #626262; /* dates and small print */
  --line: #e1e1e1; /* borders */
  --light: #f7f7f7; /* pale grey bands */
  --white: #ffffff;

  /* Fonts: the theme's fonts only. */
  --font: Arial, Helvetica, sans-serif;

  /* Sizes. */
  --text-size: 17px;
  --radius: 8px;
  --pill: 50px;
  --container: 1140px;
  --narrow: 780px;
  --gutter: 24px;
  --band-space: 72px; /* space above and below the content of every band: always equal */
  --gap: 32px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --band-space: 48px;
    --gap: 24px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-size);
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
}
a:hover {
  color: var(--blue-dark);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(34px, 5vw, 48px);
  text-transform: capitalize;
}
h2 {
  font-size: clamp(26px, 3.4vw, 32px);
}
h3 {
  font-size: 21px;
  font-weight: 700;
}
p,
ul,
ol {
  margin: 0 0 1em;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}
.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

/* ---------- Bands: full-width sections. Equal space above and below, always. ---------- */
.band {
  padding: var(--band-space) 0;
}
.band > .container > :first-child {
  margin-top: 0;
}
.band > .container > :last-child,
.band > .container > :last-child > :last-child {
  margin-bottom: 0;
}
.band--white {
  background: var(--white);
}
.band--light {
  background: var(--light);
}
.band--sky {
  background: var(--sky);
}
.band--sky,
.band--sky h1,
.band--sky h2 {
  color: var(--ink);
}
.band--blue {
  background: var(--blue);
  color: var(--white);
}
.band--blue h2,
.band--blue a:not(.button) {
  color: var(--white);
}
.band--dark {
  background: var(--ink);
  color: var(--white);
}
.page-title {
  padding: calc(var(--band-space) * 0.75) 0;
}
.page-title h1 {
  margin: 0;
}
.page-title .lead {
  margin: 0.5em 0 0;
  font-size: 20px;
  max-width: var(--narrow);
}
.eyebrow {
  margin: 0 0 0.4em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow a {
  color: var(--ink);
  text-decoration: none;
}
.post-meta {
  margin: 0.6em 0 0;
  color: var(--ink);
}

/* ---------- Long text ---------- */
.prose > :last-child {
  margin-bottom: 0;
}
.prose h2 {
  margin-top: 1.6em;
}
.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}
.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li {
  margin: 0 0 0.35em;
}
.prose .subhead {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 1.4em 0 0.5em;
}
.prose .note {
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  background: var(--light);
}
.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.roster li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--blue);
  border-radius: var(--pill);
  background: var(--blue);
  color: var(--white);
  font: 700 16px/1 var(--font);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}
.button--outline {
  background: transparent;
  color: var(--blue);
}
.button--outline:hover {
  color: var(--white);
}
.button--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}
.button--light:hover {
  background: var(--light);
  border-color: var(--light);
  color: var(--blue-dark);
}
.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Split: text beside a photo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap) calc(var(--gap) * 2);
  align-items: center;
}
.split--photo-left .split__photo {
  order: -1;
}
.split--wide-text {
  grid-template-columns: 2fr 1fr;
  align-items: center;
}
.split--form {
  grid-template-columns: 3fr 2fr;
  align-items: start;
}
.split__photo {
  margin: 0;
}
.split__photo img,
.post-photo img {
  border-radius: var(--radius);
  width: 100%;
}
.split__photo:not(.hero__photos) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero .split {
  align-items: start;
}
.hero__photos {
  display: grid;
  gap: var(--gap);
}
@media (max-width: 900px) {
  .split,
  .split--wide-text,
  .split--form {
    grid-template-columns: 1fr;
  }
  .split--photo-left .split__photo {
    order: 0;
  }
  .hero__photos img:first-child {
    display: none;
  }
}
.post-photo {
  margin: 0 0 var(--gap);
}
.post-back {
  margin: var(--gap) 0 0;
}

/* ---------- Photos ---------- */
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.photo-grid li {
  grid-column: span 2;
}
.photo-grid li:nth-child(n + 4) {
  grid-column: span 3;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-grid li:nth-child(-n + 3) img {
  aspect-ratio: 3 / 4;
}
@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-grid li,
  .photo-grid li:nth-child(n + 4) {
    grid-column: span 1;
  }
  .photo-grid li:first-child {
    grid-column: span 2;
  }
  .photo-grid li img,
  .photo-grid li:nth-child(-n + 3) img {
    aspect-ratio: 1 / 1;
  }
  .photo-grid li:first-child img {
    aspect-ratio: 4 / 3;
  }
}
img.zoom {
  cursor: zoom-in;
}
.glightbox-container {
  --glightbox-main-overlay: rgba(34, 34, 34, 0.94);
}
.glightbox-clean .gslide-description {
  background: transparent;
}
.glightbox-clean .gslide-desc {
  color: var(--white);
  font-family: var(--font);
}

/* ---------- Info boxes and cards ---------- */
.info-boxes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
}
.split > div > .info-boxes {
  grid-template-columns: 1fr;
}
.band > .container > .info-boxes {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.info-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-box__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.info-box__title {
  font-size: 22px;
  font-weight: 400;
  margin: 4px 0 0.3em;
}
.info-box p {
  margin: 0;
}
.info-box p + .button {
  margin-top: 16px;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 4px solid var(--blue);
}
.card__title {
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card p {
  margin: 0;
}

/* ---------- Call to action and QR panel ---------- */
.call-to-action {
  text-align: center;
}
.call-to-action p {
  margin: 0 auto 1.5em;
}
.qr-panel__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(var(--gap) * 2);
  align-items: center;
}
.qr-panel__text > :last-child {
  margin-bottom: 0;
}
.qr-panel__qr {
  margin: 0;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
}
.qr-panel__qr img {
  width: 216px;
  height: 216px;
}
@media (max-width: 767px) {
  .qr-panel__inner {
    grid-template-columns: 1fr;
  }
  .qr-panel__qr {
    justify-self: start;
  }
}

/* ---------- Blog ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.post-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__body .button {
  align-self: flex-start;
  margin-top: auto;
}
.post-card__meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 0.5em;
}
.post-card__title {
  font-size: 24px;
}
.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--blue);
}

/* ---------- Contact form and map ---------- */
.contact-form {
  margin-top: var(--gap);
}
.contact-form .field {
  margin: 0 0 16px;
}
.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}
.field--trap {
  position: absolute;
  left: -9999px;
}
.contact-form p:has(> .button) {
  margin-bottom: 0;
}
.contact-form__status {
  margin: 12px 0 0;
  font-weight: 700;
}
.contact-form__status:empty {
  display: none;
}
.contact-form__status.is-error {
  color: var(--ink);
}
.contact-form__status.is-ok {
  color: var(--blue-dark);
}
.map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Header and menu ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 100px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.site-header__logo img {
  width: 112px;
  height: auto;
}
.site-header__name {
  position: absolute;
  left: -9999px;
}
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.site-nav__item > a {
  display: block;
  padding: 10px 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__item > a:hover,
.site-nav__item.is-current > a {
  color: var(--blue);
}
.site-nav__open {
  border: 0;
  background: none;
  padding: 6px 4px;
  margin-left: -6px;
  color: var(--ink);
  cursor: pointer;
}
.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav__item:hover > .site-nav__sub,
.site-nav__item:focus-within > .site-nav__sub,
.site-nav__item.is-open > .site-nav__sub {
  display: block;
}
.site-nav__sub a {
  display: block;
  padding: 8px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__sub a:hover,
.site-nav__sub a[aria-current] {
  color: var(--blue);
  background: var(--light);
}
.menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .site-header__inner {
    min-height: 80px;
    justify-content: space-between;
  }
  .site-header__logo img {
    width: 84px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--white);
    padding: 10px 18px;
    font: 700 15px/1 var(--font);
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .menu-toggle__bars::before {
    top: -6px;
  }
  .menu-toggle__bars::after {
    top: 6px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 24px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
  }
  .site-nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__item > a {
    flex: 1;
    padding: 14px 0;
  }
  .site-nav__open {
    padding: 14px 8px;
  }
  .site-nav__sub {
    position: static;
    box-shadow: none;
    width: 100%;
    padding: 0 0 8px 16px;
  }
  .site-nav__item:hover > .site-nav__sub,
  .site-nav__item:focus-within > .site-nav__sub {
    display: none;
  }
  .site-nav__item.is-open > .site-nav__sub {
    display: block;
  }
  .site-nav__cta {
    align-self: flex-start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-footer__logo img {
  width: 60px;
  height: auto;
}
.site-footer__address {
  flex: 1;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.site-footer__address strong {
  flex-basis: 100%;
  font-size: 17px;
}
.site-footer a {
  color: var(--white);
}
.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--pill);
  font-size: 15px;
  text-decoration: none;
}
.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .site-footer__address {
    flex-direction: column;
  }
}

/* ---------- Small details named by the blocks ---------- */
.split__text {
  min-width: 0;
}
.split--photo-right .split__photo {
  order: 0;
}
.site-nav__item.has-children > a {
  padding-right: 4px;
}
.menu-toggle__label {
  line-height: 1;
}
.qr-panel h2 {
  margin-bottom: 0.5em;
}

/* Focus points for cropped photos. Set a photo's "focus" in src/_data/photos.json; do not use these by hand. */
.focus-y-0 {
  object-position: 50% 0%;
}
.focus-y-5 {
  object-position: 50% 5%;
}
.focus-y-10 {
  object-position: 50% 10%;
}
.focus-y-15 {
  object-position: 50% 15%;
}
.focus-y-20 {
  object-position: 50% 20%;
}
.focus-y-25 {
  object-position: 50% 25%;
}
.focus-y-30 {
  object-position: 50% 30%;
}
.focus-y-35 {
  object-position: 50% 35%;
}
.focus-y-40 {
  object-position: 50% 40%;
}
.focus-y-45 {
  object-position: 50% 45%;
}
.focus-y-50 {
  object-position: 50% 50%;
}
.focus-y-55 {
  object-position: 50% 55%;
}
.focus-y-60 {
  object-position: 50% 60%;
}
.focus-y-65 {
  object-position: 50% 65%;
}
.focus-y-70 {
  object-position: 50% 70%;
}
.focus-y-75 {
  object-position: 50% 75%;
}
.focus-y-80 {
  object-position: 50% 80%;
}
.focus-y-85 {
  object-position: 50% 85%;
}
.focus-y-90 {
  object-position: 50% 90%;
}
.focus-y-95 {
  object-position: 50% 95%;
}
.focus-y-100 {
  object-position: 50% 100%;
}

/* ---------- 2027 interest form ---------- */
.interest-form fieldset {
  margin: 0 0 var(--gap);
  padding: 0;
  border: 0;
}
.interest-form legend {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.interest-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.interest-form select:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}
.interest-form__hint {
  margin: 0 0 16px;
}
.interest-form__child {
  display: grid;
  gap: 0 16px;
  grid-template-columns: 1fr 2fr;
}
.interest-form__child[hidden] {
  display: none;
}
.interest-form__choices {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}
.interest-form__choices label,
.interest-form__consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.interest-form__choices input,
.interest-form__consent input {
  width: auto;
  margin-top: 4px;
}
.interest-form__check {
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .interest-form__child {
    grid-template-columns: 1fr;
  }
}
.interest-form__add[hidden] {
  display: none;
}
