/* Unity Church — shared styles
   Palette: near-black / white / off-white / hairline border only, no accent colour.
   Type: single sans family (Inter), weight does the work of hierarchy. */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --border: #e8e8e5;
  --gutter: 6vw;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav .wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--black);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* Hero (black block) */

.hero {
  background: var(--black);
  color: var(--white);
}

.hero .wrap {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(3rem, 9vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 42ch;
  color: #d9d9d6;
  margin: 0 0 2rem;
}

.hero .cta {
  display: inline-block;
  font-weight: 600;
  border-bottom: 2px solid var(--white);
  padding-bottom: 3px;
}

/* Generic page header (non-black pages) */

.page-header {
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.page-header .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 56ch;
  color: #3a3a3a;
  margin: 0;
}

/* Section rhythm */

section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

section + section {
  border-top: 1px solid var(--border);
}

.section-off {
  background: var(--off-white);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  max-width: 68ch;
  margin: 0 0 1rem;
}

/* Entry list (used for homepage links into subpages, and for belief statements) */

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.entry-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.entry-list h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.entry-list a.entry-link {
  display: block;
}

.entry-list a.entry-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Events list (What's On) */

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.events-list li {
  display: grid;
  grid-template-columns: minmax(0, 9rem) 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  align-items: baseline;
}

.events-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.events-list time {
  font-weight: 600;
  font-size: 0.95rem;
}

.events-list h3 {
  margin: 0 0 0.35rem;
}

.events-list .meta {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

@media (max-width: 540px) {
  .events-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Photo bands (grayscale forced in code, so any photo dropped in stays on-palette) */

.photo-band {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* Footer */

.site-footer {
  background: var(--black);
  color: #cfcfcc;
  padding: 3rem 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer .foot-name {
  color: var(--white);
  font-weight: 700;
}
