/* ==========================================================================
   Consigno – hovudstil
   Fargar: fjordnavy, papir, rav. Skrift: Anton (titlar) og Poppins (brødtekst).
   ========================================================================== */

/* ---------- Fontar (lagra lokalt, ingen kall til Google) ---------- */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variablar ---------- */
:root {
	--c-navy: #14233b;
	--c-night: #0c1628;
	--c-navy-2: #1d3150;
	--c-paper: #f6f1e6;
	--c-paper-2: #ede5d3;
	--c-white: #fffdf8;
	--c-accent: #e8a33d;
	--c-accent-2: #f3bd67;
	--c-accent-dark: #a8650f;
	--c-ink: #1b2433;
	--c-muted: #56617a;
	--c-line: #d9cfba;
	--c-on-dark: #ece6d9;
	--c-on-dark-muted: #a7b1c3;
	--c-line-dark: rgba(236, 230, 217, .16);

	--f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--f-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--radius: 6px;
	--radius-lg: 14px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--c-accent); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-accent); color: var(--c-night); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.4em; height: 1.4em; flex: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--c-accent); color: var(--c-night); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Knappar ---------- */
.btn,
.wp-block-button__link,
button.button, a.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: 600 1rem/1.2 var(--f-body);
	padding: .95em 1.5em;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--small { padding: .6em 1.15em; font-size: .9375rem; }
.btn--accent { background: var(--c-accent); color: var(--c-night); }
.btn--accent:hover { background: var(--c-accent-2); }
.btn--ghost { border-color: rgba(236, 230, 217, .45); color: var(--c-on-dark); }
.btn--ghost:hover { border-color: var(--c-on-dark); background: rgba(236, 230, 217, .08); }
.btn--light { background: var(--c-on-dark); color: var(--c-navy); }
.btn--light:hover { background: var(--c-white); }
.btn--dark,
.wp-block-button__link,
input[type="submit"] { background: var(--c-navy); color: var(--c-paper); }
.btn--dark:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { background: var(--c-navy-2); }
.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--c-navy); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--c-navy);
	color: var(--c-on-dark);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line-dark); background: rgba(20, 35, 59, .96); backdrop-filter: blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-on-dark); }
.brand__mark { color: var(--c-on-dark); width: 34px; height: 34px; }
.brand__word { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.custom-logo-link img { max-height: 44px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a {
	display: block; padding: .55rem .8rem; border-radius: var(--radius);
	color: var(--c-on-dark); text-decoration: none; font-weight: 500; font-size: .9688rem;
}
.nav__list a:hover { color: var(--c-white); background: rgba(236, 230, 217, .08); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--c-accent); }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem;
	background: var(--c-navy-2); border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(6, 12, 24, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }
.header__cart { position: relative; display: inline-flex; padding: .45rem; color: var(--c-on-dark); border-radius: var(--radius); }
.header__cart:hover { background: rgba(236, 230, 217, .08); }
.header__cart-count {
	position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--c-accent); color: var(--c-night);
	font-size: .7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.header__cart-count.is-empty { display: none; }

.nav-toggle {
	display: none; margin-left: auto; padding: .5rem; border: 0; border-radius: var(--radius);
	background: transparent; color: var(--c-on-dark); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 920px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--gutter) 1.75rem;
		background: var(--c-navy); border-bottom: 1px solid var(--c-line-dark);
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: .85rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--c-line-dark); border-radius: 0; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 1rem; }
	.nav__actions { justify-content: space-between; }
}

