/* ==========================================================================
   Sovereign Terminal — v11 "Cream & Elements"
   --------------------------------------------------------------------------
   A light astrology landing after the AstroNutra reference: cream paper,
   sand panels, terracotta emphasis, ink pills, and the four element colours
   (fire, earth, air, water) carrying every zodiac widget. Fraunces sets the
   headlines with italic terracotta emphasis; DM Sans takes everything else.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
	--cream: #f7f0e4;
	--paper: #fbf7ef;
	--sand: #efe3cf;
	--sand-2: #e6d6bb;
	--line: #e0d2bb;
	--terra: #c4623d;
	--terra-d: #a94f2e;
	--olive: #5f6a3b;
	--ink: #2b231d;
	--muted: #6f6357;
	--faint: #8d8174;

	--fire: #d9603b;
	--earth: #7a8a4a;
	--air: #8fb3c9;
	--water: #3f6f8f;

	--ok: #4f7a3a;
	--err: #b3402a;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r-sm: 16px;
	--r-md: 28px;
	--r-lg: 40px;
	--r-pill: 999px;

	--gutter: 24px;
	--max: 1180px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--speed: 250ms;
	--logo-h: 40px;
	--header-h: 84px;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.65;
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open, body.st-modal-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--ink);
}

h1 i, h2 i, h3 i { color: var(--terra); font-weight: 400; }

ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--terra); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 300;
	padding: 10px 18px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--cream);
	text-decoration: none;
	transition: top var(--speed) var(--ease);
}

.skip-link:focus { top: 12px; }

/* ── Small parts ─────────────────────────────────────────────────────────── */
.tag, .eyebrow {
	display: inline-block;
	color: var(--terra);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	line-height: 1.4;
}

.tag--light { color: inherit; opacity: .85; }

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 14px 28px;
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--cream);
	font-family: var(--sans);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background var(--speed), border-color var(--speed), color var(--speed), transform var(--speed) var(--ease);
}

.pill:hover, .pill:focus-visible { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateY(-2px); }

.pill--ghost { background: transparent; color: var(--ink); }

.pill--ghost:hover, .pill--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.pill--sm { padding: 10px 20px; font-size: .88rem; }

.pill--block { display: flex; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips span {
	padding: 7px 14px;
	border-radius: var(--r-pill);
	background: var(--sand);
	font-size: .88rem;
	line-height: 1.3;
}

.rating { display: inline-flex; gap: 4px; vertical-align: middle; }

.rating i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand-2); }

.rating i.on { background: var(--c, var(--terra)); }

/* Moon glyph */
.moonmark { width: 40px; height: 40px; flex: none; }
.moonmark__dark { fill: var(--sand-2); }
.moonmark__lit { fill: #f3d58a; }
.moonmark--lg { width: 132px; height: 132px; filter: drop-shadow(0 0 30px rgba(243, 213, 138, .45)); }

/* Scroll reveal: only hidden once JS has said it is running. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color var(--speed), box-shadow var(--speed);
}

/* The frosted ground lives on a pseudo-element: a backdrop-filter on the
   header itself would make it the containing block for the fixed mobile
   drawer inside it, clipping the drawer to the header's height. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(247, 240, 228, .82);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	transition: background var(--speed);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header--scrolled::before { background: rgba(247, 240, 228, .94); }

.site-header--scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 8px 30px -22px rgba(43, 35, 29, .5);
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.masthead__brand { flex: none; display: flex; align-items: center; }

.custom-logo-link { display: block; line-height: 0; }

.masthead .custom-logo { width: auto; height: var(--logo-h); max-width: min(240px, 52vw); object-fit: contain; }

/* The logo's lettering is white (drawn for a dark ground). Inverting
   lightness while rotating hue back keeps the gold warm and turns white
   into ink, so the same file reads on cream. */
.logo-adapt .custom-logo { filter: invert(1) hue-rotate(180deg) saturate(1.35) contrast(1.05); }

.site-logo {
	font-family: var(--serif);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -.02em;
	text-decoration: none;
	color: var(--ink);
}

.site-logo::after { content: "✦"; margin-left: .2em; color: var(--terra); font-size: .6em; vertical-align: super; }

.nav-primary { flex: 1; display: flex; justify-content: center; }

.nav-list { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }

.nav-list a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--r-pill);
	color: var(--ink);
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none;
	transition: background var(--speed), color var(--speed);
}

