/*
Theme Name: Stella Felix Type
Theme URI: https://stellafelix.com.au
Author: GetBranded
Author URI: https://getbranded.com.au
Description: Type-only coming soon page for Stella Felix with a spotlight headline and rotating words. Edit everything in Appearance > Customise > Coming Soon Page.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stella-felix-type
*/

@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--black: #000000;
	--charcoal: #2c2a29;
	--white: #ffffff;
	--dim: #2b2a29;
	--gutter: clamp(16px, 4vw, 56px);
	--x: 50%;
	--y: 50%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	background: var(--black);
	color: var(--white);
	font-family: "Source Sans 3", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.page {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	isolation: isolate;
}


/* Fine grain for a printed, premium feel */
.grain {
	position: fixed;
	inset: -50%;
	z-index: 10;
	pointer-events: none;
	opacity: .05;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.top {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 3vw, 36px) var(--gutter) 0;
}
.top img { display: block; height: clamp(26px, 2.6vw, 38px); width: auto; min-width: 113px; }

.centre {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 var(--gutter);
}

/* Headline: dark letters lit by a moving spotlight */
.headline {
	margin: 0;
	font-weight: 900;
	font-size: clamp(51px, 12.4vw, 240px);
	line-height: .82;
	letter-spacing: -.07em; /* matched to the logo */
	word-spacing: -.04em;
	white-space: nowrap;
	padding: .04em .06em .12em;
	color: var(--white);
	background: radial-gradient(circle .9em at var(--x) var(--y), #ffffff 0%, #ffffff 28%, #a3a19f 52%, #3d3b3a 80%, var(--dim) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Rotating line */
.rotator {
	margin: clamp(18px, 2.4vw, 36px) 0 0;
	font-size: clamp(20px, 2.2vw, 34px);
	font-weight: 400;
	letter-spacing: .01em;
	color: rgba(255, 255, 255, .7);
	line-height: 1.25;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .3em;
	flex-wrap: wrap;
}
.rotator .words {
	position: relative;
	display: inline-block;
	height: 1.25em;
	overflow: hidden;
	vertical-align: bottom;
	color: var(--white);
	font-weight: 600;
	text-align: left;
	transition: width .6s cubic-bezier(.7, 0, .2, 1);
}
.rotator .word {
	position: absolute;
	left: 0;
	top: 0;
	white-space: nowrap;
	line-height: 1.25;
	transform: translateY(110%);
	transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
.rotator .word.is-in { transform: translateY(0); }
.rotator .word.is-out { transform: translateY(-110%); }


.btn { display: inline-flex; margin-top: clamp(24px, 3vw, 40px); }
.btn span {
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--white);
	color: var(--charcoal);
	transition: background .2s, color .2s, transform .3s;
}
.btn .label { padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.btn:hover span { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }

.foot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 14px var(--gutter) clamp(16px, 2vw, 24px);
	font-size: 13px;
	color: rgba(255,255,255,.6);
}
.foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.15); }
.foot .credit { margin: 0; }
.foot .sep { margin: 0 .5em; opacity: .5; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--white); }

/* Entrance */
.reveal { opacity: 0; transform: translateY(24px); animation: rise 1.4s cubic-bezier(.16, .8, .24, 1) forwards; }
.reveal.d1 { animation-delay: .15s; } .reveal.d2 { animation-delay: .5s; } .reveal.d3 { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
	.headline { white-space: normal; font-size: 21.6vw; line-height: .84; }
}

@media (prefers-reduced-motion: reduce) {
	.reveal { animation: none; opacity: 1; transform: none; }
	.headline { background: none; -webkit-text-fill-color: var(--white); }
}

.admin-bar .page { min-height: calc(100svh - 32px); }
@media (max-width: 782px) { .admin-bar .page { min-height: calc(100svh - 46px); } }
.btn:focus-visible, .top a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 999px; }