/* ---------- Kotelinjer (topografisk mønster) ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { stroke: var(--c-accent); stroke-width: 1; opacity: .26; vector-effect: non-scaling-stroke; }
.contours path.major { stroke-width: 1.6; opacity: .5; }
.contours__summit { fill: var(--c-accent); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--c-navy); color: var(--c-on-dark);
	min-height: min(78vh, 780px);
	display: flex; align-items: center;
	padding-block: clamp(2rem, 6vh, 4.5rem) clamp(3rem, 9vh, 6rem);
}
.hero::after {
	/* Mjuk overgang mot venstre slik at teksten alltid er lett å lese. */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, var(--c-navy) 0%, rgba(20, 35, 59, .85) 38%, rgba(20, 35, 59, 0) 70%);
}
.hero__lines { z-index: -2; }
.hero__inner { position: relative; }
.hero__title {
	/* Tittelen skalerer etter både breidd og høgd, så han får plass på låge skjermar. */
	font-size: clamp(3rem, min(8.5vw, 14vh), 8rem);
	line-height: 1.02;
	letter-spacing: -.005em;
	max-width: 9.5ch;
	margin-bottom: .3em;
	color: var(--c-white);
}
.hero__lead { margin-top: 0; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; max-width: 36rem; color: var(--c-on-dark); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Eitt samla augneblink ved lasting: kotelinjene teiknar seg ut frå toppen. */
@media (prefers-reduced-motion: no-preference) {
	.hero .contours path { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 2.4s var(--ease) forwards; }
	.hero .contours path:nth-child(4n+1) { animation-delay: .05s; }
	.hero .contours path:nth-child(4n+2) { animation-delay: .2s; }
	.hero .contours path:nth-child(4n+3) { animation-delay: .35s; }
	.hero .contours path:nth-child(4n) { animation-delay: .5s; }
	.hero .contours__summit { opacity: 0; animation: fade .6s 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Seksjonar ---------- */
.section { padding-block: var(--section); }
.section--plain { padding-block: 0 var(--section); }
.section--wide { padding-inline: 0; }
.section--top { padding-top: clamp(2rem, 5vw, 4rem); }
.section__head { margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.section__head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.section__title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); margin: 0; color: var(--c-navy); }
.section__lead { margin: 0; color: var(--c-muted); font-size: 1.125rem; max-width: 34rem; justify-self: end; }
.section__more { justify-self: end; font-weight: 600; }
@media (max-width: 760px) {
	.section__head--split { grid-template-columns: 1fr; }
	.section__lead, .section__more { justify-self: start; }
}

/* Tenester */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.service { border-top: 2px solid var(--c-navy); padding-top: 1.5rem; }
.service__icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem;
	border-radius: 50%; background: var(--c-navy); color: var(--c-accent);
}
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 1.75rem; color: var(--c-navy); margin-bottom: .45em; }
.service p { color: var(--c-muted); margin: 0; }
@media (max-width: 860px) { .services__grid { grid-template-columns: 1fr; } }

/* Prosjekt – liste i staden for kort, så kvart namn får plass. */
.projects { background: var(--c-white); }
.project-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--c-line); }
.project { border-top: 1px solid var(--c-line); }
.project__link {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 150px 230px;
	gap: 1.5rem; align-items: center;
	padding: 1.5rem .75rem;
	text-decoration: none; color: var(--c-ink);
	transition: background-color .2s var(--ease);
}
.project__link:hover { background: var(--c-paper); }
.project__icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-lg);
	background: var(--c-paper-2); color: var(--c-navy);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.project__icon .icon { width: 28px; height: 28px; }
.project__link:hover .project__icon { background: var(--c-navy); color: var(--c-accent); }
.project__body { display: flex; flex-direction: column; gap: .15rem; }
.project__name { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--c-navy); }
.project__text { color: var(--c-muted); max-width: 40rem; }
.project__tag { font-size: .875rem; font-weight: 500; color: var(--c-navy); }
.project__host { font-size: .875rem; color: var(--c-muted); text-align: right; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: .25em; }
.project__link:hover .project__host { color: var(--c-ink); text-decoration-color: var(--c-accent); }
@media (max-width: 980px) {
	.project__link { grid-template-columns: 48px minmax(0, 1fr); row-gap: .5rem; column-gap: 1rem; align-items: start; padding-inline: 0; }
	.project__icon { width: 48px; height: 48px; }
	.project__tag, .project__host { grid-column: 2; text-align: left; }
	.project__tag { display: none; }
}