.nav-list a:hover, .nav-list a:focus-visible, .nav-list .current-menu-item > a { background: var(--sand); color: var(--terra-d); }

.nav-head, .nav-extra { display: none; }

.masthead__util { flex: none; display: flex; align-items: center; gap: 10px; }

.menu-pill {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--cream);
	transition: background var(--speed);
}

.menu-pill:hover { background: var(--terra); }

.menu-pill__bars { display: grid; gap: 4px; width: 18px; }

.menu-pill__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }

.menu-pill__bars span:nth-child(2) { width: 70%; margin-left: auto; }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 140;
	background: rgba(43, 35, 29, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--speed), visibility var(--speed);
}

.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* The drawer lives inside the header's stacking context, so the header has
   to rise above the scrim while it is open. */
body.nav-open .site-header { z-index: 160; }

@media (max-width: 1080px) {
	.menu-pill { display: grid; }

	.nav-primary {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 150;
		display: block;
		width: min(380px, 88vw);
		background: var(--cream);
		box-shadow: -30px 0 60px -30px rgba(43, 35, 29, .45);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform 360ms var(--ease), visibility 360ms;
	}

	.nav-primary.is-open { transform: none; visibility: visible; }

	.nav-menu {
		display: flex;
		flex-direction: column;
		height: 100%;
		padding: 22px 24px 28px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 18px;
		margin-bottom: 10px;
		border-bottom: 1px solid var(--line);
	}

	.nav-head__title { font-family: var(--serif); font-size: 1.6rem; font-style: italic; }

	.nav-close {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: var(--sand);
		color: var(--ink);
		transition: background var(--speed), color var(--speed);
	}

	.nav-close:hover { background: var(--ink); color: var(--cream); }

	.nav-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

	.nav-list { display: block; }

	.nav-list li { border-bottom: 1px solid var(--line); }

	.nav-list a {
		padding: 16px 4px;
		border-radius: 0;
		font-family: var(--serif);
		font-size: 1.45rem;
		font-weight: 500;
	}

	.nav-list a:hover, .nav-list a:focus-visible { background: transparent; color: var(--terra); }

	.nav-extra { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }

	.nav-extra__sky {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 18px;
		border-radius: var(--r-sm);
		background: var(--sand);
		color: var(--muted);
		font-size: .92rem;
	}

	.nav-extra__sky span { color: var(--terra); font-size: 1.3rem; }
}

@media (max-width: 520px) {
	:root { --header-h: 70px; --gutter: 18px; }
	.masthead__cta { display: none; }
	.masthead .custom-logo { height: min(var(--logo-h), 34px); }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 70px; }

.hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 50px;
	align-items: center;
	padding-bottom: 50px;
}

.hero__claim { font-size: clamp(3rem, 7.6vw, 6.6rem); margin: 16px 0 26px; }

