/*
Theme Name: Total Child: Seasons
Template: total
Version: 1.0.0
Description: Дочерняя тема «Seasons» для сети wp-portfolio: цветочный календарь. Терракота, тёплый песок и какао, шрифты Unbounded и Golos Text, главная — вертикальная лента-таймлайн с крупной датой слева и карточкой записи справа.
Text Domain: total-child
*/

:root {
	--sn-terra: #C8553D;
	--sn-terra-dark: #A8432E;
	--sn-sand: #F3E9DC;
	--sn-sand-2: #EADBC6;
	--sn-cocoa: #2E1F1A;
	--sn-cocoa-2: #5A463D;
	--sn-olive: #6B7445;
	--sn-olive-light: #DDE0C8;
	--sn-card: #FFFBF5;
	--sn-display: Unbounded, "Arial Black", sans-serif;
	--sn-text: "Golos Text", "Helvetica Neue", Arial, sans-serif;

	/* Переменные родителя — на палитру и шрифты дочерней темы */
	--total-template-color: var(--sn-terra);
	--total-body-family: var(--sn-text);
	--total-h-family: var(--sn-display);
	--total-menu-family: var(--sn-display);
	--total-h-size: 38px;
	--total-content-header-color: var(--sn-cocoa);
	--total-content-text-color: var(--sn-cocoa);
	--total-content-link-color: var(--sn-terra);
	--total-title-color: var(--sn-cocoa);
	--total-container-width: 1080px;
	--total-sidebar-width: 30%;
}

html { overflow-x: hidden; }
body { background: var(--sn-sand); color: var(--sn-cocoa); font-family: var(--sn-text); font-size: 17px; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sn-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--sn-terra); }
a:hover { color: var(--sn-olive); }

/* ---------- Шапка: компактная песочная полоса, название — Unbounded ---------- */
.ht-header {
	background: var(--sn-sand);
	border-top: 0;
	border-bottom: 2px solid var(--sn-cocoa);
	box-shadow: none;
}
.ht-header .ht-container { padding-top: 14px; padding-bottom: 14px; }
.ht-site-title {
	font-family: var(--sn-display);
	font-weight: 700;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	text-transform: none;
	letter-spacing: -.02em;
	margin: 0;
	line-height: 1.1;
}
.ht-site-title a { color: var(--sn-cocoa); display: inline-flex; align-items: center; gap: 10px; }
/* «Цветок»-точка перед названием */
.ht-site-title a::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sn-terra);
	box-shadow: 0 0 0 4px var(--sn-sand), 0 0 0 6px var(--sn-olive);
	flex: none;
}
.ht-site-title a:hover { color: var(--sn-terra); }

.ht-site-header .ht-menu > ul > li > a,
.ht-menu > ul > li.menu-item > a {
	font-family: var(--sn-display);
	font-weight: 500;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--sn-cocoa);
	padding: 8px 18px;
	line-height: 1.2;
	border: 2px solid var(--sn-cocoa);
	border-radius: 999px;
	transition: background .2s, color .2s;
}
.ht-menu > ul > li.menu-item > a:hover,
.ht-menu > ul > li.menu-item.current-menu-item > a {
	background: var(--sn-terra);
	border-color: var(--sn-terra);
	color: #fff;
}

/* Меню из одного пункта: на мобильных показываем его сразу, без «бургера» */
@media screen and (max-width: 1000px) {
	.toggle-bar { display: none !important; }
	#ht-site-navigation .ht-menu {
		display: block !important;
		position: static;
		background: none;
		width: auto;
	}
	.ht-site-header .ht-menu > ul > li > a,
	.ht-menu > ul > li.menu-item > a { padding: 7px 14px; border-bottom: 2px solid var(--sn-cocoa); }
	.ht-sticky-header .ht-header.headroom--not-top .ht-container,
	.ht-header .ht-container { padding: 12px 0; }
}

/* ---------- Заголовок страниц (архивы, поиск) ---------- */
.ht-main-header { background: var(--sn-sand-2); border-bottom: 1px solid rgba(46, 31, 26, .12); }
.ht-main-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-transform: none; color: var(--sn-cocoa); }
.ht-main-header:empty { margin-bottom: 0; }

