/**
 * Wired Christianity Disclaimer — modal styles
 * v1.0.0  2026-04-30
 *
 * Brand palette:
 *   Paper      #F4F1EA  (card)
 *   Ink        #1A1814  (text, button bg)
 *   Teal       #01696F  (focus ring, accent rule)
 *   Mauve-tan  #D9B79A  (button text)
 *
 * Type stack mirrors the site theme:
 *   Headlines  Manrope
 *   Body       Inter
 *
 * Class names are intentionally neutral (wc-disclaimer-*) to dodge
 * ad-blocker filter lists that target #disclaimer / .modal etc.
 */

/* ------------------------------------------------------------------
   Root + backdrop
   Hidden by default; .is-visible is added by JS after the reveal delay.
   ------------------------------------------------------------------ */
.wc-disclaimer-root {
	position: fixed;
	inset: 0;
	z-index: 999999;          /* sit above sticky headers, cookie banners */
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.wc-disclaimer-root.is-visible {
	display: flex;
	animation: wc-disclaimer-fade 220ms ease-out both;
}

.wc-disclaimer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 24, 20, 0.72);   /* ink @ 72% */
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* ------------------------------------------------------------------
   Card
   ------------------------------------------------------------------ */
.wc-disclaimer-card {
	position: relative;
	width: min(560px, 100%);
	max-height: min(86vh, 760px);
	overflow-y: auto;
	background: #F4F1EA;       /* paper */
	color: #1A1814;            /* ink   */
	border-radius: 6px;
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.32),
		0 2px 6px rgba(0, 0, 0, 0.18);
	padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
	animation: wc-disclaimer-rise 260ms cubic-bezier(.2,.8,.2,1) both;
	outline: none;
}

/* Thin teal rule across the top — quiet brand hit. */
.wc-disclaimer-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #01696F;
	border-radius: 6px 6px 0 0;
}

/* ------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------ */
.wc-disclaimer__title {
	font-family: "Manrope", "Inter", system-ui, sans-serif;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	color: #1A1814;
}

.wc-disclaimer__body {
	font-size: 15.5px;
	line-height: 1.62;
	color: #1A1814;
}

.wc-disclaimer__body p {
	margin: 0 0 14px;
}

.wc-disclaimer__body p:last-of-type {
	margin-bottom: 0;
}

.wc-disclaimer__body b,
.wc-disclaimer__body strong {
	font-weight: 700;
}

.wc-disclaimer__body i,
.wc-disclaimer__body em {
	font-style: italic;
}

.wc-disclaimer__sig {
	margin-top: 18px !important;
	font-style: italic;
	color: #4a463f;
}

/* ------------------------------------------------------------------
   Actions
   ------------------------------------------------------------------ */
.wc-disclaimer__actions {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
}

.wc-disclaimer__btn {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #D9B79A;            /* mauve-tan */
	background: #1A1814;       /* ink */
	border: 1px solid #1A1814;
	border-radius: 4px;
	padding: 11px 22px;
	cursor: pointer;
	transition:
		background 140ms ease,
		color 140ms ease,
		transform 80ms ease,
		box-shadow 140ms ease;
}

.wc-disclaimer__btn:hover,
.wc-disclaimer__btn:focus-visible {
	background: #2a2620;
	color: #E8C9B0;
}

.wc-disclaimer__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.45);  /* teal ring */
}

.wc-disclaimer__btn:active {
	transform: translateY(1px);
}

/* ------------------------------------------------------------------
   Page lock — class added to <html> by JS while modal is open.
   ------------------------------------------------------------------ */
html.wc-disclaimer-locked,
html.wc-disclaimer-locked body {
	overflow: hidden !important;
}

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */
@keyframes wc-disclaimer-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes wc-disclaimer-rise {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
	to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
	.wc-disclaimer-root.is-visible,
	.wc-disclaimer-card {
		animation: none !important;
	}
}

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
	.wc-disclaimer-card {
		padding: 22px 20px;
		border-radius: 4px;
	}
	.wc-disclaimer__body {
		font-size: 15px;
	}
	.wc-disclaimer__btn {
		width: 100%;
		padding: 12px 18px;
	}
}
