/*
VOICE: rolig, trygg og norsk – en kollega som har gjort dette før, ikke en salgsplakat.
IDEA: to sirkler som overlapper. Den som går og den som kommer, og feltet imellom der kunnskapen skifter hender.
PICTURE: tegnes av sidene i pluginen (site.css); temaet gir bare byggesteinene.
COLOUR and TYPE: varmt papir, skiferblått og terrakotta fra Overlapp-tokenene; Plus Jakarta Sans og Fraunces, selvhostet.
LAYOUT: brede bånd i full bredde, innhold maks 1180 px, to spalter som stables under 900 px.
*/

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
	--paper: #FAF9F6;
	--surface: #FFFFFF;
	--ink: #1E242B;
	--muted: #5C6670;
	--line: #E6E2DA;
	--slate: #1F4E5F;
	--slate-d: #163A47;
	--slate-l: #EEF4F6;
	--terra: #D96B43;
	--terra-d: #B9542F;
	--terra-l: #FBEDE6;
	--ok: #2E7D5B;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 24px 50px -24px rgba(22, 58, 71, .35);
	--sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: Fraunces, "Iowan Old Style", Georgia, serif;
	--max: 1180px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--slate-d); }
:focus-visible { outline: 3px solid rgba(217, 107, 67, .55); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ol-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.ol-skip:focus { top: 12px; color: #fff; }

/* ---------- Byggesteiner ---------- */

.ol-wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(4vw, 18px); }
.ol-wrap--narrow { max-width: 780px; }
.ol-band { padding: clamp(56px, 8vw, 104px) 0; }
.ol-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--terra-d); }
.ol-eyebrow--light { color: #F3B79F; }
.ol-h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.ol-h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.ol-lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.ol-muted { color: var(--muted); }

.ol-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
	cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.ol-btn:active { transform: translateY(1px); }
.ol-btn--primary { background: var(--slate); color: #fff; }
.ol-btn--primary:hover { background: var(--slate-d); color: #fff; }
.ol-btn--ghost { background: transparent; border-color: rgba(31, 78, 95, .3); color: var(--slate); }
.ol-btn--ghost:hover { background: var(--slate-l); }
.ol-btn--light { background: #fff; color: var(--terra-d); }
.ol-btn--light:hover { background: var(--paper); color: var(--terra-d); }
.ol-btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.ol-btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.ol-btn--block { width: 100%; }

.ol-cards { display: grid; gap: 16px; }
.ol-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ol-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ol-card h3 { margin: 0 0 8px; font-size: 19px; }
.ol-card p { margin: 0; color: var(--muted); }
.ol-card--line { border: 0; border-top: 3px solid var(--terra); border-radius: 0; background: transparent; padding: 18px 0 0; }

.ol-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ol-split--top { align-items: start; }

.ol-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ol-checks li { position: relative; padding-left: 34px; }
.ol-checks li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255, 255, 255, .14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.ol-checks--dark li::before { background-color: var(--ok); }

/* ---------- Topp ---------- */

.ol-announce { background: var(--terra); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.ol-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(230, 226, 218, .8); }
.admin-bar .ol-header { top: 32px; }
.ol-header__inner { max-width: var(--max); margin: 0 auto; padding: 12px max(4vw, 18px); display: flex; align-items: center; gap: 24px; }
.ol-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.ol-logo:hover { color: var(--ink); }
.ol-logo--light, .ol-logo--light:hover { color: #fff; }
.ol-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ol-nav__list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.ol-nav__list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.ol-nav__list a:hover, .ol-nav__list .current-menu-item a { color: var(--terra-d); }
.ol-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.ol-burger__lines, .ol-burger__lines::before, .ol-burger__lines::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s; }
.ol-burger__lines::before, .ol-burger__lines::after { content: ""; position: absolute; left: 0; }
.ol-burger__lines::before { top: -7px; }
.ol-burger__lines::after { top: 7px; }
.ol-burger[aria-expanded="true"] .ol-burger__lines { background: transparent; }
.ol-burger[aria-expanded="true"] .ol-burger__lines::before { transform: translateY(7px) rotate(45deg); }
.ol-burger[aria-expanded="true"] .ol-burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Undersider ---------- */

.ol-pagehead { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); }
.ol-pagehead--slim { padding-bottom: 8px; }
.ol-pagehead__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }

.ol-content { padding-bottom: clamp(48px, 7vw, 96px); }
.ol-content > * { max-width: 100%; }
.ol-content h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 1.8em 0 .5em; }
.ol-content h3 { font-size: 20px; margin: 1.5em 0 .4em; }
.ol-content p, .ol-content li { max-width: 68ch; }
.ol-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ol-content th, .ol-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ol-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--terra); font-family: var(--serif); font-size: 20px; }

.ol-postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ol-postlist__title { font-size: 21px; font-weight: 700; text-decoration: none; }
.ol-postlist p { margin: 4px 0 0; }

/* ---------- Bunn ---------- */

.ol-footer { background: var(--ink); color: #B8C3C8; font-size: 15px; }
.ol-footer__inner { max-width: var(--max); margin: 0 auto; padding: 56px max(4vw, 18px) 32px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ol-footer__brand p { margin: 12px 0 0; max-width: 28ch; }
.ol-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ol-footer a { color: #E6EEF1; text-decoration: none; }
.ol-footer a:hover { color: #fff; text-decoration: underline; }
.ol-footer__company p { margin: 0 0 6px; }
.ol-footer__company strong { color: #fff; }
.ol-footer__legal { max-width: var(--max); margin: 0 auto; padding: 0 max(4vw, 18px) 28px; font-size: 13px; }
.ol-footer__legal::before { content: ""; display: block; margin-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ol-logo--light .ol-logo__mark circle:first-child { fill: #7FA6B4; }

/* ---------- Skjermstørrelser ---------- */

@media (max-width: 960px) {
	.ol-burger { display: block; }
	.ol-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(4vw, 18px) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); }
	.ol-nav.is-open { display: flex; }
	.ol-nav__list { flex-direction: column; gap: 0; }
	.ol-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
	.ol-nav__cta { margin-top: 16px; }
	.ol-cards--3 { grid-template-columns: 1fr; }
	.ol-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.admin-bar .ol-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tettere overgang fra sidetopp til første seksjon, og riktig ring rundt tallene på hvit bakgrunn. */
.ol-pagehead + .ol-band { padding-top: 16px; }
