/*
Theme Name: The Star Church
Theme URI: https://floulexweb.com
Author: Floulex
Description: Built from scratch for Rising Star Christian Center Church in Houston, Texas. A church whose Sunday is split between a broadcast at a quarter past ten and a gathering at three, so the site is built around two front doors rather than one service time.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: star-church
*/

/* ==========================================================================
   THE DESIGN, IN SHORT

   ARCHITECTURE is a SCHEDULE, not a hero. This church has two Sunday services
   five hours apart and the first one is on a screen. That is not a detail to
   fit into a page, it is the thing a first time visitor can get wrong at a
   real cost, so the page opens on two equal doors and a live band across the
   top of every page says which service is next, computed in Houston time.

   TYPE. Bodoni Moda for display, Figtree for everything read. A high contrast
   didone because this congregation dresses: the photographs are full of
   pinstripe suits, red ruffles and bold prints, and a quiet workhorse serif
   would be describing a different church from the one in the pictures.

   COLOUR is theirs, and they asked for it by name: "our designated colors,
   Purple and Beige". Purple #572467 comes off the star in their own mark, and
   beige is both their instruction and the actual room, whose walls are cream
   and whose platform is gold carpet.

   Measured, not eyeballed:
     ink   #241d22 on beige    14.27      beige  #f4eee2 on purple     9.81
     purple #572467 on beige    9.81      lilac  #d9c9dd on purple     7.20
     muted #6a5f62 on beige     5.30      sand   #e6d2a8 on purple     7.63
   Their logo grey #6d6e72 measures 4.41 on beige and FAILS, so it never sets
   type and lives only inside the mark.

   PHOTOGRAPHY is unusually good here: thirteen files at full phone resolution,
   two of them landscape. So this build can carry a full width photograph, and
   it does, once.

   MOTION. One reveal per element, never repeating, and the live band. No blend
   modes, no backdrop filters, no animation loop.
   ========================================================================== */

:root {
	--ink:        var(--wp--preset--color--ink);
	--beige:      var(--wp--preset--color--beige);
	--beige-deep: var(--wp--preset--color--beige-deep);
	--purple:     var(--wp--preset--color--purple);
	--plum:       var(--wp--preset--color--plum);
	--sand:       var(--wp--preset--color--sand);
	--lilac:      var(--wp--preset--color--lilac);
	--muted:      var(--wp--preset--color--muted);
	--line:       var(--wp--preset--color--line);
	--display: var(--wp--preset--font-family--display);
	--gut: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; }
img { max-width: 100%; height: auto; }
::selection { background: var(--purple); color: var(--beige); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.sc-skip {
	position: absolute; left: -9999px; top: 0; z-index: 99;
	background: var(--purple); color: var(--beige); padding: .7rem 1.1rem; font-size: .85rem;
}
.sc-skip:focus { left: .5rem; top: .5rem; }

.sc-wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gut); }
/* The measure never goes on the centring wrapper, or the column centres itself
   and the text jumps sideways between pages. */
.sc-read { max-width: 44rem; }
.sc-sec { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }
/* A page opener is followed immediately by another section, so two full
   section paddings meet and leave about nine rems of nothing under the lede. */
.sc-open { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 2.2vw, 1.75rem); }


/* ------------------------------------------------------- the live band */
/*
   Which service is next. The one piece of signature behaviour on this site,
   and it is made of something true rather than being an effect: a church whose
   Sunday is split across a screen and a room genuinely has this question, and
   no table of times answers it as directly as a sentence.
*/
.sc-strip { background: var(--plum); color: var(--beige); }
.sc-strip-in { max-width: 82rem; margin-inline: auto; padding: 0 var(--gut); }
.sc-next {
	display: flex; align-items: center; gap: .6rem;
	padding: .5rem 0;
	color: var(--beige); text-decoration: none;
	font-size: .84rem; line-height: 1.3;
}
.sc-next:hover { color: var(--sand); }
.sc-next-dot {
	flex: 0 0 auto; width: .5rem; height: .5rem; border-radius: 50%;
	background: var(--lilac);
}
.sc-next.is-live .sc-next-dot { background: #ff5b5b; }
.sc-next-lead {
	font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	font-size: .68rem;
}
.sc-next.is-live .sc-next-lead { color: #ff9b9b; }
.sc-next-rest { color: var(--lilac); }
.sc-next:hover .sc-next-rest { color: var(--sand); }


/* ------------------------------------------------------------ the header */

.sc-bar {
	position: sticky; top: 0; z-index: 30;
	background: var(--beige);
	border-bottom: 1px solid transparent;
	transition: border-color .2s linear, box-shadow .2s linear;
}
.sc-bar.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 22px -18px rgba(36, 29, 34, .9);
}
.sc-bar-in {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	max-width: 82rem; margin-inline: auto; padding: .55rem var(--gut);
}
/*
   Their own star, keyed out of the logo they sent, beside their name in type.
   The supplied file's wordmark is cropped off at both edges; the star is whole,
   so the star is the half of the mark that survives and the name is set.
*/
.sc-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 0 auto; }
/* At 38px the star read as a smudge rather than as a mark. It is a fine
   drawing with a lot of open space in it, so it needs more room than a solid
   logotype would. */
