/* ==========================================================================
   Hagen Vinter
   Built from the Figma frames "Norsk" / "Engelsk" (1512 px wide).

   calc(N * var(--px)) is N pixels in the design. --px is 1px at 1512 px
   and scales down on narrower screens; above 1512 px the layout stays
   centred at its design size. From 1000 px up the desktop layout is used,
   below that a stacked layout (not in Figma, so it is our own assumption).
   ========================================================================== */

/* Fonts (self-hosted variable fonts, latin + latin-ext) ------------------- */

@font-face {
	font-family: "Crimson Pro";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/crimson-pro-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Crimson Pro";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/crimson-pro-latin-wght-normal.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;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.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;
}

/* Tokens ------------------------------------------------------------------ */

:root {
	--c-cream: #f5edda;
	--c-dark: #2a3435;
	--c-mist: #bdc9cb;
	--c-ink: #192222;

	--f-serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
	--f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--header-h: 71px;
	--px: calc(min(100vw, 1512px) / 1512);
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--wrap: 1512px;
}

/* Base -------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-dark);
	color: #000;
	font-family: var(--f-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
}

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

section[id] {
	scroll-margin-top: var(--header-h);
}

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

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 200;
	padding: 0.75rem 1rem;
	background: var(--c-cream);
	color: var(--c-ink);
	transform: translateY(-120%);
}

.skip-link:focus {
	transform: none;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--c-dark);
	color: #fff;
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding-inline: var(--gutter);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-right: auto;
	color: var(--c-cream);
	font: 300 1rem/1 var(--f-sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__icon {
	display: block;
	flex: none;
	width: 33px;
	height: 33px;
}

/* Very small phones (320 px): tighter brand so it clears the language switch and menu button. */
@media (max-width: 359px) {
	.site-header__brand {
		gap: 10px;
		font-size: 0.8125rem;
		letter-spacing: 0.12em;
	}
}

.site-nav__list {
	display: flex;
	gap: max(24px, calc(55 * var(--px)));
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	font: 300 1rem/1.2 var(--f-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s;
}

.site-nav a:hover {
	color: var(--c-cream);
	text-decoration: underline;
	text-underline-offset: 0.4em;
}

/* Language dropdown: flag, code, caret */

.lang__toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 0 max(24px, calc(55 * var(--px)));
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.lang__code {
	font: 300 1rem/1.2 var(--f-sans);
	letter-spacing: 0.08em;
}

.flag {
	position: relative;
	display: block;
	flex: none;
	width: 24px;
	height: 16px;
	overflow: hidden;
}

/* The Figma flag is a 2:1 image cropped to a 3:2 box. */
.flag img {
	position: absolute;
	top: 0;
	left: -11.67%;
	width: 133.33%;
	max-width: none;
	height: 100%;
}

.lang__caret {
	position: relative;
	flex: none;
	width: 9px;
	height: 8px;
	transform: rotate(180deg);
	transition: transform 0.2s;
}

.lang__caret img {
	position: absolute;
	top: 0.42px;
	left: 1.02px;
	max-width: none;
}

.lang__toggle[aria-expanded="true"] .lang__caret {
	transform: none;
}

.lang__menu {
	position: absolute;
	top: 100%;
	right: var(--gutter);
	min-width: 11rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var(--c-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.lang__menu[hidden] {
	display: none;
}

.lang__menu a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	font: 300 0.9375rem/1.2 var(--f-sans);
	letter-spacing: 0.04em;
	color: #fff;
	text-decoration: none;
}

.lang__menu a:hover,
.lang__menu a[aria-current="true"] {
	background: rgba(255, 255, 255, 0.08);
}

/* Mobile menu toggle */

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
	transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

.site-header.is-nav-open .nav-toggle__bars {
	background: transparent;
}

.site-header.is-nav-open .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 999px) {
	.nav-toggle {
		display: block;
		order: 3;
	}

	.lang {
		order: 2;
	}

	.lang__toggle {
		margin-left: 0;
		margin-right: 0.75rem;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--c-dark);
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
	}

	.site-header.is-nav-open .site-nav {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem var(--gutter) 1rem;
	}

	.site-nav a {
		padding: 0.9rem 0;
	}
}

