/*
Theme Name: Réka Fábián – Fejezet
Theme URI: https://rekafabian.ie
Author: Réka Fábián site team
Description: Soft, literary block theme for Réka Fábián's commentary site on sport, culture and literature. Cream paper, sage and blush shapes, Instrument Serif headlines, Hanken Grotesk text. Everything is editable in the Site Editor; no plugins required.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reka-fejezet
Tags: blog, one-column, custom-colors, editor-style, full-site-editing, block-patterns, wide-blocks, accessibility-ready
*/

/* ---------- Fonts ----------
   Declared here as well as in theme.json, so the design keeps its typefaces even if a plugin
   (for example a "custom fonts" plugin) replaces the theme's font list. */
@font-face {
	font-family: 'Instrument Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/instrument-serif-regular.woff') format('woff');
}
@font-face {
	font-family: 'Instrument Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/instrument-serif-italic.woff') format('woff');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/hanken-grotesk-variable.woff') format('woff');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/hanken-grotesk-italic-variable.woff') format('woff');
}
:root {
	--wp--preset--font-family--serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--wp--preset--font-family--sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }

:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wp-block-heading em,
.wp-block-post-title em { font-style: italic; }

/* Small uppercase label used above headings */
.reka-eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	line-height: 1.4;
}

/* ---------- Header ---------- */
.reka-header { padding-block: 20px; gap: 8px 32px; }
.reka-header .wp-block-site-title { margin: 0; }
.reka-header .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; }
.reka-header .wp-block-navigation { gap: 0 30px; }
.reka-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 10px 0;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}
.reka-header .wp-block-navigation .current-menu-item > a,
.reka-header .wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* ---------- Page sections: vertical rhythm ---------- */
.reka-section { margin-top: var(--wp--preset--spacing--70); }
.reka-hero { margin-top: var(--wp--preset--spacing--50); gap: var(--wp--preset--spacing--50); }

/* ---------- Hero ---------- */
.reka-hero h1 {
	margin: 20px 0 28px;
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.96;
	letter-spacing: -0.025em;
}
.reka-lede {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.55;
	color: var(--wp--preset--color--ink-soft);
	max-width: 42ch;
	margin-bottom: 36px;
}
.reka-hero .wp-block-buttons { gap: 12px 28px; align-items: center; }

.reka-hero-art {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	padding: 0 0 28px 28px;
}
.reka-hero-art::before {
	content: "";
	position: absolute;
	right: -6px;
	top: -18px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: var(--wp--preset--color--sage);
}
.reka-hero-art .wp-block-image { position: relative; margin: 0; }
.reka-badge {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	width: 150px;
	height: 150px;
	margin: 0;
	padding: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--blush);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 24px;
	line-height: 1.1;
	color: var(--wp--preset--color--contrast);
}

/* Arch-shaped image style (portrait) */
.wp-block-image.is-style-arch {
	background: var(--wp--preset--color--sage);
	border-radius: 999px 999px 28px 28px;
	overflow: hidden;
}
.wp-block-image.is-style-arch img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 18%;
}

