/* ==========================================================================
   Fyrkatspillet 2026 – midlertidigt tema
   ========================================================================== */

/* ---------- Skrifttyper (selv-hostet, SIL OFL) ---------- */
@font-face {
	font-family: "Cinzel";
	src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cinzel";
	src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--night: #14110f;
	--peat: #2a2420;
	--peat-2: #3a322c;
	--parchment: #f4ede1;
	--parchment-2: #ebe1cf;
	--paper: #fffcf6;
	--ink: #2b231d;
	--ink-soft: #5f5348;
	--ember: #b3361f;
	--ember-dark: #8e2815;
	--amber: #c9973e;
	--amber-light: #e3bf74;
	--line: rgba(43, 35, 29, 0.14);
	--line-dark: rgba(244, 237, 225, 0.14);

	--font-display: "Cinzel", "Trajan Pro", Georgia, serif;
	--font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 6px;
	--shadow: 0 1px 2px rgba(20, 17, 15, 0.08), 0 8px 24px -12px rgba(20, 17, 15, 0.25);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
}

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

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

body {
	margin: 0;
	background: var(--parchment);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
iframe,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ember);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	color: var(--ember-dark);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--night);
	margin: 1.6em 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p,
ul,
ol {
	margin: 0 0 1.1em;
}

hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.5rem 0;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.6rem 1rem;
	background: var(--amber);
	color: var(--night);
	font-weight: 700;
	border-radius: var(--radius);
}
.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------- Knapper ---------- */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.65em 1.3em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active {
	transform: translateY(1px);
}

.btn-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	background: var(--ember);
	color: #fff;
}
.btn-primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--ember-dark);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	color: var(--parchment);
	border-color: rgba(244, 237, 225, 0.4);
}
.btn-ghost:hover {
	color: var(--night);
	background: var(--amber-light);
	border-color: var(--amber-light);
}

/* ---------- Meddelelsesbjælke ---------- */
.announcement {
	background: var(--amber);
	color: var(--night);
	font-weight: 600;
	font-size: 0.95rem;
	text-align: center;
}
.announcement .container {
	padding-block: 0.55rem;
}
.announcement a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.announcement a:hover {
	text-decoration: underline;
}
.announcement .icon {
	width: 16px;
	height: 16px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(20, 17, 15, 0.97);
	border-bottom: 1px solid var(--line-dark);
	backdrop-filter: saturate(1.2) blur(6px);
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.brand .custom-logo-link {
	display: block;
	line-height: 0;
}
.brand .custom-logo {
	max-height: 56px;
	width: auto;
}
.brand-text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--parchment);
	text-decoration: none;
}
.brand-text:hover {
	color: var(--amber-light);
}

.primary-nav {
	flex: 1 1 auto;
}
.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.15rem 0.25rem;
}
.nav-list > li {
	position: relative;
}
.nav-list a {
	display: block;
	padding: 0.55rem 0.7rem;
	color: rgba(244, 237, 225, 0.86);
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	border-radius: var(--radius);
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
	color: var(--amber-light);
}
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	box-shadow: inset 0 -2px 0 var(--amber);
	border-radius: 0;
}

/* Undermenuer */
.nav-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	background: var(--peat);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-buttons {
	display: flex;
	gap: 0.6rem;
	flex: 0 0 auto;
}
.nav-buttons-mobile {
	display: none;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	color: var(--parchment);
	cursor: pointer;
}
.nav-toggle .icon {
	width: 22px;
	height: 22px;
}
.nav-toggle-close {
	display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
	display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-close {
	display: inline-flex;
}

@media (max-width: 1080px) {
	.nav-buttons-desktop {
		display: none;
	}
	.nav-toggle {
		display: inline-flex;
	}
	.primary-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--night);
		border-bottom: 1px solid var(--line-dark);
		padding: 0.5rem var(--gutter) 1.25rem;
		display: none;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.primary-nav.is-open {
		display: block;
	}
	.nav-list {
		flex-direction: column;
		gap: 0;
	}
	.nav-list a {
		padding: 0.8rem 0.25rem;
		border-bottom: 1px solid var(--line-dark);
		border-radius: 0;
		font-size: 1.05rem;
	}
	.nav-list .current-menu-item > a,
	.nav-list .current_page_item > a {
		box-shadow: inset 3px 0 0 var(--amber);
		padding-left: 0.75rem;
	}
	.nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}
	.nav-buttons-mobile {
		display: flex;
		flex-wrap: wrap;
		margin-top: 1rem;
	}
	.nav-buttons-mobile .btn {
		flex: 1 1 140px;
	}
}

body.nav-open {
	overflow: hidden;
}

