/*
Theme Name: Szabad Panni
Theme URI: https://www.szabadpanni.hu
Author: Turnhauser Panni
Description: Minimal, typographic WordPress theme for Szabad Panni.
Version: 2.0
Text Domain: szabadpanni-theme
*/

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20Thin.otf") format("opentype");
	font-style: normal;
	font-weight: 100;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20ExtraLight.otf") format("opentype");
	font-style: normal;
	font-weight: 200;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20Light.otf") format("opentype");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20Regular.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20Medium.otf") format("opentype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20SemiBold.otf") format("opentype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "HK Guise";
	src: url("assets/fonts/HK%20Guise%20Bold.otf") format("opentype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

:root {
	--paper: #dbdcd6;
	--ink: #0b0b0b;
	--page-padding: 24px;
	--header-size: 14px;
	--body-size: 20px;
	--lead-size: 33px;
	--display-size: 120px;
}

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

html {
	background: var(--paper);
	scroll-behavior: smooth;
}

body {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: "HK Guise", Arial, sans-serif;
	font-size: var(--body-size);
	font-weight: 400;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--ink);
	color: var(--paper);
}

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

a:focus-visible,
summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

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

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 8px 12px;
	transform: translateY(-160%);
	background: var(--ink);
	color: var(--paper);
	font-size: 14px;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	display: grid;
	position: relative;
	z-index: 10;
	min-height: 47px;
	padding: 0 var(--page-padding);
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	border-bottom: 1px solid var(--ink);
	font-size: var(--header-size);
	line-height: 1;
}