/* ---------- Search field ---------- */
.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: #fff;
	padding: 0.85rem 1.4rem;
	font-size: 17px;
}
.wp-block-search__input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-block-read-more,
.wp-block-search__button {
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.wp-block-button:not(.is-style-text-link) .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-blush .wp-block-button__link {
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}
.wp-block-button.is-style-text-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding-inline: 0;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
	border-radius: 0;
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover { text-decoration: underline; }

/* ---------- Featured band (sticky post) ---------- */
.reka-feature {
	margin-top: var(--wp--preset--spacing--60);
	border-radius: 40px;
	padding: 56px 48px;
	gap: 28px 40px;
}
.reka-feature-text { flex: 1 1 520px; min-width: 0; }
.reka-feature .wp-block-post-terms { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #4a3a35; }
.reka-feature .wp-block-post-terms a { color: inherit; }
.reka-feature .wp-block-post-title { margin: 0; max-width: 18ch; font-size: var(--wp--preset--font-size--x-large); line-height: 1; letter-spacing: -0.02em; }
.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 28px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}
.wp-block-read-more::after { content: "→"; }
.wp-block-read-more:hover { transform: translateY(-2px); }

/* ---------- Shelves: category lists on the home page ---------- */
.reka-shelf {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding: 40px 0 48px;
	gap: 20px 56px;
	margin-block-start: 0;
}
.reka-shelf-label .reka-numeral {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 30px;
	line-height: 1.2;
	color: var(--wp--preset--color--accent);
}
.reka-shelf-label h2 { margin: 0; line-height: 1; font-size: var(--wp--preset--font-size--xx-large); }
.reka-viewall { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.reka-viewall a { color: var(--wp--preset--color--accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }

.reka-shelf .wp-block-post-template,
.reka-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}
.reka-shelf .wp-block-post-template > li {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: padding-left 0.15s ease;
}
.reka-shelf .wp-block-post-template > li:hover { padding-left: 10px; }
.reka-row-title { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--medium); font-weight: 500; line-height: 1.4; letter-spacing: 0; }

/* Decorative row of books */
.reka-soon {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 24px;
	color: var(--wp--preset--color--muted);
}
.reka-books {
	margin-top: 44px;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	border-bottom: 8px solid var(--wp--preset--color--accent);
}
.reka-books span { display: block; border-radius: 6px 6px 0 0; }
.reka-books span:nth-child(1) { width: 46px; height: 170px; background: var(--wp--preset--color--sage); }
.reka-books span:nth-child(2) { width: 34px; height: 210px; background: var(--wp--preset--color--accent); }
.reka-books span:nth-child(3) { width: 52px; height: 150px; background: var(--wp--preset--color--blush); }
.reka-books span:nth-child(4) { width: 38px; height: 190px; background: var(--wp--preset--color--sage); }
.reka-books span:nth-child(5) { width: 44px; height: 230px; background: var(--wp--preset--color--contrast); }
.reka-books span:nth-child(6) { width: 36px; height: 160px; background: var(--wp--preset--color--blush); }
.reka-books span:nth-child(7) { width: 50px; height: 200px; background: var(--wp--preset--color--accent); transform: rotate(6deg); transform-origin: bottom left; margin-left: 8px; }

/* ---------- About ---------- */
.reka-about { gap: var(--wp--preset--spacing--50); }
.reka-about > .wp-block-column:first-child .wp-block-image { max-width: 400px; }
.reka-about .wp-block-image.is-style-arch { border-radius: 999px; }
.reka-about .is-style-arch img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.reka-about h1,
.reka-about h2 { margin: 14px 0 28px; max-width: 14ch; font-size: clamp(44px, 5.4vw, 80px); line-height: 1; }
.reka-about p:not(.reka-eyebrow):not(.reka-lang-name):not(.reka-lang-level) { max-width: 58ch; font-size: 20px; }
.reka-about p.has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 104px;
	line-height: 0.78;
	padding: 8px 14px 0 0;
	margin: 0;
	font-style: normal;
	font-weight: 400;
	color: var(--wp--preset--color--accent);
}
.reka-about h3 { margin: 40px 0 14px; font-style: italic; font-size: 34px; }
.reka-cards { gap: 14px; margin-bottom: 8px; }
.reka-card {
	background: var(--wp--preset--color--cream-2);
	border-radius: 24px;
	padding: 20px 24px;
}
.reka-about .reka-card p:not(.reka-eyebrow) { margin: 0; max-width: none; font-size: 18px; line-height: 1.5; }
.reka-card .reka-eyebrow { font-size: 12px; letter-spacing: 0.16em; margin-bottom: 4px; }
.reka-langs { gap: 12px; }
.reka-lang {
	display: inline-flex;
	flex-direction: column;
	gap: 0;
	padding: 12px 24px;
	border-radius: 999px;
	line-height: 1.2;
}
.reka-lang p { margin: 0; }
.reka-lang { margin-block-start: 0; }
.reka-lang .reka-lang-name { font-family: var(--wp--preset--font-family--serif); font-size: 28px; line-height: 1.1; }
.reka-lang .reka-lang-level { font-size: 13px; letter-spacing: 0.04em; color: var(--wp--preset--color--ink-soft); }
.reka-lang--sage { background: var(--wp--preset--color--sage); }
.reka-lang--blush { background: var(--wp--preset--color--blush); }
.reka-lang--cream { background: var(--wp--preset--color--cream-2); }