.sc-brand > img { width: clamp(54px, 6vw, 74px); height: auto; display: block; }
.sc-brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.sc-brand-short {
	font-family: var(--display); font-weight: 600;
	font-size: clamp(1.02rem, 1.5vw, 1.22rem);
	color: var(--ink); letter-spacing: -.005em;
}
.sc-brand-long {
	font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); margin-top: .18rem;
}

/* Nine items and a long church name share one bar. Measured at 82rem: the links
   need 764px and the row is 762px, so the gap maximum comes down from 1.35rem.
   Two pixels is all it was, and two pixels wrapped the whole menu onto a second
   line at every width. */
.sc-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.5vw, 1.2rem); }
.sc-nav a {
	font-size: .8rem; color: var(--ink); text-decoration: none; white-space: nowrap;
	padding-block: .3rem; border-bottom: 1px solid transparent;
}
.sc-nav a:hover,
.sc-nav a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--purple); }

/*
   A group in the bar. It is a <details>, so it opens on a click and from a
   keyboard with nothing loaded; site.js adds hover on top of that. The summary
   is dressed exactly like a link so the bar reads as one row of choices rather
   than as links with a control among them, and .is-here carries the same
   underline when the page being viewed is one of the group's children — a
   reader who is three pages deep should still see where they are from the bar.
*/
.sc-drop { position: relative; }
.sc-drop > summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center;
	font-size: .8rem; color: var(--ink); white-space: nowrap;
	padding-block: .3rem; border-bottom: 1px solid transparent;
}
.sc-drop > summary::-webkit-details-marker { display: none; }
.sc-drop > summary:hover,
.sc-drop[open] > summary,
.sc-drop.is-here > summary { color: var(--purple); border-bottom-color: var(--purple); }
.sc-caret {
	width: .32em; height: .32em; margin-left: .45em;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-.09em, -.09em);
}
.sc-drop[open] .sc-caret { transform: rotate(-135deg) translate(-.16em, -.16em); }
/*
   The panel hangs off the bar rather than pushing it, and is pulled left by its
   own padding so its first letter lines up with the summary above it. min-width
   rather than a fixed width: "First Lady Lakisha" sets the column, and a group
   with shorter labels should not be dragged out to match it.
*/
.sc-drop-panel {
	position: absolute; top: calc(100% + .35rem); left: -.9rem; z-index: 40;
	min-width: 11.5rem; padding: .35rem 0;
	background: var(--beige); border: 1px solid var(--line);
	box-shadow: 0 14px 34px -22px rgba(36, 29, 34, .95);
}
/*
   The gap between the word and the panel is a hole the pointer falls through.
   Moving down from "About us" towards "Pastor Byron" crosses .35rem that belongs
   to neither element, mouseleave fires on the way past, and the menu shuts under
   the cursor before the click lands. It reads as a glitch and it is geometry.

   Bridge it with an invisible strip that is part of the panel, so the pointer
   never actually leaves the group. The visible separation is unchanged. Widened
   past the panel's own edges because a diagonal move exits sideways as often as
   it exits downwards.
*/
.sc-drop-panel::before {
	content: ""; position: absolute;
	top: -.5rem; left: -.5rem; right: -.5rem; height: .5rem;
}
.sc-drop-panel a {
	display: block; white-space: nowrap;
	padding: .5rem .9rem; border-bottom: 0; font-size: .82rem;
}
.sc-drop-panel a:hover,
.sc-drop-panel a[aria-current="page"] {
	background: var(--purple); color: var(--beige); border-bottom-color: transparent;
}

