@font-face {
  font-family: "Termina";
  src: url("assets/fonts/TerminaTest-Demi.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "They Ruined Arial";
  src:
    url("assets/fonts/TheyRuinedArial-Regular.otf") format("opentype"),
    url("assets/fonts/TheyRuinedArial-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #202327;
  --muted: #626967;
  --line: #d7d4ca;
  --green: #244739;
  --green-soft: #dce7de;
  --blue: #315f7d;
  --red: #b64636;
  --gold: #d2a852;
  --white: #ffffff;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Termina", "Arial Black", "Avenir Next", Avenir, Montserrat, var(--body-font);
  --menu-font: "They Ruined Arial", var(--display-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-family: var(--menu-font);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--menu-font);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--green-soft);
  color: var(--ink);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.74fr);
  gap: 3rem;
  align-items: center;
  isolation: isolate;
  min-height: calc(100svh - 4.5rem);
  padding: 4rem 5vw;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.92) 0%, rgba(4, 5, 7, 0.72) 42%, rgba(4, 5, 7, 0.46) 100%),
    radial-gradient(circle at 18% 55%, rgba(182, 70, 54, 0.42), transparent 28rem),
    url("assets/hero.jpg") center 42% / cover no-repeat;
  color: var(--white);
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4.2rem 4.2rem;
  mix-blend-mode: screen;
  opacity: 0.38;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 49rem;
  text-shadow: 0 0.18rem 1.6rem rgba(0, 0, 0, 0.78);
}

.eyebrow,
.panel-label,
.programme-time {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-family: var(--display-font);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
}

section {
  scroll-margin-top: 5rem;
}

h1 {
  margin-bottom: 1.25rem;
  max-width: 12ch;
  font-family: var(--display-font);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-text {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero-section .eyebrow {
  color: #f1d26f;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--menu-font);
  font-weight: 850;
  text-align: center;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #19362b;
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--green);
}

.hero-actions .button.primary {
  background: var(--white);
  color: var(--ink);
}

.hero-actions .button.primary:hover,
.hero-actions .button.primary:focus-visible {
  background: #f4ead5;
}

.hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-actions .button.secondary:hover,
.hero-actions .button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.68);
}

.full-width {
  width: 100%;
}

.request-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.34);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.request-panel h2 {
  margin-bottom: 0.65rem;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.request-panel > p {
  color: var(--muted);
  line-height: 1.45;
}

.prayer-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.bot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c5ba;
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 500;
}

input,
select {
  min-height: 2.85rem;
  padding: 0 0.75rem;
}

textarea {
  min-height: 9rem;
  padding: 0.75rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 95, 125, 0.18);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.08rem;
}

.follow-up-field[hidden] {
  display: none;
}

.follow-up-field small {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.captcha-field strong {
  font-weight: 900;
}

.form-note,
.form-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.form-status:not(:empty) {
  padding: 0.75rem;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  color: var(--ink);
}

.details-section,
.map-section,
.programme-section,
.quote-section,
.wall-hero,
.wall-section {
  padding: 6rem 5vw;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.quote-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 850;
  line-height: 0.96;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid article {
  min-height: 17rem;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}

.detail-grid article:last-child {
  border-right: 0;
}

.detail-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--blue);
  font-weight: 900;
}

.detail-grid h3,
.programme-item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  line-height: 1;
}

.detail-grid p,
.programme-item p,
.quote-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.programme-section {
  background: #edf2ef;
}

.programme-list {
  display: grid;
  border-top: 2px solid var(--ink);
}

.programme-item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 2px solid var(--ink);
}

.programme-time {
  color: var(--green);
}

.map-section {
  background: #fbfaf7;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.map-canvas {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.regional-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.map-sea {
  fill: #bed0cc;
}

.map-estuary {
  fill: #d4e0dc;
}

.map-region-shade {
  fill: rgba(225, 231, 225, 0.42);
}

.map-river-line {
  fill: none;
  stroke: #b8cbc6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.map-route {
  fill: none;
  stroke: #d8ded9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.main-route {
  stroke: #cdd4cf;
  stroke-width: 8;
}

.map-place {
  fill: #6f7674;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 900;
}