/* ---------- Главная и /blog/: лента-календарь ---------- */
.seasons-timeline #primary { width: auto; float: none; max-width: 980px; margin: 0 auto; }
.seasons-timeline .ht-main-content { padding-top: 10px; }

.portfolio-home-h1 {
	font-family: var(--sn-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 4vw, 2.7rem);
	line-height: 1.15;
	color: var(--sn-cocoa);
	margin: 30px 0 48px;
	padding-left: 150px;
	max-width: 900px;
	position: relative;
}
.portfolio-home-h1::before {
	content: "Календарь";
	position: absolute;
	left: 0;
	top: .35em;
	font-family: var(--sn-text);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sn-olive);
}

.seasons-timeline #main { position: relative; }
.seasons-timeline .total-hentry {
	position: relative;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	column-gap: 30px;
	margin: 0;
	padding: 0 0 44px;
}
/* Вертикальная линия, соединяющая записи */
.seasons-timeline .total-hentry::before {
	content: "";
	display: block;
	position: absolute;
	left: 59px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: repeating-linear-gradient(180deg, var(--sn-olive) 0 8px, transparent 8px 14px);
	z-index: 0;
}
.seasons-timeline .total-hentry:last-of-type::before { bottom: auto; height: 60px; }
.seasons-timeline .total-hentry::after { display: none; }

/* Блок даты: день крупно, месяц и год под ним */
.seasons-timeline .ht-post-info {
	float: none;
	width: auto;
	text-align: center;
	position: relative;
	z-index: 1;
	align-self: start;
}
.seasons-timeline .ht-post-info .entry-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin: 0;
	border-radius: 50%;
	background: var(--sn-terra);
	color: #fff;
	box-shadow: 0 0 0 8px var(--sn-sand);
	font-size: 1rem;
}
.seasons-timeline .ht-post-info .entry-date span.ht-day {
	font-family: var(--sn-display);
	font-weight: 700;
	font-size: 44px;
	line-height: 1;
	color: #fff;
	letter-spacing: -.03em;
}
.seasons-timeline .ht-post-info .entry-date span.ht-month-year {
	font-family: var(--sn-text);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-top: 6px;
	color: var(--sn-sand);
}
.seasons-timeline .total-hentry:nth-of-type(even) .ht-post-info .entry-date { background: var(--sn-olive); }

/* Карточка записи справа: фото слева, текст справа */
.seasons-timeline .ht-post-wrapper {
	padding: 0;
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	grid-template-areas: "fig head" "fig cat" "fig text" "fig more";
	grid-template-rows: auto auto 1fr auto;
	column-gap: 26px;
	background: var(--sn-card);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(46, 31, 26, .08), 0 14px 30px -22px rgba(46, 31, 26, .45);
	padding-right: 26px;
}
.seasons-timeline .ht-post-wrapper::before {
	content: "";
	display: block;
	position: absolute;
	left: 120px;
	top: 58px;
	width: 30px;
	height: 2px;
	background: var(--sn-olive);
}
.seasons-timeline .entry-figure {
	grid-area: fig;
	margin: 0;
	background: var(--sn-sand-2);
	min-height: 220px;
}
.seasons-timeline .entry-figure a,
.seasons-timeline .entry-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seasons-timeline .entry-figure + .entry-header,
.seasons-timeline .entry-header {
	grid-area: head;
	background: none;
	margin: 0;
	width: auto;
	padding: 24px 0 0;
}
.seasons-timeline .entry-header .entry-title {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 8px;
}
.seasons-timeline .entry-header .entry-title a { color: var(--sn-cocoa); }
.seasons-timeline .entry-header .entry-title a:hover { color: var(--sn-terra); }
.seasons-timeline .ht-post-wrapper > :not(.entry-figure):not(.entry-header):not(.entry-categories):not(.entry-readmore) { grid-column: 2; }
.seasons-timeline .entry-categories { grid-area: cat; margin-bottom: 10px; font-style: normal; }
.seasons-timeline .entry-summary { grid-area: text; font-size: .97rem; line-height: 1.6; color: var(--sn-cocoa-2); }
.seasons-timeline .entry-readmore { grid-area: more; margin: 14px 0 24px; }

/* Рубрика — оливковая «метка» */
.entry-categories i { display: none; }
.entry-categories a {
	display: inline-block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sn-olive);
	background: var(--sn-olive-light);
	padding: 3px 10px;
	border-radius: 999px;
}
.entry-categories a:hover { color: var(--sn-cocoa); }