/* ---------- Titelbånd ---------- */
.page-hero {
	position: relative;
	background:
		radial-gradient(ellipse at 20% 120%, rgba(179, 54, 31, 0.35), transparent 55%),
		radial-gradient(ellipse at 85% -20%, rgba(201, 151, 62, 0.22), transparent 50%),
		var(--peat);
	color: var(--parchment);
	padding-block: clamp(2.5rem, 7vw, 4.5rem);
	overflow: hidden;
}
.page-hero::after {
	/* Diskret rune-/flettemønster */
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 10px;
	background:
		repeating-linear-gradient(45deg, var(--amber) 0 2px, transparent 2px 10px),
		repeating-linear-gradient(-45deg, var(--amber) 0 2px, transparent 2px 10px);
	opacity: 0.45;
}
.page-hero .entry-title {
	margin: 0;
	color: var(--parchment);
	max-width: 22ch;
}
.page-hero-sub {
	margin: 0.75rem 0 0;
	color: rgba(244, 237, 225, 0.78);
	font-size: 1.1rem;
}

/* ---------- Indhold ---------- */
.prose {
	max-width: 760px;
}
.prose > :first-child {
	margin-top: 0;
}
.prose img {
	border-radius: var(--radius);
}
.prose blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 3px solid var(--amber);
	font-style: italic;
	color: var(--ink-soft);
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.98rem;
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.prose th,
.prose td {
	padding: 0.7rem 0.9rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
.prose th {
	background: var(--parchment-2);
	font-weight: 700;
}
.prose tr:last-child td {
	border-bottom: 0;
}
.prose h2 {
	padding-top: 0.2em;
}
.prose h2 + p,
.prose h3 + p {
	margin-top: 0;
}

.entry-thumb {
	margin: 0 0 2rem;
}

/* Elementor-sider styrer selv bredden */
.is-elementor,
.full-width-content {
	padding: 0;
}

/* Gutenberg-justeringer */
.alignwide {
	max-width: calc(var(--wrap) - 2 * var(--gutter));
}
.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* ---------- Kort / oversigter ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 1.5rem;
}
.card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.card-body {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.4rem 1.4rem;
	flex: 1;
}
.card-meta {
	margin: 0 0 0.35rem;
	color: var(--ink-soft);
	font-size: 0.88rem;
}
.card-title {
	margin: 0 0 0.6rem;
	font-size: 1.25rem;
}
.card-title a {
	color: var(--night);
	text-decoration: none;
}
.card-title a:hover {
	color: var(--ember);
}
.card-excerpt {
	color: var(--ink-soft);
	flex: 1;
}
.card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 700;
	text-decoration: none;
}
.card-link .icon {
	width: 16px;
	height: 16px;
}

.pagination,
.post-nav {
	margin-top: 2.5rem;
}
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.8rem;
	border-radius: var(--radius);
	background: var(--paper);
	text-decoration: none;
	font-weight: 600;
}
.page-numbers.current {
	background: var(--night);
	color: var(--parchment);
}
.post-nav .nav-links {
	justify-content: space-between;
}
.post-nav a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	font-weight: 600;
}
.post-nav a span {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}

/* ---------- Formularer ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(43, 35, 29, 0.28);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 3px rgba(201, 151, 62, 0.3);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	margin-top: 0;
	background: var(--night);
	color: rgba(244, 237, 225, 0.78);
	font-size: 0.98rem;
}
.footer-knot {
	height: 10px;
	background:
		repeating-linear-gradient(45deg, var(--ember) 0 2px, transparent 2px 10px),
		repeating-linear-gradient(-45deg, var(--ember) 0 2px, transparent 2px 10px);
	opacity: 0.6;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 2.5rem;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 820px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}
.footer-brand .custom-logo {
	max-height: 72px;
	width: auto;
}
.footer-about p {
	margin-top: 1rem;
	max-width: 36ch;
}
.footer-heading {
	margin: 0 0 1rem;
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber-light);
}
.site-footer a {
	color: var(--parchment);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--amber-light);
	text-decoration: underline;
}
.footer-contact,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-contact li {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin-bottom: 0.8rem;
}
.footer-contact .icon {
	flex: 0 0 auto;
	margin-top: 0.2em;
	color: var(--amber);
}
.footer-menu li {
	margin-bottom: 0.55rem;
}
.footer-social {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.2rem;
}
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
}
.footer-social a:hover {
	background: var(--amber);
	border-color: var(--amber);
	color: var(--night);
}
.footer-bottom {
	border-top: 1px solid var(--line-dark);
	font-size: 0.88rem;
}
.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-block: 1.1rem;
}
.footer-payments {
	margin-left: auto;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: #5a78ff;
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}
@media (max-width: 560px) {
	.footer-payments {
		margin-left: 0;
	}
}

/* ---------- Kommentarer ---------- */
.comments {
	margin-top: 3rem;
}
.comment-list {
	padding-left: 1.2rem;
}

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

/* ---------- Print ---------- */
@media print {
	.site-header,
	.site-footer,
	.announcement,
	.nav-toggle {
		display: none !important;
	}
	.page-hero {
		background: none;
		color: #000;
		padding: 0;
	}
	.page-hero .entry-title {
		color: #000;
	}
	body {
		background: #fff;
	}
}