/* PeakMaps */
.feature { position: relative; overflow: hidden; isolation: isolate; background: var(--c-navy); color: var(--c-on-dark); }
.feature__lines { z-index: -1; opacity: .55; transform: scaleX(-1); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.feature .section__title { color: var(--c-white); margin-bottom: .4em; }
.feature__icon {
	display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.5rem;
	border-radius: 50%; background: var(--c-accent); color: var(--c-night);
}
.feature__icon .icon { width: 30px; height: 30px; }
.feature__lead { font-size: 1.125rem; color: var(--c-on-dark); max-width: 30rem; }
.feature__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 500; margin-top: 1.75rem; }
.feature__links a { color: var(--c-accent-2); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.plan {
	display: flex; flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius-lg);
	border: 1px solid var(--c-line-dark);
	background: rgba(12, 22, 40, .45);
}
.plan--pro { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-paper); }
.plan__name { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 2.25rem; margin-bottom: .2em; }
.plan--pro .plan__name { color: var(--c-navy); }
.plan__price { font-family: var(--f-body); font-size: 1rem; font-weight: 600; }
.plan__price del { opacity: .55; font-weight: 400; margin-right: .3em; }
.plan__price ins { text-decoration: none; }
.plan__note { font-size: .9375rem; color: var(--c-on-dark-muted); margin-bottom: 1.25rem; }
.plan--pro .plan__note { color: var(--c-muted); }
.plan__list { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; }
.plan__list li { display: flex; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--c-line-dark); font-size: .9688rem; line-height: 1.5; }
.plan--pro .plan__list li { border-top-color: var(--c-line); }
.plan__list .icon { width: 1.15em; height: 1.15em; margin-top: .15em; color: var(--c-accent); }
.plan--pro .plan__list .icon { color: var(--c-accent-dark); }
.plan .btn { align-self: flex-start; }
.plan__fine { font-size: .8125rem; color: var(--c-muted); margin: 1rem 0 0; }
@media (max-width: 980px) { .feature__grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* Verktøy */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.tool { background: var(--c-paper); }
.tool__inner { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; align-content: start; height: 100%; padding: 1.75rem; color: inherit; text-decoration: none; }
a.tool__inner { position: relative; padding-right: 3rem; }
a.tool__inner:hover { background: var(--c-white); }
.tool__ext { position: absolute; top: 1.4rem; right: 1.25rem; width: 18px; height: 18px; color: var(--c-muted); transition: color .2s var(--ease), transform .2s var(--ease); }
a.tool__inner:hover .tool__ext { color: var(--c-accent-dark); transform: translate(2px, -2px); }
a.tool__inner:hover .tool__name { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.tool__icon {
	grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 1.5px solid var(--c-navy); color: var(--c-navy);
}
.tool__icon .icon { width: 22px; height: 22px; }
.tool__name { font-weight: 600; color: var(--c-navy); line-height: 1.4; }
.tool__text { color: var(--c-muted); font-size: .9375rem; line-height: 1.55; }
a.tool__inner:hover .tool__icon { background: var(--c-navy); color: var(--c-accent); }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

/* Innlegg */
.news { padding-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 1.1rem; background: var(--c-paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__title { font-size: 1.65rem; margin: .2em 0 .35em; color: var(--c-navy); }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); }
.post-card__excerpt { color: var(--c-muted); font-size: .9688rem; }
.post-card__excerpt p { margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--c-muted); }
.post-meta a { color: inherit; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { background: var(--c-accent); color: var(--c-night); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.contact__title { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: .98; margin: 0; color: var(--c-night); }
.contact__body p { margin-bottom: 1.25rem; font-size: 1.0625rem; }
.contact__mail {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; color: var(--c-night);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--c-night);
	margin-bottom: 1.25rem;
}
.contact__mail:hover { text-decoration-color: var(--c-white); }
.contact__alt { font-size: .9688rem !important; margin: 0 !important; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- Sidetopp for undersider ---------- */
.page-head {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--c-navy); color: var(--c-on-dark);
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-head__lines { z-index: -1; opacity: .5; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-navy) 25%, rgba(20, 35, 59, .2)); }
.page-head__title { font-size: clamp(2.5rem, 6.5vw, 5rem); margin: 0; color: var(--c-white); max-width: 18ch; }
.page-head__title span { color: var(--c-accent); }
.page-head__lead { margin-top: 1rem; max-width: 40rem; font-size: 1.1875rem; color: var(--c-on-dark); }
.page-head__lead p:last-child { margin: 0; }
.page-head .post-meta { color: var(--c-on-dark-muted); margin-bottom: 1rem; }

/* ---------- Tekstinnhald (sider, innlegg) ---------- */
.prose { max-width: calc(44rem + var(--gutter) * 2); }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44rem; }
.wrap.prose > .alignwide, .wrap.prose > .alignfull { max-width: none; }
.prose--wide { max-width: none; }
.prose--wide > * { max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose--wide > .alignwide { max-width: var(--wrap); }
.prose--wide > .alignfull { max-width: none; padding-inline: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-top: 1.6em; margin-bottom: .4em; color: var(--c-navy); }
.prose h3 { font-size: 1.75rem; margin-top: 1.75em; margin-bottom: .3em; color: var(--c-navy); }
.prose h4 { font-family: var(--f-body); font-weight: 600; font-size: 1.125rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose a:not(.wp-block-button__link):not(.btn) { color: var(--c-navy); text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; font-weight: 500; }
.prose a:not(.wp-block-button__link):not(.btn):hover { color: var(--c-accent-dark); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--c-accent-dark); }
.prose blockquote, .wp-block-quote {
	margin-inline: 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--c-accent);
	font-size: 1.1875rem; color: var(--c-navy);
}
.prose code { font-size: .9em; background: var(--c-paper-2); padding: .15em .4em; border-radius: 4px; }
.prose pre { background: var(--c-night); color: var(--c-on-dark); padding: 1.25rem; border-radius: var(--radius-lg); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose img, .prose figure img { border-radius: var(--radius-lg); }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-element-caption { font-size: .875rem; color: var(--c-muted); margin-top: .6rem; }
.prose hr, .wp-block-separator { border: 0; border-top: 1px solid var(--c-line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.prose th, .prose td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--c-line); }
.prose th { font-weight: 600; color: var(--c-navy); }
.alignwide { max-width: var(--wrap); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.has-navy-background-color { background-color: var(--c-navy); }
.has-night-background-color { background-color: var(--c-night); }
.has-paper-background-color { background-color: var(--c-paper); }
.has-amber-background-color { background-color: var(--c-accent); }
.has-ink-background-color { background-color: var(--c-ink); }
.has-navy-color { color: var(--c-navy); }
.has-night-color { color: var(--c-night); }
.has-paper-color { color: var(--c-paper); }
.has-amber-color { color: var(--c-accent); }
.has-ink-color { color: var(--c-ink); }

.post-hero { margin: 0 0 2.5rem; }
.post-tags a { display: inline-block; margin: 0 .4rem .4rem 0; padding: .25rem .8rem; border-radius: 999px; background: var(--c-paper-2); font-size: .875rem; text-decoration: none !important; }
.post-nav { padding-bottom: var(--section); }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--c-line); padding-top: 1.5rem; }
.post-nav a { text-decoration: none; font-weight: 500; color: var(--c-navy); }
.post-nav .nav-next { text-align: right; }
.post-nav__label { display: block; font-size: .875rem; color: var(--c-muted); font-weight: 400; }

