/*
 * Clay Jar Ministries — "Kiln & Glaze" design system.
 * Tokens first, then layout, in source order roughly matching the page.
 */

:root {
	--bg: #cadaed;
	--panel: #9da1e3;
	--ink: #2B2620;
	--muted: rgba(85, 75, 126, 0.66);
	--accent: #47614F;
	--accent-2: #47614F;
	--rule: rgba(4, 5, 40, 0.16);
	--rule-strong: rgba(114, 129, 163, 0.28);
	--radius: 10px;
	--radius-sm: 6px;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--shell-width: 1180px;
	--shell-pad: 24px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- utility ---------- */

.shell {
	max-width: var(--shell-width);
	margin: 0 auto;
	padding: 0 var(--shell-pad);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link.screen-reader-text {
	z-index: 1000;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- site header ---------- */

.site-header {
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px var(--shell-pad);
	flex-wrap: wrap;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.vessel {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: none;
}

.vessel__neck {
	width: 9px;
	height: 6px;
	border-radius: 2px 2px 0 0;
	background-color: var(--accent);
}

.vessel__body {
	width: 22px;
	height: 20px;
	border-radius: 4px 4px 9px 9px;
	background-color: var(--accent);
}

.site-branding__text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.01em;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 1px;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.site-nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.site-nav__list a {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	opacity: 0.82;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
	opacity: 1;
}

@media (max-width: 720px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		flex-basis: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.site-nav.is-open {
		max-height: 300px;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 4px;
		padding: 16px 0 4px;
	}

	.site-nav__list a {
		display: block;
		padding: 8px 0;
	}
}

/* ---------- layout: main + sidebar ---------- */

.site-content {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 56px;
	padding: 56px var(--shell-pad) 72px;
}

.site-main {
	min-width: 0;
}

@media (max-width: 860px) {
	.site-content {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 40px var(--shell-pad) 56px;
	}
}

/* ---------- hero (front page) ---------- */

.hero {
	padding-bottom: 8px;
}

.hero__eyebrow {
	font-family: var(--font-body);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-2);
	font-weight: 600;
	margin: 0 0 18px;
}

.hero__headline {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2rem, 4.2vw, 2.9rem);
	line-height: 1.08;
	margin: 0 0 22px;
	text-wrap: balance;
}

.hero__mission {
	font-size: 1rem;
	line-height: 1.7;
	max-width: 58ch;
	color: var(--muted);
	margin: 0 0 36px;
}

.hero__verse {
	background: var(--panel);
	border-radius: var(--radius);
	padding: 28px 32px;
}

.hero__verse-text {
	font-family: var(--font-display);
	font-size: 1.1rem;
	line-height: 1.55;
	margin: 0 0 14px;
	text-wrap: balance;
}

.hero__verse-ref {
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.72;
	margin: 0;
}

/* ---------- page content (About / Support / Contact / Ordering) ---------- */

.page-content__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.8rem, 3.4vw, 2.4rem);
	line-height: 1.12;
	margin: 0 0 28px;
	text-wrap: balance;
}

.page-content__body {
	max-width: 62ch;
}

.page-content__body p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 18px;
}

.page-content__body h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.3rem;
	margin: 32px 0 14px;
}

.page-content__body ul {
	margin: 0 0 18px;
	padding-left: 1.2em;
}

.page-content__body li {
	margin-bottom: 8px;
	line-height: 1.6;
}

/* ---------- inquiry form ---------- */

.inquiry-form {
	margin-top: 40px;
	padding: 28px 32px;
	background: var(--panel);
	border-radius: var(--radius);
	max-width: 62ch;
}

.inquiry-form__fallback {
	margin: 0;
}

.inquiry-form label {
	font-weight: 600;
	color: var(--ink);
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form textarea,
.inquiry-form select {
	font-family: var(--font-body);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--ink);
	padding: 10px 12px;
}

.inquiry-form button,
.inquiry-form input[type="submit"] {
	font-family: var(--font-body);
	font-weight: 600;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 12px 22px;
	cursor: pointer;
}

.inquiry-form button:hover,
.inquiry-form input[type="submit"]:hover {
	background: var(--accent-2);
}

/* ---------- sidebar ---------- */

.site-sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.widget-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 16px;
}

.study-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.study-info-list a,
.widget ul:not(.study-info-list) a {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 16px;
	background: var(--panel);
	border-radius: var(--radius-sm);
	color: var(--ink);
}

.study-info-list a:hover,
.widget ul:not(.study-info-list) a:hover {
	background: var(--accent);
	color: #fff;
}

.verse-widget__quote {
	margin: 0;
	padding: 20px 22px;
	background: var(--panel);
	border-radius: var(--radius);
	border-left: 3px solid var(--accent);
}

.verse-widget__quote p {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 10px;
}

.verse-widget__quote cite {
	font-style: normal;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.72;
}

/* generic widget (Text widget, once configured) */
.widget {
	font-size: 0.9rem;
}

.widget p {
	line-height: 1.6;
}

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

.site-footer {
	border-top: 1px solid var(--rule);
}

.site-footer__inner {
	padding: 24px var(--shell-pad);
}

.site-footer__inner p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted);
}
