/* Erhvervspark Urban: light, photo-led, one green taken from building D's windows. */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--white: #ffffff;
	--sand: #f6f4ef;
	--ink: #1e2321;
	--muted: #5a615d;
	--green: #2d5a45;
	--green-dark: #224636;
	--green-tint: #e7efe9;
	--brick: #a4432e;
	--line: #e2ded4;
	--radius: 6px;
	--wrap: 1240px;
	--pad: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(4rem, 8vw, 7rem);
	--shadow: 0 10px 30px -12px rgb(30 35 33 / 0.22);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M1 7h17M12 1.5 18 7l-6 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	color-scheme: light;
	accent-color: var(--green);
	scrollbar-color: #b9b4a8 var(--white);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	caret-color: var(--green);
	overflow-x: clip;
}

::selection { background: var(--green); color: var(--white); }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 20;
	background: var(--green); color: var(--white);
	padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.wrap--text { max-width: calc(760px + var(--pad) * 2); }

.band { background: var(--sand); }

.h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 750; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.section-note { color: var(--muted); max-width: 60ch; margin-bottom: 2.25rem; }

/* ---------- Header ---------- */

.site-head {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 0.75rem 2rem;
	padding: 0.9rem max(var(--pad), calc((100% - var(--wrap)) / 2));
	background: rgb(255 255 255 / 0.96);
	border-bottom: 1px solid var(--line);
}