/* Sidetal */
.pagination { margin-top: 3.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 500; }
.page-numbers.current { background: var(--c-navy); color: var(--c-paper); border-color: var(--c-navy); }
.page-numbers:hover:not(.current) { border-color: var(--c-navy); }

/* ---------- Skjema ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--c-ink);
	padding: .8rem 1rem; border: 1.5px solid var(--c-line); border-radius: var(--radius);
	background: var(--c-white); transition: border-color .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(232, 163, 61, .35); }
label { font-weight: 500; font-size: .9375rem; }

.search-form { display: flex; max-width: 32rem; margin-block: 1.5rem; }
.search-form__field { border-radius: 999px 0 0 999px !important; border-right: 0 !important; }
.search-form__submit { display: grid; place-items: center; padding: 0 1.25rem; border: 0; border-radius: 0 999px 999px 0; background: var(--c-navy); color: var(--c-paper); cursor: pointer; }
.search-form__submit:hover { background: var(--c-navy-2); }

/* Kommentarar */
.comments-wrap { padding-bottom: var(--section); }
.comments { border-top: 1px solid var(--c-line); padding-top: 2.5rem; }
.comments__title, .comment-reply-title { font-size: 2rem; color: var(--c-navy); }
.comment-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; border-left: 2px solid var(--c-line); }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .875rem; color: var(--c-muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; }

