/* Smithville Church of God — Classic design (same tokens as the comms.church
   Classic design so this and the Bricks build are comparable). */

:root {
	/* Palette from Addison, 24 Nov 2026: mist, blush, taupe, blue, charcoal. */
	--mist: #d5dbe5;
	--blush: #ccb8b5;
	--taupe: #9a8482;
	--blue: #6270a1;
	--charcoal: #312e3b;
	--primary: var(--blue);
	--primary-dark: #4a5688;
	--link: #4a5688; /* blue, deepened: swatch blue is 3.5:1 on mist, too faint for text */
	--ink: var(--charcoal);
	--body: #45424f;
	--muted: #5f5250; /* taupe, deepened for small text */
	--tint: var(--mist);
	--hairline: rgb(154 132 130 / 0.45); /* taupe */
	--white: #fff;
	--on-dark: var(--mist);
	--font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, sans-serif;
	--radius: 8px;
	--radius-btn: 6px;
	--shadow: 0 2px 16px rgb(0 0 0 / 0.08);
	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--space: clamp(56px, 8vw, 104px);
	--text-display: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
	--text-section: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
	--text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--body);
	background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sm-section--dark :focus-visible, .sm-footer :focus-visible { outline-color: var(--white); }
h1, h2, h3 {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	font-variation-settings: 'opsz' 72;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sm-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sm-narrow { max-width: 820px; }
.sm-center { text-align: center; }
.sm-muted { color: var(--muted); }
.sm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; }
.sm-skip:focus { left: 8px; }
.sm-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.sm-eyebrow {
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--link); margin-bottom: 0.75rem;
}

/* Buttons */
.sm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.sm-btns--center { justify-content: center; }
.sm-btn {
	display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px;
	padding: 0.7em 1.4em; border-radius: var(--radius-btn); border: 2px solid var(--primary);
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.sm-btn--primary { background: var(--primary); color: var(--white); }
.sm-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.sm-btn--ghost { background: transparent; border-color: var(--link); color: var(--link); }
.sm-btn--ghost:hover { background: var(--link); color: var(--white); }
.sm-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; }
.sm-link:hover { text-decoration: underline; }

/* Header */
.sm-header { background: var(--white); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.admin-bar .sm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sm-header { top: 0; } }
.sm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.sm-header__logo { text-decoration: none; color: var(--ink); }
.sm-header__name { font: 700 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.1 var(--font-heading); }
.sm-nav { display: flex; align-items: center; gap: 28px; }
.sm-nav__list { display: flex; gap: 28px; }
.sm-nav__link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.sm-nav__link:hover, .sm-nav__link[aria-current="page"] { color: var(--link); border-bottom-color: currentColor; }
.sm-nav__cta { min-height: 44px; padding: 0.55em 1.15em; }
.sm-header__toggle { display: none; }

@media (max-width: 899px) {
	.sm-header__toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
		background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
	}
	.sm-header__bars, .sm-header__bars::before, .sm-header__bars::after {
		display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s;
	}
	.sm-header__bars::before, .sm-header__bars::after { content: ''; position: absolute; left: 0; }
	.sm-header__bars::before { top: -7px; }
	.sm-header__bars::after { top: 7px; }
	.sm-nav-open .sm-header__bars { background: transparent; }
	.sm-nav-open .sm-header__bars::before { transform: translateY(7px) rotate(45deg); }
	.sm-nav-open .sm-header__bars::after { transform: translateY(-7px) rotate(-45deg); }
	.sm-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--white); border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 24px;
		box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
	}
	.sm-nav-open .sm-nav { display: flex; }
	.sm-nav__list { flex-direction: column; gap: 0; }
	.sm-nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 1.125rem; }
	.sm-nav__link[aria-current="page"] { border-bottom-color: var(--hairline); }
	.sm-nav__cta { margin-top: 16px; justify-content: center; }
}

/* Sections */
.sm-section { padding-block: var(--space); }
.sm-section--tint { background: var(--tint); }
.sm-section--flush-top { padding-top: 0; }
.sm-pagehead + .sm-section--tint.sm-section--flush-top { padding-top: 8px; }
.sm-section--dark { background: var(--ink); color: var(--on-dark); }
.sm-section__head { margin-bottom: 2.25rem; }
.sm-section__title { font-size: var(--text-section); }
.sm-section__title--sm { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-top: 0.25em; }
.sm-section__more { margin: 2rem 0 0; }
.sm-split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .sm-split { grid-template-columns: 1.1fr 1fr; } }