.hero__intro { max-width: 520px; margin-bottom: 32px; color: var(--muted); font-size: 1.15rem; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.wheel { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1; margin: 0 auto; }

.wheel__svg { width: 100%; height: 100%; animation: st-turn 90s linear infinite; }

@keyframes st-turn { to { transform: rotate(360deg); } }

.wheel__slice { stroke: var(--cream); stroke-width: .8; }

.wheel__slice.is-now { filter: brightness(1.08); }

.wheel__glyph { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", var(--sans); font-size: 12px; }

.wheel__center {
	position: absolute;
	inset: 31%;
	display: grid;
	place-content: center;
	gap: 2px;
	border-radius: 50%;
	background: var(--cream);
	box-shadow: inset 0 0 0 2px var(--sand), 0 20px 40px -20px rgba(43, 35, 29, .35);
	text-align: center;
}

.wheel__now { color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.wheel__sign { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2rem); font-style: italic; line-height: 1.1; }

.wheel__sym { color: var(--terra); font-size: 1.3rem; line-height: 1; }

/* Today's sky */
.sky { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.sky__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: var(--r-md);
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
}

.sky__item--date { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; background: var(--ink); box-shadow: none; }

.sky__item--date .sky__label { color: var(--terra); }

.sky__item--date .sky__value { color: var(--cream); }

.sky__text { display: grid; gap: 2px; min-width: 0; }

.sky__label { color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.sky__value { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }

.sky__glyph {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--c, var(--terra));
	color: var(--ci, #fff);
	font-size: 1.15rem;
}

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; padding: 18px 0; background: var(--ink); color: var(--cream); white-space: nowrap; }

.marquee__track {
	display: inline-block;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-style: italic;
	animation: st-slide 50s linear infinite;
}

.marquee__track span { margin: 0 24px; color: var(--terra); font-style: normal; }

@keyframes st-slide { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }

.section--flush { padding-top: 0; }

.section--tint { background: var(--sand); border-radius: var(--r-lg); margin: 0 12px; }


.head { max-width: 660px; margin-bottom: 56px; }

.head h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 12px 0 16px; }

.head p { color: var(--muted); font-size: 1.08rem; }

.head--row {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 30px 60px;
	align-items: end;
	max-width: none;
}

.head--row h2 { margin-bottom: 0; }

/* ── Elements ────────────────────────────────────────────────────────────── */
.elements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.el {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 330px;
	padding: 34px 28px 30px;
	border-radius: var(--r-md);
	color: #fff;
	transition: transform .35s var(--ease), opacity .6s var(--ease);
}

.js .el.reveal.is-in:hover, .el:hover { transform: translateY(-8px) rotate(-1deg); }

.el--fire { background: var(--fire); }
.el--earth { background: var(--earth); }
.el--air { background: var(--air); color: var(--ink); }
.el--water { background: var(--water); }

.el__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.el__sym { font-size: 3rem; line-height: 1; }

.el__now {
	padding: 5px 12px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .22);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.el__name { margin: 20px 0 6px; color: inherit; font-size: 2.2rem; }

.el__signs { font-size: .82rem; letter-spacing: .06em; opacity: .85; }

.el__text { margin-top: 14px; font-size: .95rem; opacity: .95; }

/* ── Sign Explorer ───────────────────────────────────────────────────────── */
.explorer__signs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }

.signbtn {
	position: relative;
	display: grid;
	justify-items: start;
	gap: 2px;
	padding: 16px 16px 14px;
	border-radius: 22px;
	background: var(--cream);
	text-align: left;
	box-shadow: inset 0 0 0 1px var(--line);
	transition: transform var(--speed) var(--ease), background var(--speed), box-shadow var(--speed), color var(--speed);
}

.signbtn::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 16px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c);
}

.signbtn:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--c); }

.signbtn__glyph {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--c);
	color: var(--ci);
	font-size: 1.25rem;
	line-height: 1;
}

.signbtn__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.15; }

.signbtn__dates { color: var(--muted); font-size: .74rem; }

.signbtn.is-active { background: var(--c); color: var(--ci); box-shadow: 0 16px 30px -18px var(--c); }

.signbtn.is-active::after { background: var(--ci); }

.signbtn.is-active .signbtn__glyph { background: rgba(255, 255, 255, .22); color: var(--ci); }

.signbtn.is-active .signbtn__dates { color: inherit; opacity: .85; }

.reading__card {
	display: grid;
	grid-template-columns: minmax(240px, .8fr) 2fr;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--cream);
	animation: st-pop .45s var(--ease);
}

@keyframes st-pop { from { opacity: 0; transform: scale(.98); } }

.reading__id {
	display: flex;
	flex-direction: column;
	padding: 40px 34px;
	background: var(--c);
	color: var(--ci);
}

