/* The address pages and the board index.
   Layered on top of styles.css, which owns the palette, the type and the
   header. Nothing here restates a variable, so a palette change in one file
   still moves the whole house. */

.address-page { background: var(--page); }

.address-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(80px, 12vh, 140px);
}

/* ---------- hero: the figure beside the painting ---------- */

.address-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 9vh, 104px) 0 clamp(40px, 7vh, 80px);
}

.address-hero-text .kicker { margin-bottom: 18px; }
.address-hero-text .kicker a { color: var(--gold); text-decoration: none; }
.address-hero-text .kicker a:hover { text-decoration: underline; }

.address-figure {
  font-family: var(--serif);
  font-size: clamp(76px, 15vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}

.address-lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.55;
  color: var(--ink-dim);
}
.address-lede em { color: var(--gold); font-style: normal; }

.address-ring-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.address-art {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.address-art img { display: block; width: 100%; height: auto; }
.address-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 18, 13, 0.55), rgba(22, 18, 13, 0) 45%);
  pointer-events: none;
}

/* ---------- the splits ---------- */

.split { padding: clamp(34px, 5vh, 56px) 0 0; }
.split + .split { border-top: 1px solid var(--page-line); margin-top: clamp(34px, 5vh, 56px); }

.split-head {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.split-head span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.order-note { font-size: 13px; color: var(--ink-faint); margin-bottom: 26px; }

.honest-empty {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-dim);
  border-left: 2px solid var(--page-line);
  padding-left: 20px;
  margin-top: 12px;
}

.address-page .verse-card {
  background: var(--page-raised);
  border: 1px solid var(--page-line);
  border-radius: 3px;
  padding: 22px 24px;
  margin-bottom: 12px;
  animation: none;
  opacity: 1;
  transform: none;
}
.address-page .verse-ref {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 600;
}
.address-page .niv-link {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
}
.address-page .niv-link:hover { color: var(--gold); }
.address-page .verse-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
}

details.more { margin-top: 8px; }
details.more summary {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 0;
  list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary:hover { color: var(--gold); }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }

/* ---------- calls to action and neighbours ---------- */

.address-cta {
  margin-top: clamp(56px, 9vh, 96px);
  padding: clamp(34px, 5vh, 52px);
  background: var(--page-raised);
  border: 1px solid var(--page-line);
  border-radius: 3px;
  text-align: center;
}
.address-cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; margin-bottom: 12px; }
.address-cta p { color: var(--ink-dim); max-width: 52ch; margin: 0 auto 26px; }

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: #16120d;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.cta-button:hover { opacity: 0.88; }

.address-neighbours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.address-neighbours a {
  display: block;
  padding: 20px 18px;
  background: var(--page-raised);
  border: 1px solid var(--page-line);
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.address-neighbours a span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.address-neighbours a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- the board index ---------- */

.board-hero { padding: clamp(52px, 10vh, 112px) 0 clamp(36px, 6vh, 64px); }
.board-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 500;
  margin: 16px 0 22px;
}

.ring-block { padding-top: clamp(40px, 6vh, 64px); }
.ring-block h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.ring-block h2 span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.ring-blurb { color: var(--ink-dim); margin: 8px 0 22px; font-size: 15px; }

.door-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 10px;
}
.door-grid a {
  display: block;
  padding: 16px 12px;
  background: var(--page-raised);
  border: 1px solid var(--page-line);
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.door-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.door-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.door-grid a:hover strong { color: var(--gold); }
.door-grid span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .address-hero { grid-template-columns: 1fr; gap: 30px; }
  .address-art { order: -1; max-width: 320px; }
  .address-neighbours { grid-template-columns: 1fr; }
  .address-neighbours a { font-size: 20px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .door-grid a:hover { transform: none; }
}

/* The invitation. It sits on every address page, above the lookup call to
   action, because a person who caught a number and read a verse is the exact
   person this site exists for. It asks for nothing. */
.door-invite {
  margin-top: clamp(48px, 8vh, 80px);
  padding: 26px 28px;
  border: 1px solid rgba(210, 160, 68, 0.3);
  border-radius: 3px;
  background: var(--page-raised);
}
.door-invite p { font-size: 16px; line-height: 1.68; color: var(--ink-dim); margin: 0; }
.door-invite strong { color: var(--ink); font-weight: 600; }
.door-invite a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(210,160,68,.4); }
.door-invite a:hover { border-bottom-color: var(--gold); }
