/*
Theme Name:   Prism Shell
Description:  A bare theme for Prism sites. No header, no page titles, no sidebar. The Prism quiz fills the window and a slim footer menu holds About and other links. Colors come from Prism, Appearance.
Version:      0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Author:       Event Cruises Corporation
Text Domain:  prism-shell
Network:      true
*/

/* Fallback colors, used until Prism prints the site's own. */
:root {
	--prism-bg: #131313;
	--prism-surface: #1f1f1f;
	--prism-text: #f4f4f4;
	--prism-muted: #8f8f8f;
	--prism-line: #333333;
	--prism-accent: #ff4b4b;
	--prism-accent-soft: #4c2828;
	--prism-on-accent: #111111;
	--prism-radius: 18px;
	--prism-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	background: var(--prism-bg);
	color: var(--prism-text);
	font-family: var(--prism-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--prism-accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--prism-accent); outline-offset: 2px; }

.prism-sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.prism-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--prism-accent); color: var(--prism-on-accent); border-radius: 8px; }
.prism-skip:focus { top: 8px; }

.prism-main { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; }

/* Plain pages (About and the like) */
.prism-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
.prism-page-title { margin: 0 0 24px; font-size: clamp(32px, 6vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.prism-page-body { font-size: 18px; }
.prism-page-body h2, .prism-page-body h3 { font-weight: 400; line-height: 1.2; margin: 2em 0 .5em; }
.prism-page-body img, .prism-page-body video, .prism-page-body iframe { max-width: 100%; height: auto; border-radius: var(--prism-radius); }
.prism-page-body ul, .prism-page-body ol { padding-left: 1.3em; }
.prism-home { display: inline-block; margin-bottom: 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--prism-muted); text-decoration: none; }
.prism-home:hover { color: var(--prism-text); }

/* Footer */
.prism-footer {
	flex: 0 0 auto;
	padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--prism-line);
	background: var(--prism-bg);
	color: var(--prism-muted);
	font-size: 14px;
}
.prism-footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.prism-footer ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.prism-footer a { display: inline-block; padding: 6px 0; color: var(--prism-muted); text-decoration: none; }
.prism-footer a:hover, .prism-footer .current-menu-item > a, .prism-footer .current_page_item > a { color: var(--prism-text); }
.prism-footer p { margin: 0; }

body.admin-bar .prism-skip { top: -60px; }
@media (min-width: 761px) { .prism-footer { padding-left: 32px; padding-right: 32px; } }