.wordmark { display: inline-flex; align-items: baseline; gap: 0.35em; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark__small { font-weight: 500; font-size: 1rem; color: var(--muted); }
.wordmark__big { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; text-transform: uppercase; }

.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 0.4rem 0; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav .site-nav__cta {
	background: var(--green); color: var(--white);
	padding: 0.55rem 1.1rem; border-radius: var(--radius);
	transition: background-color 0.2s var(--ease);
}
.site-nav .site-nav__cta:hover { background: var(--green-dark); color: var(--white); }

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3rem; padding: 0.8rem 1.5rem;
	font: 650 1rem/1 var(--font);
	text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; border-radius: var(--radius);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--light { background: rgb(255 255 255 / 0.12); color: var(--white); border-color: rgb(255 255 255 / 0.85); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

.link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
/* One drawn arrow, coloured by currentColor through a mask. */
.link::after,
.link--back::before,
.newscard__more::after {
	content: "";
	width: 1.05em; height: 0.75em; flex: none;
	background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform 0.25s var(--ease);
}
.link:hover::after { transform: translateX(3px); }
.link--back::after { content: none; }
.link--back::before { transform: scaleX(-1); }
.link--back:hover::before { transform: scaleX(-1) translateX(3px); }

/* ---------- Hero banner ---------- */

.hero {
	position: relative;
	min-height: clamp(26rem, 72svh, 46rem);
	display: flex; align-items: flex-end;
	overflow: hidden;
	background: #4b5a63;
}
.hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 45%;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgb(16 20 18 / 0.78) 0%, rgb(16 20 18 / 0.35) 38%, rgb(16 20 18 / 0) 62%),
		linear-gradient(to right, rgb(16 20 18 / 0.35), rgb(16 20 18 / 0) 55%);
}
.hero__content {
	position: relative; z-index: 1;
	width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2);
	margin-inline: auto;
	padding: 0 var(--pad) clamp(5.5rem, 10vw, 7.5rem);
	color: var(--white);
}
.hero__title {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 18px rgb(0 0 0 / 0.25);
}
.hero__lede { max-width: 34ch; margin-top: 0.9rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Facts band ---------- */

.facts { position: relative; z-index: 2; margin-top: -3.5rem; padding-inline: var(--pad); }
.facts__list {
	max-width: var(--wrap); margin: 0 auto;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}
.facts__list > div { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.facts__list > div:first-child { border-left: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0.2rem 0 0; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Intro ---------- */

.intro {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
	padding-block: var(--section);
}
.intro__text .h2 { margin-bottom: 1.25rem; }
.intro__text p { color: #3a403d; max-width: 56ch; }
.intro__text .link { margin-top: 1.5rem; }
.intro__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- News ---------- */

.news { padding-block: var(--section); }
.newsgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.newscard {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.newscard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3cec2; }
.newscard:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.newscard__img { margin: -1.5rem -1.5rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.newscard__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.newscard__date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.newscard__title { font-size: 1.25rem; font-weight: 700; margin: 0.35rem 0 0.6rem; }
.newscard__title a { color: var(--ink); text-decoration: none; }
.newscard__title a::after { content: ""; position: absolute; inset: 0; }
.newscard__title a:focus-visible { outline: none; }
.newscard__excerpt { color: var(--muted); font-size: 0.98rem; }
.newscard__more { margin-top: auto; padding-top: 1rem; color: var(--green); font-weight: 650; font-size: 0.95rem; }
.newscard__more { display: inline-flex; align-items: center; gap: 0.4em; }
.newsgrid.newsgrid--1 { grid-template-columns: 1fr; }
.newsgrid.newsgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.newsgrid--1 .newscard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	grid-template-areas: "img img" "date excerpt" "title excerpt" "title more";
	column-gap: clamp(1.5rem, 4vw, 3.5rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.newsgrid--1 .newscard__img { grid-area: img; margin: calc(clamp(1.5rem, 3vw, 2.25rem) * -1) calc(clamp(1.5rem, 3vw, 2.25rem) * -1) 1.5rem; }
.newsgrid--1 .newscard__date { grid-area: date; }
.newsgrid--1 .newscard__title { grid-area: title; font-size: clamp(1.35rem, 2.2vw, 1.75rem); align-self: start; }
.newsgrid--1 .newscard__excerpt { grid-area: excerpt; font-size: 1.05rem; max-width: 62ch; align-self: end; }
.newsgrid--1 .newscard__more { grid-area: more; }

.empty {
	padding: 1.75rem; border: 1px dashed #cfc9bc; border-radius: var(--radius);
	color: var(--muted); background: var(--white); max-width: 46rem;
}

/* ---------- Buildings ---------- */

.buildings { padding-block: var(--section); }
.buildings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.building { display: flex; flex-direction: column; }
.building__photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.building__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s var(--ease); }
.building:hover .building__photo img { transform: scale(1.025); }
.building__badge {
	position: absolute; left: 1rem; top: 1rem;
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem;
	background: var(--white); color: var(--green);
	border-radius: var(--radius);
	font-weight: 800; font-size: 1.35rem;
	box-shadow: 0 4px 14px -4px rgb(0 0 0 / 0.3);
}
.building__body { padding-top: 1.25rem; }
.building__title { font-size: 1.45rem; font-weight: 750; margin-bottom: 0.6rem; }
.building__ask { margin-top: 1.25rem; }
.building__body > p { color: #3a403d; max-width: 52ch; }
.building__facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.building__facts li {
	padding: 0.35rem 0.75rem;
	background: var(--green-tint); color: var(--green-dark);
	border-radius: 999px; font-size: 0.9rem; font-weight: 600;
}

/* ---------- Area ---------- */

.area { padding-block: var(--section); }
.area__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.area__map img { width: 100%; border-radius: var(--radius); }
.area figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }
.area__map { grid-column: 1; grid-row: 1; }
.area__text { grid-column: 2; grid-row: 1; }
.area__route { margin-top: 1.25rem; }
.area__text .h2 { margin-bottom: 1.25rem; }
.area__text > p { color: #3a403d; }
.area__plaque {
	display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: center;
	margin-top: 2rem; padding: 1rem;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.area__plaque img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.area__plaque figcaption { margin: 0; color: var(--ink); font-size: 0.95rem; }

/* ---------- Gallery ---------- */

.inside { padding-block: var(--section); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* ---------- Contact ---------- */

.band--green { background: var(--sand); }
.contact { padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__head .h2 { margin-bottom: 1rem; }
.contact__head p { color: #3a403d; max-width: 40ch; }
.contact__address { margin-top: 1.75rem !important; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact__address .link { margin-top: 0.35rem; }

.form {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem;
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: var(--shadow);
}
.form__hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form__status--ok { background: var(--green-tint); color: var(--green-dark); }
.form__status--err { background: #f7e7e3; color: #7d2e1f; }

.field { display: grid; gap: 0.35rem; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-weight: 650; font-size: 0.95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
	width: 100%;
	font: 400 1rem/1.4 var(--font); color: var(--ink);
	background: var(--white);
	border: 1px solid #cdc8bc; border-radius: var(--radius);
	padding: 0.75rem 0.85rem;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e2321' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.9rem center;
	padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9a396; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(45 90 69 / 0.2); }
.field textarea::placeholder { color: #8a8f8b; }
.field.is-invalid > span::after { content: " skal udfyldes"; font-weight: 500; color: #9a3a26; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b4442f; }

.form__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.4rem; }
.form__fine { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */

.site-foot { background: var(--green-dark); color: #cfdcd3; padding: 3.5rem max(var(--pad), calc((100% - var(--wrap)) / 2)) 3rem; }
.site-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; font-size: 0.98rem; line-height: 1.8; }
.site-foot p { margin: 0; }
.site-foot strong { color: var(--white); }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--white); }

/* ---------- Inner pages ---------- */

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--sand); margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.page-head .section-note { margin-bottom: 0; }
.news-page { padding-bottom: var(--section); }
.post__back { margin-bottom: 1.25rem; }
.post__date { color: var(--muted); font-variant-numeric: tabular-nums; }
.post__image { margin-bottom: 2rem; }
.post__image img { width: 100%; border-radius: var(--radius); }

.prose { padding-bottom: var(--section); font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; font-weight: 750; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.prose img { height: auto; border-radius: var(--radius); }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; background: var(--sand); border-radius: var(--radius); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25rem; }

.pager { margin-top: 2rem; display: flex; gap: 1rem; font-weight: 650; }
.pager .current { color: var(--muted); }

.page-head--lost { min-height: 50svh; margin-bottom: 0; }
.page-head--lost .section-note { margin-bottom: 1.75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.facts__list > div:nth-child(4) { border-left: 0; }
	.facts__list > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
	.newsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.intro, .area__grid, .contact__grid { grid-template-columns: 1fr; }
	.area__map, .area__text { grid-column: 1; grid-row: auto; }
	.newsgrid--1 .newscard { grid-template-columns: 1fr; grid-template-areas: "img" "date" "title" "excerpt" "more"; }
	.newsgrid--1 .newscard__excerpt { margin-top: 0.5rem; }
	.newsgrid--1 .newscard__more { margin-top: 1rem; }
	.newsgrid.newsgrid--2 { grid-template-columns: 1fr; }
	.buildings__grid { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.newsgrid { grid-template-columns: 1fr; }
	.site-foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.site-head { position: static; padding-block: 0.8rem; }
	.site-nav ul { gap: 0.25rem 1.1rem; }
	.site-nav a { font-size: 0.95rem; }
	.hero { min-height: 30rem; }
	.hero__actions .btn { flex: 1 1 auto; }
	.facts { margin-top: -2.5rem; }
	.facts__list { grid-template-columns: 1fr 1fr; }
	.facts__list > div { padding: 1rem 1.1rem; border-left: 0; border-top: 1px solid var(--line); }
	.facts__list > div:nth-child(-n + 2) { border-top: 0; }
	.facts__list > div:nth-child(even) { border-left: 1px solid var(--line); }
	.facts__list > div:last-child { grid-column: 1 / -1; }
	.form { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
	.site-foot__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
