@font-face {
	font-family: 'GGIcons';
	src: url('assets/icons/ggicons.eot?v=1');
	src: url('assets/icons/ggicons.eot?#iefix') format('embedded-opentype'),
		url('assets/icons/ggicons.woff2?v=1') format('woff2'),
		url('assets/icons/ggicons.woff?v=1') format('woff'),
		url('assets/icons/ggicons.ttf?v=1') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Grotesque';
	src: url('assets/Brandon/BrandonGrotesque-Regular.woff2') format('woff2'),
		url('assets/Brandon/BrandonGrotesque-Regular.woff') format('woff'),
		url('assets/Brandon/BrandonGrotesque-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Grotesque';
	src: url('assets/Brandon/BrandonGrotesque-Bold.woff2') format('woff2'),
		url('assets/Brandon/BrandonGrotesque-Bold.woff') format('woff'),
		url('assets/Brandon/BrandonGrotesque-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Text';
	src: url('assets/Brandon/BrandonText-Light.woff2') format('woff2'),
		url('assets/Brandon/BrandonText-Light.woff') format('woff'),
		url('assets/Brandon/BrandonText-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Text';
	src: url('assets/Brandon/BrandonText-LightItalic.woff2') format('woff2'),
		url('assets/Brandon/BrandonText-LightItalic.woff') format('woff'),
		url('assets/Brandon/BrandonText-LightItalic.ttf') format('truetype');
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Text';
	src: url('assets/Brandon/BrandonText-Regular.woff2') format('woff2'),
		url('assets/Brandon/BrandonText-Regular.woff') format('woff'),
		url('assets/Brandon/BrandonText-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Text';
	src: url('assets/Brandon/BrandonText-RegularItalic.woff2') format('woff2'),
		url('assets/Brandon/BrandonText-RegularItalic.woff') format('woff'),
		url('assets/Brandon/BrandonText-RegularItalic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Brandon Text';
	src: url('assets/Brandon/BrandonText-Bold.woff2') format('woff2'),
		url('assets/Brandon/BrandonText-Bold.woff') format('woff'),
		url('assets/Brandon/BrandonText-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-background: #f1f0ef;
	--color-surface: #ffffff;
	--color-text: #2c2c2c;
	--color-text-muted: #6b6b6b;
	--color-divider: #00b994;
	--color-comment-divider: #B7E4D0;
	--color-border: #e0e0e0;
	--color-primary: #00b994;
	--color-primary-dark: #00977a;
	--shadow-soft: 0 8px 24px rgba(24, 26, 27, 0.08);
	--shadow-card: 0 12px 24px rgba(24, 26, 27, 0.08);
	--layout-width: min(1080px, 100% - 3rem);
}

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

body {
	margin: 0;
	font-family: 'Brandon Text', -apple-system, sans-serif;
	background-color: var(--color-background);
	color: var(--color-text);
	line-height: 1.6;
	font-size: 1rem;
}

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

button {
	font: inherit;
}

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

.header-container {
	width: 100%;
	min-height: 450px;
	background-image: url('assets/top_bild-@x2.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-container::after {
	content: '';
	position: absolute;
	inset: 0;
	mix-blend-mode: multiply;
	opacity: 0.65;
	pointer-events: none;
}

.hero-section {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 4rem;
	text-align: center;
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.hero-image {
	width: clamp(90px, 14vw, 120px);
	filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
	margin-bottom: 50px;
}
.hero-image img {
	margin: 0 auto;
}

.hero-title {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 300;
	font-size: clamp(3rem, 8vw, 45px);
	line-height: 1.05;
	color: var(--color-text);
	margin: 0 0 20px 0;
	letter-spacing: 0.01em;
}

.hero-dates {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.2rem, 4vw, 25px);
	color: var(--color-text);
	margin: 0 0 10px 0;
}

.hero-text {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.2rem, 4vw, 25px);
	color: var(--color-text);
	margin: 0;
}

.hero-subtitle {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 700;
	font-size: clamp(0.95rem, 2.2vw, 1.1rem);
	letter-spacing: 0.025em;
	margin: 0.25rem 0 0;
}

.add-comment-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}
.add-comment-btn:hover img {
  	opacity: 0.8;
}

.add-comment-btn img {
	width: 50px;
	height: auto;
	display: block;
}

.add-comment-btn:focus-visible {
	outline: 4px solid rgba(0, 185, 148, 0.35);
	outline-offset: 6px;
}

.page-divider {
	width: calc(100% - 20px);
	max-width: 2000px;
	height: 3px;
	background-color: var(--color-divider);
	margin: 0 auto 4rem;
	border-radius: 999px;
}

.comments-section {
	padding: 0 0 clamp(4rem, 10vw, 6rem);
}

.content-container {
	width: var(--layout-width);
	margin: 0 auto;
}

.section-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75rem;
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-title {
	font-family: 'Brandon Grotesque', 'Brandon Text', sans-serif;
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
	color: var(--color-text);
}

.section-lead {
	font-family: 'Brandon Text', sans-serif;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	max-width: 540px;
	color: var(--color-text-muted);
	margin: 0;
}

#commentsContainer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 3.5rem);
	width: 100%;
}

.comment-item {
	width: min(680px, 100% - clamp(2.5rem, 8vw, 4rem));
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(1.1rem, 4vw, 1.75rem);
	padding-bottom: clamp(2rem, 6vw, 2.75rem);
}

.comment-item:not(:last-child) {
	border-bottom: 3px solid var(--color-comment-divider);
}

.comment-item:last-child {
	padding-bottom: 0;
}

.comment-item--admin {
	position: relative;
	padding-top: clamp(1.9rem, 5.5vw, 2.6rem);
}

.comment-item--pending {
	background-color: rgba(0, 185, 148, 0.08);
	border-radius: 18px;
	box-shadow: inset 0 0 0 1px rgba(0, 185, 148, 0.25);
	padding-inline: clamp(1.25rem, 5vw, 1.75rem);
}

.comment-item--admin .comment-icon {
	margin-top: 0;
}

.comment-actions {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: 0.45rem;
	z-index: 2;
}

.comment-action {
	border: none;
	border-radius: 999px;
	font-family: 'Brandon Text', sans-serif;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	padding: 0.35rem 0.85rem;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
	color: #ffffff;
	background-color: rgba(0, 0, 0, 0.6);
}

.comment-action--publish {
	background-color: var(--color-primary);
	box-shadow: 0 10px 18px rgba(0, 117, 95, 0.22);
}

.comment-action--publish:hover,
.comment-action--publish:focus-visible {
	background-color: var(--color-primary-dark);
}

.comment-action--delete {
	background-color: #d0344f;
	box-shadow: 0 10px 18px rgba(208, 52, 79, 0.18);
}

.comment-action--delete:hover,
.comment-action--delete:focus-visible {
	background-color: #b62a41;
}

.comment-action:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	box-shadow: none;
}

.comment-action:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

.comment-icon {
	width: 30px;
	height: auto;
}

.comment-title {
	font-family: 'Brandon Text', sans-serif;
	font-size: 1.875rem;
	font-weight: 500;
	margin: 0;
	color: var(--color-text);
}

.comment-text {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 300;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--color-text);
	margin: 0;
	white-space: normal;
}

.comment-author {
	font-family: 'Brandon Text', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-text);
	margin: 0;
}

.comment-state {
	font-family: 'Brandon Text', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-primary-dark);
	margin: 0;
}

