/* =========================================================
   Idézetek Innen-Onnan – cetlifal arculat
   Színek: háttér #FDFBF7 · kiemelő #F1D442 · tinta #2B261D
   ========================================================= */

:root {
	--bg: #FDFBF7;
	--accent: #F1D442;
	--accent-dark: #d9bd2c;
	--ink: #2B261D;
	--ink-soft: #6b6153;
	--ink-on-yellow: #4a3f1e;
	--line: rgba(43, 38, 29, 0.15);
	--line-strong: rgba(43, 38, 29, 0.35);
	--wall-a: #f5f1e6;
	--wall-b: #efe9da;

	--font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--shadow-note: 0 3px 8px rgba(43, 38, 29, 0.18);
	--shadow-note-lift: 0 8px 18px rgba(43, 38, 29, 0.24);

	--max: 1180px;
}

/* ---------- Alap ---------- */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; color: inherit; }

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

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

.skip-link {
	position: fixed; top: -100px; left: 12px; z-index: 10000;
	background: var(--ink); color: var(--bg);
	padding: 10px 18px;
}
.skip-link:focus { top: 12px; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ---------- Fejléc ---------- */

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--bg);
	border-bottom: 2px solid var(--ink);
}

.header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 14px 26px;
	display: flex;
	align-items: center;
	gap: 22px;
}

.brand-link { display: flex; align-items: center; gap: 12px; }

.brand-logo, .brand-logo__img { width: 44px; height: 44px; display: block; flex-shrink: 0; }
.brand-logo__img { object-fit: contain; }

.site-title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.1;
	white-space: nowrap;
}

.main-navigation { margin-left: 8px; }

.primary-menu { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.primary-menu a {
	display: inline-block;
	padding: 6px 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}

.primary-menu a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }

.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-cat > a {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.header-search { position: relative; display: flex; align-items: center; }

.search-toggle {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--ink);
	background: var(--accent);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	transition: transform .15s, background .15s;
}
.search-toggle:hover { background: var(--accent-dark); transform: rotate(-6deg); }

.header-search__form {
	position: absolute;
	right: 48px;
	width: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: width .25s ease, opacity .2s ease;
}
.header-search.is-open .header-search__form { width: 280px; opacity: 1; visibility: visible; }

.menu-toggle {
	display: none;
	flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px;
	border: 1.5px solid var(--ink);
	border-radius: 50%;
	background: transparent;
}
.menu-toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--ink); }

/* Keresőmező: aláhúzott beviteli mező */
.search-form { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--ink); }
.search-form .search-field {
	flex: 1; min-width: 0;
	border: 0; background: transparent;
	font-family: var(--font-sans); font-size: 15px; color: var(--ink);
	padding: 8px 2px;
}
.search-form .search-field:focus { outline: none; }
.search-form .search-field::placeholder { color: var(--ink-soft); }
.search-form .search-submit {
	width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: var(--accent);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-search__form .search-submit { display: none; }

/* ---------- A fal ---------- */

.wall {
	background: repeating-linear-gradient(0deg, var(--wall-a), var(--wall-a) 28px, var(--wall-b) 29px);
	padding: 44px 26px 64px;
	min-height: 60vh;
}
.wall__inner { max-width: var(--max); margin: 0 auto; }
.wall__inner--narrow { max-width: 720px; }

/* Cetlirács – a JS masonry-vá alakítja (.is-masonry) */
.note-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 28px;
	align-items: start;
}
.note-item { margin-bottom: 30px; align-self: start; min-width: 0; }
.note-item--wide { grid-column: span 2; }
.note-grid.is-masonry { grid-auto-rows: 8px; row-gap: 0; }

/* ---------- Cetli ---------- */

.note {
	--paper: #fff;
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-note);
	padding: 22px 20px 16px;
	transform: rotate(var(--rot, 0deg));
	transition: transform .2s ease, box-shadow .2s ease;
}
a.note:hover, .note-item .note:hover {
	transform: rotate(calc(var(--rot, 0deg) * .3)) translateY(-3px);
	box-shadow: var(--shadow-note-lift);
}