@media (min-width: 1000px) {
	.site-header__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(23 * var(--px));
		padding-right: calc(44 * var(--px));
	}

	.lang__menu {
		right: calc(44 * var(--px));
	}
}

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

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	height: min(120vw, calc(100svh - var(--header-h)));
	min-height: 26rem;
	padding: 0 var(--gutter) 12vw;
	overflow: hidden;
	background: var(--c-dark);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* Black layer over the video/poster so the title stays readable. The Figma frame has the same layer
   at 30 %; 50 % was chosen on 13 Oct 2026. Change --hero-overlay (0 to 1) to adjust. */
.hero {
	--hero-overlay: 0.5;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / var(--hero-overlay));
	pointer-events: none;
}

.hero__video,
.hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__title {
	max-width: 9em;
	margin: 0;
	font: 400 max(2.25rem, calc(77.946 * var(--px))) / 1.217 var(--f-serif);
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--c-cream);
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(1.25rem, 10vw, 5rem);
	display: block;
	width: max(1.75rem, calc(37 * var(--px)));
	transform: translateX(-50%);
	transition: transform 0.25s;
}

.hero__scroll img {
	display: block;
	width: 100%;
	height: auto;
}

.hero__scroll:hover {
	transform: translateX(-50%) translateY(4px);
}

@media (min-width: 1000px) {
	.hero {
		height: min(calc(830 * var(--px)), calc(100svh - var(--header-h)));
		padding: 0 var(--gutter) calc(105 * var(--px));
	}

	.hero__scroll {
		bottom: calc(139 * var(--px));
	}
}

/* Musikk ------------------------------------------------------------------ */

.music {
	padding: 4.5rem 0;
	background: var(--c-cream);
	color: var(--c-ink);
}

.music__inner {
	padding-inline: var(--gutter);
}

.music__heading {
	margin: 0 0 2rem;
	font: 600 1.75rem / 1.15 var(--f-serif);
}

.music__grid {
	display: grid;
	gap: 2.5rem;
}

.song__cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.song__title {
	margin: 0 0 11px;
	font: 400 max(1rem, calc(20 * var(--px))) / 1.2 var(--f-sans);
}

.music__list .song + .song {
	margin-top: 37px;
}

.song__player {
	position: relative;
	height: 38px;
	background: #212121;
	border-radius: 2px;
	overflow: hidden;
}

/* thin "progress" line along the top of the bar, as in the Figma player */
.song__player::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: rgba(255, 255, 255, 0.22);
}

.song__play {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 3px 14px 0;
	color: #fff;
	transition: background-color 0.2s;
}

.song__play:hover {
	background: rgba(255, 255, 255, 0.08);
}

.song__play svg {
	fill: currentColor;
}

.song__player.is-active {
	height: auto;
	aspect-ratio: 16 / 9;
	background: #000;
}

.song__player.is-active::before,
.song__player.is-active .song__play {
	display: none;
}

.song.is-playing .song__cover {
	display: none;
}

.song__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 1000px) {
	.music {
		padding-top: calc(83 * var(--px));
		padding-bottom: calc(89.6 * var(--px));
	}

	.music__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(245 * var(--px));
		padding-right: 0;
	}

	.music__heading {
		margin-bottom: calc(47 * var(--px));
		font-size: max(1.75rem, calc(36 * var(--px)));
	}

	.music__grid {
		grid-template-columns: calc(377 * var(--px)) calc(584 * var(--px));
		column-gap: calc(99 * var(--px));
		align-items: center;
	}

	.music__grid--single {
		grid-template-columns: calc(584 * var(--px));
	}

	.music__list {
		padding-bottom: calc(19.5 * var(--px));
	}
}

/* Nedtelling -------------------------------------------------------------- */

.live {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--c-dark);
	color: var(--c-cream);
}

.live__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 75.2%; /* the same part of the picture as in Figma */
}

.live::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.6);
}

.live__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding: 4rem var(--gutter);
	text-align: center;
}

/* Heading and countdown share one centred column, so the digits line up with the heading. */
.live__main {
	width: 100%;
	max-width: 28rem;
}

