:root {
	--astro-ink: #28243d;
	--astro-muted: #706b80;
	--astro-night: #17152d;
	--astro-plum: #45346b;
	--astro-violet: #7056a6;
	--astro-gold: #d9b879;
	--astro-paper: #fbf9f5;
	--astro-card: #fff;
	--astro-line: #e9e3ef;
	--astro-shadow: 0 16px 40px rgba(38, 27, 64, .09);
}

html { scroll-behavior: smooth; }
body, html {
	background: var(--astro-paper);
	color: var(--astro-ink);
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	word-spacing: normal;
}
body { overflow-x: hidden; }
a { color: var(--astro-plum); text-underline-offset: .18em; }
a:hover { color: var(--astro-violet); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--astro-gold); outline-offset: 3px; }

.skip-link {
	position: fixed;
	left: 1rem;
	top: -5rem;
	z-index: 1000;
	padding: .65rem 1rem;
	border-radius: .5rem;
	background: #fff;
	color: var(--astro-ink);
	box-shadow: var(--astro-shadow);
}
.skip-link:focus { top: 1rem; }
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#top { position: sticky; top: 0; z-index: 50; }
.navi.page.black {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 76px;
	padding: .7rem clamp(1rem, 4vw, 3.5rem);
	background: var(--astro-night) !important;
	color: #fff;
	box-shadow: 0 5px 24px rgba(15, 13, 31, .2);
}
.navi .burger {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
	padding: 0;
}
.navi .burger li { display: flex; align-items: center; }
.navi .logo { display: inline-block; width: auto; height: auto; color: #fff; }
.navi .logo::after {
	content: "MY HOROSCOPES FOR TODAY";
	margin: 0;
	color: #fff !important;
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.2;
	word-break: normal;
}
.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
	position: relative;
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	content: "";
}
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.navi #site-navigation {
	position: static;
	right: auto;
	top: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .2rem;
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent !important;
	list-style: none;
}
.navi #site-navigation .navlink { display: block; text-align: center; }
.navi #site-navigation .navlink a {
	width: auto;
	padding: .6rem .7rem;
	border-radius: 999px;
	color: #f4f0fb !important;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .035em;
	line-height: 1.2;
	white-space: nowrap;
}
.navi #site-navigation .navlink a:hover,
.navi #site-navigation .navlink a:focus-visible {
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
}

