/*
Theme Name: Author Child: Garden Diary
Template: author
Version: 1.0.0
Description: Дочерняя тема «Garden Diary» — садовый дневник: сливовая левая колонка с кремовым текстом, бумажный фон, моховые акценты, шрифты Merriweather и Source Sans 3, записи списком с фото слева и датой «от руки».
Text Domain: author-child
*/

:root {
	--gd-plum: #3E2A3F;
	--gd-plum-2: #563B57;
	--gd-cream: #F3EAD8;
	--gd-cream-dim: rgba(243, 234, 216, .68);
	--gd-paper: #FBF7EF;
	--gd-moss: #6B7F3A;
	--gd-moss-dark: #556630;
	--gd-ink: #2F2530;
	--gd-muted: #7A6E70;
	--gd-line: #E4DACA;
	--gd-serif: Merriweather, Georgia, serif;
	--gd-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Основа ---------- */
body { background: var(--gd-plum); color: var(--gd-ink); font-family: var(--gd-sans); font-size: 106.25%; line-height: 1.6; }
h1, h2, h3, h4, h5, h6, .post-title, .site-title { font-family: var(--gd-serif); font-weight: 700; letter-spacing: 0; }
a, a:link, a:visited { color: var(--gd-moss-dark); }
a:hover, a:active, a:focus { color: var(--gd-plum); }
.main { background: var(--gd-paper); }
.overflow-container { overflow-x: hidden; }

/* ---------- Левая колонка: сливовая, кремовый текст ---------- */
.main-sidebar { background: var(--gd-plum); color: var(--gd-cream); }
.site-header:after { border-top: 0; }
.title-container { text-align: left; }
.site-title { font-size: 1.6rem; line-height: 1.2; }
.site-title a, .site-title a:link, .site-title a:visited { color: var(--gd-cream); text-decoration: none; }
.site-title a:hover, .site-title a:focus { color: #fff; text-decoration: none; }
.tagline { color: var(--gd-cream-dim); font-family: var(--gd-serif); font-style: italic; font-size: .9rem; }
.social-media-icons { display: none !important; }

.menu-primary-items, .menu-unset > ul { border-top: 1px solid rgba(243, 234, 216, .2); }
.menu-primary a, .menu-primary a:link, .menu-primary a:visited {
	color: var(--gd-cream);
	font-family: var(--gd-sans);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding-left: 20px;
	position: relative;
}
.menu-primary a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 0 60% 0 60%;
	background: var(--gd-moss);
}
.menu-primary a:hover, .menu-primary a:focus { color: #fff; text-decoration: none; }

/* Виджеты колонки */
.sidebar-primary { color: var(--gd-cream-dim); font-size: .98rem; }
.sidebar-primary .no-comments { font-size: .95rem; }
.sidebar-primary .widget { margin-bottom: 0; border-top: 1px solid rgba(243, 234, 216, .14); color: var(--gd-cream-dim); }
.sidebar-primary .widget-title, .sidebar-primary .wp-block-heading {
	font-family: var(--gd-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.05rem;
	color: var(--gd-cream);
	margin: 0 0 .7em;
	padding-bottom: .5em;
	border-bottom: 1px dashed rgba(243, 234, 216, .3);
}
.sidebar-primary .widget a, .sidebar-primary .widget a:link, .sidebar-primary .widget a:visited { color: var(--gd-cream-dim); text-decoration: none; }
.sidebar-primary .widget a:hover, .sidebar-primary .widget a:focus { color: var(--gd-cream); text-decoration: underline; }
.sidebar-primary ul { padding-left: 0; list-style: none; }
.sidebar-primary li { margin-bottom: .55em; line-height: 1.4; font-size: .95rem; }
.sidebar-primary .wp-block-search__label { color: var(--gd-cream); font-family: var(--gd-serif); font-style: italic; font-weight: 400; }
.sidebar-primary .wp-block-search__input { background: rgba(243, 234, 216, .08); border: 1px solid rgba(243, 234, 216, .3); color: var(--gd-cream); border-radius: 4px; padding: 8px 10px; }
.sidebar-primary .wp-block-search__button { background: var(--gd-moss); color: #fff; border: 0; border-radius: 4px; font-family: var(--gd-sans); font-weight: 600; margin-left: 6px; }
.sidebar-primary .wp-block-search__button:hover { background: var(--gd-moss-dark); }

/* ---------- H1 главной: запись на странице дневника ---------- */
.portfolio-home-h1 {
	font-family: var(--gd-serif);
	font-weight: 700;
	font-size: clamp(1.55rem, 2.8vw, 2.25rem);
	line-height: 1.25;
	color: var(--gd-plum);
	margin: 0 0 .9em;
	padding-bottom: .6em;
	border-bottom: 2px solid var(--gd-moss);
	max-width: 32em;
}

/* ---------- Список записей: горизонтальные строки, фото слева 40% ---------- */
.blog .loop-container, .archive .loop-container, .search .loop-container { display: block; }
.blog .entry, .archive .entry, .search .entry {
	display: grid;
	grid-template-columns: 40% minmax(0, 1fr);
	gap: 0 2.2em;
	align-items: start;
	margin: 0;
	padding: 2em 0;
	border-bottom: 1px dashed var(--gd-line);
	background: none;
}
.portfolio-home-h1 + .entry, .archive-header + .loop-container .entry:first-child { padding-top: .6em; }
.blog .entry:not(.has-post-thumbnail) article, .archive .entry:not(.has-post-thumbnail) article { grid-column: 1 / -1; }

/* Фото «вклеено» в дневник: белая рамка и мягкая тень */
.blog .entry .featured-image, .archive .entry .featured-image, .search .entry .featured-image {
	padding-bottom: 0;
	height: auto;
	aspect-ratio: 4 / 3;
	border: 6px solid #fff;
	box-shadow: 0 2px 10px rgba(62, 42, 63, .14);
	border-radius: 2px;
	transform: rotate(-1deg);
	transition: transform .25s ease;
}
.blog .entry:nth-of-type(even) .featured-image, .archive .entry:nth-of-type(even) .featured-image { transform: rotate(.8deg); }
.blog .entry .featured-image:hover, .archive .entry .featured-image:hover { transform: rotate(0); }

.blog .entry article, .archive .entry article, .search .entry article { padding: 0; background: none; box-shadow: none; text-align: left; }
.blog .entry .post-header, .archive .entry .post-header, .search .entry .post-header { display: flex; flex-direction: column; text-align: left; margin: 0 0 .6em; }
.blog .entry .post-meta, .archive .entry .post-meta, .search .entry .post-meta { order: -1; margin: 0 0 .35em; }
.blog .entry .post-title, .archive .entry .post-title, .search .entry .post-title { font-size: 1.4rem; line-height: 1.3; margin: 0; text-align: left; }
.entry .post-title a, .entry .post-title a:link, .entry .post-title a:visited { color: var(--gd-plum); text-decoration: none; }
.entry .post-title a:hover, .entry .post-title a:focus { color: var(--gd-moss-dark); }
.blog .entry .post-content, .archive .entry .post-content, .search .entry .post-content { color: var(--gd-ink); font-size: 1rem; line-height: 1.65; text-align: left; margin: 0; }
.blog .entry .post-content p, .archive .entry .post-content p { margin: 0 0 .8em; }

/* Дата «от руки»: курсив заголовочного шрифта */
.post-meta { font-family: var(--gd-serif); text-transform: none; letter-spacing: 0; }
.diary-date {
	font-family: var(--gd-serif);
	font-style: italic;
	font-weight: 400;
	font-size: .95rem;
	color: var(--gd-moss);
}
.diary-date::before { content: "~ "; }

.more-link-wrapper { margin-top: .4em; text-align: left; }
.more-link, .more-link:link, .more-link:visited {
	display: inline-block;
	font-family: var(--gd-sans);
	font-weight: 600;
	font-size: .9rem;
	color: var(--gd-moss-dark);
	text-decoration: none;
	border-bottom: 2px solid var(--gd-moss);
	padding-bottom: 1px;
}
.more-link::after { content: " →"; }
.more-link:hover, .more-link:focus { color: var(--gd-plum); border-color: var(--gd-plum); }
.comments-link { display: none; }

/* ---------- Пагинация ---------- */
.pagination { margin: 2.5em 0 0; text-align: left; font-family: var(--gd-sans); }
.pagination a, .pagination span {
	display: inline-block;
	min-width: 2.2em;
	padding: .3em .6em;
	margin: 0 .2em .4em 0;
	text-align: center;
	border: 1px solid var(--gd-line);
	border-radius: 4px;
	background: #fff;
	color: var(--gd-plum);
	text-decoration: none;
}
.pagination .current { background: var(--gd-plum); border-color: var(--gd-plum); color: var(--gd-cream); }
.pagination a:hover { border-color: var(--gd-moss); color: var(--gd-moss-dark); }
.pagination .next, .pagination .prev { position: static; float: none; }

/* ---------- Запись ---------- */
.singular .entry article { background: transparent; box-shadow: none; padding: 1.5em 0 0; }
.post-categories { font-family: var(--gd-serif); font-style: italic; color: var(--gd-muted); }
.post-categories a { font-style: normal; font-family: var(--gd-sans); font-weight: 600; }
.further-reading {
	background: transparent;
	text-align: left;
	padding: 1em 0 !important;
	border-top: 1px dashed var(--gd-line);
	border-bottom: 1px dashed var(--gd-line);
}
.further-reading span { font-family: var(--gd-serif); font-style: italic; color: var(--gd-moss); font-size: .9rem; }
.further-reading a { font-family: var(--gd-serif); font-weight: 700; color: var(--gd-plum); text-decoration: none; }
.further-reading .next { text-align: right; }
.comments { padding: 1.5em 0 0 !important; background: transparent; }
.comments h2, .comment-reply-title { color: var(--gd-plum); font-size: 1.3rem; }
.comments-number, .comment-respond { box-shadow: none !important; border: 1px solid var(--gd-line); border-radius: 3px; }
.comments-number { text-align: left; }
.comment-respond input[type=submit] { background: var(--gd-moss); color: #fff; border: 0; border-radius: 4px; padding: .6em 1.4em; font-family: var(--gd-sans); font-weight: 600; }
.comment-respond input[type=submit]:hover { background: var(--gd-plum); }
.singular .post-header { text-align: left; }
.singular .post-title { color: var(--gd-plum); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; }
.singular .featured-image { border: 8px solid #fff; box-shadow: 0 2px 12px rgba(62, 42, 63, .14); }
.singular .post-content { font-size: 1.05rem; line-height: 1.75; }
.post-content h2, .post-content h3 { color: var(--gd-plum); }
.post-content blockquote { border-left: 3px solid var(--gd-moss); font-family: var(--gd-serif); font-style: italic; }

/* ---------- Подвал ---------- */
.site-footer .design-credit {
	background: var(--gd-paper);
	color: var(--gd-muted);
	text-align: left;
	border-top: 1px dashed var(--gd-line);
	padding: 1.4em 5.555%;
	font-size: .9rem;
}
.scroll-to-top { background: var(--gd-plum); }
.scroll-to-top:hover { background: var(--gd-moss); }

/* ---------- Мобильные: колонка — шапкой сверху, записи стопкой ---------- */
@media all and (max-width: 59.374em) {
	.main-sidebar { padding: 1.1em 16px; }
	.title-container { padding-bottom: .5em; }
	.site-title { font-size: 1.3rem; }
	.toggle-navigation { display: none; }
	.menu-primary { position: static; width: auto; padding: 0; max-height: none; opacity: 1; visibility: visible; overflow: visible; }
	.menu-primary-items { margin: .7em 0 0; padding: .7em 0 0; }
	.menu-primary a { margin: 0; }
	.main { padding: 1.6em 16px; }
	.site-footer .design-credit { padding: 1.2em 16px; }
}
@media all and (max-width: 40em) {
	.blog .entry, .archive .entry, .search .entry { grid-template-columns: minmax(0, 1fr); gap: 1em; padding: 1.6em 0; }
	.blog .entry .featured-image, .archive .entry .featured-image, .search .entry .featured-image { aspect-ratio: 16 / 10; transform: none !important; }
	.blog .entry .post-title, .archive .entry .post-title { font-size: 1.25rem; }
}

/* ---------- Десктоп: шире область записей, бумажный фон справа ---------- */
@media all and (min-width: 59.375em) {
	.main-sidebar { padding: 3.5em 2.2% 3em; }
	.main { padding: 3.5em 5% 3em; }
	.site-title { font-size: 1.75rem; }
	.title-container { text-align: left; }
	.title-container .container { text-align: left; }
}
@media all and (min-width: 71.875em) {
	.main { padding: 3.5em 7% 3em 5%; }
}
@media all and (min-width: 87.5em) {
	body:before { background: var(--gd-paper); }
	.site-footer:after { background: var(--gd-paper); }
}