.note--white { --paper: #fff; }
.note--cream { --paper: var(--bg); border: 1px dashed var(--line-strong); box-shadow: 0 2px 6px rgba(43, 38, 29, 0.12); }
.note--yellow { --paper: var(--accent); border-color: transparent; box-shadow: 0 4px 10px rgba(43, 38, 29, 0.2); color: var(--ink); }

.note--tape::before {
	content: '';
	position: absolute; top: -10px; left: 28px;
	width: 48px; height: 16px;
	background: rgba(241, 212, 66, 0.75);
	border: 1px solid rgba(43, 38, 29, 0.1);
	transform: rotate(-4deg);
	z-index: 2;
}
.note--cream.note--tape::before { left: auto; right: 24px; transform: rotate(5deg); }

.note__pin { position: absolute; top: 7px; right: 10px; transform: rotate(25deg); z-index: 2; }

.note__body {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.45;
	overflow-wrap: break-word;
}
.note__body > *:first-child { margin-top: 0; }
.note__body > *:last-child { margin-bottom: 0; }
.note__body p { margin: 0 0 .7em; }
.note__body a { text-decoration: underline; text-underline-offset: 3px; }

/* Méret a hossz szerint */
.note--xs .note__body { font-size: 28px; font-style: italic; font-weight: 600; line-height: 1.25; }
.note--s  .note__body { font-size: 23px; font-style: italic; line-height: 1.35; }
.note--m  .note__body { font-size: 18px; line-height: 1.5; }
.note--l  .note__body { font-size: 15.5px; line-height: 1.55; }
.note--wide { padding: 24px 26px 18px; }
.note--wide .note__body { font-size: 16px; line-height: 1.65; }

.note__meta {
	margin-top: 12px;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px;
	font-size: 11.5px;
	color: var(--ink-soft);
}
.note--yellow .note__meta { color: var(--ink-on-yellow); }
.note__meta a:hover { color: var(--ink); text-decoration: underline; }
.note__source { font-weight: 600; }

/* A teljes cetli kattintható: a dátum linkje nyúlik át az egész cetlin */
.note-item .note { cursor: pointer; }
.note__stretch::after {
	content: '';
	position: absolute; inset: 0;
	z-index: 1;
}
/* ami a cetlin belül külön kattintható (címkék, a szövegben lévő linkek), a nyújtott link fölé kerül */
.note__tag, .note__body a { position: relative; z-index: 3; }

.note__tags { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; }
.note__tag { font-weight: 500; }
.note__tag:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-dark); }
.note--yellow .note__tag:hover { text-decoration-color: var(--ink); }

/* Nagyon hosszú: szakadt aljú, levágott cetli */
.note--torn { background: transparent; border: 0; box-shadow: none; padding: 0; }
.note--torn:hover { box-shadow: none; }
.note--torn .note__body {
	position: relative;
	background: var(--paper);
	border: 1px dashed var(--line-strong); border-bottom: 0;
	box-shadow: 0 4px 10px rgba(43, 38, 29, 0.15);
	padding: 24px 26px 34px;
	max-height: 230px;
	overflow: hidden;
}
.note--torn .note__body::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
	background: linear-gradient(180deg, rgba(255,255,255,0), var(--paper) 85%);
	pointer-events: none;
}
.note--torn.note--yellow .note__body { border-color: transparent; }
.note--torn.note--yellow .note__body::after { background: linear-gradient(180deg, rgba(241,212,66,0), var(--accent) 85%); }
.note--torn.note--cream .note__body::after { background: linear-gradient(180deg, rgba(253,251,247,0), var(--bg) 85%); }
.note__edge {
	display: block; margin-top: -1px;
	fill: var(--paper);
	stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3;
	filter: drop-shadow(0 4px 3px rgba(43, 38, 29, 0.18));
}
.note--torn.note--yellow .note__edge { stroke: transparent; }
.note__more {
	display: inline-block;
	margin: 4px 0 0 4px;
	padding: 6px 14px;
	font-size: 12.5px; font-weight: 600;
	background: var(--accent);
	box-shadow: 0 2px 4px rgba(43, 38, 29, 0.2);
	transform: rotate(-1deg);
	transition: transform .15s, background .15s;
}
.note__more:hover { background: var(--accent-dark); transform: rotate(0deg) translateY(-1px); }
.note--torn .note__meta { margin-left: 4px; margin-top: 8px; color: var(--ink-soft); }

/* ---------- Címke-szalag (kategória, keresés) ---------- */

.archive-head {
	display: flex; flex-wrap: wrap; align-items: flex-end;
	gap: 14px 22px;
	margin-bottom: 36px;
}