.live__heading {
	margin: 0 0 0.25rem;
	font: 600 1.375rem / 1.15 var(--f-serif);
}

.live__cover {
	display: block;
	width: min(60vw, 18rem);
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

/* Mobile: four equal columns, so the colons stay evenly spaced even though the labels
   ("sekunder") are wider than the numbers. Desktop switches back to the flex row of the design. */
.countdown {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
	align-items: start;
	font-family: var(--f-serif);
	font-variant-numeric: lining-nums proportional-nums;
}

.countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.countdown__num,
.countdown__sep {
	display: block;
	font-size: max(2.5rem, calc(112 * var(--px)));
	font-weight: 400;
	line-height: 1.217;
	letter-spacing: 0.08em;
	text-align: center;
}

/* Proportional digits as in the design, but each pair gets a fixed cell (the average pair width)
   so nothing jumps sideways while the seconds tick. The trailing letter-spacing is cancelled so
   the pair is centred over its label. */
.countdown__num {
	display: flex;
	justify-content: center;
	width: 1.05em;
	margin-right: -0.08em;
	white-space: nowrap;
}

.countdown__label {
	display: block;
	margin-top: -0.43em;
	font-size: max(1rem, calc(30 * var(--px)));
	line-height: normal;
	text-align: center;
}

@media (min-width: 1000px) {
	.live__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		max-width: var(--wrap);
		min-height: calc(517 * var(--px));
		margin-inline: auto;
		padding: 0 calc(215 * var(--px)) calc(4 * var(--px)) calc(245 * var(--px));
	}

	.live__main {
		width: auto;
		max-width: none;
	}

	.live__heading {
		margin: 0 0 calc(-3.5 * var(--px));
		font-size: max(1.375rem, calc(30 * var(--px)));
	}

	.live__cover {
		flex: none;
		width: calc(284 * var(--px));
		height: calc(286 * var(--px));
	}

	.countdown {
		display: flex;
		align-items: flex-start;
		margin-left: calc(-12 * var(--px));
	}
}

/* Albumtekst (Om) --------------------------------------------------------- */

.story {
	padding: 4.5rem 0;
	background: var(--c-mist);
	color: #000;
}

.story__inner {
	padding-inline: var(--gutter);
}

.story__heading {
	margin: 0 0 2rem;
	font: 700 1.875rem / 1.15 var(--f-serif);
}

.story__cols {
	display: grid;
	gap: 2rem;
}

.story__text {
	font: 400 max(1rem, calc(20 * var(--px))) / normal var(--f-sans);
}

.story__text p {
	margin: 0 0 1.21em;
}

.story__text > :last-child {
	margin-bottom: 0;
}

.story__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	margin-top: 2rem;
	object-fit: cover;
}

@media (min-width: 1000px) {
	.story {
		padding-top: calc(199.7 * var(--px));
		padding-bottom: calc(230 * var(--px));
	}

	.story__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(247 * var(--px));
		padding-right: 0;
	}

	.story__heading {
		margin-bottom: calc(74.8 * var(--px));
		font-size: max(1.75rem, calc(40 * var(--px)));
	}

	.story__cols {
		grid-template-columns: calc(465 * var(--px)) calc(452 * var(--px));
		column-gap: calc(78 * var(--px));
		align-items: start;
	}

	.story__photo {
		width: calc(463 * var(--px));
		height: calc(463 * var(--px));
		margin-top: calc(51 * var(--px));
		margin-left: calc(-2 * var(--px));
	}
}

/* Bio --------------------------------------------------------------------- */

.bio {
	padding: 4.5rem 0;
	background: var(--c-cream);
	color: #000;
}

.bio__inner {
	padding-inline: var(--gutter);
}

.bio__heading {
	margin: 0 0 2rem;
	font: 700 1.875rem / 1.15 var(--f-serif);
}

.bio__cols {
	display: grid;
	gap: 2rem;
}

.bio__text {
	font: 400 max(1rem, calc(20 * var(--px))) / normal var(--f-sans);
}

.bio__text p {
	margin: 0 0 1.21em;
}

.bio__text > p:first-child {
	font-weight: 700;
}

.bio__text > :last-child {
	margin-bottom: 0;
}

