/* ==========================================================================
   Big Nickel: Swiss grid poster
   Five values: white ground, ink type, blue header, charcoal footer, one yellow.
   One grotesk, 1px rules, square corners.
   ========================================================================== */

@font-face {
	font-family: "Schibsted Grotesk";
	src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--white: #fff;
	--ink: #111418;
	--blue: #0b4a8e;
	--charcoal: #23262b;
	--yellow: #ffd21f;

	/* Secondary text on the charcoal field, tinted from its foreground. */
	--on-charcoal-soft: rgb(255 255 255 / 0.72);
	--on-charcoal-rule: rgb(255 255 255 / 0.2);

	--font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--regular: 400;
	--bold: 800;

	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 48px);
	--col-gap: clamp(16px, 2vw, 24px);
	--step: 8px;
	--rule: 1px solid var(--ink);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	color-scheme: light;
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--ink) var(--white);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-weight: var(--regular);
	font-size: 1.125rem;
	line-height: 1.55;
	caret-color: var(--blue);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--yellow);
	color: var(--ink);
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--ink);
}

.icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
}

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

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--yellow);
	color: var(--ink);
	font-weight: var(--bold);
}
.skip-link:focus {
	top: 12px;
}

/* Phone numbers set in tabular figures; addresses keep proportional figures. */
a[href^="tel:"] {
	font-variant-numeric: tabular-nums;
}

.site-main:focus {
	outline: none;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: var(--bold);
}
.text-link:hover {
	color: var(--blue);
}

/* --------------------------------------------------------------------------
   Header: blue field, logo on a white block, nav
   -------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 10;
	background: var(--blue);
	color: var(--white);
}
.site-header__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: var(--col-gap);
	max-width: var(--wrap);
	min-height: 88px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.brand {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 20px;
	background: var(--white);
	line-height: 0;
}
.brand img {
	width: auto;
	height: 52px;
}

.nav {
	display: flex;
	align-items: center;
}
.nav__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav__menu a {
	display: inline-block;
	padding: 12px 0;
	font-size: 1.0625rem;
	font-weight: var(--bold);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease;
}
.nav__menu a:hover,
.nav__menu .current-menu-item > a {
	border-bottom-color: var(--white);
}
.nav__toggle {
	display: none;
}

/* --------------------------------------------------------------------------
   Hero: the poster
   -------------------------------------------------------------------------- */