.label-strip {
	position: relative;
	background: var(--accent);
	padding: 12px 28px 12px 22px;
	box-shadow: 0 4px 10px rgba(43, 38, 29, 0.22);
	transform: rotate(var(--rot, -1.5deg));
}
.label-strip__tape {
	position: absolute; top: -8px; left: -12px;
	width: 42px; height: 15px;
	background: rgba(253, 251, 247, 0.85);
	border: 1px solid rgba(43, 38, 29, 0.12);
	transform: rotate(-35deg);
}
.label-strip__eyebrow {
	display: block;
	font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ink-on-yellow);
}
.label-strip__title {
	margin: 0;
	font-style: italic; font-weight: 700;
	font-size: 34px; line-height: 1.1;
}

.archive-head__count { margin: 0; padding-bottom: 6px; font-size: 13px; color: var(--ink-soft); }

.sort-notes { margin-left: auto; display: flex; gap: 8px; padding-bottom: 4px; }
.sort-note {
	font-size: 12px; font-weight: 500;
	padding: 6px 14px;
	background: #fff; border: 1px solid var(--line-strong);
	box-shadow: 0 2px 4px rgba(43, 38, 29, 0.12);
	transform: rotate(var(--rot, 0deg));
	transition: transform .15s;
}
.sort-note:hover { transform: rotate(0deg) translateY(-1px); }
.sort-note.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.archive-description { max-width: 640px; margin: -10px 0 30px; color: var(--ink-soft); }

.page-title { font-size: 30px; }

/* ---------- Lapozó ---------- */

.note-pagination { margin-top: 14px; }
.note-pagination .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.note-pagination .page-numbers {
	font-size: 13px;
	padding: 8px 14px;
	background: #fff; border: 1px solid var(--line-strong);
	box-shadow: 0 2px 4px rgba(43, 38, 29, 0.14);
	transition: transform .15s, background .15s;
}
.note-pagination .page-numbers:nth-child(odd)  { transform: rotate(-1.5deg); }
.note-pagination .page-numbers:nth-child(even) { transform: rotate(1deg); }
.note-pagination .page-numbers:hover { transform: rotate(0deg) translateY(-1px); }
.note-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.note-pagination .page-numbers.dots { background: transparent; border: 0; box-shadow: none; }

/* ---------- Egyedi bejegyzés ---------- */

.breadcrumb {
	display: flex; flex-wrap: wrap; gap: 6px;
	font-size: 12px; color: var(--ink-soft);
	margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb__current { color: var(--ink); }

.single-note-holder { position: relative; }
.single-note__tape {
	position: absolute; top: -12px; left: 50%; margin-left: -30px;
	width: 60px; height: 18px;
	background: rgba(253, 251, 247, 0.9);
	border: 1px solid rgba(43, 38, 29, 0.12);
	transform: rotate(-3deg);
	z-index: 2;
}

.single-note {
	position: relative;
	background: var(--accent);
	box-shadow: 0 8px 18px rgba(43, 38, 29, 0.25);
	padding: 50px 38px 24px;
	transform: rotate(-1deg);
}

/* Külön címcetli: a sárga cetli tetejére "ragasztva" */
.single-stack { position: relative; }
.single-title {
	position: relative; z-index: 3;
	display: table;
	max-width: 88%;
	margin: 0 0 -22px 10px;
	padding: 16px 26px 14px;
	font-family: var(--font-serif);
	font-size: 24px; font-weight: 600; line-height: 1.25;
	cursor: default;
}
.single-note .note__mark {
	position: absolute; top: 14px; right: 18px;
	width: 46px; height: 46px;
	color: var(--ink); opacity: .18;
}
.single-note__label {
	margin: 0 0 16px;
	font-family: var(--font-sans);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--ink-on-yellow);
}
.single-note__text {
	font-family: var(--font-serif);
	font-style: italic; font-weight: 600;
	font-size: 30px; line-height: 1.25;
	overflow-wrap: break-word;
}
.single-note__text > *:last-child { margin-bottom: 0; }
.single-note__text p { margin: 0 0 .8em; }
.single-note--xs .single-note__text { font-size: 44px; line-height: 1.15; }
.single-note--s  .single-note__text { font-size: 38px; line-height: 1.2; }
.single-note--m  .single-note__text { font-size: 30px; }
.single-note--long .single-note__text { font-size: 20px; font-style: normal; font-weight: 500; line-height: 1.65; }
.single-note--long .single-note__text p { margin-bottom: 1em; }

