/*
Theme Name: Burning Umbrellas 2026
Theme URI: https://burningumbrellas.se
Author: Jonas Nordström
Description: Skräddarsytt tema för burningumbrellas.se. Ensidig startsida plus blogg. Inget byggsteg, ingen jQuery, självhostat typsnitt.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bu2026
*/

/* ---------- Tokens ---------- */

@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--red: #dc0000;          /* logotypens röda */
	--red-deep: #b80000;
	--red-hi: #ff4f42;       /* röd för liten text på mörk botten (kontrast) */
	--ink: #120e0e;
	--ink-2: #1b1515;
	--line: #352a2a;
	--text: #f5f0ed;
	--muted: #b5aaa6;
	--white: #fff;

	--font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4.5rem, 10vw, 8.5rem);
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: .2em; }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	font-weight: 800;
	line-height: 1.12;
	text-wrap: balance;
}

p { margin: 0 0 1.2em; }

:focus-visible {
	outline: 3px solid var(--white);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--red); color: var(--white); }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: .75rem; left: .75rem;
	z-index: 100;
	width: auto; height: auto;
	clip-path: none;
	padding: .75rem 1rem;
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
}

/* Etikett i samma spärrade versaler som "UMBRELLAS" i logotypen */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 2rem;
	color: var(--red-hi);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: var(--red);
}

.btn {
	display: inline-block;
	padding: .95rem 1.7rem;
	border: 2px solid var(--white);
	border-radius: 999px;
	background: var(--white);
	color: var(--red);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s, color .15s;
}

.btn:hover { background: transparent; color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--red); }

/* ---------- Header ---------- */

.site-header {
	border-bottom: 1px solid var(--line);
}

.home .site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 10;
	border: 0;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	color: var(--white);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .2em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-brand svg {
	width: auto;
	height: 2.4rem;
	color: var(--red);
}

/* På startsidan bär hjälten logotypen; här räcker en vit symbol. */
.home .site-brand svg { color: var(--white); }
.home .site-brand span { display: none; }

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .25rem clamp(.9rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: .4rem 0;
	color: var(--white);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-decoration: none;
	text-transform: uppercase;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size .2s;
}

.site-nav a:hover { background-size: 100% 2px; }

