/*
Theme Name: Foryourskin
Description: A Foryourskin blog megújított témája – az eredeti cafeblog-os kinézet (kézírásos címek, korall színek) modern, reszponzív változata.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: foryourskin
*/

:root {
	--paper: #ffffff;
	--blush: #fbefeb;
	--line: #f0d6ce;
	--coral: #e88b74;      /* the original accent, used for decoration */
	--coral-ink: #b4553f;  /* accessible text version of the accent */
	--ink: #2e2629;
	--muted: #776a6d;
	--script: "Sacramento", "Segoe Script", cursive;
	--sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
	--measure: 42rem;
	--radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.75 var(--sans);
	font-feature-settings: "lnum" 1;
}

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

a { color: var(--coral-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100;
	top: 1rem; left: 1rem; padding: .5rem 1rem; background: var(--paper);
}

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }

/* ---------- header ---------- */

.site-header { text-align: center; }

.masthead {
	display: block;
	margin: 1.25rem auto 0;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 1500 / 560;
	background: url("assets/header-wide.png") center 55% / cover no-repeat, var(--paper);
}
.masthead--compact { aspect-ratio: 1500 / 300; }

.site-tagline {
	margin: .9rem 0 0;
	color: var(--muted);
	font-size: .95rem;
	letter-spacing: .02em;
}

.site-nav {
	position: sticky; top: 0; z-index: 10;
	margin-top: 1rem;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border-block: 1px solid var(--line);
}
.site-nav ul {
	display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem;
	margin: 0; padding: .7rem 0; list-style: none;
}
.site-nav a {
	color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
	padding-block: .2rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-cat > a,
.site-nav .current_page_item > a { border-bottom-color: var(--coral); }

/* ---------- layout ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 4rem;
	padding-block: 3rem 4rem;
}
.layout > main { min-width: 0; max-width: var(--measure); }

@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
	.layout > main { max-width: none; }
}

/* ---------- script headings ---------- */

.script {
	font-family: var(--script);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
}

/* ---------- post list ---------- */

.archive-head { margin-bottom: 2.5rem; }
.archive-head h1 { font-size: 3.4rem; margin: 0; color: var(--ink); }
.archive-head p { margin: .25rem 0 0; color: var(--muted); }

.entry-list { display: grid; gap: 3.25rem; }

.teaser { display: grid; gap: .5rem; }
.teaser.has-thumb { grid-template-columns: 200px minmax(0, 1fr); gap: 0 1.75rem; align-items: start; }
.teaser__thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.teaser__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser h2 { margin: 0 0 .4rem; font-size: 2.6rem; line-height: 1.2; }
.teaser h2 a { color: var(--ink); text-decoration: none; }
.teaser h2 a:hover { color: var(--coral-ink); }
.teaser p { margin: .5rem 0 0; }
@media (max-width: 600px) {
	.teaser.has-thumb { grid-template-columns: 1fr; }
	.teaser__thumb { aspect-ratio: 16 / 10; margin-bottom: 1rem; }
	.teaser h2 { font-size: 2.2rem; }
}

.meta {
	display: flex; flex-wrap: wrap; gap: .15rem .9rem;
	margin: .5rem 0 0; padding: 0; list-style: none;
	font-size: .85rem; color: var(--muted);
}
.meta a { color: var(--coral-ink); text-decoration: none; }
.meta a:hover { text-decoration: underline; }

.read-more { font-weight: 600; font-size: .95rem; }

.pagination { margin-top: 3.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .75rem;
	border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink);
}
.pagination .current { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- single ---------- */

.entry-header { margin-bottom: 2rem; }
.entry-header h1 { margin: 0 0 1rem; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1.2; color: var(--ink); }
.entry-hero { margin: 0 0 2.25rem; border-radius: var(--radius); overflow: hidden; }
.entry-hero img { display: block; width: 100%; }

.entry-content { overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 {
	line-height: 1.3; margin: 2em 0 .6em; font-weight: 600; color: var(--ink);
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content h5 { font-size: 1.05rem; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.entry-content blockquote {
	margin-inline: 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--coral); color: var(--muted);
}
.entry-content img { border-radius: 8px; }
.entry-content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; border-radius: 8px; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: auto; display: block; } }

.wp-caption { margin-inline: auto; }
.wp-caption-text, .fys-gallery figcaption {
	margin-top: .4rem; font-size: .85rem; color: var(--muted); text-align: center;
}

.fys-gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-inline: 0;
}
.fys-gallery__item { margin: 0; }
.fys-gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.entry-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag-list a {
	display: inline-block; padding: .2rem .8rem; border-radius: 999px; background: var(--blush);
	color: var(--ink); text-decoration: none; font-size: .85rem;
}
.tag-list a:hover { background: var(--line); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.post-nav a { display: block; text-decoration: none; color: var(--ink); }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { text-align: right; }

/* ---------- comments ---------- */

.comments { margin-top: 4rem; }
.comments h2 { font-size: 2.6rem; margin: 0 0 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1rem 0 1.25rem; }
.comment-author { font-weight: 600; }
.comment-author .says { display: none; }
.comment-author img { display: none; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p { margin: .5rem 0 0; }
.reply { font-size: .85rem; }

.comment-respond { margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius); background: var(--blush); }
.comment-respond h3 { margin-top: 0; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .25rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea,
.search-form input[type="search"] {
	width: 100%; padding: .65rem .8rem; font: inherit; color: var(--ink);
	border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; font-size: .85rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

.button, .comment-form input[type="submit"], .search-form button {
	display: inline-block; padding: .65rem 1.4rem; border: 0; border-radius: 999px;
	background: var(--ink); color: #fff; font: 600 .95rem var(--sans); cursor: pointer;
}
.button:hover, .comment-form input[type="submit"]:hover, .search-form button:hover { background: var(--coral-ink); }

/* ---------- sidebar ---------- */

.sidebar { display: grid; gap: 2.75rem; align-content: start; }

.widget-title {
	font-family: var(--script); font-weight: 400; font-size: 2.2rem; line-height: 1;
	text-align: center; margin: 0 0 1rem; padding: .55rem 0 .45rem;
	border-block: 1px solid var(--line);
}

.about { text-align: center; }
.about img { width: 128px; height: 128px; border-radius: 50%; display: block; margin: 0 auto 1rem; }
.about p { margin: 0 0 .75rem; font-size: .95rem; }

.tagcloud { line-height: 1.9; text-align: center; }
.tagcloud a { color: var(--coral-ink); text-decoration: none; margin-right: .35rem; white-space: nowrap; }
.tagcloud a:hover { color: var(--ink); text-decoration: underline; }

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { color: var(--ink); text-decoration: none; }
.sidebar li a:hover { color: var(--coral-ink); }

.search-form { display: flex; gap: .5rem; }
.search-form button { flex: none; }

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; text-align: center; color: var(--muted); font-size: .9rem;
}
.site-footer .script { font-size: 2.4rem; color: var(--ink); display: block; margin-bottom: .25rem; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
