/*
Theme Name: סולארים
Theme URI: http://localhost/solarim
Author: סולארים
Description: מדריך עברי לפאנלים סולאריים. עמוד הבית ומדריכים באותה שפה חזותית.
Version: 1.4.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: solarim
Tags: blog, rtl-language-support, custom-menu, one-column
*/

:root {
	--ink: #132033;
	--ink-soft: #3d5166;
	--ground: #e7eef2;
	--paper: #f6f9fb;
	--line: #c9d6df;
	--accent: #0f5f78;
	--accent-soft: #d7e8ee;
	--frame: #132033;
	--cell: #3d8ea8;
	--display: "Secular One", "Arial Hebrew", Arial, sans-serif;
	--body: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
	--wrap: 70rem;
	--content: 40rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.7;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -4rem;
	background: var(--paper);
	color: var(--ink);
	padding: 0.5rem 0.8rem;
	z-index: 10;
}

.skip-link:focus {
	top: 1rem;
}

.wrap {
	width: min(var(--wrap), calc(100% - 2.5rem));
	margin-inline: auto;
}

.site-header {
	background: var(--frame);
	color: var(--paper);
	border-block-end: 4px solid var(--cell);
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 1.25rem 1.75rem;
	min-height: 4.5rem;
	flex-wrap: wrap;
	padding-block: 0.8rem;
}

.wordmark {
	color: var(--paper);
	font-family: var(--display);
	font-size: 1.85rem;
	line-height: 1;
	text-decoration: none;
	letter-spacing: 0;
}

.wordmark:hover {
	color: #d7e8ee;
}

.primary-nav {
	display: flex;
	gap: 1.25rem;
}

.primary-nav a {
	color: var(--paper);
	text-decoration: none;
	font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
	color: #9fd0de;
}

.search-form {
	display: flex;
	gap: 0.4rem;
	margin-inline-start: auto;
}

.search-form input[type="search"] {
	background: transparent;
	color: var(--paper);
	border: 1px solid #3d5670;
	border-radius: 0;
	padding: 0.4rem 0.7rem;
	font: inherit;
	min-width: 11rem;
}

.search-form input[type="search"]::placeholder {
	color: #9aafbf;
}

.search-form button {
	background: var(--cell);
	color: var(--frame);
	border: 0;
	font: inherit;
	font-weight: 600;
	padding: 0.4rem 0.8rem;
	cursor: pointer;
}

	.search-form button:hover {
	background: #8fcedf;
}

main .search-form input[type="search"] {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--line);
}

main .search-form input[type="search"]::placeholder {
	color: var(--ink-soft);
}

main .search-form button {
	background: var(--accent);
	color: var(--paper);
}

main .search-form button:hover {
	background: var(--ink);
	color: var(--paper);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.home .site-header {
	border-block-end: 0;
}

.hero {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - 4.5rem);
	background: var(--frame);
	color: #f6f9fb;
}

.hero-stage {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.9fr);
	gap: 2rem 3rem;
	align-items: center;
	padding-block: 2.75rem 2rem;
}

.hero-sky {
	margin: 0;
}

.hero-sky svg {
	display: block;
	width: min(100%, 36rem);
	height: auto;
	margin-inline-start: auto;
}

.hero-doors {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	background: #0e1b2b;
	border-block-start: 1px solid #2a445c;
	border-block-end: 4px solid var(--cell);
}

.hero-doors a {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	padding: 1rem 0.9rem 1.1rem;
	color: #f6f9fb;
	text-decoration: none;
	border-inline-start: 1px solid #2a445c;
}

.hero-doors a:first-child {
	border-inline-start: 0;
}

.hero-doors a:hover,
.hero-doors a:focus-visible {
	background: #1a3148;
	color: #f6f9fb;
}

.hero-door-letter {
	font-family: var(--display);
	color: #8fcedf;
	font-size: 1.2rem;
	line-height: 1;
}

.hero-door-name {
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.3;
}

.eyebrow {
	margin: 0 0 0.6rem;
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.hero h1,
.page-mast h1,
.entry-header h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
}

.hero h1 {
	color: #f6f9fb;
	font-size: clamp(2.8rem, 6.4vw, 5.4rem);
	max-width: 9em;
}

.hero .eyebrow {
	color: #8fcedf;
}

.hero .lede {
	color: #c5d4de;
	font-size: 1.2rem;
	max-width: 34rem;
}

.hero .text-action {
	color: #f6f9fb;
	text-decoration: none;
	border-bottom: 1px solid #8fcedf;
}

.hero .text-action:hover {
	color: #8fcedf;
}

.lede {
	margin: 1rem 0 0;
	max-width: 38rem;
	color: var(--ink-soft);
	font-size: 1.12rem;
}

.text-action {
	display: inline-block;
	margin-top: 1.4rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
	.sun-arc {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
		animation: draw-arc 1.35s ease 0.1s forwards;
	}

	.sun-rays {
		opacity: 0;
		animation: ray-in 0.9s ease 0.85s forwards;
	}
}