.bio__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 450 / 556;
	object-fit: cover;
}

@media (min-width: 1000px) {
	.bio {
		padding-top: calc(183.3 * var(--px));
		padding-bottom: calc(234 * var(--px));
	}

	.bio__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(245 * var(--px));
		padding-right: 0;
	}

	.bio__heading {
		margin-bottom: calc(71.3 * var(--px));
		font-size: max(1.75rem, calc(40 * var(--px)));
	}

	.bio__cols {
		grid-template-columns: calc(479 * var(--px)) calc(450 * var(--px));
		column-gap: calc(95 * var(--px));
		align-items: start;
	}

	.bio__img {
		height: calc(556 * var(--px));
		aspect-ratio: auto;
	}

	/* Without a news section the photo follows right after the bio. */
	.bio--last {
		padding-bottom: calc(176 * var(--px));
	}

	/* The English frame has its own column widths. */
	:lang(en) .story__cols {
		grid-template-columns: calc(465 * var(--px)) calc(472 * var(--px));
		column-gap: calc(107 * var(--px));
	}

	:lang(en) .bio__cols {
		grid-template-columns: calc(494 * var(--px)) calc(469 * var(--px));
		column-gap: calc(80 * var(--px));
	}

	:lang(en) .bio__img {
		height: calc(579 * var(--px));
	}

	:lang(en) .live__inner {
		padding-right: calc(241 * var(--px));
	}

	:lang(en) .story {
		padding-top: calc(173.7 * var(--px));
		padding-bottom: calc(216 * var(--px));
	}

	:lang(en) .story__heading {
		margin-bottom: calc(70.8 * var(--px));
	}

	:lang(en) .bio {
		padding-top: calc(166.3 * var(--px));
	}
}

/* Nyheter (front page) ---------------------------------------------------- */

.news {
	padding: 4.5rem 0;
	background: var(--c-dark);
	color: #fff;
}

.news__inner {
	padding-inline: var(--gutter);
}

.news__heading {
	margin: 0 0 2rem;
	font: 700 1.875rem / 1.15 var(--f-serif);
}

.news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 2rem;
}

.news-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.news-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 292 / 249;
	margin-bottom: 23px;
	object-fit: cover;
	object-position: 50% 15%;
	background: rgba(255, 255, 255, 0.08);
}

.news-card__title {
	margin: 0;
	font: 700 max(1rem, calc(20 * var(--px))) / normal var(--f-sans);
}

.news-card:hover .news-card__title {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.news__all {
	display: inline-block;
	margin-top: 3rem;
	font: 700 max(1rem, calc(20 * var(--px))) / normal var(--f-sans);
	color: #fff;
	text-decoration: none;
}

.news__all:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (min-width: 1000px) {
	.news {
		padding-top: calc(140.3 * var(--px));
		padding-bottom: calc(89 * var(--px));
	}

	.news__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(245 * var(--px));
		padding-right: 0;
	}

	.news__heading {
		margin-bottom: calc(46.3 * var(--px));
		font-size: max(1.75rem, calc(40 * var(--px)));
	}

	.news__grid {
		grid-template-columns: repeat(3, calc(292 * var(--px)));
		column-gap: calc(62 * var(--px));
	}

	.news-card__img {
		height: calc(249 * var(--px));
		aspect-ratio: auto;
	}

	.news__all {
		margin-top: calc(90 * var(--px));
	}
}

/* Foto + snøkrystall ------------------------------------------------------ */

.photo {
	position: relative;
	z-index: 1;
	height: clamp(14rem, 60vw, 24rem);
	margin-bottom: -14px; /* the photo sits on top of the first 14 px of the footer, as in the design */
	overflow: hidden;
	background: var(--c-dark);
}

.photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 32.6%; /* the same part of the picture as in Figma */
}

.photo__flake {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(8rem, 30vw, 14rem);
	height: auto;
	transform: translate(-50%, -50%);
}

@media (min-width: 1000px) {
	.photo {
		height: calc(571 * var(--px));
		margin-bottom: calc(-14 * var(--px));
	}

	.photo__flake {
		top: calc(169 * var(--px));
		width: calc(270 * var(--px));
		transform: translateX(-50%);
	}
}

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