/* Visible to a screen reader, not to the eye. Used to say that a link leaves
   the site, which sighted readers get from the styling instead. */
.sc-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* The one nav item that is an action rather than a page, and that leaves the
   site. Built as the page's own call to action — solid, square, the same purple
   and the same plum on hover as .sc-btn — so it reads as the button it is
   rather than as a page nobody has visited. Padding is trimmed from the body
   button's, because a bar is not a page. */
.sc-nav a.sc-nav-out {
	background: var(--purple); color: var(--beige); font-weight: 600;
	border: 1px solid var(--purple); padding: .46rem .9rem;
	margin-left: .2rem; border-bottom-color: var(--purple);
}
.sc-nav a.sc-nav-out:hover {
	background: var(--plum); border-color: var(--plum); color: var(--beige);
	border-bottom-color: var(--plum);
}
/* The same button in the phone panel. Inline-block and left aligned, so it is a
   button sitting in the list rather than a row pretending to be one. */
.sc-menu-panel a.sc-nav-out {
	display: inline-block; margin: .55rem 0 .2rem;
	background: var(--purple); color: var(--beige); font-weight: 600;
	border: 1px solid var(--purple); padding: .55rem 1.05rem;
}
.sc-menu-panel a.sc-nav-out:hover { background: var(--plum); border-color: var(--plum); }

.sc-menu { display: none; }
.sc-menu > summary {
	list-style: none; cursor: pointer; font-size: .82rem;
	padding: .45rem .85rem; border: 1px solid var(--line); color: var(--ink);
}
.sc-menu > summary::-webkit-details-marker { display: none; }
.sc-menu[open] > summary { background: var(--purple); color: var(--beige); border-color: var(--purple); }
.sc-menu-panel {
	position: absolute; left: 0; right: 0; background: var(--beige);
	border-block: 1px solid var(--line); padding: .5rem var(--gut) 1rem;
}
.sc-menu-panel a {
	display: block; padding: .7rem 0; border-bottom: 1px solid var(--line);
	font-size: .95rem; color: var(--ink); text-decoration: none;
}
.sc-menu-panel a:last-child { border-bottom: 0; }
/*
   A group on a phone is a heading with its pages under it, not a second drawer.
   The panel is already the thing that was opened; nesting a disclosure inside a
   disclosure asks for two taps to reach a page and hides the site from someone
   who is scanning it.
*/
.sc-menu-head {
	margin: .9rem 0 0; font-size: .68rem; letter-spacing: .12em;
	text-transform: uppercase; color: var(--muted);
}
.sc-menu-panel a.sc-menu-sub { padding-left: .85rem; }


