/* Second Peak: tokens, fonts, layout, header, footer, pages. */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--sp-olive: #434A32;
	--sp-olive-dark: #363C28;
	--sp-fog: #DCDEDC;
	--sp-fog-light: #E8E9E7;
	--sp-slate: #2E3940;
	--sp-ink: #16151A;
	--sp-bone: #F2F0EB;
	--sp-signal: #D9682B;
	--sp-signal-text: #A8481A; /* orange that passes contrast on light backgrounds */
	--sp-muted: #A6A9AE;
	--sp-line: rgba(22, 21, 26, 0.16);

	--sp-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--sp-body: "Schibsted Grotesk", system-ui, sans-serif;
	--sp-mono: "Space Mono", ui-monospace, monospace;

	--sp-wrap: 1120px;
	--sp-gutter: 20px;
	--sp-radius: 3px;
	--sp-bg: var(--sp-fog);
}

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

html { scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--sp-bg);
	color: var(--sp-ink);
	font-family: var(--sp-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sp-signal); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sp-skip:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--sp-ink); color: var(--sp-bone);
}

/* ---------- Layout ---------- */
.sp-wrap { max-width: var(--sp-wrap); margin: 0 auto; padding-left: var(--sp-gutter); padding-right: var(--sp-gutter); }

/* ---------- Type ---------- */
.sp-display { font-family: var(--sp-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
.sp-label { font-family: var(--sp-mono); font-weight: 400; text-transform: uppercase; font-size: 12px; letter-spacing: 0.24em; }
.sp-dot { color: var(--sp-signal); }
.sp-rule { width: 64px; height: 4px; background: var(--sp-signal); }
.sp-meta { color: var(--sp-slate); margin: 0 0 10px; }

/* ---------- Buttons ---------- */
.sp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 26px; border-radius: var(--sp-radius); border: 2px solid transparent;
	font-size: 19px; letter-spacing: 0.12em; text-decoration: none; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn svg { width: 20px; height: 20px; flex: none; }
.sp-btn--solid { background: var(--sp-olive); color: var(--sp-bone); }
.sp-btn--solid:hover { background: var(--sp-olive-dark); }
.sp-btn--line { border-color: var(--sp-ink); color: var(--sp-ink); }
.sp-btn--line:hover { background: var(--sp-ink); color: var(--sp-bone); }
.sp-btn--bone { background: var(--sp-bone); color: var(--sp-ink); }
.sp-btn--bone:hover { background: #fff; }

.sp-textlink { font-size: 20px; letter-spacing: 0.1em; text-decoration: none; border-bottom: 3px solid var(--sp-signal); padding-bottom: 2px; }
.sp-textlink:hover { color: var(--sp-signal); }

.sp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Announcement bar ---------- */
.sp-announce {
	background: var(--sp-olive); color: var(--sp-bone);
	text-align: center; padding: 9px var(--sp-gutter); font-size: 11px; letter-spacing: 0.26em;
}

/* ---------- Header ---------- */
.sp-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(220, 222, 220, 0.94);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--sp-line);
}
.admin-bar .sp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sp-header { top: 0; } }

.sp-header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.sp-logo { display: flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: 0.12em; text-decoration: none; color: var(--sp-ink); margin-right: auto; }
.sp-logo .sp-mark { flex: none; }

.sp-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.sp-nav a { display: inline-block; padding: 6px 0; font-size: 19px; letter-spacing: 0.1em; text-decoration: none; border-bottom: 3px solid transparent; }
.sp-nav a:hover, .sp-nav .current-menu-item > a, .sp-nav .current_page_item > a { border-bottom-color: var(--sp-signal); }

.sp-cart {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 2px solid var(--sp-ink); border-radius: var(--sp-radius);
	text-decoration: none; font-size: 12px; letter-spacing: 0.2em;
}
.sp-cart:hover { background: var(--sp-ink); color: var(--sp-bone); }
.sp-cart__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sp-signal); color: var(--sp-ink); font-weight: 700; letter-spacing: 0; }
.sp-cart__count.is-empty { background: transparent; border: 1px solid currentColor; }

