@charset "UTF-8";
/* ==========================================================================
   Loughborough URC — "Psalter"
   --------------------------------------------------------------------------
   The site is set like the order of service the congregation holds every
   Sunday: type, hairlines, a timetable and one plate. Nothing lifts, pulses,
   filters or toggles.

   Two typefaces, and the rule between them is enforceable:
     if a string is a SENTENCE  -> Source Serif 4  (--serif)
     if a string is a FACT      -> Libre Franklin  (--sans)
       (a time, a label, a button, a table heading, a nav item)

   Everything is set once, here at the top. No build step, no framework.
   ========================================================================== */

:root {
  /* --- Families ---------------------------------------------------------- */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* --- Grounds ----------------------------------------------------------- */
  --paper:      #f4f2ec;   /* limewash: warm, but not cream and not parchment */
  --paper-deep: #e9e6de;   /* banded ground, used sparingly */

  /* --- Ink --------------------------------------------------------------- */
  --ink:      #1a1a17;     /* all body text and headings; the footer ground */
  --ink-soft: #4a4842;     /* labels, captions, notes */

  /* --- Rules: there is one hairline colour, and it is visible ------------- */
  --rule:        #9c9587;  /* every hairline */
  --rule-strong: #6f6a5d;  /* borders of controls */

  /* --- Colour, used sparingly -------------------------------------------- */
  --link:  #0a5c93;        /* links, always underlined. A darkened logo azure. */
  --seal:  #6e2b1c;        /* oxblood, from the 1908 brick */
  --azure: #0798fa;        /* the church's own logo. Footer mark only. */

  /* --- On the ink footer -------------------------------------------------- */
  --paper-on-ink: #f4f2ec;
  --meta-on-ink:  #c9c4b8;
  --link-on-ink:  #7fb8de;
  --rule-on-ink:  #807b70;

  /* --- Sizes -------------------------------------------------------------- */
  --fs-h1:       clamp(2.5rem, 1.45rem + 4.3vw, 4.25rem);
  --fs-h2:       clamp(1.875rem, 1.45rem + 1.75vw, 2.625rem);
  --fs-h3:       clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
  --fs-lede:     clamp(1.4375rem, 1.33rem + .42vw, 1.625rem);
  --fs-body:     clamp(1.3125rem, 1.25rem + .31vw, 1.4375rem);
  --fs-standing: 1.375rem;
  --fs-meta:     1.1875rem;   /* 19px, the floor for everything but the colophon */
  --fs-fine:     1.125rem;    /* 18px, the footer colophon only */

  --lh-h1: 1.08; --lh-h2: 1.14; --lh-h3: 1.28;
  --lh-lede: 1.45; --lh-body: 1.60; --lh-meta: 1.50;

  --tr-h1: -.010em; --tr-h2: -.005em;
  --tr-eyebrow: .10em;        /* the only tracked capitals on the site */

  --measure: 38rem;           /* about 66 characters */

  /* --- Geometry ----------------------------------------------------------- */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 0;                /* There are no exceptions. */

  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-optical-sizing: auto;   /* never set font-variation-settings; it kills opsz */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 400; line-height: var(--lh-h1); letter-spacing: var(--tr-h1); }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-h3); }
h4 { font-size: 1.1875rem;    font-weight: 600; line-height: 1.35; }

h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--seal); }

p, li, dd { max-width: var(--measure); }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

img { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 1.75rem 0; }

/* The double rule under the masthead, and under a page head */
.rule-double { border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 4px; margin: 0; }

:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }

.skip-link {
  position: fixed; left: -999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper-on-ink);
  padding: 14px 22px; font-family: var(--sans); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

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

/* ==========================================================================
   The two voices
   ========================================================================== */

/* FACTS: nav, labels, times, buttons, table headings. Sentence case, never
   capitals, because capitals destroy word-shape for ageing eyes. */
.nav a, .menu-btn, .btn, .label, .week-time, .week th,
.standing .label, .figure-credit, .footer-head, .crumbs, .colophon {
  font-family: var(--sans);
}

/* The one tracked-capitals element on the site. */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  max-width: none;
}

.label {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 .35rem;
}

.lede  { font-size: var(--fs-lede); line-height: var(--lh-lede); }
.note  { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-soft); }
.verse { font-family: var(--serif); font-style: italic; font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--ink); }

/* Tabular figures, only where columns of numbers must line up. */
.week td, .week th, .standing-lead, .rates td, .rates th { font-variant-numeric: tabular-nums lining-nums; }

/* ==========================================================================
   Masthead
   ========================================================================== */

.site-header { background: var(--paper); }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0 18px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; flex: none; }
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; line-height: 1.15; letter-spacing: -.005em;
}

.nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.nav li { max-width: none; }
.nav a {
  font-size: var(--fs-meta); font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--seal); }

