/*
Theme Name: Fate Signs
Theme URI: https://fatesigns.com
Author: Fate Signs
Author URI: https://fatesigns.com
Description: A lightweight, fast, SEO-friendly block theme for tarot, astrology and numerology content. Midnight-indigo starfield, antique-gold accents, moon-phase dividers and locally hosted fonts (Cinzel, EB Garamond, Inter). No plugin dependencies, no external requests.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fatesigns
Tags: block-theme, full-site-editing, dark, one-column, wide-blocks, custom-colors, editor-style, block-patterns, accessibility-ready, blog
*/

/* ---------- Starfield + nebula (pure CSS, GPU-friendly fixed layer) ---------- */
body {
	isolation: isolate;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(1px 1px at 7% 13%, rgba(255,255,255,0.9) 50%, transparent 51%), radial-gradient(1px 1px at 23% 41%, rgba(255,255,255,0.6) 50%, transparent 51%), radial-gradient(1px 1px at 37% 8%, rgba(255,255,255,0.8) 50%, transparent 51%), radial-gradient(1px 1px at 51% 67%, rgba(255,255,255,0.5) 50%, transparent 51%), radial-gradient(1px 1px at 64% 29%, rgba(255,255,255,0.9) 50%, transparent 51%), radial-gradient(1px 1px at 78% 83%, rgba(255,255,255,0.6) 50%, transparent 51%), radial-gradient(1px 1px at 89% 17%, rgba(255,255,255,0.7) 50%, transparent 51%), radial-gradient(1px 1px at 14% 77%, rgba(255,255,255,0.5) 50%, transparent 51%), radial-gradient(1px 1px at 43% 93%, rgba(255,255,255,0.7) 50%, transparent 51%), radial-gradient(1px 1px at 95% 55%, rgba(255,255,255,0.6) 50%, transparent 51%), radial-gradient(1px 1px at 31% 58%, rgba(255,255,255,0.4) 50%, transparent 51%), radial-gradient(1px 1px at 70% 5%, rgba(255,255,255,0.6) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 18% 22%, rgba(241,223,168,0.8) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 62% 48%, rgba(241,223,168,0.6) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 84% 72%, rgba(241,223,168,0.7) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 85%, rgba(241,223,168,0.5) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 5% 60%, rgba(241,223,168,0.6) 50%, transparent 51%),
		radial-gradient(60% 45% at 12% 0%, rgba(98, 72, 196, 0.30), transparent 70%),
		radial-gradient(45% 40% at 92% 18%, rgba(168, 131, 74, 0.13), transparent 70%),
		radial-gradient(80% 60% at 50% 110%, rgba(43, 33, 99, 0.65), transparent 70%);
	background-size: 420px 420px, 640px 640px, 100% 100%, 100% 100%, 100% 100%;
	background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
}

::selection { background: #d8b56a; color: #0b0a1f; }

/* ---------- Accessibility ---------- */
:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-light);
	outline-offset: 3px;
	border-radius: 4px;
}
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--midnight); }

/* ---------- Reading comfort ---------- */
.entry-content > p, .wp-block-post-content > p { hyphens: auto; overflow-wrap: break-word; }
.wp-block-post-content a:not(.wp-element-button), .entry-content a:not(.wp-element-button) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
li::marker { color: var(--wp--preset--color--gold); }
:where(.wp-block-list) li + li { margin-top: 0.35em; }
strong { color: var(--wp--preset--color--gold-light); font-weight: 600; }
img { border-radius: 10px; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Header ---------- */
.fs-header {
	background: rgba(11, 10, 31, 0.94);
	border-bottom: 1px solid rgba(216, 181, 106, 0.22);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .fs-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .fs-header { top: 0; } }
.wp-block-site-title { margin: 0; white-space: nowrap; }
.fs-header .wp-block-site-title a::before { content: "☾"; content: "☾" / ""; color: var(--wp--preset--color--gold); margin-right: 0.45em; font-weight: 400; }
/* Tablet: keep the 7-item menu tidy by using the overlay until there is room. */
@media (min-width: 600px) and (max-width: 1099px) {
	.fs-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.fs-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.wp-block-navigation .wp-block-navigation-item__content { padding: 0.35em 0; }
.wp-block-navigation .current-menu-item > a, .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--gold); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--midnight) !important;
	color: var(--wp--preset--color--starlight) !important;
	padding: 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--gold); }

/* ---------- Footer ---------- */
.fs-footer { border-top: 1px solid rgba(216, 181, 106, 0.22); background: rgba(11, 10, 31, 0.6); }
.fs-footer, .fs-footer p { font-family: var(--wp--preset--font-family--inter); font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--mist); }
.fs-footer .wp-block-navigation { font-size: 0.875rem; }
.fs-footer .wp-block-navigation a { color: var(--wp--preset--color--mist); }
.fs-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }

/* ---------- Typography helpers ---------- */
.fs-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8rem !important;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amethyst);
	margin-bottom: 0.25rem !important;
}
.fs-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--starlight); line-height: 1.55; }
.fs-note { font-family: var(--wp--preset--font-family--inter); font-size: 0.85rem !important; color: var(--wp--preset--color--mist); line-height: 1.5; }
.fs-placeholder, p.fs-placeholder { border: 1px dashed rgba(179, 166, 238, 0.6); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--wp--preset--color--amethyst); font-family: var(--wp--preset--font-family--inter); font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; box-shadow: 0 0 0 rgba(216,181,106,0); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { box-shadow: 0 0 24px rgba(216, 181, 106, 0.35); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--gold-light);
	border: 1px solid var(--wp--preset--color--gold);
	padding: calc(0.85em - 1px) calc(1.75em - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(216, 181, 106, 0.12); color: var(--wp--preset--color--gold-light); }

/* ---------- Block styles ---------- */
.is-style-hero-panel {
	padding-top: clamp(3.5rem, 11vw, 8rem) !important;
	padding-bottom: clamp(3rem, 9vw, 6.5rem) !important;
	background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(98, 72, 196, 0.35), transparent 70%);
	position: relative;
}
.is-style-hero-panel::after {
	content: "";
	display: block;
	width: 184px;
	height: 24px;
	margin: clamp(2rem, 5vw, 3rem) auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='184' height='24' viewBox='0 0 184 24'%3E%3Ccircle cx='14' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M14,5 A7,7 0 0 1 14,19 A4,7 0 0 0 14,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='40' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M40,5 A7,7 0 0 1 40,19Z' fill='%23d8b56a'/%3E%3Ccircle cx='66' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M66,5 A7,7 0 0 1 66,19 A4,7 0 0 1 66,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='92' cy='12' r='7' fill='%23d8b56a'/%3E%3Ccircle cx='118' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M118,5 A7,7 0 0 0 118,19 A4,7 0 0 0 118,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='144' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M144,5 A7,7 0 0 0 144,19Z' fill='%23d8b56a'/%3E%3Ccircle cx='170' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M170,5 A7,7 0 0 0 170,19 A4,7 0 0 1 170,5Z' fill='%23d8b56a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-hero-panel .fs-hero-title { font-size: var(--wp--preset--font-size--huge); margin-top: 0.25rem; }
.is-style-hero-panel .fs-lead { max-width: 40rem; margin-left: auto !important; margin-right: auto !important; }

.is-style-mystic-card {
	background: linear-gradient(180deg, rgba(43, 33, 99, 0.55), rgba(20, 18, 58, 0.75));
	border: 1px solid rgba(216, 181, 106, 0.28);
	border-radius: var(--wp--custom--radius);
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
	height: 100%;
	box-sizing: border-box;
	transition: border-color .2s ease, transform .2s ease;
}
.is-style-mystic-card:hover { border-color: rgba(216, 181, 106, 0.6); }
.is-style-mystic-card > * { margin-block: 0.5rem; }
.is-style-mystic-card > :first-child { margin-top: 0; }
.is-style-mystic-card h3 { font-size: 1.25rem; margin-top: 0.25rem; }
.is-style-mystic-card p { font-size: 1.075rem; line-height: 1.6; }
.fs-card-symbol { font-size: 1.6rem !important; color: var(--wp--preset--color--gold); line-height: 1; margin: 0; }
.fs-card-link { font-family: var(--wp--preset--font-family--inter); font-size: 0.9rem !important; font-weight: 600; letter-spacing: 0.04em; }
.fs-card-link a { text-decoration: none; }
.fs-card-grid { gap: 1.25rem; margin-block: 1.25rem; }
.fs-card-grid > .wp-block-column > .wp-block-group { height: 100%; }

.is-style-offer-box {
	position: relative;
	background: radial-gradient(ellipse 90% 120% at 50% 0%, rgba(98, 72, 196, 0.45), rgba(20, 18, 58, 0.92) 70%);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: calc(var(--wp--custom--radius) + 4px);
	padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) !important;
	box-shadow: 0 0 0 6px rgba(216, 181, 106, 0.06), 0 20px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(216, 181, 106, 0.06);
	margin-block: clamp(2rem, 5vw, 3.5rem) !important;
}
.is-style-offer-box::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 64px;
	height: 24px;
	background: var(--wp--preset--color--midnight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Cpath d='M32 2 L34.6 9.4 L42 12 L34.6 14.6 L32 22 L29.4 14.6 L22 12 L29.4 9.4Z' fill='%23d8b56a'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23d8b56a' fill-opacity='.7'/%3E%3Ccircle cx='52' cy='12' r='1.6' fill='%23d8b56a' fill-opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-offer-box h2 { margin-top: 0.25rem; }

/* Separators: moon phases + star */
.wp-block-separator { border: none; border-top: 1px solid currentColor; opacity: 1; }
.wp-block-separator.is-style-moon-phases, .wp-block-separator.is-style-star-divider {
	border: none !important;
	height: 24px;
	max-width: none !important;
	width: 100%;
	margin-block: clamp(2rem, 5vw, 3.5rem) !important;
	background-color: transparent !important;
}
.wp-block-separator.is-style-moon-phases {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='184' height='24' viewBox='0 0 184 24'%3E%3Ccircle cx='14' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M14,5 A7,7 0 0 1 14,19 A4,7 0 0 0 14,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='40' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M40,5 A7,7 0 0 1 40,19Z' fill='%23d8b56a'/%3E%3Ccircle cx='66' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M66,5 A7,7 0 0 1 66,19 A4,7 0 0 1 66,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='92' cy='12' r='7' fill='%23d8b56a'/%3E%3Ccircle cx='118' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M118,5 A7,7 0 0 0 118,19 A4,7 0 0 0 118,5Z' fill='%23d8b56a'/%3E%3Ccircle cx='144' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M144,5 A7,7 0 0 0 144,19Z' fill='%23d8b56a'/%3E%3Ccircle cx='170' cy='12' r='7' fill='none' stroke='%23d8b56a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M170,5 A7,7 0 0 0 170,19 A4,7 0 0 1 170,5Z' fill='%23d8b56a'/%3E%3C/svg%3E") center / 184px 24px no-repeat,
		linear-gradient(90deg, transparent, rgba(216, 181, 106, 0.5) 30%, transparent calc(50% - 100px), transparent calc(50% + 100px), rgba(216, 181, 106, 0.5) 70%, transparent) center / 100% 1px no-repeat !important;
}
.wp-block-separator.is-style-star-divider {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Cpath d='M32 2 L34.6 9.4 L42 12 L34.6 14.6 L32 22 L29.4 14.6 L22 12 L29.4 9.4Z' fill='%23d8b56a'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23d8b56a' fill-opacity='.7'/%3E%3Ccircle cx='52' cy='12' r='1.6' fill='%23d8b56a' fill-opacity='.7'/%3E%3C/svg%3E") center / 64px 24px no-repeat,
		linear-gradient(90deg, transparent, rgba(216, 181, 106, 0.5) 25%, transparent calc(50% - 36px), transparent calc(50% + 36px), rgba(216, 181, 106, 0.5) 75%, transparent) center / 100% 1px no-repeat !important;
}

/* FAQ / details */
.wp-block-details {
	border: 1px solid rgba(216, 181, 106, 0.28);
	border-radius: 12px;
	background: rgba(20, 18, 58, 0.6);
}
.wp-block-details + .wp-block-details { margin-top: 0.75rem; }
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--cinzel);
	font-weight: 600;
	color: var(--wp--preset--color--gold-light);
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--inter); font-size: 1.25rem; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details[open] summary { margin-bottom: 0.5rem; }