.single-note__sub { font-size: 17px; font-weight: 400; font-style: normal; }

.single-note__source { margin: 20px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-on-yellow); }

.single-note__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
	margin-top: 22px; padding-top: 14px;
	border-top: 1px dashed rgba(43, 38, 29, 0.4);
	font-size: 12px; color: var(--ink-on-yellow);
}
.copy-quote {
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 6px;
	background: transparent; border: 0;
	font-size: 12px; font-weight: 500;
	padding: 4px 0;
}
.copy-quote:hover { text-decoration: underline; }

.single-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag-note {
	font-size: 12px;
	padding: 5px 12px;
	background: #fff; border: 1px solid var(--line-strong);
	box-shadow: 0 1px 3px rgba(43, 38, 29, 0.12);
	transition: transform .15s, background .15s;
}
.tag-note:nth-child(odd)  { transform: rotate(-1.5deg); }
.tag-note:nth-child(even) { transform: rotate(1deg); }
.tag-note:hover { background: var(--accent); transform: rotate(0deg); }

/* Statikus oldal */
.page-note {
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 6px 16px rgba(43, 38, 29, 0.2);
	padding: 38px 36px 32px;
	transform: rotate(-.6deg);
}
.page-note__title { font-size: 32px; font-style: italic; margin-bottom: 18px; }
.page-note__text { font-family: var(--font-serif); font-size: 18px; line-height: 1.7; }
.page-note__text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-dark); }

/* Előző / következő */
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.nav-note { padding: 12px 14px; max-width: 46%; display: block; }
.nav-note--next { text-align: right; margin-left: auto; }
.nav-note__dir { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 4px; }
.nav-note__text { font-family: var(--font-serif); font-size: 13.5px; line-height: 1.4; }

/* ---------- Hozzászólások ---------- */

.comments-area { margin-top: 44px; }
.comments-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.comments-count { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }

.comment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-bottom: 30px; }
.comment-list .children { margin-top: 20px; display: grid; gap: 20px; }
.comment-note-item { min-width: 0; }
.comment-note { padding: 16px 16px 12px; }
.comment-note__text { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.5; }
.comment-note__text p { margin: 0 0 .5em; }
.comment-note__meta { margin-top: 8px; font-size: 11px; color: var(--ink-soft); }
.comment-note__meta a:hover { text-decoration: underline; }
.comment-note__pending { font-size: 12px; font-style: italic; margin: 8px 0 0; }
.no-comments { font-size: 13px; color: var(--ink-soft); }

.comment-form--note {
	position: relative;
	background: #fff;
	border: 1px solid var(--line-strong);
	box-shadow: 0 3px 8px rgba(43, 38, 29, 0.14);
	padding: 22px 20px 20px;
	transform: rotate(.4deg);
}
.comment-reply-title { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin: 0 0 12px; }
.comment-reply-title small { margin-left: 10px; font-size: 12px; }
.comment-form--note p { margin: 0 0 12px; }
.comment-form--note label { display: block; font-size: 12px; color: var(--ink-soft); }
.comment-form--note textarea,
.comment-form--note input[type="text"],
.comment-form--note input[type="email"],
.comment-form--note input[type="url"] {
	width: 100%;
	border: 0; background: transparent;
	font-family: var(--font-serif); font-size: 16px; color: var(--ink);
	padding: 0;
}
.comment-form--note textarea {
	min-height: 132px; resize: vertical;
	line-height: 24px;
	background: repeating-linear-gradient(0deg, transparent, transparent 23px, var(--line-strong) 24px);
}
.comment-form--note input[type="text"],
.comment-form--note input[type="email"],
.comment-form--note input[type="url"] { border-bottom: 1px solid var(--line-strong); padding: 4px 0; }
.comment-form--note textarea:focus,
.comment-form--note input:focus { outline: none; }
.comment-form--note .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); }
.comment-form--note .comment-form-cookies-consent label { display: inline; }

.button-note {
	display: inline-block;
	background: var(--accent); color: var(--ink);
	border: 0;
	padding: 9px 22px;
	font-size: 13.5px; font-weight: 600;
	box-shadow: 0 2px 4px rgba(43, 38, 29, 0.22);
	transition: transform .15s, background .15s;
}
.button-note:hover { background: var(--accent-dark); transform: translateY(-1px) rotate(-1deg); }

/* ---------- Üres / 404 ---------- */