/* --------------------------------------------------------- the two doors */
/*
   The opening. Two services, side by side, the same size, because the choice
   between them is the visitor's to make and stacking one above the other would
   answer it for them wrongly. The screen half is purple and the room half is
   beige, so which is which is legible before a word is read.
*/
.sc-doors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.sc-door { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.sc-door-screen { background: var(--purple); color: var(--beige); }
.sc-door-room   { background: var(--beige-deep); color: var(--ink); }
.sc-door-kind {
	margin: 0 0 .5rem; font-size: .72rem; letter-spacing: .12em;
	text-transform: uppercase; font-weight: 700;
}
.sc-door-screen .sc-door-kind { color: var(--sand); }
.sc-door-room   .sc-door-kind { color: var(--purple); }
.sc-door-time {
	margin: 0 0 .7rem;
	font-family: var(--display); font-weight: 500;
	font-size: var(--wp--preset--font-size--clock);
	line-height: 1;
}
.sc-door-where { margin: 0 0 1.5rem; font-size: .98rem; }
.sc-door-screen .sc-door-where { color: var(--lilac); }
.sc-door-room   .sc-door-where { color: var(--muted); }
.sc-door-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.sc-doors-note {
	margin: 1.1rem 0 0; font-size: .92rem; color: var(--muted); max-width: 44rem;
}


/* ---------------------------------------------------------------- buttons */

.sc-btn {
	display: inline-block; font-size: .88rem; line-height: 1; font-weight: 600;
	padding: .8rem 1.3rem;
	background: var(--purple); color: var(--beige);
	border: 1px solid var(--purple); text-decoration: none; cursor: pointer;
	transition: background .16s linear, color .16s linear, border-color .16s linear;
}
.sc-btn:hover { background: var(--plum); border-color: var(--plum); color: var(--beige); }
.sc-btn-quiet { background: transparent; color: var(--purple); }
.sc-btn-quiet:hover { background: var(--purple); color: var(--beige); }
/* On the purple door the same two buttons have to invert. */
.sc-door-screen .sc-btn { background: var(--beige); color: var(--plum); border-color: var(--beige); }
.sc-door-screen .sc-btn:hover { background: var(--sand); border-color: var(--sand); color: var(--plum); }
.sc-door-screen .sc-btn-quiet { background: transparent; color: var(--beige); border-color: var(--lilac); }
.sc-door-screen .sc-btn-quiet:hover { background: var(--beige); color: var(--plum); }
.sc-invert .sc-btn { background: var(--beige); color: var(--plum); border-color: var(--beige); }
.sc-invert .sc-btn:hover { background: var(--sand); border-color: var(--sand); }
.sc-invert .sc-btn-quiet { background: transparent; color: var(--beige); border-color: var(--lilac); }
.sc-invert .sc-btn-quiet:hover { background: var(--beige); color: var(--plum); }
.sc-acts { display: flex; flex-wrap: wrap; gap: .6rem; }


/* ------------------------------------------------------------------ prose */

.sc-lede { font-size: var(--wp--preset--font-size--lede); line-height: 1.5; color: var(--muted); }
.sc-quiet { color: var(--muted); }
/*
   A component's DEFAULT is correct for the page's dominant ground, and the
   exception takes the descendant selector. This page is beige, so every muted
   value above is the light one and the inverted section restates them.
*/
.sc-invert { background: var(--plum); color: var(--beige); }
.sc-invert h1, .sc-invert h2, .sc-invert h3, .sc-invert h4 { color: var(--beige); }
.sc-invert .sc-lede, .sc-invert .sc-quiet { color: var(--lilac); }
.sc-invert a { color: var(--beige); text-decoration-color: var(--lilac); }
.sc-invert a:hover { color: var(--sand); }

.sc-verse {
	margin: 0;
	font-family: var(--display); font-style: italic;
	font-size: var(--wp--preset--font-size--title-3);
	line-height: 1.36;
}
/*
   The statement of faith. Thirteen articles, so a two column grid is out: no
   divisor of thirteen leaves a full last row and a ragged one is visible. Each
   article is itself two columns instead, the doctrine named on the left and the
   text on the right, which uses the page width without running his prose to a
   120 character measure.
*/
.sc-doctrine { display: grid; gap: 1.7rem; margin: 0; padding: 0; list-style: none; }
.sc-doc {
	display: grid; grid-template-columns: 13rem minmax(0, 1fr);
	gap: clamp(.9rem, 2.4vw, 2.2rem);
	border-top: 1px solid var(--line); padding-top: 1.1rem;
}
.sc-doc h3 { margin: 0; font-size: var(--wp--preset--font-size--title-3); }
.sc-doc p { margin: 0 0 .55rem; max-width: 40rem; }
.sc-doc p:last-child { margin-bottom: 0; }
.sc-doc cite {
	display: block; font-style: normal; margin-top: .5rem;
	font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--purple); font-weight: 700;
}
@media (max-width: 780px) {
	.sc-doc { grid-template-columns: 1fr; gap: .45rem; }
}

.sc-verse > cite {
	display: block; margin-top: .7rem;
	font-family: var(--wp--preset--font-family--body); font-style: normal;
	font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted);
}
/* The component default belongs to the light ground the site mostly is; the plum
   panel takes the descendant selector. Written the other way round it was 1.28:1
   on beige, and invisible. */
.sc-invert .sc-verse > cite { color: var(--sand); }


/* ------------------------------------------------------- the week, listed */