/* Arch — the Classic signature, photos only */
.sm-arch { border-radius: 999px 999px var(--radius) var(--radius); object-fit: cover; width: 100%; }

/* Hero */
.sm-hero { background: var(--tint); padding-top: clamp(40px, 6vw, 88px); }
.sm-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .sm-hero__grid { grid-template-columns: 1.05fr 1fr; } }
.sm-hero__title { font-size: var(--text-display); line-height: 1.02; margin-bottom: 0.35em; }
.sm-hero__lead { font-size: var(--text-lg); max-width: 34em; }
.sm-hero__media .sm-arch { aspect-ratio: 4 / 3.4; max-height: 560px; }
@media (max-width: 899px) { .sm-hero__media .sm-arch { aspect-ratio: 4 / 3; } }

/* Facts row: service times */
.sm-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	border-top: 1px solid var(--hairline); margin-top: clamp(40px, 5vw, 64px);
}
.sm-hero .sm-facts { padding-bottom: clamp(32px, 4vw, 56px); }
.sm-facts__item { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.sm-facts__item + .sm-facts__item { border-left: 1px solid var(--hairline); padding-left: 24px; }
.sm-facts__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sm-facts__value { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.15 var(--font-heading); color: var(--ink); }
.sm-facts__meta { color: var(--body); }
.sm-section .sm-facts { margin-top: 1rem; }
@media (max-width: 640px) {
	.sm-facts { grid-template-columns: 1fr; }
	.sm-facts__item { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
	.sm-facts__item + .sm-facts__item { border-left: 0; padding-left: 0; }
}

/* Welcome letter with a sunk (newspaper) drop cap: the first letter's top
   lines up with the first line's capitals and its foot sits on the third
   line's baseline, so the first three lines indent around it. Heading and
   text share one left edge. */
.sm-letter { max-width: 820px; }
.sm-letter--left { max-width: none; }
.sm-letter__body { font-size: var(--text-lg); text-wrap: pretty; }
.sm-letter__body > p:first-child::first-letter {
	/* Fallback (Firefox): a float sized to about three lines at line-height 1.7. */
	float: left; font: 600 5.55em/0.8 var(--font-heading); color: var(--primary);
	margin: 0.07em 0.08em 0 0;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
	.sm-letter__body > p:first-child::first-letter {
		float: none; font-size: inherit; line-height: inherit; margin: 0 0.1em 0 0;
		-webkit-initial-letter: 3; initial-letter: 3;
	}
}

/* Events — ruled list with big day numbers */
.sm-events { border-top: 1px solid var(--hairline); }
.sm-events__item { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.sm-events__date { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-top: 4px; }
.sm-events__month { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sm-events__day { font: 600 3.2rem/1 var(--font-heading); color: var(--link); margin-top: 4px; }
.sm-events__title { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin-bottom: 0.15em; }
.sm-events__when { font-weight: 600; color: var(--ink); margin-bottom: 0.3em; }
.sm-events__note { margin: 0; }
.sm-events__empty { font-size: var(--text-lg); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 24px 0; margin: 0; }
.sm-events__ask { margin-top: 2rem; }
@media (max-width: 480px) { .sm-events__item { grid-template-columns: 64px 1fr; gap: 16px; } .sm-events__day { font-size: 2.5rem; } }

/* Steps */
.sm-steps { display: grid; gap: clamp(32px, 4vw, 48px); counter-reset: step; }
@media (min-width: 760px) { .sm-steps { grid-template-columns: repeat(3, 1fr); } }
.sm-steps__item { counter-increment: step; text-align: center; }
.sm-steps__img { aspect-ratio: 3 / 3.6; margin-bottom: 20px; }
.sm-steps__title::before {
	content: counter(step, upper-roman) '.'; display: block; font-style: italic; font-weight: 500;
	color: var(--link); font-size: 1rem; margin-bottom: 4px;
}
.sm-steps__title { font-size: 1.5rem; }

/* Quote (dark) */
.sm-quote { margin: 0 auto; max-width: 900px; text-align: center; }
.sm-quote blockquote { margin: 0; }
.sm-quote p { font: italic 500 clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem)/1.3 var(--font-heading); color: var(--white); }
.sm-quote figcaption { font-weight: 600; color: var(--blush); letter-spacing: 0.04em; }

/* Closing */
.sm-closing { background: var(--blush); }
.sm-closing__lead { font-size: var(--text-lg); color: var(--ink); }
/* Blue is too faint against blush, so the buttons here are charcoal. */
.sm-closing .sm-btn { border-color: var(--ink); }
.sm-closing .sm-btn--primary { background: var(--ink); }
.sm-closing .sm-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.sm-closing .sm-btn--ghost { color: var(--ink); }
.sm-closing .sm-btn--ghost:hover { background: var(--ink); color: var(--white); }

/* Page head */
.sm-pagehead { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.sm-pagehead__title { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.sm-pagehead__intro { font-size: var(--text-lg); max-width: 38em; color: var(--body); margin: 0; }
.sm-pagehead + .sm-section--tint.sm-section--flush-top { padding-top: clamp(32px, 4vw, 56px); }

/* Visit: what to expect */
.sm-expect { margin: 0; }
.sm-expect__row { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.sm-expect__row:last-child { border-bottom: 1px solid var(--hairline); }
.sm-expect dt { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.sm-expect dt .sm-icon { color: var(--link); }
.sm-expect dd { margin: 0 0 0 calc(1.15em + 10px); }
.sm-split__media .sm-arch { aspect-ratio: 4 / 4.4; max-height: 620px; }

/* Staff */
.sm-staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: 980px; margin: 2rem auto 0; }
.sm-staff__card { text-align: center; }
.sm-staff__photo, .sm-staff__initials {
	width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover;
	box-shadow: 0 0 0 6px var(--tint), 0 0 0 7px var(--hairline);
}
.sm-staff__initials {
	display: flex; align-items: center; justify-content: center; background: var(--tint);
	font: 600 2.6rem/1 var(--font-heading); color: var(--link);
}
.sm-section--tint .sm-staff__initials { background: var(--white); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--hairline); }
.sm-staff__name { font-size: 1.35rem; margin-bottom: 0.1em; }
.sm-staff__role { color: var(--muted); margin: 0; }
.sm-staff__email { margin: 4px 0 0; }
.sm-pastor { display: grid; gap: 32px; align-items: center; }
.sm-pastor .sm-staff { margin: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sm-pastor { grid-template-columns: 280px 1fr; } }

/* Beliefs */
.sm-belief { padding: 20px 0; border-top: 1px solid var(--hairline); }
.sm-belief h3 { font-size: 1.5rem; }
.sm-belief + .sm-muted { border-top: 1px solid var(--hairline); padding-top: 20px; }

/* Ministries */
.sm-ministries { display: grid; gap: 24px; max-width: 980px; margin: 2rem auto 0; }
.sm-ministry { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sm-ministry__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sm-ministry__body { padding: clamp(24px, 3vw, 40px); }
.sm-ministry__title { font-size: 1.75rem; margin-bottom: 0.2em; }
.sm-ministry__blurb { font-weight: 600; color: var(--ink); }
.sm-ministry__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.sm-ministry__meta li { display: flex; align-items: center; gap: 6px; }
.sm-ministry__meta .sm-icon { color: var(--link); }

/* Contact */
.sm-contact { display: grid; gap: 4px; margin-bottom: 2.5rem; }
.sm-contact li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.sm-contact li:first-child { border-top: 1px solid var(--hairline); }
.sm-contact .sm-icon { color: var(--link); width: 28px; height: 28px; margin-top: 2px; }
.sm-contact h2 { font: 700 0.8125rem/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sm-contact a { font-size: 1.2rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sm-contact a:hover { text-decoration: underline; }

/* Prose (privacy page etc.) */
.sm-prose h2 { font-size: 1.8rem; margin-top: 1.5em; }

/* Footer */
.sm-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(48px, 6vw, 80px); font-size: 1rem; }
.sm-footer a { color: var(--white); text-decoration: none; }
.sm-footer a:hover { text-decoration: underline; }
.sm-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sm-footer__brand { font: 700 1.5rem/1.2 var(--font-heading); color: var(--white); margin-bottom: 0.5em; }
.sm-footer__tagline { margin-bottom: 0.75em; }
.sm-footer__small { font-size: 0.875rem; opacity: 0.85; }
.sm-footer__heading { font: 700 0.8125rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1em; }
.sm-footer__list li { margin-bottom: 0.7em; }
.sm-footer__bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: 48px; padding-block: 24px; font-size: 0.875rem; }
.sm-footer__bottom p { margin: 0; }

a[href^="tel:"] { white-space: nowrap; }

/* People who ask for more contrast get solid rules instead of faint taupe. */
@media (prefers-contrast: more) {
	:root { --hairline: var(--muted); }
	.sm-footer__bottom { border-top-color: var(--on-dark); }
}
/* High Contrast mode erases author backgrounds, which the menu icon is drawn with. */
@media (forced-colors: active) {
	.sm-header__bars, .sm-header__bars::before, .sm-header__bars::after { background: ButtonText; }
}