.no-results { max-width: 540px; margin: 20px auto; }
.no-results__note { padding: 30px 28px 26px; }
.no-results .search-form { margin-top: 16px; }
.single-note__search { margin-top: 22px; }
.single-note--404 .search-form { border-bottom-color: var(--ink); }
.single-note--404 .button-note { margin-top: 20px; background: var(--bg); border: 1px solid var(--ink); }

/* ---------- Kategóriák áttekintő ---------- */

.category-notes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 30px 28px;
}
.category-note { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 16px; }
.category-note__name { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.2; }
.category-note__count { font-size: 12px; color: var(--ink-soft); }
.category-note.note--yellow .category-note__count { color: var(--ink-on-yellow); }

/* Betűnkénti blokkok: minden betű új sorban, előtte a nagy kezdőbetű */
.letter-block {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 0 20px;
	align-items: start;
	padding: 26px 0 8px;
	border-top: 2px solid var(--ink);
}
.letter-block:first-of-type { margin-top: 6px; }
.letter-block__letter {
	margin: 0;
	position: sticky; top: 90px;
	font-family: var(--font-serif);
	font-style: italic; font-weight: 700;
	font-size: 76px; line-height: .95;
	letter-spacing: -.02em;
	color: var(--ink);
}
.letter-block__letter span {
	display: inline-block;
	background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
	padding: 0 6px 2px 0;
}
.letter-block .category-notes { padding-bottom: 12px; }

/* ---------- Lábléc ---------- */

.site-footer { border-top: 2px solid var(--ink); background: var(--bg); }
.footer-inner {
	max-width: var(--max); margin: 0 auto; padding: 26px;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	text-align: center;
}
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; font-weight: 500; }
.footer-menu a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.site-info { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.site-info a { font-weight: 600; color: var(--ink); }
.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* WordPress alap osztályok */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 12px; color: var(--ink-soft); }

/* ---------- Reszponzív ---------- */

@media (max-width: 960px) {
	.note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.note--xs .note__body { font-size: 26px; }
}

@media (max-width: 880px) {
	.header-inner { padding: 12px 18px; gap: 12px; }
	.site-title { font-size: 17px; }
	.brand-logo, .brand-logo__img { width: 36px; height: 36px; }

	.menu-toggle { display: flex; }

	.main-navigation { margin: 0; }
	.menu-wrap {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--bg);
		border-bottom: 2px solid var(--ink);
		padding: 10px 18px 16px;
	}
	.menu-wrap.is-open { display: block; }
	.primary-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
	.primary-menu a { font-size: 16px; padding: 8px 0 4px; }

	.header-search__form {
		position: absolute; left: 0; right: 0; top: 100%;
		width: auto; right: 0;
		background: var(--bg);
		border-bottom: 2px solid var(--ink);
		padding: 8px 18px;
		transition: opacity .2s;
	}
	.header-search.is-open .header-search__form { width: auto; }
	.header-search { position: static; }

	.wall { padding: 34px 18px 54px; }
}

@media (max-width: 640px) {
	.note-grid { grid-template-columns: minmax(0, 1fr); }
	.note-item--wide { grid-column: span 1; }
	.note--xs .note__body { font-size: 24px; }
	.note--s .note__body { font-size: 20px; }
	.note--m .note__body { font-size: 16.5px; }
	.note--l .note__body { font-size: 15px; }
	.single-title { font-size: 20px; padding: 14px 20px 12px; max-width: 94%; }
	.note--wide { padding: 20px 18px 16px; }
	.note--wide .note__body { font-size: 15px; }
	.note--torn .note__body { padding: 20px 18px 30px; }

	.label-strip__title { font-size: 28px; }
	.sort-notes { margin-left: 0; }

	.single-note { padding: 32px 22px 20px; }
	.single-note--xs .single-note__text { font-size: 32px; }
	.single-note--s .single-note__text { font-size: 28px; }
	.single-note--m .single-note__text { font-size: 24px; }
	.single-note--long .single-note__text { font-size: 17px; }
	.page-note { padding: 28px 22px 24px; }

	.letter-block { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
	.letter-block__letter { position: static; font-size: 56px; margin-bottom: 14px; }

	.comment-list { grid-template-columns: minmax(0, 1fr); }
	.post-navigation { flex-direction: column; }
	.nav-note { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
	.note, .note-item .note:hover, a.note:hover { transform: rotate(var(--rot, 0deg)); }
}