.site-footer {
	background: var(--c-dark);
	color: #fff;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: calc(14px + 2.5rem) var(--gutter) 2.5rem;
}

.site-footer__copy {
	margin: 0;
	font: 400 max(1rem, calc(20 * var(--px))) / normal var(--f-serif);
}

.social {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social img {
	display: block;
	width: calc(var(--w) * 1px);
	height: auto;
}

.social a {
	display: block;
	transition: opacity 0.2s;
}

.social a:hover {
	opacity: 0.7;
}

@media (min-width: 1000px) {
	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		max-width: var(--wrap);
		height: calc(147 * var(--px));
		margin-inline: auto;
		padding: calc(14 * var(--px)) calc(66 * var(--px)) 0 calc(62 * var(--px));
	}

	.social {
		gap: calc(45 * var(--px));
	}

	.social img {
		width: calc(var(--w) * var(--px));
	}
}

/* Nyheter: listing and single post --------------------------------------- */

.archive {
	padding: 4rem var(--gutter) 5rem;
	background: var(--c-mist);
	color: #000;
}

.archive__heading {
	margin: 0 0 2rem;
	font: 700 1.875rem / 1.15 var(--f-serif);
}

.archive__back {
	margin: 0 0 1.5rem;
	font: 400 1rem / normal var(--f-sans);
}

.archive__back a {
	text-underline-offset: 0.2em;
}

.entry {
	margin-bottom: 4rem;
}

.entry__media {
	display: block;
}

.entry__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1052 / 660;
	object-fit: cover;
	object-position: 50% 15%;
}

.entry__title {
	margin: 1.5rem 0 1rem;
	font: 700 1.5rem / 1.15 var(--f-serif);
}

.entry__title a {
	text-decoration: none;
}

.entry__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry__excerpt,
.entry__content,
.entry__date {
	font: 400 max(1rem, calc(20 * var(--px))) / normal var(--f-sans);
}

.entry__excerpt p,
.entry__content p {
	margin: 0 0 1.21em;
}

.entry__date {
	margin: 0 0 2rem;
}

.entry--single .entry__media {
	margin-bottom: 2.5rem;
}

.archive .navigation.pagination {
	margin-top: 2rem;
	font: 400 1rem / normal var(--f-sans);
}

.archive .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.archive .page-numbers {
	text-underline-offset: 0.2em;
}

.archive .page-numbers.current {
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 1000px) {
	.archive {
		padding-top: calc(171.8 * var(--px));
		padding-bottom: calc(292 * var(--px));
	}

	.archive__inner {
		max-width: var(--wrap);
		margin-inline: auto;
		padding-left: calc(230 * var(--px));
	}

	.archive__heading {
		margin-bottom: calc(73.8 * var(--px));
		font-size: max(1.75rem, calc(40 * var(--px)));
	}

	.archive__back {
		margin-bottom: calc(40 * var(--px));
	}

	.entry {
		margin-bottom: calc(222.6 * var(--px));
	}

	.entry__media {
		width: calc(1052 * var(--px));
	}

	.entry__title,
	.entry__excerpt,
	.entry__content {
		width: calc(982 * var(--px));
		margin-left: calc(17 * var(--px));
	}

	.entry--single .entry__title {
		margin-left: 0;
	}

	.entry__title {
		margin-top: calc(73.8 * var(--px));
		margin-bottom: calc(47.8 * var(--px));
		font-size: max(1.75rem, calc(40 * var(--px)));
	}

	.entry--single .archive__heading {
		margin-bottom: 1rem;
	}

	.entry--single .entry__date,
	.entry--single .entry__media {
		width: calc(1052 * var(--px));
	}

	.entry--single .entry__content {
		margin-left: 0;
	}
}

/* Fallback (404 etc.) ----------------------------------------------------- */

.fallback {
	min-height: 60vh;
	padding: 6rem var(--gutter);
	background: var(--c-cream);
}

.fallback__inner {
	max-width: 40rem;
	margin-inline: auto;
	font: 400 1.125rem/1.6 var(--f-sans);
}

.fallback h1 {
	font: 700 2rem/1.2 var(--f-serif);
}
