/*
Theme Name: Avicenna – Coming Soon
Theme URI: https://kylescoastaldesigns.com.au
Author: Kyle's Coastal Designs
Author URI: https://kylescoastaldesigns.com.au
Description: A single-page coming soon theme for Avicenna Integrative Health & Psychotherapy. Edit the wording under Appearance → Customize → Coming soon page.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
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: avicenna-coming-soon
Tags: one-column, custom-logo, full-width-template
*/

/* ---------- Fonts (bundled — no external requests) ---------- */
@font-face {
	font-family: "Avicenna Display";
	src: url("assets/fonts/lmroman17-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Avicenna Sans";
	src: url("assets/fonts/inter-light-latin.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Avicenna Sans";
	src: url("assets/fonts/inter-regular-latin.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens (sampled from the Avicenna logo) ---------- */
:root {
	--paper: #f4f0ed;
	--ink: #4d4e4c;
	--ink-soft: #5f5d5a;
	--mauve: #85606d;
	--dot-1: #9e7883;
	--dot-2: #9f7a85;
	--dot-3: #af8994;
	--dot-4: #be98a1;
	--dot-5: #caa7b1;
	--dot-6: #d4b3bc;
	--dot-7: #dcbdc5;
	--display: "Avicenna Display", "Didot", "Bodoni 72", "Times New Roman", serif;
	--sans: "Avicenna Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.cs {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Logged-in admin bar */
body.cs.admin-bar { min-height: calc(100svh - 32px); }
@media (max-width: 782px) {
	body.cs.admin-bar { min-height: calc(100svh - 46px); }
}

.cs a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--dot-4);
	text-decoration-thickness: 1px;
	text-underline-offset: .25em;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.cs a:hover { color: var(--mauve); text-decoration-color: var(--mauve); }
.cs a:focus-visible {
	outline: 2px solid var(--mauve);
	outline-offset: 4px;
	border-radius: 2px;
}

/* ---------- Layout ---------- */
.cs-page {
	flex: 1 0 auto;
	display: grid;
	place-items: center;
	padding: clamp(56px, 12vh, 128px) 16px 32px;
}

.cs-inner {
	width: 100%;
	max-width: 560px;
	text-align: center;
}

/* ---------- Logo lockup ---------- */
.cs-logo {
	margin: 0;
	font-size: inherit;
	font-weight: 400;
	line-height: 0;
}
.cs-lockup {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.cs-lockup .word {
	font-family: var(--display);
	fill: var(--ink);
}
.cs-lockup .tag {
	font-family: var(--sans);
	font-weight: 400;
	fill: var(--ink-soft);
}
.cs-lockup circle:nth-of-type(1) { fill: var(--dot-1); }
.cs-lockup circle:nth-of-type(2) { fill: var(--dot-2); }
.cs-lockup circle:nth-of-type(3) { fill: var(--dot-3); }
.cs-lockup circle:nth-of-type(4) { fill: var(--dot-4); }
.cs-lockup circle:nth-of-type(5) { fill: var(--dot-5); }
.cs-lockup circle:nth-of-type(6) { fill: var(--dot-6); }
.cs-lockup circle:nth-of-type(7) { fill: var(--dot-7); }

/* An uploaded logo (Customize → Site Identity) replaces the drawn one */
.cs-logo .custom-logo-link { display: inline-block; line-height: 0; }
.cs-logo .custom-logo {
	display: block;
	width: auto;
	max-width: min(560px, 100%);
	height: auto;
	max-height: 320px;
	margin: 0 auto;
}

/* ---------- Message ---------- */
.cs-headline {
	margin: clamp(56px, 10vh, 96px) 0 0;
	font-family: var(--display);
	font-size: clamp(2.25rem, 7vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: .01em;
	color: var(--mauve);
}

.cs-message {
	max-width: 34ch;
	margin: 16px auto 0;
	font-weight: 300;
	font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
	line-height: 1.65;
	color: var(--ink-soft);
	text-wrap: balance;
}

.cs-contact {
	margin: 24px 0 0;
	font-size: 1.0625rem;
}

/* ---------- Footer credit ---------- */
.cs-footer {
	flex-shrink: 0;
	padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
	text-align: center;
	font-size: .875rem;
	color: var(--ink-soft);
}
.cs-footer p { margin: 0; }
.cs-footer a { color: var(--ink); }

/* ---------- The one moment: the logo assembles, dot by dot ----------
   "backwards" fill: each element starts hidden, then returns to its plain
   resting style when its animation ends, keeping edges crisp. */
@media (prefers-reduced-motion: no-preference) {
	.cs-lockup .word,
	.cs-lockup .tag,
	.cs-after,
	.cs-footer,
	.cs-logo .custom-logo {
		animation: cs-fade 1.1s ease-out backwards;
	}
	.cs-lockup .word,
	.cs-logo .custom-logo { animation-delay: .15s; }
	.cs-lockup circle {
		transform-box: fill-box;
		transform-origin: center;
		animation: cs-dot .6s cubic-bezier(.34, 1.4, .64, 1) backwards;
	}
	.cs-lockup circle:nth-of-type(1) { animation-delay: .55s; }
	.cs-lockup circle:nth-of-type(2) { animation-delay: .67s; }
	.cs-lockup circle:nth-of-type(3) { animation-delay: .79s; }
	.cs-lockup circle:nth-of-type(4) { animation-delay: .91s; }
	.cs-lockup circle:nth-of-type(5) { animation-delay: 1.03s; }
	.cs-lockup circle:nth-of-type(6) { animation-delay: 1.15s; }
	.cs-lockup circle:nth-of-type(7) { animation-delay: 1.27s; }
	.cs-lockup .tag { animation-delay: 1.45s; }
	.cs-after { animation-delay: 1.75s; }
	.cs-footer { animation-delay: 2.1s; }
}

@keyframes cs-fade { from { opacity: 0; } }
@keyframes cs-dot { from { opacity: 0; transform: scale(.4); } }

/* Screen-reader helper */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