/* «Читать» — текстовая ссылка со стрелкой */
.entry-readmore a {
	background: none;
	padding: 0;
	color: var(--sn-terra);
	font-family: var(--sn-display);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 2px solid currentColor;
}
.entry-readmore a::after { content: " →"; }
.entry-readmore a:hover { background: none; color: var(--sn-olive); }

/* Пагинация — кружки-даты */
.pagination { margin: 10px 0 60px; }
.pagination .page-numbers {
	min-width: 44px;
	height: 44px;
	line-height: 44px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--sn-card);
	color: var(--sn-cocoa);
	font-family: var(--sn-display);
	font-size: .85rem;
	box-shadow: inset 0 0 0 2px var(--sn-cocoa);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--sn-terra); color: #fff; box-shadow: none; }

/* ---------- Запись, сайдбар ---------- */
.single .entry-header .entry-title,
.content-area h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.single-entry-meta { color: var(--sn-cocoa-2); }
.entry-content a { color: var(--sn-terra-dark); }
.widget-area .widget { background: var(--sn-card); border-radius: 14px; padding: 22px 24px; margin-bottom: 24px; }
.widget-area h2, .widget-area .widget-title { font-size: 1rem; margin-bottom: 14px; }
.widget-area a { color: var(--sn-cocoa); }
.widget-area a:hover { color: var(--sn-terra); }
.wp-block-search__button { background: var(--sn-terra); color: #fff; border: 0; }

/* 404: крупные цифры не шире экрана */
.error404 .error-404 { font-family: var(--sn-display); font-size: clamp(90px, 22vw, 200px); color: var(--sn-sand-2); }

/* ---------- Подвал: только копирайт ---------- */
#ht-colophon { background: var(--sn-cocoa); background-image: none; border-top: 0; margin-top: 0; }
#ht-colophon::before { display: none; }
#ht-bottom-footer {
	background: none;
	color: var(--sn-sand);
	font-family: var(--sn-display);
	font-size: .8rem;
	letter-spacing: .06em;
	padding: 28px 0;
}
#ht-back-top { background: var(--sn-terra); border-radius: 50%; }

/* ---------- Мобильные ---------- */
@media screen and (max-width: 767px) {
	.portfolio-home-h1 { padding-left: 0; margin: 20px 0 30px; }
	.portfolio-home-h1::before { position: static; display: block; margin-bottom: 8px; }

	.seasons-timeline .total-hentry { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding-bottom: 30px; }
	.seasons-timeline .total-hentry::before { left: 31px; }
	.seasons-timeline .ht-post-info .entry-date { width: 64px; height: 64px; box-shadow: 0 0 0 5px var(--sn-sand); }
	.seasons-timeline .ht-post-info .entry-date span.ht-day { font-size: 22px; }
	.seasons-timeline .ht-post-info .entry-date span.ht-month-year { font-size: .58rem; letter-spacing: .06em; margin-top: 2px; }
	.seasons-timeline .ht-post-wrapper::before { display: none; }

	.seasons-timeline .ht-post-wrapper {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "fig" "head" "cat" "text" "more";
		grid-template-rows: auto;
		padding: 0;
		border-radius: 14px;
	}
	.seasons-timeline .ht-post-wrapper > * { padding-left: 16px; padding-right: 16px; }
	.seasons-timeline .ht-post-wrapper > .entry-figure { padding: 0; min-height: 0; aspect-ratio: 2 / 1; }
	.seasons-timeline .entry-figure + .entry-header,
	.seasons-timeline .entry-header { padding: 16px 16px 0; }
	.seasons-timeline .entry-summary { font-size: .92rem; }
	.seasons-timeline .entry-readmore { margin: 10px 0 18px; }
	.seasons-timeline .ht-post-wrapper > :not(.entry-figure):not(.entry-header):not(.entry-categories):not(.entry-readmore) { grid-column: 1; }
}

@media screen and (max-width: 480px) {
	.ht-site-title a::before { width: 10px; height: 10px; box-shadow: 0 0 0 3px var(--sn-sand), 0 0 0 5px var(--sn-olive); }
	.ht-site-title { font-size: 1.05rem; }
}
.widget-area .no-comments { color: var(--sn-cocoa-2); }
