/* ==========================================================================
   Genesis Children — Rustlight Salvage (enhancement layer ONLY)
   Every colour, background, border and spacing value is baked INLINE into the
   page blocks, so the design is correct even if this file never loads. This
   stylesheet only adds: fonts, the ship drift animation, hover states and an
   ambient star texture. It is scoped to .gc-world so the rest of the site is
   never affected.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
.gc-world,
.gc-world p,
.gc-world a,
.gc-world li,
.gc-world .wp-block-button__link {
	font-family: "Spline Sans", system-ui, -apple-system, sans-serif;
}
.gc-world h1,
.gc-world h2,
.gc-world h3,
.gc-world .gc-head,
.gc-world .gc-kicker,
.gc-world .gc-subnav-link {
	font-family: "Archivo", "Arial Narrow", system-ui, sans-serif;
}
.gc-world .gc-kicker,
.gc-world .gc-subnav-link,
.gc-world .wp-block-button__link {
	font-family: "Spline Sans Mono", ui-monospace, monospace;
}

/* Ambient star texture on the dark band ----------------------------------- */
.gc-world {
	position: relative;
}
.gc-world::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(1px 1px at 18% 24%, rgba(232,223,207,0.45), transparent),
		radial-gradient(1px 1px at 67% 14%, rgba(232,223,207,0.32), transparent),
		radial-gradient(1px 1px at 41% 62%, rgba(232,223,207,0.28), transparent),
		radial-gradient(1px 1px at 84% 47%, rgba(232,223,207,0.28), transparent),
		radial-gradient(1px 1px at 9% 78%, rgba(232,223,207,0.22), transparent),
		radial-gradient(1px 1px at 52% 88%, rgba(232,223,207,0.20), transparent);
	opacity: 0.5;
}
.gc-world > * {
	position: relative;
	z-index: 1;
}

/* Drifting ship ----------------------------------------------------------- */
.gc-world .gc-ship-img img {
	animation: gcDrift 9s ease-in-out infinite;
}
@keyframes gcDrift {
	0%, 100% { transform: translateY(0) rotate(-0.4deg); }
	50%      { transform: translateY(-16px) rotate(0.4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.gc-world .gc-ship-img img { animation: none; }
}

/* Hover states (progressive enhancement) ---------------------------------- */
.gc-world .gc-subnav-link a,
.gc-world .gc-card,
.gc-world .gc-btn .wp-block-button__link {
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.gc-world .gc-subnav-link a:hover {
	color: #D9932F !important;
}
.gc-world .gc-card:hover {
	transform: translateY(-3px);
}
.gc-world .gc-btn .wp-block-button__link:hover {
	filter: brightness(1.08);
}

/* Lore search affordance -------------------------------------------------- */
.gc-world .gc-search .wp-block-search__input {
	background: #07090B;
	border: 1px solid #2E3638;
	color: #E8DFCF;
	border-radius: 8px;
	padding: 12px 14px;
}
.gc-world .gc-search .wp-block-search__button {
	background: #8A5A32;
	color: #E8DFCF;
	border: 0;
	border-radius: 8px;
}

/* Embeds ------------------------------------------------------------------ */
.gc-world .gc-embed { border: 1px solid #2E3638; border-radius: 12px; overflow: hidden; margin-top: 1rem; }