/* ---------- Call to action band ---------- */
.reka-cta {
	border-radius: 48px;
	padding: 72px 56px;
	gap: 32px;
}
.reka-cta-text { flex: 2 1 420px; min-width: 0; }
.reka-cta .reka-eyebrow { color: #e3dcc9; }
.reka-cta h2 { margin: 14px 0 16px; max-width: 14ch; color: var(--wp--preset--color--base); font-size: clamp(46px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.025em; }
.reka-cta p:not(.reka-eyebrow) { margin: 0; font-size: 21px; max-width: 42ch; color: #efe9da; }
.reka-cta .wp-block-button__link { padding: 1.05rem 2.1rem; }

/* ---------- Archive, search, single ---------- */
.reka-archive-head { padding-top: var(--wp--preset--spacing--50); }
.reka-archive-head h1 { margin: 12px 0 16px; line-height: 1; font-size: clamp(56px, 7vw, 104px); }
.reka-archive-head .wp-block-term-description { max-width: 52ch; font-size: 20px; color: var(--wp--preset--color--ink-soft); }
.reka-archive-head .wp-block-term-description p { margin: 0; }

.reka-list { margin-top: var(--wp--preset--spacing--50); }
.reka-list .wp-block-post-template > li {
	margin: 0;
	padding: 28px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
.reka-list .wp-block-post-template > li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.reka-list .wp-block-post-title { margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.reka-list .wp-block-post-excerpt { margin: 0; color: var(--wp--preset--color--ink-soft); max-width: 60ch; }
.reka-list .wp-block-post-excerpt__excerpt { margin: 0 0 8px; }
.reka-meta { font-size: 14px; letter-spacing: 0.04em; color: var(--wp--preset--color--muted); gap: 6px 16px; }
.reka-meta p, .reka-meta .wp-block-post-date, .reka-meta .wp-block-post-terms { margin: 0; font-size: 14px; }

.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: 12px; font-weight: 600; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers { text-decoration: none; padding: 8px 16px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 999px; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wp-block-query-pagination-numbers { display: inline-flex; gap: 8px; flex-wrap: wrap; }

.reka-single-head { padding-top: var(--wp--preset--spacing--50); }
.reka-single-head .wp-block-post-terms { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.reka-single-head .wp-block-post-title { margin: 14px 0 16px; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.025em; }
.reka-single-head .wp-block-post-date { margin: 0; color: var(--wp--preset--color--muted); font-size: 15px; }
.reka-rounded img { border-radius: 32px; }
.reka-prose { font-size: 20px; line-height: 1.7; }
.reka-prose > * + * { margin-block-start: 1.4em; }
.reka-prose h2 { font-size: clamp(34px, 4vw, 48px); margin-top: 1.6em; }
.reka-prose h3 { font-size: 30px; font-style: italic; margin-top: 1.4em; }
.reka-prose a { text-underline-offset: 4px; }
.reka-prose figcaption { font-size: 14px; color: var(--wp--preset--color--muted); }
.reka-postnav { margin-top: var(--wp--preset--spacing--60); padding-top: 24px; border-top: 1px solid var(--wp--preset--color--line); gap: 16px 32px; }
.reka-postnav a { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 26px; text-decoration: none; color: var(--wp--preset--color--contrast); }

/* ---------- Footer ---------- */
.reka-footer { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--40); }
.reka-footer-title { max-width: 14ch; margin: 0 0 32px; line-height: 0.98; letter-spacing: -0.025em; font-size: clamp(44px, 6.4vw, 100px); }
.reka-contact { border-top: 1px solid var(--wp--preset--color--contrast); }
.reka-contact-row { padding: 18px 0; border-bottom: 1px solid var(--wp--preset--color--line); gap: 6px 24px; }
.reka-contact-row p { margin: 0; }
.reka-contact-row .reka-eyebrow { font-size: 13px; letter-spacing: 0.16em; padding-top: 6px; }
.reka-contact-value { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 28px; line-height: 1.2; }
.reka-contact-value a { color: inherit; text-decoration: none; }
.reka-contact-value a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.reka-footnote { margin-top: 28px; gap: 8px 24px; font-size: 14px; color: var(--wp--preset--color--muted); }
.reka-footnote p { margin: 0; font-size: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.reka-books { gap: 5px; }
	.reka-books span:nth-child(7) { margin-left: 4px; }
}

@media (max-width: 781px) {
	.reka-feature { padding: 36px 26px; border-radius: 28px; }
	.reka-cta { padding: 44px 28px; border-radius: 32px; }
	.reka-hero-art { max-width: 340px; }
	.reka-badge { width: 120px; height: 120px; font-size: 20px; padding: 14px; }
	.reka-hero-art::before { width: 110px; height: 110px; }
	.reka-shelf { padding: 32px 0 36px; }
	.reka-contact-value { font-size: 24px; }
}