main.container.content {
	width: min(100% - 2rem, 1180px);
	max-width: 1180px;
	margin: 2rem auto 4rem;
	padding: 0 !important;
}
main h1, main h2, main h3, main h4 {
	color: var(--astro-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.18;
	text-transform: none;
}
main h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
main h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
main h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
main p { color: #4e4a5b; font-size: 1rem; font-weight: 400; line-height: 1.8; }
main p a { color: var(--astro-plum); text-decoration: underline; }
main p a:hover { color: var(--astro-violet); }
main .ads { margin: 0 auto 1.5rem; }
main .ads ins { min-height: 0; }

.cosmic-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 2.5rem;
	padding: clamp(2.3rem, 6vw, 5.5rem) clamp(1.3rem, 5vw, 4.5rem);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 1.4rem;
	background:
		radial-gradient(ellipse at 78% 18%, rgba(207, 172, 112, .26), transparent 25%),
		radial-gradient(ellipse at 12% 100%, rgba(120, 88, 169, .5), transparent 42%),
		linear-gradient(125deg, #17152d 0%, #30264f 58%, #443360 100%);
	color: #fff;
	box-shadow: 0 24px 60px rgba(30, 23, 54, .2);
}
.cosmic-hero::after {
	position: absolute;
	right: 6%;
	top: 8%;
	width: clamp(140px, 23vw, 280px);
	 aspect-ratio: 1;
	border: 1px solid rgba(231, 206, 158, .25);
	border-radius: 50%;
	box-shadow: 0 0 0 20px rgba(231, 206, 158, .035), 0 0 0 42px rgba(231, 206, 158, .025), inset 0 0 60px rgba(231, 206, 158, .08);
	content: "✦";
	display: grid;
	place-items: center;
	color: rgba(241, 219, 176, .75);
	font-size: clamp(3rem, 7vw, 6rem);
	pointer-events: none;
}
.cosmic-hero__content { position: relative; z-index: 1; max-width: 690px; }
.cosmic-hero .eyebrow {
	margin: 0 0 .7rem;
	color: #ecd9ae;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.cosmic-hero h1 { margin: 0 0 1rem; color: #fff; }
.cosmic-hero p { max-width: 610px; color: rgba(255, 255, 255, .83); font-size: clamp(1rem, 2vw, 1.15rem); }
.cosmic-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.astro-button, .astro-button:link, .astro-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: .7rem 1.1rem;
	border: 1px solid var(--astro-gold);
	border-radius: 999px;
	background: var(--astro-gold);
	color: #241b34;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease;
}
.astro-button:hover { transform: translateY(-2px); background: #ead3a1; color: #241b34; }
.astro-button--quiet, .astro-button--quiet:link, .astro-button--quiet:visited { background: transparent; color: #fff; }
.astro-button--quiet:hover { background: rgba(255,255,255,.1); color: #fff; }

.horoscope-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 3.5rem; }
.period-card {
	display: flex;
	min-height: 148px;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem;
	border: 1px solid var(--astro-line);
	border-radius: 1rem;
	background: var(--astro-card);
	box-shadow: 0 6px 22px rgba(38, 27, 64, .045);
	color: var(--astro-ink);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.period-card:hover { transform: translateY(-4px); border-color: #c9b9e2; box-shadow: var(--astro-shadow); color: var(--astro-ink); }
.period-card__symbol { color: var(--astro-violet); font-family: Georgia, serif; font-size: 1.6rem; }
.period-card strong { font-family: Georgia, serif; font-size: 1.3rem; }
.period-card small { color: var(--astro-muted); font-size: .9rem; }

.pick-sign {
	clear: both;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 2rem 0 3rem;
	padding: clamp(1.2rem, 4vw, 2.5rem) !important;
	border: 1px solid var(--astro-line);
	border-radius: 1.25rem;
	background: linear-gradient(180deg, #f5f0fa, #fbf9f5);
}
.pick-sign::before, .pick-sign::after { display: none; content: none; }
.pick-sign > h2 { grid-column: 1 / -1; margin: 0 0 1.5rem; text-align: left; }
.pick-sign .zodiacgrid {
	float: none;
	width: auto;
	padding: .45rem;
}
.pick-sign .zodiacgrid > .white {
	height: 100%;
	padding: 1.1rem !important;
	border: 1px solid var(--astro-line);
	border-radius: 1rem;
	background: var(--astro-card) !important;
	box-shadow: 0 8px 24px rgba(38, 27, 64, .055);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pick-sign .zodiacgrid > .white:hover { transform: translateY(-4px); box-shadow: var(--astro-shadow); }
.pick-sign .zodiacgrid a { padding: .3rem !important; color: var(--astro-ink); }
.pick-sign .hg-image { display: block; width: min(100%, 124px); height: auto; margin: 0 auto .65rem; }
.pick-sign .ht { color: var(--astro-plum); font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .04em; }
.pick-sign .zodiacgrid a > span:last-child { color: var(--astro-muted); font-size: .85rem; }

.home-intro { max-width: 820px; margin: 0 auto 2.25rem; text-align: center; }
.home-intro h2 { margin-bottom: .8rem; }
.home-intro p { margin: .5rem auto; }
.home-articles { margin-top: 2.5rem; }
.home-articles > header { margin-bottom: 1rem; }
.home-articles > header p { color: var(--astro-muted); }
.home-articles article {
	margin: 0 0 1rem;
	padding: 1rem !important;
	border: 1px solid var(--astro-line) !important;
	border-radius: 1rem;
	background: var(--astro-card);
	box-shadow: 0 5px 20px rgba(38, 27, 64, .04);
}
.home-articles article > a:first-child { float: left; width: min(34%, 340px); margin-right: 1rem; }
.home-articles article img { width: 100%; height: 170px; object-fit: cover; border-radius: .7rem; }
.home-articles article .post-title a { color: var(--astro-ink); text-decoration: none; }
.home-articles article .post-title { font-size: 1.3rem; }
.home-articles article .post-title a:hover { color: var(--astro-violet); }
.home-articles article p { margin-top: .5rem; }
.home-articles article p a.button { color: var(--astro-plum); }

.calcu-form {
	position: relative;
	margin: 1.5rem auto 0;
	padding: 1.5rem;
	border: 1px solid var(--astro-line);
	border-radius: 1rem;
	background-color: #292340;
	background-size: cover;
	background-position: center;
	box-shadow: var(--astro-shadow);
}
.calcu-form::before { position: absolute; inset: 0; border-radius: inherit; background: rgba(25, 21, 44, .58); content: ""; }
.calcu-form > * { position: relative; }
.calcu-form .tag { border-radius: .5rem; background: rgba(23, 21, 45, .85); color: #fff; }
.calcu-form select { width: 100% !important; min-height: 48px; border: 1px solid #ded6e7; border-radius: .55rem; background: #fff; color: var(--astro-ink); }
.calcu-form .btn { min-height: 48px; border-radius: 999px; background: var(--astro-gold) !important; color: #241b34 !important; font-weight: 700; }

.footer-directory { display: flex; flex-direction: column; gap: .4rem; background: var(--astro-night) !important; }
.footer-directory > div { max-width: 1100px; margin-inline: auto; }
.footer-directory .btn { border-radius: 999px; color: #f3edf9; font-size: .78rem; font-weight: 500; white-space: normal; }
.footer-directory .btn:hover { background: rgba(255,255,255,.12); color: #fff; }
#footer.container { width: 100%; max-width: none; margin: 0; background: #111020 !important; color: #fff; }
#footer a { color: #eee8f4; }
#footer a:hover { color: #ecd9ae; }
#footer .logo::after { content: "MY HOROSCOPES FOR TODAY"; color: #fff; letter-spacing: .08em; word-break: normal; }
#footer .footer-primary-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
#footer .footer-primary-links a { padding: .4rem .65rem; border-radius: 999px; font-size: .9rem; text-decoration: none; }
#footer .social { display: flex; justify-content: center; gap: 1.25rem; }
#footer .social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; fill: currentColor; }
.backtop {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 20;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 50%;
	background: var(--astro-plum);
	color: #fff;
	font-size: 1.25rem;
	opacity: 0;
	visibility: hidden;
	box-shadow: var(--astro-shadow);
	transition: opacity .2s ease, visibility .2s ease;
}
.backtop.is-visible { opacity: 1; visibility: visible; }
.backtop::after { content: none; }

.c-intro, .c-page, .c-recent { max-width: 980px; margin-inline: auto; }
.c-intro { margin: 1.5rem auto 2rem; padding: clamp(1.2rem, 4vw, 2.5rem); border: 1px solid var(--astro-line); border-radius: 1rem; background: #fff; }
.c-intro__title { margin-top: 0; }
.c-prose { max-width: 76ch; color: #454153; line-height: 1.8; }
.c-prose h2, .c-prose h3 { margin-top: 1.6em; }
.c-recent-list { display: grid; gap: 1rem; }
.c-recent-list > article, .c-recent-card {
	margin: 0;
	padding: 1.25rem !important;
	border: 1px solid var(--astro-line) !important;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 6px 22px rgba(38, 27, 64, .045);
}
.c-recent-card__body { display: grid; gap: .6rem; }
.c-recent-card__body h2, .c-recent-card__body h3 { margin: 0; }
.c-recent-card__body p, .c-page__content p { color: #4e4a5b; }
.c-page { max-width: 880px; }
.c-page__header { margin: 1rem 0 1.5rem; }
.c-page__header h1 { margin: .4rem 0 1rem; }
.single-post { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--astro-line); border-radius: 1rem; background: #fff; }
.single-post > img { max-height: 480px; object-fit: cover; border-radius: .8rem; }
.single-post .c-prose { margin-inline: auto; }
.single-post .c-prose img { max-width: 100%; height: auto; }
main nav[aria-label="Breadcrumb"] { color: var(--astro-muted); font-size: .9rem; }
main nav[aria-label="Breadcrumb"] a { color: var(--astro-violet); }

@media (max-width: 1600px) {
	.navi.page.black { min-height: 68px; }
	.menu-toggle { display: inline-flex; }
	.navi #site-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		flex-direction: column;
		gap: .25rem;
		width: auto;
		padding: .75rem 1rem 1rem;
		background: var(--astro-night) !important;
		box-shadow: 0 16px 24px rgba(15, 13, 31, .2);
	}
	.navi #site-navigation.nav-active { display: flex; right: 0; }
	.navi #site-navigation .navlink, .navi #site-navigation .navlink a { width: 100%; text-align: left; }
	.horoscope-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pick-sign { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	main.container.content { width: min(100% - 1.2rem, 1180px); margin: 1.1rem auto 2.5rem; }
	.cosmic-hero { margin-bottom: 1.5rem; border-radius: 1rem; }
	.cosmic-hero::after { right: -35px; top: 10px; opacity: .5; }
	.cosmic-hero__content { max-width: 100%; }
	.horoscope-periods { gap: .65rem; margin-bottom: 2rem; }
	.period-card { min-height: 128px; padding: .9rem; }
	.pick-sign { padding: .8rem !important; }
	.pick-sign { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pick-sign .zodiacgrid { padding: .3rem; }
	.pick-sign .zodiacgrid > .white { padding: .7rem !important; }
	.pick-sign .hg-image { width: min(100%, 92px); }
	.home-articles article > a:first-child { float: none; display: block; width: 100%; margin: 0 0 .7rem; }
	.home-articles article img { height: auto; max-height: 220px; }
	.calcu-form { padding: .8rem; }
	.footer-directory .btn { margin: .15rem; padding: .45rem .7rem; }
	.single-post { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