@keyframes ray-in {
	to {
		opacity: 1;
	}
}

@keyframes draw-arc {
	to {
		stroke-dashoffset: 0;
	}
}

.section {
	padding-block: 2.2rem 3rem;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.4rem;
}

.section-head h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 1.8rem;
	font-weight: 400;
}

.hub-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-block-start: 1px solid var(--line);
}

.hub-row {
	display: grid;
	grid-template-columns: 2.6rem minmax(0, 1fr) auto;
	gap: 0.8rem 1rem;
	align-items: center;
	padding-block: 1.05rem;
	border-block-end: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}

.hub-row:hover {
	background: var(--ground);
}

.hub-letter {
	font-family: var(--display);
	font-size: 1.35rem;
	color: var(--accent);
	line-height: 1;
}

.hub-copy {
	min-width: 0;
}

.hub-title {
	display: block;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.hub-summary {
	display: block;
	margin: 0.15rem 0 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

.hub-go {
	color: var(--accent);
	font-weight: 600;
	font-size: 0.95rem;
}

.hub-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.1rem;
}

.hub-chips a {
	color: var(--ink);
	text-decoration: none;
	background: var(--ground);
	padding: 0.25rem 0.65rem;
	font-size: 0.92rem;
	font-weight: 500;
}

.hub-chips a:hover,
.hub-chips a[aria-current="page"] {
	background: var(--accent-soft);
	color: var(--accent);
}

.guide-list {
	list-style: none;
	margin: 1.2rem 0 0;
	padding: 0;
	border-block-start: 1px solid var(--line);
}

.guide-row {
	border-block-end: 1px solid var(--line);
}

.guide-row a {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) auto;
	gap: 0.75rem 1.25rem;
	align-items: baseline;
	padding-block: 1.15rem;
	color: inherit;
	text-decoration: none;
}

.guide-row a:hover h2,
.guide-row a:hover .guide-title {
	color: var(--accent);
}

.guide-cat {
	margin: 0;
	color: var(--accent);
	font-size: 0.92rem;
	font-weight: 600;
}

.guide-title {
	margin: 0;
	font-family: var(--display);
	font-size: 1.45rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--ink);
}

.guide-excerpt {
	grid-column: 2;
	margin: 0.2rem 0 0;
	color: var(--ink-soft);
}

.guide-date {
	grid-column: 3;
	grid-row: 1;
	align-self: start;
	margin: 0.35rem 0 0;
	color: var(--ink-soft);
	font-size: 0.9rem;
	white-space: nowrap;
}

.page-mast {
	padding-block: 2.6rem 0.4rem;
}

.page-mast h1 {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.reading {
	width: min(var(--content), calc(100% - 2.5rem));
	margin-inline: auto;
	padding-block: 2.4rem 3.5rem;
}

.entry-kicker {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.entry-kicker a {
	text-decoration: none;
}

.entry-header h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.entry-date {
	margin: 0.7rem 0 0;
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.25;
	margin-top: 2rem;
}

.entry-content h2 {
	font-size: 1.7rem;
}

.entry-content h3 {
	font-size: 1.3rem;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.2rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.more-in-hub {
	margin-top: 2.4rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--line);
}

.nav-links,
.pagination {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.empty {
	margin: 1.5rem 0 2rem;
	color: var(--ink-soft);
}

.site-footer {
	background: var(--frame);
	color: #d5e1e8;
	padding-block: 2rem 2.4rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 1.5rem 2rem;
}

.site-footer a {
	color: #f6f9fb;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.footer-brand {
	margin: 0;
	font-family: var(--display);
	font-size: 1.5rem;
	color: var(--paper);
}

.footer-note {
	margin: 0.4rem 0 0;
	max-width: 22rem;
	color: #b7c9d4;
	font-size: 0.95rem;
}

.footer-hubs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	align-content: start;
}

@media (max-width: 800px) {
	.footer-grid,
	.guide-row a {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: 0;
	}

	.hero-stage {
		grid-template-columns: 1fr;
		padding-block: 1.6rem 0.4rem;
	}

	.hero-sky svg {
		width: 100%;
		margin-inline-start: 0;
	}

	.hero-doors {
		grid-template-columns: 1fr 1fr;
	}

	.hero-doors a:nth-child(odd) {
		border-inline-start: 0;
	}

	.hero-doors a:nth-child(n + 3) {
		border-block-start: 1px solid #2a445c;
	}

	.guide-excerpt {
		grid-column: auto;
	}

	.guide-date {
		grid-column: auto;
		grid-row: auto;
		white-space: normal;
	}

	.search-form {
		margin-inline-start: 0;
		width: 100%;
	}

	.search-form input[type="search"] {
		flex: 1;
		min-width: 0;
	}

	.hub-row {
		grid-template-columns: 2.2rem minmax(0, 1fr);
	}

	.hub-go {
		grid-column: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