.reading__glyph { font-size: 4.2rem; line-height: 1; }

.reading__name { margin: 18px 0 6px; color: inherit; font-size: clamp(2.4rem, 4vw, 3.2rem); }

.reading__motto { font-family: var(--serif); font-size: 1.3rem; font-style: italic; opacity: .9; }

.reading__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: auto; padding-top: 30px; }

.reading__facts dt { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

.reading__facts dd { font-size: .95rem; font-weight: 500; }

.reading__body { display: grid; gap: 22px; align-content: start; padding: 40px; }

.reading__head { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; }

.reading__ratings { display: flex; flex-wrap: wrap; gap: 14px 30px; }

.reading__ratings div { display: flex; align-items: center; gap: 10px; }

.reading__ratings b, .reading__foot b { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.reading__card .chips span { background: var(--sand); }

.reading__card .rating i { background: var(--sand-2); }

.reading__card .rating i.on { background: var(--terra); }

.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.day div { padding-top: 12px; border-top: 3px solid var(--ink); }

.day b { display: block; margin-bottom: 6px; color: var(--terra); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.day p { font-size: .93rem; }

.reading__foot { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .92rem; }

.reading__foot b { margin-right: 6px; color: var(--ink); }

.reading__tip { padding: 14px 18px; border-radius: var(--r-sm); background: var(--sand); font-size: .95rem; }

.reading__tip span { color: var(--terra); }

/* ── Tool: the Sign Finder ───────────────────────────────────────────────── */
.tool {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 50px;
	padding: 60px;
	border-radius: var(--r-lg);
	background: var(--sand);
}

.tool__title { margin: 12px 0 10px; font-size: clamp(2.2rem, 4vw, 3.2rem); }

.tool__lead { color: var(--muted); }

.tool label, .compat label {
	display: block;
	margin: 24px 0 8px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tool select, .compat select {
	width: 100%;
	padding: 15px 44px 15px 18px;
	border: 2px solid transparent;
	border-radius: var(--r-sm);
	background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b231d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px;
	color: var(--ink);
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.tool select:focus, .compat select:focus { outline: none; border-color: var(--terra); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tool .pill--block { margin-top: 26px; }

.tool__note { margin-top: 14px; color: var(--muted); font-size: .85rem; }

.result { min-height: 100%; padding: 40px; border-radius: var(--r-md); background: var(--cream); }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: var(--r-pill);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.result__title { margin: 18px 0 8px; font-size: clamp(2rem, 3.4vw, 2.6rem); font-style: italic; }

.result__why { margin-bottom: 24px; color: var(--muted); }

.result .chips { margin-bottom: 26px; }

.pop { animation: st-pop .5s var(--ease); }

/* ── Moon ────────────────────────────────────────────────────────────────── */
.moon {
	display: grid;
	grid-template-columns: 1.1fr 1.4fr;
	gap: 40px;
	align-items: center;
	padding: 50px;
	border-radius: var(--r-lg);
	background: var(--water);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.moon::before {
	content: "";
	position: absolute;
	inset: auto -80px -120px auto;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
}

.moon .moonmark__dark { fill: rgba(255, 255, 255, .14); }

.moon__now { display: flex; align-items: center; gap: 30px; position: relative; }

.moon__name { margin: 8px 0 8px; color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); }

.moon__meta { opacity: .85; font-size: .95rem; }

.moon__bar { height: 6px; margin-top: 16px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }

.moon__bar span { display: block; height: 100%; border-radius: inherit; background: #f3d58a; }

.moon__next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }

.moon__next li {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 22px 12px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .1);
	text-align: center;
}

.moon__next b { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.15; }

.moon__next time { font-size: .82rem; opacity: .8; }

/* ── Sky calendar ────────────────────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.cal__item {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	padding: 26px;
	border-radius: var(--r-md);
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s, opacity .6s var(--ease);
}

.cal__item:hover { box-shadow: inset 0 0 0 2px var(--k, var(--terra)); }

.cal__item--sun { --k: var(--fire); }
.cal__item--moon { --k: var(--water); }
.cal__item--planet { --k: var(--olive); }
.cal__item--eclipse { --k: var(--ink); }

.cal__date {
	display: grid;
	place-content: center;
	width: 72px;
	height: 80px;
	border-radius: 20px;
	background: var(--k);
	color: #fff;
	text-align: center;
}

.cal__day { font-family: var(--serif); font-size: 2rem; line-height: 1; }

.cal__mon { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.cal__in { color: var(--k); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.cal__title { margin: 4px 0 6px; font-size: 1.35rem; }

.cal__text { color: var(--muted); font-size: .92rem; }

.cal__glyph {
	position: absolute;
	right: 14px;
	bottom: -14px;
	color: var(--k);
	font-size: 4.6rem;
	line-height: 1;
	opacity: .1;
	pointer-events: none;
}

/* ── Compatibility ───────────────────────────────────────────────────────── */
.match {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 50px;
	align-items: center;
	padding: 60px;
	border-radius: var(--r-lg);
	background: var(--sand);
}

.match h2 { margin: 12px 0 14px; font-size: clamp(2.2rem, 4vw, 3.2rem); }

.match p { color: var(--muted); }

.compat { padding: 34px; border-radius: var(--r-md); background: var(--cream); }

.compat__pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }

.compat label { margin-top: 0; }

.compat select { background-color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }

.compat__amp { padding-bottom: 12px; color: var(--terra); font-family: var(--serif); font-size: 2rem; font-style: italic; line-height: 1; }

.compat__out { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: 28px; }

.ring {
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: conic-gradient(var(--terra) calc(var(--p) * 1%), var(--sand) 0);
	transition: background .6s var(--ease);
}

.ring__num {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--cream);
	font-family: var(--serif);
	font-size: 1.8rem;
}

.compat__title { margin-bottom: 6px; font-size: 1.7rem; }

.compat__text { color: var(--muted); }

/* ── Principles ──────────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.pr__n { color: var(--terra); font-family: var(--serif); font-size: 4rem; line-height: 1; }

.pr h3 { margin: 10px 0; font-size: 1.6rem; }

.pr p { color: var(--muted); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.news {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 50px;
	align-items: center;
	overflow: hidden;
	padding: 70px 60px;
	border-radius: var(--r-lg);
	background: var(--terra);
	color: var(--cream);
}

.news__orb { position: absolute; border-radius: 50%; pointer-events: none; }

.news__orb--a { width: 340px; height: 340px; right: -110px; top: -140px; background: rgba(247, 240, 228, .1); }

.news__orb--b { width: 180px; height: 180px; left: 38%; bottom: -100px; background: rgba(95, 106, 59, .35); }

.news__copy, .news__form { position: relative; }

.news__title { margin: 10px 0 16px; color: var(--cream); font-size: clamp(2.4rem, 5vw, 4.2rem); }

.news__title i { color: var(--cream); }

.news__sub { max-width: 520px; opacity: .92; font-size: 1.05rem; }

.news__list { display: grid; gap: 8px; margin-top: 24px; }

.news__list li { display: flex; gap: 10px; font-size: .95rem; }

.news__list li::before { content: "✦"; opacity: .8; }

.news__form { padding: 30px; border-radius: var(--r-md); background: rgba(43, 35, 29, .14); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 40px; padding: 0 0 40px; color: var(--muted); font-size: .88rem; }

.footer-top {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding: 60px 0 36px;
	border-top: 1px solid var(--line);
}

.footer-brand .custom-logo { width: min(15rem, 72%); height: auto; }

.footer-brand .site-logo { font-size: 1.7rem; }

.footer-tag { margin-top: 10px; font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--ink); }

.footer-note { max-width: 560px; }

.footer-base {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: .82rem;
}

.footer-legal__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.footer-legal a, .footer-copy a { color: var(--muted); text-decoration: none; }

.footer-legal a:hover, .footer-copy a:hover { color: var(--terra); }

/* ── Inner pages: page, notices, archive, single ─────────────────────────── */
.band { padding: 70px 0; }

.band__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.band__head { margin-bottom: 36px; }

.band__eyebrow { display: block; margin-bottom: 10px; }

.band__title { font-size: clamp(2rem, 4vw, 3rem); }

.band__link { display: inline-block; margin-top: 12px; color: var(--terra); font-weight: 500; text-decoration: none; }

.page-head { max-width: 820px; margin-bottom: 40px; }

.page-head__eyebrow { color: var(--terra); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.page-head__title { margin: 10px 0 14px; font-size: clamp(2.6rem, 6vw, 4.6rem); }

.page-head__text { color: var(--muted); }

.post-hero { margin: 0 0 40px; overflow: hidden; border-radius: var(--r-lg); }

.post-hero__img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }

.entry-content { max-width: 760px; font-size: 1.08rem; line-height: 1.75; }

.entry-content > * + * { margin-top: 1.2em; }

.entry-content h2 { margin-top: 1.8em; font-size: 2rem; }

.entry-content h3 { margin-top: 1.6em; font-size: 1.5rem; }

.entry-content a { color: var(--terra-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.entry-content ul, .entry-content ol { padding-left: 1.4em; }

.entry-content ul { list-style: disc; }

.entry-content ol { list-style: decimal; }

.entry-content li + li { margin-top: .4em; }

.entry-content blockquote {
	padding: 22px 28px;
	border-left: 4px solid var(--terra);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	background: var(--sand);
	font-family: var(--serif);
	font-size: 1.3rem;
	font-style: italic;
}

.entry-content img { border-radius: var(--r-sm); }

.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }

.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.notice-page { display: grid; place-items: center; min-height: 50vh; text-align: center; }

.notice-page__inner { max-width: 640px; padding: 60px 40px; border-radius: var(--r-lg); background: var(--sand); }

.notice-page__mark {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--terra);
	color: #fff;
	font-size: 1.8rem;
}

.notice-page__title { margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.4rem); }

.notice-page__text { color: var(--muted); font-size: 1.08rem; }

.notice-page__note { margin-top: 14px; color: var(--faint); font-size: .9rem; }

.notice-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.layout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }

.archive-grid, .cardrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }

.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }

.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }

.card:hover .card__img { transform: scale(1.04); }

.card__body { display: grid; gap: 8px; padding: 22px; }

.card--plate .card__body { padding-top: 28px; border-top: 6px solid var(--tint, var(--terra)); }

.card__topic { color: var(--terra); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }

.card__title { font-size: 1.35rem; line-height: 1.15; }

.card__title a { text-decoration: none; }

.card__title a:hover { color: var(--terra); }

.card__text { color: var(--muted); font-size: .93rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); font-size: .8rem; }

.meta__dot { color: var(--terra); font-size: .7em; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	background: var(--sand);
	color: var(--ink);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-bg, var(--terra)); }

.post-head { max-width: 860px; margin-bottom: 34px; }

.post-head__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.post-head__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }

.post-head__standfirst { margin-top: 16px; color: var(--muted); font-size: 1.2rem; }

.post-head__meta { margin-top: 16px; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; background: transparent; }

.read-progress__fill { width: 0; height: 100%; background: var(--terra); }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.single-tags a { padding: 5px 12px; border-radius: var(--r-pill); background: var(--sand); font-size: .82rem; text-decoration: none; }

.single-tags__label { margin-right: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }

.share-row__label { margin-right: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.share-row__link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background var(--speed), color var(--speed);
}