.loading,
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--color-text-muted);
	font-family: 'Brandon Text', sans-serif;
	font-size: 1.05rem;
	max-width: min(680px, 100% - clamp(2.5rem, 8vw, 4rem));
	margin: 0 auto;
}

.error-message {
	background-color: #fbe7ea;
	color: #842029;
	padding: 0.85rem 1.1rem;
	border-radius: 10px;
	border: 1px solid rgba(132, 32, 41, 0.15);
	margin-bottom: 1rem;
	font-family: 'Brandon Text', sans-serif;
}

.admin-feedback {
	min-height: 1.5rem;
	font-family: 'Brandon Text', sans-serif;
	font-size: 0.95rem;
	margin-top: 0.5rem;
	color: var(--color-text-muted);
}

.admin-feedback--error {
	color: #c53030;
}

.admin-feedback--success {
	color: var(--color-primary-dark);
}

.comment-modal {
	position: relative;
	border-radius: 10px;
	border: none;
	box-shadow: 0 20px 45px rgba(24, 26, 27, 0.18);
	background-color: rgba(229, 225, 218, 0.95);
	padding: clamp(2rem, 5vw, 3.25rem);
}

.modal-close {
	position: absolute;
	top: clamp(0.75rem, 3vw, 1.25rem);
	right: clamp(0.75rem, 3vw, 1.25rem);
	filter: none;
}