/* Widgetar */
.widget { margin-bottom: 2.5rem; }
.widget__title { font-size: 1.5rem; color: var(--c-navy); }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--c-line); }

.empty { padding-block: 1rem; }

/* ---------- Forum (bbPress) ---------- */
.forum #bbpress-forums { font-size: 1rem; }
.forum #bbpress-forums ul.bbp-forums,
.forum #bbpress-forums ul.bbp-topics,
.forum #bbpress-forums ul.bbp-replies,
.forum #bbpress-forums ul.bbp-lead-topic { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); }
.forum #bbpress-forums li.bbp-header { background: var(--c-navy); color: var(--c-paper); border: 0; padding: .9rem 1.25rem; font-weight: 600; }
.forum #bbpress-forums li.bbp-footer { background: var(--c-paper-2); border: 0; }
.forum #bbpress-forums li.bbp-body ul.forum,
.forum #bbpress-forums li.bbp-body ul.topic { padding: 1rem 1.25rem; border-top: 1px solid var(--c-line); }
.forum #bbpress-forums .bbp-forum-title,
.forum #bbpress-forums .bbp-topic-permalink { font-weight: 600; font-size: 1.0625rem; color: var(--c-navy); text-decoration: none; }
.forum #bbpress-forums div.odd, .forum #bbpress-forums ul.odd { background: var(--c-white); }
.forum #bbpress-forums div.even, .forum #bbpress-forums ul.even { background: var(--c-paper); }
.forum #bbpress-forums div.bbp-reply-header, .forum #bbpress-forums div.bbp-topic-header { background: var(--c-paper-2); border-top: 1px solid var(--c-line); }
.forum #bbpress-forums .bbp-breadcrumb { font-size: .9375rem; margin-bottom: 1.25rem; }
.forum #bbpress-forums fieldset.bbp-form { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--c-white); }
.forum #bbpress-forums fieldset.bbp-form legend { font-family: var(--f-display); font-size: 1.5rem; color: var(--c-navy); padding: 0 .5rem; }
.forum #bbpress-forums .bbp-submit-wrapper button { background: var(--c-navy); color: var(--c-paper); border-radius: 999px; padding: .8em 1.4em; border: 0; font-weight: 600; }
.forum .bbp-pagination-links a, .forum .bbp-pagination-links span.current { border-radius: 999px; }