.menu-btn {
  display: none;
  font-size: var(--fs-meta); font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 9px 18px; cursor: pointer;
}
.menu-btn:hover { background: var(--paper-deep); }

@media (max-width: 940px) {
  .masthead { flex-wrap: wrap; }
  .menu-btn { display: inline-block; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-top: 16px; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: block; padding: 15px 0; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; }
}

/* ==========================================================================
   Buttons — set as printed labels in a ruled box, not as pills
   ========================================================================== */

.btn {
  display: inline-block;
  font-size: var(--fs-meta); font-weight: 600;
  padding: 14px 28px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper-on-ink);
  text-decoration: none;
  transition: background .15s linear, color .15s linear;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

.btn--seal { background: var(--seal); border-color: var(--seal); color: var(--paper-on-ink); }
.btn--seal:hover { background: var(--paper); color: var(--seal); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--outline:hover { background: var(--ink); color: var(--paper-on-ink); border-color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.9rem 0 0; max-width: none; }

/* ==========================================================================
   Hero — a printed title page
   ========================================================================== */

.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "title standing" "plate standing";
  align-items: start;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(32px, 4vw, 48px);
}
.hero-title { grid-area: title; }
.hero .plate { grid-area: plate; }
.hero .standing { grid-area: standing; }

.hero h1 { margin-bottom: .38em; }

.hero .verse {
  border-left: 2px solid var(--seal);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 32ch;
}

/* The fact line: the two things a stranger needs, ruled top and bottom. */
.factline {
  font-family: var(--sans);
  font-size: var(--fs-standing);
  line-height: 1.4;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  margin: 0 0 1.5rem;
  max-width: none;
  display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline;
}
.factline b { font-weight: 600; }
.factline span { color: var(--ink-soft); font-size: var(--fs-meta); }

/* The standing details column, behind a vertical hairline */
.standing { border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.5vw, 34px); }
.standing .label { margin-bottom: .3rem; }
.standing-lead { font-family: var(--serif); font-size: var(--fs-standing); line-height: 1.35; margin: 0 0 .5rem; }
.standing .note { margin: 0 0 .6rem; }
.standing hr { margin: 1.4rem 0; }
.standing ul { list-style: none; margin: 0; padding: 0; }
.standing li { font-size: var(--fs-meta); line-height: var(--lh-meta); padding: 7px 0; border-bottom: 1px solid var(--rule); max-width: none; }
.standing li:last-child { border-bottom: 0; }
.standing li b { font-family: var(--sans); font-weight: 600; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "standing" "plate"; }
  .standing { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); padding-top: 24px; }
}

/* ==========================================================================
   Plates — photographs are rectangles, with a printed credit beneath
   ========================================================================== */

.plate { margin: 0; }
.plate img { width: 100%; border-radius: var(--radius); }
.plate figcaption,
.figure-credit {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 12px;
  max-width: none;
}
.plate--frontispiece { max-width: 24rem; }
@media (max-width: 900px) { .plate--frontispiece { max-width: 22rem; } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(48px, 6vw, 84px) 0; border-top: 1px solid var(--rule); }
.section--deep { background: var(--paper-deep); }
.section-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2 { margin-bottom: .35em; }
.section-head .lede { color: var(--ink); }

/* ==========================================================================
   Ruled blocks — what used to be shadowed cards
   ========================================================================== */

.blocks { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.blocks--2 { grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 56px); }
.blocks--3 { grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .blocks--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blocks--2, .blocks--3 { grid-template-columns: 1fr; } }

.block { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.block h3 { margin-bottom: .3em; }
.block .label { margin-bottom: .5rem; }
.block p { max-width: none; }
.block p + p { margin-top: .9rem; }

/* ==========================================================================
   The week — a printed timetable
   ========================================================================== */

.week { width: 100%; border-collapse: collapse; margin: 0; }
.week caption { text-align: left; font-family: var(--sans); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); padding-bottom: 12px; }
.week th {
  text-align: left; font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-meta); color: var(--ink-soft);
  border-bottom: 1px solid var(--ink); padding: 0 20px 10px 0;
}
.week td { border-bottom: 1px solid var(--rule); padding: 16px 20px 16px 0; vertical-align: baseline; max-width: none; }
.week td:last-child, .week th:last-child { padding-right: 0; }
.week .week-time { font-family: var(--sans); font-weight: 600; font-size: var(--fs-standing); white-space: nowrap; }
.week .week-what { font-size: var(--fs-standing); }
.week .week-where { color: var(--ink-soft); font-size: var(--fs-meta); }

@media (max-width: 760px) {
  .week, .week tbody, .week tr, .week td { display: block; width: 100%; }
  .week thead { display: none; }
  .week tr { border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .week td { border: 0; padding: 0 0 3px; }
  .week td:last-child { padding-bottom: 0; }
}

/* ==========================================================================
   Lists set as printed matter
   ========================================================================== */

.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); max-width: none; font-size: var(--fs-meta); line-height: var(--lh-meta); }

