/*
Theme Name: Followers of Sophia
Description: The Followers of Sophia fan film site. Uploading it creates the pages and settings.
Version: 1.10.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sophia
*/

:root {
	--bg: #021a0d;
	--bg-deep: #01130a;
	--surface: #062716;
	--line: #1c4a31;
	--silver: #dfe3de;
	--silver-dim: #a9b9ae;
	--muted: #7f978a;
	--gold: #cdb977;
	--radius: 6px;
	--max: 1080px;
	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	--body: "EB Garamond", Garamond, Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--bg-deep); }

body {
	margin: 0;
	background: radial-gradient(ellipse at 50% 0%, #073019 0%, var(--bg) 45%, var(--bg-deep) 100%) fixed;
	color: var(--silver);
	font-family: var(--body);
	font-size: 20px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--silver); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--silver);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.08em; }

p { margin: 0 0 1em; }

.eyebrow {
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.6em;
}
.lede { font-size: 1.2rem; color: var(--silver); max-width: 46em; }
.meta { color: var(--muted); font-size: 0.95rem; }
.small { font-size: 0.85rem; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }

/* Header */
.masthead {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-family: var(--display);
	letter-spacing: 0.12em;
	font-size: 1.05rem;
}
.brand img { width: 40px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
	font-family: var(--display);
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--silver-dim);
	padding: 4px 0;
	border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--silver); border-bottom-color: var(--gold); }

/* Buttons */
.buttons, .gate__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.btn {
	display: inline-block;
	font-family: var(--display);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--silver);
	background: transparent;
	border: 1px solid var(--silver-dim);
	border-radius: var(--radius);
	padding: 12px 20px;
	cursor: pointer;
}
.btn:hover { border-color: #fff; color: #fff; }
.btn--primary { background: var(--silver); color: var(--bg-deep); border-color: var(--silver); }
.btn--primary:hover { background: #fff; color: var(--bg-deep); }

/* Home */
.hero { text-align: center; padding: 40px 0 24px; }
.hero__logo { width: min(220px, 55vw); margin: 0 auto; }
.hero__line {
	font-family: var(--display);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.95rem;
	color: var(--silver-dim);
	margin-top: 8px;
}
.intro {
	max-width: 40em;
	margin: 24px auto 0;
	font-size: 1.15rem;
}
.intro p:first-child::first-letter {
	font-family: var(--display);
	font-size: 3.2em;
	float: left;
	line-height: 0.9;
	margin: 0.08em 0.12em 0 0;
}
.feature {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 36px;
	align-items: center;
	margin: 40px 0 56px;
	padding: 28px;
	background: linear-gradient(160deg, var(--surface), transparent);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.feature__image img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.more { text-align: center; max-width: 40em; margin: 0 auto; color: var(--silver-dim); }
.more h2 { font-size: 1.3rem; }

/* Page heads and prose */
.page-head { padding: 48px 0 24px; }
.prose { max-width: 46em; padding-top: 48px; }
.prose h2 { margin-top: 1.6em; }
.steps { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: step; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 1.2em 3.2em;
	border-left: 1px solid var(--line);
	margin-left: 1em;
}
.steps li:last-child { border-left-color: transparent; }
.steps li::before {
	content: counter(step);
	position: absolute;
	left: -1em;
	top: -0.1em;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--gold);
	color: var(--gold);
	font-family: var(--display);
	font-size: 0.95rem;
	display: grid;
	place-items: center;
}

/* Project tabs (Tia: Story and scenes / How it's made) */
.page-head--project { padding-top: 32px; }
.page-head--project .crumb { margin-bottom: 0.4em; }
.tabs {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
	margin: 0.4em 0 1.6em;
}
.tabs a {
	font-family: var(--display);
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--silver-dim);
	padding: 10px 0;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
}
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: var(--silver); border-bottom-color: var(--gold); }
.prose--tab { padding-top: 0; }
.project-list .feature { margin-top: 8px; }