.share-row__link:hover { background: var(--terra); color: #fff; }

.share-row__link svg { width: 18px; height: 18px; fill: currentColor; }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }

.postnav__item { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-sm); background: var(--sand); text-decoration: none; }

.postnav__item--next { text-align: right; }

.postnav__label { color: var(--terra); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.postnav__title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--r-pill);
	background: var(--sand);
	text-decoration: none;
}

.page-numbers.current, .page-numbers:hover { background: var(--ink); color: var(--cream); }

/* Sidebar */
.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }

.panel { padding: 28px; border-radius: var(--r-md); background: var(--sand); }

.panel__heading { margin-bottom: 14px; font-size: 1.5rem; }

.panel__intro { margin-bottom: 16px; color: var(--muted); font-size: .92rem; }

.panel .sky { grid-template-columns: 1fr; }

.panel .sky__item { background: var(--cream); }

.cat-list__link { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sand-2); text-decoration: none; }

.cat-list__link:hover { color: var(--terra); }

.cat-list__count { color: var(--faint); font-size: .85rem; }

.minilist { display: grid; gap: 16px; }

.minilist__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }

.minilist__img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }

.minilist__title { font-size: 1.02rem; line-height: 1.2; }

.minilist__title a { text-decoration: none; }

.minilist__meta { color: var(--faint); font-size: .78rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.explorer__signs { grid-template-columns: repeat(4, 1fr); }
	.cal { grid-template-columns: repeat(2, 1fr); }
	.moon { grid-template-columns: 1fr; }
	.layout__grid { grid-template-columns: 1fr; }
	.sidebar { position: static; }
}