/* Two- or three-column version, for the list of hirers */
.column-list { columns: 3; column-gap: clamp(28px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.column-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-meta); max-width: none; }
@media (max-width: 860px) { .column-list { columns: 2; } }
@media (max-width: 520px) { .column-list { columns: 1; } }

/* A definition-style contact list */
.contact-list { margin: 0; border-top: 1px solid var(--rule); }
.contact-list div { display: grid; grid-template-columns: minmax(150px, 15rem) 1fr; gap: 4px 28px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-family: var(--sans); font-weight: 600; font-size: var(--fs-meta); }
.contact-list dd { margin: 0; font-size: var(--fs-meta); line-height: var(--lh-meta); max-width: none; }
@media (max-width: 620px) { .contact-list div { grid-template-columns: 1fr; } }

/* A note set off by a rule, not a tinted box */
.aside-note {
  border-left: 2px solid var(--seal);
  padding: 4px 0 4px 20px;
  margin: 1.6rem 0;
}
.aside-note p { max-width: none; }

/* ==========================================================================
   The pull quote — set in type on paper, not over a photograph
   ========================================================================== */

.pullquote { text-align: center; padding: clamp(52px, 7vw, 92px) 0; border-top: 1px solid var(--rule); }
.pullquote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.75rem);
  line-height: 1.28; margin: 0 auto; max-width: 22ch; color: var(--ink);
}
.pullquote cite {
  display: block; margin-top: 1.4rem; font-style: normal;
  font-family: var(--sans); font-size: var(--fs-meta); font-weight: 600;
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--ink-soft);
}

/* ==========================================================================
   Timeline — a dated list
   ========================================================================== */

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule); max-width: none; }
.timeline .year { font-family: var(--sans); font-weight: 600; font-size: var(--fs-standing); color: var(--seal); }
.timeline p { margin: 0; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ==========================================================================
   Video
   ========================================================================== */

.video-frame { position: relative; padding-top: 56.25%; background: var(--ink); border-radius: var(--radius); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-embed { width: 100%; min-height: 360px; border: 1px solid var(--rule-strong); border-radius: var(--radius); }

/* ==========================================================================
   Interior page head
   ========================================================================== */

.page-head { padding: clamp(34px, 4vw, 56px) 0 clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--ink); }
.crumbs { font-size: var(--fs-meta); color: var(--ink-soft); margin: 0 0 1rem; max-width: none; }
.crumbs a { color: var(--ink-soft); }
.page-head h1 { font-size: var(--fs-h2); margin-bottom: .3em; }
.page-head p { font-size: var(--fs-lede); line-height: var(--lh-lede); }

/* ==========================================================================
   Blog
   ========================================================================== */

.post { padding: clamp(30px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); }
.post .date { font-family: var(--sans); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); margin: 0 0 .5rem; max-width: none; }
.post h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); margin-bottom: .5em; }

.post-body p, .post-body li { max-width: var(--measure); }
.post-body img { margin: 24px 0; border-radius: var(--radius); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body a { overflow-wrap: anywhere; }
.post-body blockquote {
  margin: 1.4rem 0; padding-left: 20px;
  border-left: 2px solid var(--seal);
  font-style: italic;
}
.post-body h2, .post-body h3, .post-body h4 { margin: 1.6em 0 .5em; }

.table-scroll { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.post-body table, .rates { border-collapse: collapse; width: 100%; min-width: 460px; font-size: var(--fs-meta); }
.post-body th, .post-body td, .rates th, .rates td { border: 1px solid var(--rule); padding: 11px 14px; text-align: left; vertical-align: top; max-width: none; }
.post-body th, .rates th { font-family: var(--sans); font-weight: 600; background: var(--paper-deep); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--paper-on-ink); padding: clamp(44px, 5vw, 68px) 0 30px; margin-top: 0; }
.site-footer a { color: var(--link-on-ink); }
.site-footer p, .site-footer li { max-width: none; font-size: var(--fs-meta); line-height: var(--lh-meta); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-head {
  font-size: var(--fs-meta); font-weight: 600;
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase;
  color: var(--meta-on-ink); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.footer-mark { width: 46px; height: auto; margin-bottom: 16px; }

.colophon {
  border-top: 1px solid var(--rule-on-ink);
  margin-top: clamp(32px, 4vw, 48px); padding-top: 22px;
  font-size: var(--fs-fine); color: var(--meta-on-ink);
  display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between;
}
.colophon span { max-width: none; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .menu-btn, .map-embed, .video-frame { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .pullquote { padding: 14pt 0; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .colophon { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .block, .post, .timeline li { break-inside: avoid; }
}