.composer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 4vw, 2rem);
	text-align: center;
}

.composer-icon {
	width: clamp(3.5rem, 8vw, 4.25rem);
	height: clamp(5rem, 10vw, 6rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.composer-title {
	font-family: 'Brandon Grotesque', 'Brandon Text', sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.2rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
}

.composer-lead {
	font-family: 'Brandon Text', sans-serif;
	font-size: clamp(1.05rem, 3vw, 1.2rem);
	line-height: 1.7;
	margin: 0;
	max-width: 36ch;
}

.composer-meta {
	font-family: 'Brandon Text', sans-serif;
	font-size: 0.95rem;
	margin: 0;
	opacity: 0.7;
}

.composer-form {
	width: min(520px, 100%);
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 3vw, 1.4rem);
	text-align: left;
}

.form-field {
	width: 100%;
}

.form-control {
	border: 1px solid #acab9f;
	border-radius: 5px;
	padding: 0.6rem;
	font-size: 1rem;
	font-family: 'Brandon Text', sans-serif;
	transition: border-bottom-color 150ms ease, color 150ms ease;
}
.comment-modal.form-control {
	color: #ACAB9F;
	background-color: #FFFFFF !important;
}
.form-control:focus {
	color: #0a8f75;
	border-bottom-color: #0a8f75;
	box-shadow: none;
}

.form-control#commentText {
	min-height: 150px;
	resize: vertical;
}

.btn {
	font-family: 'Brandon Text', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 700;
}

.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}

.btn-secondary {
	background-color: rgba(0, 0, 0, 0.08);
	border-color: transparent;
	color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
	background-color: rgba(0, 0, 0, 0.16);
	border-color: transparent;
	color: var(--color-text);
}

.btn-secondary:focus,
.btn-primary:focus {
	box-shadow: 0 0 0 0.15rem rgba(0, 185, 148, 0.25);
}

.form-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.gg-icon {
	display: inline-block;
	vertical-align: middle;
	color: var(--color-primary);
}

.gg-icon::before {
	font-family: 'GGIcons';
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	display: inline-block;
	line-height: 1;
}

.gg-icon.heartfull::before {
	color: #EB294B;
	content: 'e';
}

.gg-icon.heart::before {
	content: 'f';
}

.hero-text .gg-icon {
	margin-left: 0.35rem;
	font-size: 18px;
}

@media (max-width: 900px) {
	:root {
		--layout-width: min(94%, 680px);
	}

	.header-container {
		min-height: 260px;
	}
}

@media (max-width: 600px) {
	.hero-section {
		padding: 2.5rem 1.25rem 3rem;
	}

	.hero-content {
		gap: 1rem;
	}

	.hero-title {
		font-size: clamp(2.4rem, 12vw, 3rem);
	}

	.hero-text, .hero-dates {
		font-size: 1.2rem;
	}

	.page-divider {
		width: calc(100% - 20px);
		margin-bottom: 3rem;
	}

	.section-title {
		letter-spacing: 0.08em;
	}

	.comment-card {
		padding: 1.5rem;
	}

}

@media (max-width: 900px) {
	.form-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.form-actions .btn {
		width: 100%;
	}
}