@media (max-width: 30rem) {
	.site-brand span { display: none; }
	.site-nav a { font-size: .72rem; letter-spacing: .08em; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(100svh, 56rem);
	padding: 7rem var(--gutter) 6rem;
	overflow: hidden;
	background: var(--red);
	color: var(--white);
	text-align: center;
}

.hero__logo svg {
	display: block;
	width: clamp(15rem, 32vw, 25rem);
	height: auto;
	margin-inline: auto;
}

.hero__tagline {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	font-size: clamp(.8rem, 1.4vw, 1rem);
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .9rem;
	margin-top: 2.25rem;
}

.hero__scroll {
	position: absolute;
	bottom: 1.75rem;
	left: 50%;
	width: 2px;
	height: 2.75rem;
	background: linear-gradient(var(--white), transparent);
	opacity: .7;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.section + .section { border-top: 1px solid var(--line); }

.section__title {
	max-width: 18ch;
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -.01em;
}

/* Om oss */
.about__grid {
	display: grid;
	gap: 2rem clamp(2rem, 6vw, 5rem);
}

.about__lead {
	margin: 0;
	font-size: clamp(1.6rem, 3.6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-wrap: balance;
}

.about__lead em {
	color: var(--red-hi);
	font-style: normal;
}

.about__body {
	max-width: 34rem;
	color: var(--muted);
}

.about__body p:last-child { margin: 0; }

@media (min-width: 60rem) {
	.about__grid { grid-template-columns: 1.5fr 1fr; align-items: end; }
}

/* Tjänster */
.services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.service {
	padding: 1.75rem 1.5rem 2rem;
	border-top: 3px solid var(--red);
	background: var(--ink-2);
}

.service__no {
	display: block;
	margin-bottom: 2.5rem;
	color: var(--red-hi);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .2em;
}

.service h3 {
	font-size: 1.3rem;
	letter-spacing: .02em;
}

.service p {
	margin: 0;
	color: var(--muted);
	font-size: .98rem;
}

/* Kunder */
.clients__list {
	display: flex;
	flex-wrap: wrap;
	gap: .2em 1.1em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: clamp(1.9rem, 6.2vw, 4.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.clients__list li:nth-child(even) { color: #7f716d; }

/* Blogg på startsidan + arkiv */
.posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem 1.5rem;
	background: var(--ink-2);
	border-top: 3px solid var(--line);
	text-decoration: none;
	transition: border-color .15s;
}

.post-card:hover { border-color: var(--red); }

.post-card time,
.entry__meta {
	color: var(--red-hi);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.post-card h3 {
	margin: 1rem 0 .75rem;
	font-size: 1.3rem;
}

.post-card p {
	margin: 0;
	color: var(--muted);
	font-size: .98rem;
}

/* Kontakt */
.contact {
	position: relative;
	overflow: hidden;
	padding-block: var(--section);
	background: var(--red);
	color: var(--white);
}

.contact .eyebrow { color: var(--white); }
.contact .eyebrow::before { background: var(--white); }

.contact__mark {
	position: absolute;
	right: -3rem;
	bottom: -6rem;
	width: auto;
	height: 125%;
	max-width: none;
	color: var(--red-deep);
	opacity: .55;
	pointer-events: none;
}

.contact__inner { position: relative; }

.contact__title {
	max-width: 16ch;
	margin-bottom: .5em;
	font-size: clamp(2.25rem, 6.5vw, 4.75rem);
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.contact__lead {
	max-width: 32rem;
	margin-bottom: 2.5rem;
	font-size: 1.15rem;
	font-weight: 500;
}

.contact__card {
	display: grid;
	gap: .15rem;
	font-style: normal;
}

.contact__name {
	margin-bottom: .4rem;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.contact__card a {
	width: fit-content;
	font-size: clamp(1.25rem, 3.2vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
	text-decoration-thickness: 2px;
	text-decoration-color: rgb(255 255 255 / .45);
	transition: text-decoration-color .15s;
}

.contact__card a:hover { text-decoration-color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
	padding-block: 2.5rem;
	color: var(--muted);
	font-size: .85rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.site-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
}

.site-footer svg {
	width: auto;
	height: 2rem;
	color: var(--red);
}

.site-footer p { margin: 0; }

/* ---------- Blogg, inlägg och sidor ---------- */

.page-head {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2.1rem, 5.5vw, 3.75rem);
	letter-spacing: -.015em;
}

.page-head .entry__meta { display: block; margin-bottom: 1.25rem; }

.page-body { padding-bottom: var(--section); }

.entry {
	max-width: 44rem;
	font-size: 1.1rem;
}

.entry > * + * { margin-top: 1.4em; }
.entry > * { margin-bottom: 0; }

.entry h2 { margin-top: 2.2em; font-size: 1.75rem; }
.entry h3 { margin-top: 2em; font-size: 1.35rem; }

.entry a { color: var(--red-hi); }
.entry a:hover { color: var(--white); }

.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--red-hi); }

.entry blockquote {
	margin-inline: 0;
	padding: .25rem 0 .25rem 1.5rem;
	border-left: 3px solid var(--red);
	font-size: 1.25rem;
	font-weight: 500;
}

.entry code, .entry pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

.entry :not(pre) > code {
	padding: .15em .4em;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: 3px;
}

.entry pre {
	padding: 1.25rem;
	overflow-x: auto;
	background: var(--ink-2);
	border: 1px solid var(--line);
	line-height: 1.5;
}

.entry figure { margin-inline: 0; }
.entry .wp-caption { max-width: 100%; }
.entry img { display: block; }

.entry figcaption,
.entry .wp-caption-text {
	margin-top: .6rem;
	color: var(--muted);
	font-size: .85rem;
}

.entry hr { height: 1px; border: 0; background: var(--line); }

.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }

.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

.pagination { margin-top: 3rem; }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.pagination .page-numbers {
	min-width: 2.75rem;
	padding: .55rem .9rem;
	border: 1px solid var(--line);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--red);
	background: var(--red);
	color: var(--white);
}

.back-link {
	display: inline-block;
	margin-top: 3.5rem;
	color: var(--text);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.back-link:hover { color: var(--red-hi); }