/* ---------- Botn ---------- */
.site-footer { background: var(--c-night); color: var(--c-on-dark-muted); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .9688rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand p { margin-top: 1rem; max-width: 22rem; }
.site-footer__title { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--c-on-dark); margin-bottom: 1rem; letter-spacing: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { padding: .25rem 0; }
.footer__links a { color: var(--c-on-dark-muted); text-decoration: none; }
.footer__links a:hover { color: var(--c-accent); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-size: .875rem; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--c-line-dark); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: inherit; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Utskrift ---------- */
@media print {
	.site-header, .site-footer, .contours, .hero__actions { display: none !important; }
	.hero, .page-head, .feature { background: none !important; color: #000 !important; min-height: 0; }
}
.page-head .contours__summit { display: none; }

/* ---------- Omniboard ---------- */
.omni { background: var(--c-paper); }
.omni__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.omni__icon {
	display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.5rem;
	border-radius: 50%; background: var(--c-navy); color: var(--c-accent);
}
.omni__icon .icon { width: 30px; height: 30px; }
.omni .section__title { margin-bottom: .4em; }
.omni__lead { font-size: 1.125rem; max-width: 30rem; }
.omni__for { margin: 1.75rem 0 .35rem; font-size: .875rem; font-weight: 600; color: var(--c-navy); }
.omni__segments { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; color: var(--c-muted); font-size: .9688rem; }
.omni__segments li:not(:last-child)::after { content: ","; margin-right: .35em; }
.omni__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.omni__mail { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--c-navy); text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.omni__mail .icon { width: 1.25em; height: 1.25em; }

/* Teikna infoskjerm. Storleikar i cqw, så alt skalerer med skjermen. */
.screen { container-type: inline-size; position: relative; max-width: 640px; margin-inline: auto; }
.screen__display {
	aspect-ratio: 16 / 10;
	display: grid; gap: 1.6cqw; padding: 1.8cqw;
	grid-template-columns: 1.15fr 1fr .9fr 1.15fr;
	grid-template-rows: 1fr 1fr .75fr;
	grid-template-areas:
		"welcome welcome clock cal"
		"welcome welcome image cal"
		"note    note    image cal";
	background: var(--c-night);
	border: 1.6cqw solid #0a1220;
	border-bottom-width: 4.4cqw;
	border-radius: 2.4cqw;
	box-shadow: 0 2.5cqw 5cqw rgba(12, 22, 40, .22);
}
.screen__pages { position: absolute; left: 0; right: 0; top: calc(100cqw / 16 * 10 - 3.2cqw); display: flex; justify-content: center; gap: 1cqw; }
.screen__pages span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: rgba(236, 230, 217, .3); }
.screen__pages span.is-active { background: var(--c-accent); width: 3cqw; border-radius: 1cqw; }
.screen__stand { width: 18%; height: 4cqw; margin: 0 auto; background: linear-gradient(#0a1220, #1b2433); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.screen__stand::after { content: ""; display: block; }

.tile { position: relative; overflow: hidden; border-radius: 1.2cqw; padding: 2cqw; display: flex; flex-direction: column; gap: .6cqw; color: var(--c-on-dark); font-size: 1.9cqw; line-height: 1.3; }
.tile__kicker { font-size: 1.6cqw; font-weight: 600; opacity: .75; }
.tile__big { font-family: var(--f-display); font-weight: 400; font-size: 7cqw; line-height: 1; }
.tile__small { font-size: 1.8cqw; }
.tile--welcome { grid-area: welcome; background: var(--c-accent); color: var(--c-night); justify-content: flex-end; }
.tile--clock { grid-area: clock; background: var(--c-navy-2); justify-content: center; align-items: center; text-align: center; }
.tile__time { font-family: var(--f-display); font-weight: 400; font-size: 5.6cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.tile--cal { grid-area: cal; background: var(--c-paper); color: var(--c-ink); }
.tile--cal ul { list-style: none; margin: .4cqw 0 0; padding: 0; }
.tile--cal li { padding: .9cqw 0; border-top: 1px solid var(--c-line); }
.tile--cal b { display: block; font-size: 1.6cqw; color: var(--c-accent-dark); }
.tile--image { grid-area: image; background: var(--c-navy); padding: 0; }
.tile__lines path { opacity: .55; }
.tile--note { grid-area: note; background: var(--c-navy-2); justify-content: center; }

.omni__features { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.omni__feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: .9rem; }
.omni__feature-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--c-navy); color: var(--c-navy); }
.omni__feature-icon .icon { width: 20px; height: 20px; }
.omni__feature-name { font-weight: 600; color: var(--c-navy); line-height: 1.4; }
.omni__feature-text { color: var(--c-muted); font-size: .9375rem; line-height: 1.55; }

@media (max-width: 980px) { .omni__grid { grid-template-columns: 1fr; } .screen { margin-inline: 0; } }
@media (max-width: 560px) { .omni__features { grid-template-columns: 1fr; } }