.sc-week { border-top: 1px solid var(--line); max-width: 56rem; }
.sc-invert .sc-week { border-top-color: rgba(217, 201, 221, .35); }
.sc-week-row {
	display: grid; grid-template-columns: 11rem minmax(0, 1fr);
	gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line);
}
.sc-invert .sc-week-row { border-bottom-color: rgba(217, 201, 221, .35); }
.sc-week-when { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.sc-week-when > span {
	font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.sc-week-when > strong {
	font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--purple);
}
.sc-invert .sc-week-when > span { color: var(--lilac); }
.sc-invert .sc-week-when > strong { color: var(--sand); }
.sc-week-row > div > h3 { margin: 0 0 .3rem; }
.sc-week-row > div > p { margin: 0; color: var(--muted); }
.sc-invert .sc-week-row > div > p { color: var(--lilac); }


/* -------------------------------------------------------------- watching */

.sc-watch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; }
.sc-watch-card {
	display: flex; flex-direction: column; gap: .25rem;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--line); text-decoration: none;
	background: var(--beige-deep);
	transition: background .16s linear, border-color .16s linear;
}
.sc-watch-card:hover { background: var(--purple); border-color: var(--purple); }
.sc-watch-where { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.sc-watch-handle { font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.sc-watch-go { margin-top: .8rem; font-size: .82rem; font-weight: 600; color: var(--purple); }
.sc-watch-card:hover .sc-watch-where,
.sc-watch-card:hover .sc-watch-go { color: var(--beige); }
.sc-watch-card:hover .sc-watch-handle { color: var(--lilac); }
.sc-invert .sc-watch-card { background: rgba(244, 238, 226, .06); border-color: rgba(217, 201, 221, .4); }
.sc-invert .sc-watch-where { color: var(--beige); }
.sc-invert .sc-watch-handle { color: var(--lilac); }
.sc-invert .sc-watch-go { color: var(--sand); }
.sc-invert .sc-watch-card:hover { background: var(--beige); border-color: var(--beige); }
.sc-invert .sc-watch-card:hover .sc-watch-where,
.sc-invert .sc-watch-card:hover .sc-watch-go { color: var(--plum); }
.sc-invert .sc-watch-card:hover .sc-watch-handle { color: var(--purple); }


/* --------------------------------------------------------------- giving */

.sc-give { border-top: 1px solid var(--line); max-width: 46rem; }
.sc-give-row {
	display: grid; grid-template-columns: 9rem minmax(0, 1fr);
	gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.sc-give-name {
	margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--purple);
}
.sc-give-detail { margin: 0; color: var(--muted); word-break: break-word; }
.sc-give-detail strong { color: var(--ink); font-weight: 600; }


/* ------------------------------------------------------------- pictures */

.sc-fig { margin: 0; }
.sc-fig img { width: 100%; height: auto; display: block; }
.sc-fig > figcaption {
	font-size: .8rem; line-height: 1.5; color: var(--muted);
	padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .7rem;
}
.sc-invert .sc-fig > figcaption { color: var(--lilac); border-top-color: rgba(217, 201, 221, .35); }

/* Their photographs are 4032px wide and two of them are landscape, so this
   build can carry a full width picture. It does, once, on the home page. */
.sc-band { width: 100vw; margin-left: calc(50% - 50vw); }
.sc-band img {
	width: 100%; height: auto; display: block;
	aspect-ratio: 16 / 7; object-fit: cover; object-position: center 38%;
}
.sc-band > figcaption {
	max-width: 82rem; margin-inline: auto; padding: .7rem var(--gut) 0;
	font-size: .8rem; color: var(--muted);
}

.sc-beside {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
	gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start;
}
.sc-beside-flip { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
/* `start` is right when both columns are of a length, which is the usual case and
   why it is the default. Where the copy is only a few lines against a tall
   portrait it strands the text at the top of a column of white, so that pairing
   opts into centring instead. */
.sc-beside-mid { align-items: center; }
.sc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }


/* ------------------------------------------------------------- contact */

.sc-reach { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.sc-reach-row {
	display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
	gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.sc-reach-row > span:first-child {
	font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sc-addr { display: block; }
.sc-addr > span { display: block; }

.sc-map { margin: 1.6rem 0 0; }
.sc-map-wrap { max-width: 52rem; }
.sc-map-wrap > .sc-map { margin-top: 0; }
.sc-map > iframe {
	display: block; width: 100%; aspect-ratio: 16 / 10;
	border: 1px solid var(--line); background: var(--beige-deep);
}
.sc-map > figcaption {
	font-size: .8rem; color: var(--muted);
	padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .7rem;
}

.sc-form { max-width: 32rem; }
.sc-field { margin-bottom: 1.15rem; }
.sc-field > label {
	display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); margin-bottom: .4rem; font-weight: 600;
}
.sc-field input, .sc-field textarea {
	width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: 0; padding: .72rem .8rem;
}
.sc-field input:focus, .sc-field textarea:focus { border-color: var(--purple); outline: none; }
.sc-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.sc-hp { position: absolute; left: -9999px; }
.sc-note { padding: .85rem 1rem; margin: 0 0 1.4rem; font-size: .96rem; }
.sc-note-ok  { background: var(--beige-deep); border-left: 3px solid var(--purple); }
.sc-note-bad { background: var(--beige-deep); border-left: 3px solid #a8321f; }

/* The church's guest card. Given weight, because for a first-time visitor this
   is the only thing on the page that asks them to do something. */
.sc-guest {
	max-width: 34rem; margin: 2.6rem 0 0;
	padding: 1.6rem 1.7rem; background: var(--beige-deep);
	border-left: 3px solid var(--purple);
}
.sc-guest h3 { margin: 0 0 .6rem; }
.sc-guest p { margin: 0 0 1.1rem; }
.sc-guest .sc-acts { margin-bottom: 0; }
.sc-guest-note {
	margin: .75rem 0 0 !important; font-size: .78rem; color: var(--muted);
}

/* Preview mode: the form is shown but nothing can be sent. Muted rather than
   greyed to illegibility — the church is reading it to see what they will get,
   so the labels and the note both have to stay comfortably readable. The note
   sits BELOW the fields here, where the send button would be, so it answers the
   question at the moment it is asked. */
.sc-form-off .sc-field input,
.sc-form-off .sc-field textarea {
	background: var(--beige-deep); color: var(--muted); cursor: not-allowed;
	-webkit-text-fill-color: var(--muted);   /* Safari ignores color on :disabled */
	opacity: 1;                              /* and iOS fades it to unreadable */
}
.sc-form-off .sc-note {
	margin: 1.4rem 0 0; background: var(--beige-deep);
	border-left: 3px solid var(--purple);
}


/* -------------------------------------------------------------- footer */

.sc-foot { background: var(--plum); color: var(--beige); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.sc-foot-grid {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3.5vw, 3rem);
}
.sc-foot-brand > img { width: 74px; height: auto; display: block; margin-bottom: .9rem; }
.sc-foot-name { margin: 0 0 .25rem; font-family: var(--display); font-size: 1.24rem; font-weight: 500; }
.sc-foot-motto { margin: 0; font-style: italic; color: var(--sand); font-family: var(--display); }
.sc-foot h2 {
	font-family: var(--wp--preset--font-family--body);
	font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--lilac); margin: 0 0 .8rem;
}
.sc-foot-h2-gap { margin-top: 1.5rem !important; }
.sc-foot-line { margin: 0 0 .35rem; color: var(--beige); }
.sc-foot-line strong { font-family: var(--display); font-size: 1.1rem; color: var(--sand); font-weight: 500; }
.sc-foot ul { list-style: none; margin: 0; padding: 0; }
.sc-foot li { margin-bottom: .5rem; }
/* The bar's groups, shown open. A footer index is read by somebody who did not
   find what they wanted upstairs, so every page is visible at once. */
.sc-foot-group > span {
	display: block; margin-bottom: .4rem;
	font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--lilac);
}
.sc-foot-group > ul { padding-left: .8rem; border-left: 1px solid rgba(217, 201, 221, .28); }
.sc-foot a { color: var(--beige); text-decoration: none; border-bottom: 1px solid rgba(217, 201, 221, .4); }
.sc-foot a:hover { color: var(--sand); border-bottom-color: var(--sand); }
.sc-foot-base {
	display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
	margin-top: 2.25rem; padding-top: 1.1rem;
	border-top: 1px solid rgba(217, 201, 221, .3);
	font-size: .78rem; color: var(--lilac);
}


/* --------------------------------------------------------------- motion */

.sc-bar-sentinel { height: 1px; margin-bottom: -1px; }
.js .sc-rev {
	opacity: 0; transform: translateY(14px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .25, 1);
}
.js .sc-rev.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.js .sc-rev { opacity: 1; transform: none; transition: none; }
	* { scroll-behavior: auto !important; }
}


/* ------------------------------- WordPress layout, and narrower screens */
/*
   Core's flow layout puts margin-block-start on every child after the first,
   which inside a grid becomes an extra gap on one axis only and starts the two
   columns at different heights. Zeroed on the grid containers, which do have
   uniform children, and nowhere else.
*/
.sc-beside > *, .sc-pair > *, .sc-doors > *, .sc-foot-grid > *, .sc-watch > * { margin-block: 0; }
:where(.sc-sec) { margin-block: 0 !important; }
.sc-read > * + * { margin-block-start: 1.05em; }
.sc-read > h2, .sc-read > h3 { margin-block-start: 1.9em; }
.sc-read > :first-child { margin-block-start: 0; }
.sc-fig.wp-block-image { margin: 0; }
.sc-fig.wp-block-image > figcaption { text-align: left; }

@media (max-width: 960px) {
	.sc-beside, .sc-beside-flip { grid-template-columns: 1fr; }
	.sc-beside .sc-fig, .sc-beside-flip .sc-fig { max-width: 28rem; }
	.sc-foot-grid { grid-template-columns: 1fr 1fr; }
	.sc-foot-brand { grid-column: 1 / -1; }
}
/*
   The hand-off to the phone menu happens where the bar actually runs out of
   room, which is not where it used to say. At 820px the desktop nav was still
   being rendered into a bar that could not hold it, so the PAGE scrolled
   sideways: 118px of overflow at 900 and 177px at 830, on the live site, before
   the ninth item existed. It was never caught because the audit measures 1440
   and 390 and this failure lives between them.

   That put it at 1279px, which was honest for ten flat items: the links needed
   740px, the nameplate 353px and the gap 24px, so the row only reached 1117px
   of content at about 1245px of viewport.

   GROUPING THE MENU IS WHAT MOVED IT. Six top-level items need 409px instead of
   740, so the row now asks for 697px and 900 leaves 113px of slack. Measured at
   every width from 1024 down to 768 with the nav forced visible rather than
   calculated: it does not overflow even at 768, and a breakpoint belongs where
   a thing fits comfortably, not where it merely fits.

   The gain is the point of the change: a 1200px laptop and an iPad in landscape
   now get the real menu instead of a hamburger.
*/
@media (max-width: 899px) {
	.sc-nav { display: none; }
	.sc-menu { display: block; }
	.sc-bar-in { align-items: center; }
}
@media (max-width: 820px) {
	.sc-doors { grid-template-columns: 1fr; }
	.sc-band img { aspect-ratio: 4 / 3; }
}
/*
   At 320px the nameplate is 225px and the menu button 62px; with the gap between
   them that is 311px of a 280px row, and the page scrolls sideways. Pre-existing
   and nothing to do with the ninth menu item — the live eight-item site
   overflowed by the same 35px. The star comes down, the name comes down, and the
   brand is allowed to shrink instead of insisting on its full width.
*/
@media (max-width: 400px) {
	.sc-bar-in { gap: .75rem; }
	.sc-brand { flex: 0 1 auto; min-width: 0; }
	.sc-brand > img { width: 44px; }
	.sc-brand-short { font-size: .95rem; }
}
@media (max-width: 620px) {
	.sc-week-row { grid-template-columns: 1fr; gap: .35rem; }
	.sc-week-when { flex-direction: row; align-items: baseline; gap: .6rem; }
	.sc-give-row, .sc-reach-row { grid-template-columns: 1fr; gap: .2rem; }
	.sc-watch, .sc-pair { grid-template-columns: 1fr; }
	.sc-foot-grid { grid-template-columns: 1fr; }
	.sc-brand-long { display: none; }
	.sc-next { font-size: .78rem; }
	.sc-map > iframe { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------- Floulex credit (2026-11-21) */
.sc-foot-base .fx-credit { margin: 0; }
.fx-credit-about {
	max-width: 42rem; margin: 2.5rem auto 0; padding: 0 1.25rem 2.5rem;
	font-size: .85rem; color: inherit; opacity: .8; text-align: center;
}
