/* The Great Rochester Slide public site
   Direction: Genesee gorge dusk: steel, deep water, mist. Not purple. Not cream. */

:root {
  --ink: #0b1520;
  --mist: #d7e6ef;
  --foam: #f4f8fb;
  --steel: #3d5a73;
  --water: #1a6b7c;
  --accent: #c45c26;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--foam);
}

a {
  color: var(--water);
}

a:hover {
  color: var(--accent);
}

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

/* -- Nav -- */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--foam);
}

.site-nav--solid {
  position: sticky;
  top: 0;
  background: #122433;
  box-shadow: 0 2px 10px rgba(7, 16, 24, 0.28);
}

.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  position: relative;
}

.site-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__brand {
  flex: 1;
  min-width: 0;
  max-width: calc(100vw - 7rem);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.92rem, 3.4vw, 1.05rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: inherit;
  text-decoration: none;
  opacity: 0.98;
  cursor: pointer;
}

.site-nav__balance {
  display: block;
  width: 2.75rem;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 3;
  padding: 0;
  background: #122433;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.28s ease;
  box-shadow: 0 10px 24px rgba(7, 16, 24, 0.35);
}

.site-nav.is-open .site-nav__links {
  max-height: 24rem;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__links a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(244, 248, 251, 0.1);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.site-nav__links a:hover {
  background: rgba(244, 248, 251, 0.06);
  color: #fff;
}

@media (min-width: 900px) {
  .site-nav__toggle,
  .site-nav__balance {
    display: none;
  }

  .site-nav__bar {
    min-height: 0;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }

  .site-nav__brand {
    flex: 0 1 auto;
    max-width: none;
    text-align: left;
    margin-right: auto;
  }

  .site-nav__links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.15rem 1.35rem;
    max-height: none;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
    padding: 0;
  }

  .site-nav.is-open .site-nav__links {
    max-height: none;
  }

  .site-nav__links a {
    padding: 0.25rem 0;
    border-top: 0;
    font-size: 0.95rem;
  }

  .site-nav__links a:hover {
    background: transparent;
  }
}

/* -- Hero -- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.75rem, 7vh, 4.5rem);
  color: #f4f8fb;
  overflow: hidden;
  background-color: #071018;
  background-image:
    linear-gradient(
      115deg,
      rgba(7, 16, 24, 0.78) 0%,
      rgba(7, 16, 24, 0.45) 38%,
      rgba(7, 16, 24, 0.18) 72%,
      rgba(7, 16, 24, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(7, 16, 24, 0.25) 0%, transparent 35%, rgba(7, 16, 24, 0.72) 100%),
    url("/assets/pont-de-rennes.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero__bg {
  /* Decorative preload / a11y fallback; CSS background is the visible plane */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  color: #f4f8fb;
}

.hero__credit {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(244, 248, 251, 0.6);
  text-align: right;
  max-width: 14rem;
}

.hero__credit a {
  color: rgba(244, 248, 251, 0.78);
  text-decoration: none;
}

.hero__credit a:hover {
  color: #fff;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.2vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f4f8fb;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(7, 16, 24, 0.45);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  max-width: 28rem;
  color: #f4f8fb;
  text-shadow: 0 1px 18px rgba(7, 16, 24, 0.5);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 28rem;
  color: rgba(244, 248, 251, 0.92);
  text-shadow: 0 1px 16px rgba(7, 16, 24, 0.55);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  color: #fff;
  background: #a84b1d;
}

.btn--ghost {
  background: rgba(7, 16, 24, 0.28);
  color: #f4f8fb;
  border-color: rgba(244, 248, 251, 0.55);
  backdrop-filter: blur(4px);
}

.btn--ghost-ink {
  color: var(--ink);
  border-color: rgba(61, 90, 115, 0.35);
  background: transparent;
  backdrop-filter: none;
}