/* Post lists */
.fs-post-card { border-bottom: 1px solid rgba(216, 181, 106, 0.18); padding-bottom: 1.5rem; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-query-pagination a { text-decoration: none; }

/* Search + forms */
.wp-block-search__input, input[type="text"], input[type="email"], input[type="search"], textarea, select {
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--starlight);
	border: 1px solid rgba(216, 181, 106, 0.4);
	border-radius: 8px;
	padding: 0.6em 0.9em;
}
.wp-block-search__button { border-radius: 999px; }

/* Tables & quotes */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid rgba(216, 181, 106, 0.25); padding: 0.6em 0.8em; }
.wp-block-table thead { background: rgba(43, 33, 99, 0.6); color: var(--wp--preset--color--gold-light); }

/* Tool placeholders (shortcode fallbacks until the tools plugin is active) */
.fs-tool-placeholder {
	border: 1px dashed var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius);
	padding: 2rem 1.5rem;
	text-align: center;
	background: rgba(20, 18, 58, 0.7);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.95rem;
	color: var(--wp--preset--color--mist);
}
.fs-tool-placeholder strong { display: block; font-family: var(--wp--preset--font-family--cinzel); font-size: 1.2rem; margin-bottom: 0.25rem; }

/* Arcana list in two columns on larger screens */
@media (min-width: 700px) {
	.fs-two-col { columns: 2; column-gap: 2.5rem; }
	.fs-two-col li { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* No gap between header, main and footer (sticky header sits flush) */
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > .fs-footer { margin-block-start: 0; }
