//-		DS2 core (c) 2024 Alexander McIlwraith 
//-		Licensed under CC BY-SA 4.0 

$header-bg-color: var(--colour-grey-xxl) !default;
$font-heading: sans-serif !default;
$font-weight: 700 !default;

@mixin header {
	header {
		display: grid;
		grid-template-rows: 1.75rem 3.5rem;
		grid-column: 2 / 4;
		overflow: hidden;

		svg {
			grid-column: 1 / -1;
			grid-row: 1 / -1;
			place-self: stretch;
			text {
				transform: translate(-1rem, 7.25rem);
				font-size: 10rem;
				font-weight: 1000; 
				font-family: $font-heading;
				fill: $header-bg-color;
			}
		}
		> div {
			grid-row: 2;
			grid-column: 1 / -1;

			display: grid;
			grid-column-gap: 1rem;
			grid-template-columns: auto max-content max-content;

			.header-title {
				h1 {
					margin: 0;
					padding: 0 1rem;
					a, a:visited {
						border-bottom: none;
						color: var(--colour-black);
						font-family: $font-heading;
						font-size: 2.5rem;
						font-size: 32px;
						font-weight: $font-weight;
						margin: 0;
						padding: 0;
						text-decoration: none;
					}
				}
			}
		}
	}
}