.btn--ghost-ink:hover {
  color: var(--water);
  border-color: var(--water);
  background: transparent;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* -- Sections -- */
.section {
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.section__inner--wide {
  max-width: 48rem;
}

.section__actions {
  margin-top: 1.5rem;
}

.section--map {
  background: linear-gradient(180deg, #e8f1f6, #dce8f0);
  border-top: 1px solid rgba(61, 90, 115, 0.15);
}

.map-lede {
  max-width: 36rem;
}

.map-widget {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(61, 90, 115, 0.22);
  background: var(--foam);
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: min(20rem, 50vh);
  border: 0;
}

.map-widget__meta {
  margin: 0;
  padding: 0.7rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--steel);
}

.map-widget__meta a {
  color: var(--water);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
}

.section--split {
  background: linear-gradient(180deg, var(--foam), #e8f1f6);
}

.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* -- Progress list -- */
.update-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.update-list li {
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(61, 90, 115, 0.25);
}

.update-list a {
  text-decoration: none;
  color: inherit;
}

.update-list a:hover .update-list__title {
  color: var(--water);
}

.update-list__date {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.update-list__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.update-list__excerpt {
  display: block;
  margin-top: 0.35rem;
  color: #334155;
  font-size: 1.05rem;
}

/* -- Article -- */
.article-hero {
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: linear-gradient(165deg, #122433, #1a3a48 60%, #243f50);
  color: var(--foam);
}

.article-hero__inner,
.article-body {
  max-width: 40rem;
  margin: 0 auto;
}

.article-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.article-body {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.back-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(244, 248, 251, 0.8);
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
}

/* -- Footer -- */
.site-footer {
  padding: clamp(2.5rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3rem) 2.25rem;
  font-family: var(--font-ui);
  background: var(--foam);
  border-top: 1px solid rgba(61, 90, 115, 0.16);
}

.site-footer__inner {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem 3rem;
  align-items: end;
}

.site-footer__primary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.site-footer__place {
  margin: 0;
  font-size: 0.95rem;
  color: var(--steel);
}

.site-footer__email {
  margin-top: 0.65rem;
  display: inline-block;
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--water);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 107, 124, 0.4);
  padding-bottom: 0.12rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer__email:hover {
  color: var(--accent);
  border-color: rgba(196, 92, 38, 0.55);
}

.site-footer__secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  text-align: right;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
}

.site-footer__nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer__nav a:hover {
  color: var(--water);
}

.site-footer__byline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-footer__byline a:hover {
  color: var(--water);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__secondary {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }

  .hero__credit {
    position: static;
    margin-top: 1.5rem;
    text-align: left;
    max-width: none;
  }
}

/* -- Supporters guestbook -- */
.supporters-lede {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.supporters-page {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(26, 107, 124, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 20%, rgba(196, 92, 38, 0.07), transparent 50%),
    linear-gradient(180deg, #f4f8fb 0%, #e8f1f6 48%, #dce8f0 100%);
}

.supporters-sign {
  padding-bottom: 2rem;
}

.supporters-privacy {
  color: var(--steel);
  font-size: 1rem;
}

.form-status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.form-status--ok {
  background: rgba(26, 107, 124, 0.1);
  border-color: rgba(26, 107, 124, 0.28);
  color: #0f4a56;
}

.form-status--err {
  background: rgba(196, 92, 38, 0.1);
  border-color: rgba(196, 92, 38, 0.3);
  color: #7a3414;
}

.support-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(61, 90, 115, 0.28);
  background: rgba(244, 248, 251, 0.92);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(26, 107, 124, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field--error input,
.field--error textarea {
  border-color: rgba(196, 92, 38, 0.7);
}

.field-error {
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  color: #9a4318;
}

.support-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.supporters-wall {
  padding-top: 1rem;
}

.wall-count {
  margin: 0 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--steel);
}

.wall-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.wall-card {
  margin: 0;
  padding: 1.25rem 1.2rem 1.1rem;
  background:
    linear-gradient(165deg, rgba(244, 248, 251, 0.95), rgba(232, 241, 246, 0.88));
  border: 1px solid rgba(61, 90, 115, 0.18);
  border-top: 3px solid var(--water);
  animation: rise-in 0.55s ease both;
  animation-delay: calc(min(var(--i, 0), 12) * 40ms);
}

.wall-card:nth-child(3n) {
  border-top-color: var(--accent);
}

.wall-card:nth-child(3n + 2) {
  border-top-color: var(--steel);
}

.wall-card__comment {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
}

.wall-card__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--steel);
}

.wall-card__name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