/* Text from the WordPress editor (since 2026-10-20) */
.lede-block p { font-size: 1.2rem; max-width: 46em; }
.lead-first > h1 + p { font-size: 1.2rem; }
.tia-text > p:first-child { font-size: 1.2rem; max-width: 46em; }
.tia-text .wp-block-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 8px 0 48px;
}
.tia-text .wp-block-column {
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}
.tia-text .wp-block-column h3 { margin-bottom: 0.5em; }
.tia-text .wp-block-column p { margin: 0; color: var(--silver-dim); }
.howto { counter-reset: step; }
.howto > p:first-child { font-size: 1.2rem; }
.howto h3 { counter-increment: step; margin-top: 1.4em; }
.howto h3::before { content: counter(step) ". "; color: var(--gold); }
.howto h2 { margin-top: 1.6em; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
@media (max-width: 760px) {
	.tia-text .wp-block-columns { grid-template-columns: 1fr; }
}

/* Pictures placed in page text from the WordPress editor (e.g. Sophia's portrait on About Sophia) */
.prose .wp-block-image { margin: 0 0 1.5em; }
.prose .wp-block-image img { display: block; height: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .wp-block-image.alignright { float: right; margin: 0.4em 0 1.2em 2em; }
.prose .wp-block-image.alignleft { float: left; margin: 0.4em 2em 1.2em 0; }
.prose h2 { clear: none; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 760px) {
	.prose .wp-block-image.alignright, .prose .wp-block-image.alignleft { float: none; margin: 0 0 1.5em; }
	.prose .wp-block-image img { width: 100% !important; }
}

/* Contact form */
.contact { margin-top: 1.5em; max-width: 36em; }
.contact label { display: block; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 6px; }
.contact input[type=text], .contact input[type=email], .contact textarea {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	color: var(--silver);
	background: var(--bg-deep);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 10px 12px;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.contact textarea { resize: vertical; min-height: 10em; }
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact__notice--ok { border-color: var(--gold); color: var(--silver); }
.contact__notice--error { border-color: #b4573f; color: #f0c4b8; }

/* Note at the very bottom of the Tia page */
.tia-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Sneak peek (section on the Tia page, below the scenes) */
.sneak { margin-top: 56px; scroll-margin-top: 24px; }
.sneak .lede { margin-bottom: 1.2em; }
.peeks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
	align-items: start;
}
.peek { margin: 0; }
.peek__media {
	background: #000;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.peek__media img, .peek__media video { display: block; width: 100%; height: auto; }
.peek figcaption { margin-top: 10px; color: var(--silver-dim); font-size: 1rem; }

/* Tia page */
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 48px; }
.cast__person { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cast__person p { margin: 0; color: var(--silver-dim); }
.scene-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}
.scene-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 4px 12px;
	text-decoration: none;
	align-items: baseline;
}
.scene-card img {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	margin-bottom: 8px;
	transition: border-color 0.2s;
}
.scene-card:hover img { border-color: var(--gold); }
.scene-card__num { font-family: var(--display); color: var(--gold); font-size: 0.9rem; }
.scene-card__title { font-family: var(--display); letter-spacing: 0.06em; }
.scene-card__len { color: var(--muted); font-size: 0.9rem; }
.note { margin-top: 48px; color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* Scene page */
.scene { padding-top: 28px; }
.crumb { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumb a { color: var(--silver-dim); text-decoration: none; }
.player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 28px;
}
.player video, .player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player--soon img { opacity: 0.55; }
.player--soon span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--display);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.9rem;
	padding: 10px 18px;
	border: 1px solid var(--silver-dim);
	border-radius: var(--radius);
	background: rgba(1, 19, 10, 0.75);
	white-space: nowrap;
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { text-decoration: none; font-family: var(--display); letter-spacing: 0.06em; }
.pager small { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pager__next { text-align: right; }

/* A Little More Say: portrait video beside the text (2026-11-07) */
.film { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 40px; align-items: start; }
.film__player video { display: block; width: 100%; aspect-ratio: 360 / 534; background: #000; border: 1px solid var(--line); border-radius: var(--radius); }
.film__text > p:first-child { font-size: 1.2rem; }
.film__text h3 { margin-top: 1.6em; }
.film__text h3 + p { color: var(--silver-dim); }
.feature--portrait { grid-template-columns: minmax(0, 280px) 1fr; }
.feature--portrait img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 534; object-fit: cover; }
@media (max-width: 760px) {
	.film { grid-template-columns: 1fr; gap: 24px; }
	.film__player { max-width: 380px; margin: 0 auto; width: 100%; }
	.feature--portrait { grid-template-columns: 1fr; }
	.feature--portrait .feature__image { max-width: 280px; }
}

/* Footer */
.footer {
	border-top: 1px solid var(--line);
	text-align: center;
	padding: 40px 20px 48px;
	color: var(--muted);
	font-size: 0.95rem;
}
.footer p { max-width: 44em; margin: 0 auto 0.8em; }
.footer__mark { width: 48px; margin: 0 auto 16px; opacity: 0.8; }

/* Age gate */
.gate { display: none; }
html.gated { overflow: hidden; }
html.gated .site { display: none; }
html.gated .gate {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(1, 19, 10, 0.82);
}
.gate__box {
	max-width: 520px;
	width: 100%;
	text-align: center;
	padding: 36px 28px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	max-height: 100%;
	overflow-y: auto;
}
.gate__box img { width: 96px; margin: 0 auto 12px; }
.gate__box p { color: var(--silver-dim); }
.gate__buttons { justify-content: center; }

/* Narrow screens */
@media (max-width: 760px) {
	body { font-size: 18px; }
	.masthead { padding: 14px 16px; }
	.nav { gap: 16px; }
	.main { padding: 0 16px 48px; }
	.feature { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
	.cast { grid-template-columns: 1fr; }
	.pager { grid-template-columns: 1fr; }
	.pager__next { text-align: left; }
	.steps li { padding-left: 2.4em; }
}