.site-brand {
	justify-self: start;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer a,
.back-link {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.site-footer a:hover,
.back-link:hover {
	text-decoration: underline;
}

.site-nav a,
.site-contact {
	display: inline-block;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: text-decoration-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-contact:hover,
.site-contact:focus-visible {
	text-decoration-color: currentColor;
}

.site-contact {
	justify-self: end;
}

.home-main {
	display: grid;
	min-height: 374px;
	flex: 1 0 auto;
	padding: 32px var(--page-padding);
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

.home-quote {
	width: min(620px, 100%);
	margin: 0;
	grid-column: 2;
	font-size: var(--lead-size);
	font-style: normal;
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.025em;
	transform: translateY(24px);
}

.home-quote p {
	margin: 0;
}

.page-shell {
	width: 100%;
	flex: 1 0 auto;
	padding: 158px var(--page-padding) 96px;
}

.page-grid {
	display: grid;
	grid-template-columns: 48% minmax(0, 1fr);
}

.display-title {
	margin: 0;
	align-self: start;
	font-size: var(--display-size);
	font-weight: 300;
	line-height: 0.92;
	letter-spacing: -0.055em;
}

.body-copy {
	max-width: 570px;
}

.post-content {
	max-width: 610px;
	font-size: var(--body-size);
	line-height: 1.35;
	letter-spacing: -0.018em;
}

.body-copy > :first-child,
.post-content > :first-child {
	margin-top: 0;
}

.body-copy p,
.post-content p {
	margin: 0 0 27px;
}

.body-copy a,
.post-content a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.lead {
	max-width: 580px;
	margin: 0 0 96px;
	font-size: var(--lead-size);
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

.writings-column {
	width: 100%;
	max-width: 650px;
}

.writings-list {
	border-top: 1px solid var(--ink);
}

.writing-item {
	border-bottom: 1px solid var(--ink);
}

.writing-item summary {
	display: grid;
	min-height: 110px;
	padding: 25px 8px 23px 0;
	cursor: pointer;
	list-style: none;
	grid-template-columns: 1fr 24px;
	gap: 24px;
	align-items: start;
}

.writing-item summary::-webkit-details-marker {
	display: none;
}

.writing-title {
	display: block;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.writing-category {
	display: flex;
	margin-top: 22px;
	align-items: baseline;
	gap: 0px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.writing-category-name {
	text-transform: lowercase;
}

.accordion-arrow {
	position: relative;
	width: 24px;
	height: 24px;
	margin-top: 5px;
}

.accordion-arrow img {
	position: absolute;
	inset: 0;
	display: block;
	width: 24px;
	height: 24px;
}

.accordion-arrow-up {
	display: none !important;
	transform: rotate(180deg);
}

.writing-item[open] .accordion-arrow-down {
	display: none;
}

.writing-item[open] .accordion-arrow-up {
	display: block !important;
}

.writing-excerpt {
	padding: 0 58px 28px 0;
}

.writing-excerpt p {
	margin: -2px 0 40px;
	font-size: var(--body-size);
	line-height: 1.35;
	letter-spacing: -0.018em;
}

.more-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 600;
}

.more-link:hover .more-link-label,
.more-link:focus-visible .more-link-label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.more-arrow {
	display: block;
	width: 24px;
	height: 24px;
}

.single-writing {
	width: 100%;
	flex: 1 0 auto;
	padding: 104px var(--page-padding) 120px;
}

.single-header {
	width: 100%;
}

.single-content-grid {
	display: grid;
	grid-template-columns: 48% minmax(0, 1fr);
	margin-top: 96px;
}

.single-header h1 {
	width: 100%;
	margin: 40px 0 0;
	font-size: clamp(58px, 6.25vw, 90px);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.05em;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.back-arrow {
	display: block;
	width: 24px;
	height: 24px;
	transform: rotate(180deg);
}

.post-content {
	grid-column: 2;
}

.post-content h2,
.post-content h3 {
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.post-content figure {
	margin: 40px 0;
}

.site-footer {
	display: grid;
	width: 100%;
	min-height: 264px;
	padding: 23px var(--page-padding) 22px;
	grid-template-columns: 165px 220px;
	gap: 0;
	align-content: start;
	font-size: 14px;
	line-height: 1.35;
}

.footer-column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-heading {
	margin: 0 0 34px;
}

.footer-column a {
	margin-bottom: 7px;
}

@media (max-width: 900px) {
	:root {
		--page-padding: 18px;
		--body-size: 18px;
		--lead-size: 27px;
		--display-size: clamp(64px, 20vw, 94px);
	}

	.site-header {
		grid-template-columns: 1fr auto;
		min-height: 54px;
	}

	.site-brand {
		font-size: 18px;
	}

	.site-nav {
		display: none;
	}

	.home-main {
		min-height: 48vh;
		padding-top: 80px;
		padding-bottom: 80px;
		grid-template-columns: 1fr;
		align-items: center;
	}

	.home-quote {
		grid-column: 1;
		transform: none;
	}

	.page-shell {
		padding-top: 76px;
		padding-bottom: 100px;
	}

	.page-grid,
	.single-content-grid {
		grid-template-columns: 1fr;
	}

	.display-title {
		margin-bottom: 72px;
	}

	.lead {
		margin-bottom: 66px;
	}

	.writings-column,
	.body-copy,
	.post-content {
		max-width: none;
	}

	.single-writing {
		padding-top: 70px;
		padding-bottom: 100px;
	}

	.single-header {
		margin-bottom: 0;
	}

	.site-footer {
		min-height: 0;
		padding-top: 50px;
		padding-bottom: 40px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 24px;
	}

	.single-content-grid {
		margin-top: 70px;
	}

	.post-content {
		grid-column: 1;
	}
}

@media (max-width: 540px) {
	.writing-item summary {
		min-height: 92px;
		padding-top: 20px;
		padding-bottom: 20px;
		gap: 14px;
	}

	.writing-title {
		font-size: 25px;
	}

	.writing-category {
		margin-top: 16px;
		font-size: 16px;
	}

	.writing-excerpt {
		padding-right: 0;
	}

	.site-footer {
		grid-template-columns: 1fr;
	}

	.footer-heading {
		margin-bottom: 18px;
	}
}

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

	.site-nav a,
	.site-contact {
		transition: none;
	}
}