.sp-menu-toggle {
	display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
	background: none; border: 0; color: var(--sp-ink); cursor: pointer; font-size: 12px;
}
.sp-menu-toggle__bars, .sp-menu-toggle__bars::before, .sp-menu-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.sp-menu-toggle__bars::before, .sp-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.sp-menu-toggle__bars::before { top: -7px; }
.sp-menu-toggle__bars::after { top: 7px; }
.sp-nav-open .sp-menu-toggle__bars { background: transparent; }
.sp-nav-open .sp-menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.sp-nav-open .sp-menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.sp-header__inner { gap: 8px; min-height: 64px; }
	.sp-logo { font-size: 21px; }
	.sp-menu-toggle { display: inline-flex; order: 3; }
	.sp-cart { order: 2; padding: 0 12px; }
	.sp-cart__label { display: none; }
	.sp-nav {
		display: none; order: 4; flex-basis: 100%;
		padding: 8px 0 20px;
	}
	.sp-nav-open .sp-nav { display: block; }
	.sp-header__inner { flex-wrap: wrap; }
	.sp-nav__list { flex-direction: column; gap: 0; }
	.sp-nav a { display: block; padding: 12px 0; font-size: 30px; border-bottom: 1px solid var(--sp-line); }
}

/* ---------- Page heading + content ---------- */
.sp-page-head { padding: 64px 0 28px; }
.sp-page-head__kicker { margin: 0 0 12px; color: var(--sp-slate); }
.sp-page-head__title { margin: 0; font-size: clamp(52px, 8vw, 104px); line-height: 0.9; }

.sp-page-body { padding-bottom: 96px; }
.sp-content { max-width: 760px; font-size: 18px; }
.sp-content--wide { max-width: none; }
.sp-content > :first-child { margin-top: 0; }
.sp-content h2, .sp-content h3 { font-family: var(--sp-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.sp-content h2 { font-size: 40px; margin: 48px 0 16px; }
.sp-content h3 { font-size: 28px; margin: 36px 0 12px; }
.sp-content a { color: var(--sp-ink); text-decoration-color: var(--sp-signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sp-content blockquote { margin: 32px 0; padding-left: 20px; border-left: 4px solid var(--sp-signal); font-size: 22px; }

/* Posts list */
.sp-posts { display: grid; gap: 40px; max-width: 760px; }
.sp-post-card h2 { margin: 0 0 8px; font-size: 40px; line-height: 1; }
.sp-post-card h2 a { text-decoration: none; }
.sp-post-card h2 a:hover { color: var(--sp-olive); }
.nav-links { display: flex; gap: 12px; margin-top: 48px; font-family: var(--sp-mono); font-size: 13px; }

/* ---------- Story band ---------- */
.sp-story { background: var(--sp-slate); color: var(--sp-bone); padding: 96px 0; }
.sp-story__inner { display: flex; flex-wrap: wrap; gap: 56px; }
.sp-story__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.sp-story__label { margin: 0; color: #B9C2C7; }
.sp-story h1, .sp-story h2 { margin: 0; font-size: clamp(44px, 5.4vw, 62px); line-height: 0.95; }
.sp-timeline { display: flex; flex-direction: column; gap: 14px; font-size: 13px; letter-spacing: 0.06em; }
.sp-timeline div { display: flex; justify-content: space-between; gap: 12px; }
.sp-timeline div:first-child { padding-bottom: 14px; border-bottom: 1px solid rgba(242, 240, 235, 0.2); }
.sp-story__text { flex: 999 1 480px; min-width: 0; font-size: 19px; line-height: 1.65; color: #E4E6E4; }
.sp-story__text p { margin: 0 0 20px; }
.sp-story__text p:last-child { margin-bottom: 0; }
.sp-story .sp-textlink { color: var(--sp-bone); }
.sp-story .sp-textlink:hover { color: var(--sp-signal); }

/* ---------- Follow band ---------- */
.sp-follow { padding: 96px 0; }
.sp-follow__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.sp-follow h2 { margin: 0; font-size: clamp(48px, 7vw, 84px); line-height: 0.95; }

/* ---------- 404 ---------- */
.sp-404 { padding: 120px 0 140px; }
.sp-404__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.sp-404 h1 { margin: 0; font-size: clamp(72px, 13vw, 160px); line-height: 0.88; }
.sp-404 p { margin: 0; font-size: 19px; color: var(--sp-slate); }
.sp-404__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-top: 12px; }

/* ---------- Footer ---------- */
.sp-footer { background: var(--sp-ink); color: var(--sp-bone); padding: 64px 0 28px; }
.sp-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(242, 240, 235, 0.14); }
.sp-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.sp-footer__motto { margin: 6px 0 0; font-size: 44px; line-height: 0.95; }
.sp-footer__place { margin: 0; color: var(--sp-muted); }
.sp-footer__list, .sp-footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-footer__list a, .sp-footer__social a { font-family: var(--sp-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--sp-bone); }
.sp-footer__list a:hover, .sp-footer__social a:hover { color: var(--sp-signal); }
.sp-footer__social a { display: inline-flex; align-items: center; gap: 10px; }
.sp-footer__social svg { width: 18px; height: 18px; }
.sp-footer__bottom { padding-top: 24px; color: var(--sp-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
	.sp-btn, .sp-btn:hover { transition: none; transform: none; }
}
