/*
Theme Name: Tabernook
Theme URI: https://tabernook.com
Author: Grayscale Enterprises INC.
Description: Lamplight block theme for Tabernook.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tabernook
*/

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--wood);
	outline-offset: 2px;
}

.tabernook-brand a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}

.tabernook-brand a::before {
	content: "";
	flex: none;
	width: 1.6em;
	height: 1.5em;
	background: url("assets/brand/tabernook-mark-for-light-backgrounds.svg") no-repeat center / contain;
}

/* The footer sits on wood, where deep gold links fail contrast. */
.tabernook-footer a {
	color: var(--wp--preset--color--glow);
}

.tabernook-footer a:hover {
	color: var(--wp--preset--color--cream);
}

.tabernook-footer :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--glow);
}

.tabernook-footer .tabernook-brand a::before {
	background-image: url("assets/brand/tabernook-mark-for-dark-backgrounds.svg");
}

/* Small uppercase labels: dates, "Today's verse". */
.tabernook-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

/* Header: keep the button from wrapping awkwardly next to the menu. */
.tabernook-header .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.tabernook-header .wp-block-navigation a {
	text-decoration: none;
}

.tabernook-header .wp-block-navigation a:hover {
	text-decoration: underline;
}

/* On phones the menu button sits beside the logo; the home page and every verse page carry the signup form. */
@media (max-width: 599px) {
	.tabernook-header .wp-block-buttons.tabernook-header__cta {
		display: none;
	}
}

/* Home */
.tabernook-hero__title {
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	line-height: 1.1;
	text-wrap: balance;
}

.tabernook-card {
	background: #fffdf8;
	border: 1px solid #e4d8c4;
	border-radius: 12px;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.tabernook-band {
	background: #fffdf8;
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 0 0 12px 12px;
}

.tabernook-church p {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	text-align: center;
	text-wrap: balance;
}

.tabernook-today__date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 0;
}

.tabernook-today__reviewed,
.tabernook-reviewed-by {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.tabernook-today__more {
	margin-bottom: 0;
}

/* Outline buttons stay readable on cream. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--wood);
	border: 2px solid var(--wp--preset--color--wood);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--glow);
	color: var(--wp--preset--color--wood);
}

/* Pricing tiers table */
.tabernook-tiers {
	overflow-x: auto;
}

.tabernook-tiers table {
	font-size: var(--wp--preset--font-size--small);
	border-collapse: collapse;
	min-width: 32rem;
	background: #fffdf8;
}

.wp-block-table.tabernook-tiers th,
.wp-block-table.tabernook-tiers td {
	border: 0;
	border-bottom: 1px solid #e4d8c4;
	padding: 0.65rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.tabernook-tiers thead th {
	border-bottom: 2px solid var(--wp--preset--color--wood);
}

.tabernook-tiers th[scope="row"] {
	font-weight: 400;
}

/* Verse library */
.tabernook-library__item {
	border-bottom: 1px solid #e4d8c4;
	padding-bottom: 1.25rem;
}

.tabernook-library__item .wp-block-post-title a {
	text-decoration: none;
}

.tabernook-library__item .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Footer */
.tabernook-footer__heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--glow);
	margin-bottom: 0.5rem;
}

.tabernook-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.35rem;
}

.tabernook-footer__fine {
	border-top: 1px solid rgba(246, 239, 227, 0.25);
	padding-top: var(--wp--preset--spacing--40);
}

.tabernook-footer__fine p {
	margin: 0;
	max-width: 52rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