@media (max-width: 960px) {
	.hero { padding-top: 24px; }
	.hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.hero__intro { margin-left: auto; margin-right: auto; }
	.hero__ctas { justify-content: center; }
	.wheel { max-width: 380px; }
	.sky { grid-template-columns: 1fr 1fr; }
	.elements { grid-template-columns: 1fr 1fr; }
	.tool, .match { grid-template-columns: 1fr; gap: 34px; padding: 34px 24px; }
	.reading__card { grid-template-columns: 1fr; }
	.reading__facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px 28px; }
	.principles { grid-template-columns: 1fr; gap: 30px; }
	.news { grid-template-columns: 1fr; gap: 30px; padding: 56px 34px; }
	.head--row { grid-template-columns: 1fr; }
	.section { padding: 76px 0; }
	.section--tint { margin: 0 8px; border-radius: var(--r-md); }
}

@media (max-width: 720px) {
	.explorer__signs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.signbtn { justify-items: center; padding: 14px 6px 12px; text-align: center; border-radius: 18px; }
	.signbtn::after { display: none; }
	.signbtn__glyph { width: 38px; height: 38px; margin-bottom: 4px; }
	.signbtn__name { font-size: 1.02rem; }
	.signbtn__dates { font-size: .66rem; }
	.cal { grid-template-columns: 1fr; }
	.moon { padding: 34px 24px; }
	.moon__now { flex-direction: column; align-items: flex-start; gap: 20px; }
	.moon__next { grid-template-columns: 1fr 1fr; }
	.day { grid-template-columns: 1fr; }
	.reading__body, .reading__id { padding: 30px 24px; }
	.reading__facts { grid-template-columns: 1fr 1fr; }
	.compat__pick { grid-template-columns: 1fr; }
	.compat__amp { padding: 0; text-align: center; }
	.postnav { grid-template-columns: 1fr; }
	.footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
	.hero__claim { font-size: clamp(2.7rem, 13vw, 3.4rem); }
	.hero__ctas .pill { flex: 1 1 100%; }
	.sky { grid-template-columns: 1fr; }
	.sky__item--date { flex-direction: row; align-items: baseline; justify-content: space-between; }
	.elements { grid-template-columns: 1fr; }
	.el { min-height: 0; gap: 26px; }
	.head { margin-bottom: 36px; }
	.marquee__track { font-size: 1.2rem; }
	.result, .compat { padding: 26px 20px; }
	.tool, .match { padding: 28px 18px; border-radius: var(--r-md); }
	.compat__out { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.news { padding: 48px 20px; border-radius: var(--r-md); }
	.news__form { padding: 22px 18px; }
	.moon { border-radius: var(--r-md); }
	.moonmark--lg { width: 104px; height: 104px; }
	.reading__card { border-radius: var(--r-md); }
	.notice-page__inner { padding: 44px 22px; }
}