.map-place.muted {
  fill: rgba(85, 94, 91, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.route-label {
  fill: rgba(92, 101, 98, 0.56);
  font-size: 12px;
}

.map-pin-svg circle {
  fill: var(--red);
  stroke: var(--white);
  stroke-width: 5;
  filter: drop-shadow(0 8px 12px rgba(32, 35, 39, 0.24));
}

.map-pin-svg text {
  fill: var(--white);
  font-family: var(--menu-font);
  font-size: 14px;
  font-weight: 900;
  text-anchor: middle;
}

.pin-carnforth circle {
  fill: var(--green);
}

.pin-lancaster circle {
  fill: var(--blue);
}

.pin-morecambe circle {
  fill: #7f4e7b;
}

.pin-heysham circle {
  fill: var(--gold);
}

.pin-caton circle {
  fill: #476f5d;
}

.map-town {
  position: absolute;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  max-width: 9rem;
  padding: 0.28rem 0.48rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 35, 39, 0.09);
  border-radius: 4px;
  color: var(--ink);
  font-size: clamp(0.63rem, 1.5vw, 0.86rem);
  font-weight: 850;
  line-height: 1.05;
  box-shadow: 0 0.35rem 1rem rgba(32, 35, 39, 0.08);
}

.map-town strong {
  color: var(--red);
}

.label-garstang {
  left: 61%;
  top: 88%;
}

.label-carnforth {
  left: 63%;
  top: 17%;
}

.label-lancaster {
  left: 57%;
  top: 44%;
}

.label-morecambe {
  left: 33%;
  top: 36%;
}

.label-heysham {
  left: 25%;
  top: 49%;
}

.label-caton {
  left: 76%;
  top: 37%;
}

.location-list {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-list article {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.location-list article:last-child {
  border-bottom: 0;
}

.location-list span {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green);
  font-weight: 900;
}

.location-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.location-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.quote-section p {
  color: rgba(255, 255, 255, 0.72);
}

.quote-visual {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  background: #101316;
  border-radius: 8px;
}

.quote-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.55;
  background:
    linear-gradient(120deg, transparent 0 23%, var(--red) 23% 31%, transparent 31% 100%),
    linear-gradient(145deg, transparent 0 43%, var(--gold) 43% 48%, transparent 48% 100%),
    linear-gradient(78deg, transparent 0 60%, var(--blue) 60% 67%, transparent 67% 100%);
}

.quote-visual span {
  position: absolute;
  display: block;
  width: 42%;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(-26deg);
}

.quote-visual span:nth-child(1) {
  top: 25%;
  left: 18%;
}

.quote-visual span:nth-child(2) {
  top: 45%;
  left: 34%;
  background: rgba(210, 168, 82, 0.9);
}

.quote-visual span:nth-child(3) {
  top: 66%;
  left: 8%;
  background: rgba(49, 95, 125, 0.9);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 5vw;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.wall-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  isolation: isolate;
  min-height: 72svh;
  background:
    linear-gradient(90deg, rgba(4, 10, 7, 0.9) 0%, rgba(4, 10, 7, 0.68) 46%, rgba(4, 10, 7, 0.34) 100%),
    radial-gradient(circle at 74% 18%, rgba(255, 232, 199, 0.22), transparent 22rem),
    url("assets/prayer-wall-hero.jpg") center 48% / cover no-repeat;
  color: var(--white);
}

.wall-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4.2rem 4.2rem;
  mix-blend-mode: screen;
  opacity: 0.36;
}

.wall-hero > * {
  position: relative;
  z-index: 1;
}

.wall-hero .eyebrow {
  color: #f1d26f;
}

.wall-hero .hero-text {
  color: rgba(255, 255, 255, 0.9);
}

.wall-hero h1 {
  max-width: 13ch;
  color: var(--white);
  text-shadow: 0 0.18rem 1.6rem rgba(0, 0, 0, 0.74);
}

.wall-actions {
  display: grid;
  gap: 0.8rem;
  width: min(18rem, 100%);
}

.wall-section {
  background: #edf2ef;
}

.wall-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.wall-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.wall-note {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.request-card,
.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 18rem;
  padding: 1.1rem;
}

.request-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.request-card .request-prayer {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.08;
  white-space: pre-wrap;
}

.request-card .request-name {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--menu-font);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.request-card .request-name::before {
  content: "From ";
  color: var(--muted);
  font-weight: 500;
}

.request-action-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  align-self: end;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.prayed-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--menu-font);
  font-weight: 900;
}

.prayed-button:hover,
.prayed-button:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(36, 71, 57, 0.15);
}

.prayed-button.is-prayed {
  background: var(--green-soft);
  border-color: rgba(36, 71, 57, 0.28);
  color: var(--green);
  cursor: default;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 2rem;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h3,
.empty-state p {
  margin-bottom: 0;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-section,
  .section-heading,
  .map-layout,
  .quote-section,
  .wall-hero {
    grid-template-columns: 1fr;
  }

  .hero-section {
    justify-items: stretch;
    min-height: 0;
    padding-top: 3rem;
  }

  .hero-copy,
  .request-panel {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-grid article:last-child {
    border-bottom: 0;
  }

  .detail-number {
    margin-bottom: 1.8rem;
  }

  .request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .details-section,
  .map-section,
  .programme-section,
  .quote-section,
  .wall-hero,
  .wall-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .field-grid,
  .programme-item {
    grid-template-columns: 1fr;
  }

  .programme-item {
    gap: 0.35rem;
  }

  .location-list article {
    grid-template-columns: 1fr;
  }

  .map-town {
    padding: 0.22rem 0.34rem;
    font-size: 0.58rem;
  }

  .label-morecambe {
    left: 28%;
  }

  .label-caton {
    left: 73%;
  }

  .wall-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .request-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