.hero__grid,
.office__grid,
.site-footer__grid,
.page__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--col-gap);
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.hero {
	padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.hero__text {
	grid-column: 1 / span 7;
	align-self: end;
	padding-bottom: calc(var(--step) * 2);
}
.hero__title {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(3rem, 6.4vw, 6rem);
	font-weight: var(--bold);
	line-height: 0.95;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* The rule under the headline; reaching for the paper draws a yellow band along it. */
.hero__rule {
	position: relative;
	display: block;
	height: 1px;
	margin: calc(var(--step) * 5) 0 calc(var(--step) * 3);
	background: var(--ink);
}
.hero__rule::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 1px;
	height: var(--step);
	background: var(--yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 700ms var(--ease-out);
}

.hero__blurb {
	max-width: 40ch;
	margin: 0 0 calc(var(--step) * 4);
	font-size: 1.25rem;
	line-height: 1.5;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 16px 28px;
	background: var(--blue);
	color: var(--white);
	font-size: 1.125rem;
	font-weight: var(--bold);
	text-decoration: none;
	transition: background-color 200ms ease;
}
.button .icon {
	transition: transform 500ms var(--ease-out);
}
.button:hover {
	background: var(--ink);
}

.hero__setup {
	margin: 0;
	font-size: 0.9375rem;
}

.hero__figure {
	grid-column: 8 / span 5;
	justify-self: end;
	width: 100%;
	max-width: calc(70vh * 2 / 3);
	text-decoration: none;
	color: inherit;
	transition: transform 700ms var(--ease-out);
}

.sheet {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	border: var(--rule);
	background: var(--white);
	overflow: hidden;
}
.sheet__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	background: var(--white);
}

/* The default standing graphic: the paper set in type, filling the sheet top to bottom. */
.sheet {
	container-type: inline-size;
}
.sheet__default {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 7cqw;
}
.sheet__folio {
	padding-bottom: 2.4cqw;
	border-bottom: var(--rule);
	font-size: max(0.75rem, 3.6cqw);
	font-weight: var(--bold);
}
.sheet__flag {
	margin-top: 3cqw;
	color: var(--blue);
	font-size: 27cqw;
	font-weight: var(--bold);
	line-height: 0.86;
	letter-spacing: -0.045em;
}
/* The paper's columns: three ruled columns, the grid made visible. */
.sheet__columns {
	flex: 1;
	margin: 6cqw 0 4cqw;
	border-top: var(--rule);
	background:
		linear-gradient(90deg, transparent calc(33.33% - 1.5cqw), var(--white) calc(33.33% - 1.5cqw) calc(33.33% + 1.5cqw), transparent calc(33.33% + 1.5cqw) calc(66.66% - 1.5cqw), var(--white) calc(66.66% - 1.5cqw) calc(66.66% + 1.5cqw), transparent calc(66.66% + 1.5cqw)),
		repeating-linear-gradient(180deg, transparent 0 calc(3.2cqw - 1px), var(--ink) calc(3.2cqw - 1px) 3.2cqw);
}
.sheet__word {
	padding-top: 2.4cqw;
	border-top: var(--rule);
	color: var(--ink);
	font-size: 15cqw;
	font-weight: var(--bold);
	line-height: 0.9;
	letter-spacing: -0.04em;
}

/* Signature: reaching for the paper draws the band, advances the arrow, lifts the sheet one step. */
.hero:has(.hero__link:hover) .hero__rule::after,
.hero:has(.hero__link:focus-visible) .hero__rule::after {
	transform: scaleX(1);
}
.hero:has(.hero__link:hover) .hero__figure,
.hero:has(.hero__link:focus-visible) .hero__figure {
	transform: translateY(calc(var(--step) * -1));
}
.hero:has(.hero__link:hover) .button .icon,
.hero:has(.hero__link:focus-visible) .button .icon {
	transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Office band
   -------------------------------------------------------------------------- */

.office {
	padding-bottom: clamp(56px, 7vw, 104px);
}
.office__grid {
	margin-top: 0;
	margin-bottom: 0;
}
.office__cell {
	grid-column: span 3;
	margin: 0;
	padding-top: calc(var(--step) * 2);
	border-top: var(--rule);
}
.office__cell dt {
	margin-bottom: var(--step);
	font-size: 0.9375rem;
	font-weight: var(--bold);
}
.office__cell dd {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.4;
}
.office__cell a {
	text-decoration: none;
}
.office__cell a:hover {
	color: var(--blue);
	text-decoration: underline;
}
.office__links {
	grid-column: span 6;
	list-style: none;
	padding-left: 0;
}
.office__links li + li {
	margin-top: var(--step);
}
.office__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.25rem;
	font-weight: var(--bold);
}

/* --------------------------------------------------------------------------
   Pages: generic, Contact, About Us
   -------------------------------------------------------------------------- */

.page {
	padding-bottom: clamp(56px, 7vw, 104px);
}
.page__head {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.page__title {
	margin: 0 0 calc(var(--step) * 5);
	padding-bottom: calc(var(--step) * 3);
	border-bottom: var(--rule);
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: var(--bold);
	line-height: 1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.prose {
	grid-column: 1 / span 7;
	max-width: 68ch;
	font-size: 1.1875rem;
	line-height: 1.6;
}
.prose > :first-child {
	margin-top: 0;
}
.prose h2,
.prose h3 {
	margin: 1.8em 0 0.5em;
	font-weight: var(--bold);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.prose h2 {
	font-size: 1.75rem;
}
.prose h3 {
	font-size: 1.25rem;
}
.prose a {
	color: var(--blue);
}
.prose a:hover {
	color: var(--ink);
}
.prose ul,
.prose ol {
	padding-left: 1.2em;
}
.prose blockquote {
	margin: 1.5em 0;
	padding-left: calc(var(--step) * 3);
	border-left: var(--rule);
	font-size: 1.25rem;
}

/* Forms in page content (Gravity Forms on Contact). */
.prose input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"]),
.prose textarea,
.prose select {
	width: 100%;
	padding: 12px 14px;
	border: var(--rule);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 1.0625rem;
}
.prose label,
.prose .gfield_label {
	font-weight: var(--bold);
	font-size: 0.9375rem;
}
.prose input[type="submit"],
.prose button[type="submit"],
.prose .gform_button {
	min-height: 56px;
	padding: 14px 28px;
	border: 0;
	border-radius: 0;
	background: var(--blue);
	color: var(--white);
	font: inherit;
	font-weight: var(--bold);
	cursor: pointer;
}
.prose input[type="submit"]:hover,
.prose button[type="submit"]:hover,
.prose .gform_button:hover {
	background: var(--ink);
}
.prose .validation_message,
.prose .gform_validation_errors {
	font-weight: var(--bold);
}

.page__aside {
	grid-column: 9 / span 4;
}
.facts {
	margin: 0;
}
.facts__row {
	padding: calc(var(--step) * 2) 0 calc(var(--step) * 3);
	border-top: var(--rule);
}
.facts__row dt {
	margin-bottom: var(--step);
	font-size: 0.9375rem;
	font-weight: var(--bold);
}
.facts__row dd {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.45;
}
.facts__row dd a:not(.text-link) {
	text-decoration: none;
}
.facts__row dd a:hover {
	color: var(--blue);
}
.facts__row .facts__big {
	color: var(--blue);
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: var(--bold);
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.facts .text-link {
	margin-top: var(--step);
}

.page__list {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
	list-style: none;
}
.page__list li {
	padding: calc(var(--step) * 2) 0;
	border-bottom: var(--rule);
	font-size: 1.25rem;
	font-weight: var(--bold);
}
.page__list a {
	text-decoration: none;
}
.page__list a:hover {
	color: var(--blue);
}
.nav-links {
	display: flex;
	gap: 20px;
	max-width: var(--wrap);
	margin: calc(var(--step) * 4) auto 0;
	padding: 0 var(--gutter);
	font-weight: var(--bold);
}

/* --------------------------------------------------------------------------
   Footer: charcoal field
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--charcoal);
	color: var(--white);
}
.site-footer__grid {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(32px, 4vw, 48px);
	row-gap: calc(var(--step) * 4);
}
.site-footer__office {
	grid-column: 1 / span 5;
}
.site-footer__name {
	margin: 0 0 calc(var(--step) * 2);
	font-size: 1.75rem;
	font-weight: var(--bold);
	line-height: 1;
	letter-spacing: -0.02em;
}
.site-footer address {
	font-style: normal;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--on-charcoal-soft);
}
.site-footer address a {
	text-decoration: none;
}
.site-footer address a:hover {
	color: var(--white);
	text-decoration: underline;
}
.site-footer__nav {
	grid-column: 7 / span 6;
}
.site-footer__menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__menu li {
	border-top: 1px solid var(--on-charcoal-rule);
}
.site-footer__menu a {
	display: block;
	padding: 12px 0;
	font-size: 1.0625rem;
	font-weight: var(--bold);
	text-decoration: none;
}
.site-footer__menu a:hover {
	text-decoration: underline;
}
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter)));
	margin: 0 auto;
	padding: 20px 0 28px;
	border-top: 1px solid var(--on-charcoal-rule);
	color: var(--on-charcoal-soft);
	font-size: 0.9375rem;
}
.site-footer__legal p {
	margin: 0;
}
.site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__legal a {
	display: inline-block;
	padding: 6px 0;
}
.site-footer__legal a:hover {
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
	.hero__text {
		grid-column: 1 / span 12;
		padding-bottom: 0;
	}
	.hero__figure {
		grid-column: 1 / span 12;
		justify-self: start;
		max-width: min(100%, 420px);
		margin-top: calc(var(--step) * 6);
	}
	.office__cell {
		grid-column: span 6;
		margin-bottom: calc(var(--step) * 3);
	}
	.office__links {
		grid-column: span 12;
	}
	.prose,
	.page__aside {
		grid-column: 1 / span 12;
	}
	.page__aside {
		margin-top: calc(var(--step) * 6);
	}
	.site-footer__office,
	.site-footer__nav {
		grid-column: 1 / span 12;
	}
}

@media (max-width: 760px) {
	.site-header__inner {
		min-height: 68px;
		padding-right: 0;
	}
	.brand {
		padding: 0 14px;
	}
	.brand img {
		height: 38px;
	}
	.nav__toggle {
		display: inline-flex;
		align-items: center;
		align-self: stretch;
		padding: 0 var(--gutter);
		border: 0;
		background: none;
		color: var(--white);
		font: inherit;
		font-size: 1.0625rem;
		font-weight: var(--bold);
		cursor: pointer;
	}
	.nav__toggle-open,
	.nav.is-open .nav__toggle-close {
		display: inline-flex;
		align-items: center;
		gap: 10px;
	}
	.nav__toggle-close,
	.nav.is-open .nav__toggle-open {
		display: none;
	}
	.nav__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 0 var(--gutter) calc(var(--step) * 2);
		background: var(--blue);
	}
	.nav.is-open .nav__menu {
		display: flex;
	}
	.nav__menu li {
		border-top: 1px solid rgb(255 255 255 / 0.24);
	}
	.nav__menu a {
		display: block;
		padding: 16px 0;
		border-bottom: 0;
		font-size: 1.25rem;
	}
	.office__cell,
	.office__links {
		grid-column: span 12;
		margin-bottom: calc(var(--step) * 2);
	}
	.site-footer__menu {
		grid-template-columns: minmax(0, 1fr);
	}
	.button {
		width: 100%;
		justify-content: space-between;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion: only color answers.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 1ms !important;
	}
	.hero:has(.hero__link:hover) .hero__figure,
	.hero:has(.hero__link:focus-visible) .hero__figure,
	.hero:has(.hero__link:hover) .button .icon,
	.hero:has(.hero__link:focus-visible) .button .icon {
		transform: none;
	}
}
