/* Low Poly Warlords – spelets webbplats. Mörk läderton, bronsramar och guld som i spelets gränssnitt
   (UiStyle): Cinzel i rubrikerna, guldplatta med mörk text på huvudknappen. Mobilen först. */

:root {
	--bg: #0d0b09;
	--bg-2: #14100c;
	--panel: #1a1510;
	--panel-2: #221b14;
	--bronze: #7d5f38;
	--bronze-light: #a8834e;
	--gold: #d6a85a;
	--gold-bright: #f1cb7c;
	--parchment: #ece1c8;
	--text: #d9ccb2;
	--muted: #a39580;
	--ember: #e2742e;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	--radius: 4px;
	--wrap: 1180px;
	--gutter: 16px;
	--heading: "Cinzel", "Trajan Pro", Georgia, serif;
	--body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: hidden;
}

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

a { color: var(--gold-bright); }
a:hover { color: #fff1cf; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
	position: absolute; left: 12px; top: -48px; z-index: 100;
	padding: 8px 14px; background: var(--gold); color: #1a1208; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--heading); color: var(--parchment); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
	font-family: var(--heading); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 0.7em; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.lead { font-size: 1.15rem; color: var(--parchment); }

/* Knapparna: som spelets – den fyllda huvudknappen i guld med mörk text, de andra i brons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--heading); font-weight: 700; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase;
	padding: 0.85em 1.6em; border-radius: var(--radius); font-size: 0.95rem; line-height: 1.1;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	cursor: pointer; border: 0;
}
.btn-primary {
	color: #1b1208;
	background: linear-gradient(180deg, #f6d792 0%, #d9a957 48%, #b98637 100%);
	box-shadow: inset 0 0 0 1px #fbe3a8, 0 0 0 1px #5b4120, 0 0 0 3px #9c7640, 0 8px 22px rgba(0, 0, 0, 0.45);
	text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6);
}
.btn-primary:hover { color: #120c04; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
	color: var(--parchment);
	background: rgba(20, 15, 10, 0.55);
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.35), 0 0 0 1px #3a2a17, 0 0 0 3px var(--bronze);
	backdrop-filter: blur(2px);
}
.btn-ghost:hover { color: #fff; background: rgba(40, 30, 18, 0.75); }
.btn-large { font-size: 1.05rem; padding: 1em 1.9em; }
.btn-small { font-size: 0.8rem; padding: 0.7em 1.1em; }

/* Sidhuvudet */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	background: linear-gradient(180deg, rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0));
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
	background: rgba(12, 9, 7, 0.94);
	box-shadow: 0 1px 0 rgba(168, 131, 78, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand img { width: 132px; height: auto; }
.nav { display: none; }
.header-cta { margin-left: auto; }
.menu-toggle {
	width: 44px; height: 44px; border: 0; border-radius: var(--radius); cursor: pointer;
	background: rgba(26, 21, 16, 0.85); box-shadow: inset 0 0 0 1px var(--bronze);
	display: grid; place-items: center;
}
.bars, .bars::before, .bars::after {
	display: block; width: 20px; height: 2px; background: var(--gold); position: relative; content: ""; transition: transform 0.2s;
}
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

.menu-open .nav {
	display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
	background: rgba(12, 9, 7, 0.97); padding: 8px var(--gutter) 18px;
	box-shadow: 0 1px 0 rgba(168, 131, 78, 0.35), 0 18px 30px rgba(0, 0, 0, 0.6);
}
.nav a {
	font-family: var(--heading); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--text); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(125, 95, 56, 0.25);
}
.nav a:hover { color: var(--gold-bright); }

/* Hjälten */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 96px 0 56px; }
.hero-art, .band-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art { transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
.hero-shade {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 50% 38%, rgba(13, 11, 9, 0.15), rgba(13, 11, 9, 0.75) 70%),
		linear-gradient(180deg, rgba(13, 11, 9, 0.35) 0%, rgba(13, 11, 9, 0.2) 40%, rgba(13, 11, 9, 0.95) 100%);
}
.hero-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0 0 8px; width: min(88vw, 720px); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8)); }
.hero-kicker {
	font-family: var(--heading); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem;
	color: var(--gold-bright); text-shadow: 0 2px 8px #000; margin-bottom: 14px;
}
.hero-lead { max-width: 640px; font-size: 1.15rem; color: var(--parchment); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 10px 0 30px; }
.hero-facts {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 760px;
	grid-template-columns: 1fr;
}
.hero-facts li {
	background: rgba(16, 12, 9, 0.7); padding: 12px 16px; border-radius: var(--radius);
	box-shadow: inset 0 0 0 1px rgba(168, 131, 78, 0.45); backdrop-filter: blur(3px);
	display: flex; flex-direction: column; gap: 2px;
}
.hero-facts strong { font-family: var(--heading); color: var(--gold-bright); font-size: 0.95rem; letter-spacing: 0.05em; }
.hero-facts span { color: var(--text); font-size: 0.95rem; }

@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

/* Avsnitten */
.section { position: relative; padding: 72px 0; }
.section-head { max-width: 780px; margin-bottom: 36px; }
.section + .section { border-top: 1px solid rgba(125, 95, 56, 0.18); }

/* Berättelsen: fyra kapitel som bildkort – en rad att svepa på telefonen, 2 × 2 på surfplattan och fyra i rad på datorn */
.story { background: radial-gradient(ellipse at 15% 0%, #1d160f 0%, var(--bg) 60%); }
.story-head { margin-bottom: 0; }
.story-head .lead { margin-bottom: 1.2em; }
.chapters {
	list-style: none; margin: 36px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 18px;
	display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: thin;
	scrollbar-color: var(--bronze) transparent;
}
.chapter {
	position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden;
	scroll-snap-align: start; border-radius: var(--radius); background: #120e0a;
	box-shadow: 0 0 0 1px #1d150d, 0 0 0 3px var(--bronze), 0 0 0 4px #3b2b18, var(--shadow);
}
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.chapter::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(13, 11, 9, 0) 25%, rgba(13, 11, 9, 0.78) 58%, rgba(13, 11, 9, 0.97) 100%);
}
.chapter:hover img { transform: scale(1.05); }
.chapter-body { position: relative; z-index: 2; padding: 20px 18px 18px; }
.chapter-num {
	position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
	font-family: var(--heading); font-weight: 900; font-size: 0.82rem; line-height: 1; color: #1b1208;
}
.chapter-num::before {
	content: ""; position: absolute; inset: 4px; z-index: -1; transform: rotate(45deg); border-radius: 3px;
	background: linear-gradient(180deg, #f1cb7c, #b98637); box-shadow: 0 0 0 2px #2b1f12;
}
.chapter-land {
	font-family: var(--heading); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 0.3em;
}
.chapter h3 { font-size: 1.3rem; margin-bottom: 0.35em; text-shadow: 0 2px 10px #000; }
.chapter p:last-child { margin: 0; color: var(--parchment); font-size: 1rem; text-shadow: 0 1px 6px #000; }

.world { background: var(--bg-2); }
/* Kampanjen: tre zoner i fokus – Solpyramiden och havet som breda kort, Kaldrak och the Cinderscar sida vid sida */
.realms { display: grid; gap: 22px; grid-template-columns: 1fr; }
.realm {
	background: var(--panel); border-radius: var(--radius); overflow: hidden; position: relative;
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.18), 0 0 0 1px #2a1f15, var(--shadow);
}
.realm-art { position: relative; }
.realm-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.realm-inset {
	position: absolute; right: 12px; bottom: 12px; width: 44%; margin: 0;
	box-shadow: 0 0 0 1px #1d150d, 0 0 0 3px var(--bronze), 0 0 0 4px #3b2b18, 0 14px 30px rgba(0, 0, 0, 0.7);
	border-radius: 2px; overflow: hidden; transform: rotate(-1.5deg);
}
.realm-inset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.realm-inset figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; text-align: center;
	font-family: var(--heading); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--gold-bright); background: linear-gradient(180deg, transparent, rgba(10, 8, 6, 0.9));
}
.realm-body { position: relative; padding: 34px 18px 20px; }
.realm h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.realm p { color: var(--text); font-size: 1rem; margin-bottom: 0.8em; }
.realm-hint { padding-left: 14px; border-left: 2px solid var(--gold); }
.realm-hint strong, .realm-bonus { color: var(--gold-bright); }
.realm-bonus {
	display: inline-block; font-family: var(--heading); font-weight: 700; font-size: 0.7rem !important; letter-spacing: 0.16em;
	text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 0.9em !important;
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.55); background: rgba(214, 168, 90, 0.08);
}
.realm-sea .realm-body { padding-top: 22px; }
.realm-more { margin: 26px 0 0; color: var(--muted); }
.realm-more strong { color: var(--parchment); }
.zone {
	background: var(--panel); border-radius: var(--radius); overflow: hidden; position: relative;
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.18), 0 0 0 1px #2a1f15, var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zone:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.4), 0 0 0 1px #3a2a17, 0 24px 40px rgba(0, 0, 0, 0.6); }
.zone-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zone-body { position: relative; padding: 34px 18px 18px; }
.medal {
	position: absolute; top: -40px; left: 16px; width: 72px; height: 72px;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}
.zone h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.zone p { color: var(--text); font-size: 1rem; margin-bottom: 0.7em; }
.zone-tag {
	font-family: var(--heading); font-size: 0.72rem !important; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--gold) !important; margin: 0 !important;
}
.world-extras { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.world-extras li {
	padding: 16px 18px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(214, 168, 90, 0.08), transparent);
}
.world-extras strong { color: var(--gold-bright); font-family: var(--heading); font-weight: 700; }

.split { display: grid; gap: 34px; align-items: center; }
.split-text h2 { margin-bottom: 0.45em; }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
	content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; transform: rotate(45deg);
	background: linear-gradient(180deg, #f1cb7c, #b98637); box-shadow: 0 0 0 2px #2b1f12;
}
.ticks strong { color: var(--parchment); }

/* Skärmbilderna i bronsram */
.shot { margin: 0; }
.shot img, .shot-open {
	border-radius: var(--radius);
}
.shot-open {
	display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; position: relative;
	box-shadow: 0 0 0 1px #1d150d, 0 0 0 4px var(--bronze), 0 0 0 5px #3b2b18, var(--shadow);
}
.shot-open::after {
	content: ""; position: absolute; inset: 6px; border: 1px solid rgba(241, 203, 124, 0.25); border-radius: 2px; pointer-events: none;
}
.shot-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #120e0a; }
.device .shot-open img { aspect-ratio: 13 / 6; }
.device-tablet .shot-open img { aspect-ratio: 4 / 3; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.gallery { display: grid; gap: 26px; margin-top: 48px; grid-template-columns: 1fr; }
.gallery .shot > img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover;
	box-shadow: 0 0 0 1px #1d150d, 0 0 0 4px var(--bronze), 0 0 0 5px #3b2b18, var(--shadow); }

.combat { background: radial-gradient(ellipse at 85% 20%, #1f1610 0%, var(--bg) 55%); }

.pvp, .cta-final { overflow: hidden; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 9, 0.92), rgba(13, 11, 9, 0.78) 50%, rgba(13, 11, 9, 0.94)); }
.pvp .wrap, .cta-final .wrap { position: relative; }

.crafting { background: var(--bg-2); }

/* Världsbossarna: en stor bild och ett kort per boss (sista radens kort centreras, också om ett tas bort) */
.world-bosses { background: radial-gradient(ellipse at 80% 10%, #16192a 0%, var(--bg) 55%); }
.wb-feature { margin-bottom: 44px; }
.wb-land {
	font-family: var(--heading); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 0.35em;
}
.wb-title { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.wb-grid {
	display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: 78%;
	margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: thin;
	scrollbar-color: var(--bronze) transparent;
}
.wb-card {
	scroll-snap-align: start; background: var(--panel); border-radius: var(--radius); overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.18), 0 0 0 1px #2a1f15, var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wb-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.4), 0 0 0 1px #3a2a17, 0 24px 40px rgba(0, 0, 0, 0.6); }
.wb-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #120e0a; }
.wb-body { padding: 16px 18px 18px; }
.wb-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.wb-card p:last-child { margin: 0; font-size: 0.98rem; }

/* Bli en draklegend */
.dragons {
	background:
		radial-gradient(ellipse at 85% 85%, rgba(70, 120, 45, 0.14) 0%, transparent 45%),
		radial-gradient(ellipse at 15% 25%, #2a150a 0%, var(--bg) 60%);
}

.professions { background: radial-gradient(ellipse at 10% 100%, #1c150e 0%, var(--bg) 60%); }
.prof-layout { display: grid; gap: 30px; align-items: start; }
.prof-shots { display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.prof-shot-main { grid-column: 1 / -1; }
.prof-shots figcaption { margin-top: 10px; font-size: 0.9rem; font-family: var(--heading); letter-spacing: 0.08em; text-transform: uppercase; }
.prof-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.prof {
	padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel));
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.16), 0 0 0 1px #2a1f15;
}
.prof h3 { color: var(--gold-bright); font-size: 1rem; margin-bottom: 0.3em; }
.prof p { margin: 0; font-size: 0.95rem; }

.anywhere { background: var(--bg-2); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span {
	font-family: var(--heading); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
	padding: 8px 14px; border-radius: 999px; color: var(--gold-bright);
	box-shadow: inset 0 0 0 1px rgba(214, 168, 90, 0.5); background: rgba(214, 168, 90, 0.06);
}

.yours { background: radial-gradient(ellipse at 90% 0%, #1d150f 0%, var(--bg) 60%); }

/* Sista uppmaningen */
.cta-final { position: relative; padding: 110px 0; text-align: center; }
.cta-box { max-width: 760px; }
.cta-box h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.cta-note { color: var(--muted); font-family: var(--heading); letter-spacing: 0.12em; font-size: 0.8rem; text-transform: uppercase; margin: 0; }

.site-footer { background: #090705; padding: 36px 0 44px; border-top: 1px solid rgba(125, 95, 56, 0.3); }
.footer-row { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-row img { width: 180px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-row nav a { color: var(--muted); text-decoration: none; font-family: var(--heading); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-row nav a:hover { color: var(--gold-bright); }
.copyright { color: #7d715f; font-size: 0.9rem; margin: 0; }

/* Bildvisaren */
.lightbox {
	padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 4, 3, 0.88); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: var(--radius);
	box-shadow: 0 0 0 1px #1d150d, 0 0 0 4px var(--bronze), 0 30px 60px rgba(0, 0, 0, 0.7); }
.lightbox-close {
	position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	font-size: 1.6rem; line-height: 1; color: #1b1208; background: linear-gradient(180deg, #f6d792, #b98637); z-index: 2;
	box-shadow: 0 0 0 2px #3a2a17;
}

/* Större skärmar */
/* Heroic Mode: the item boxes – normal, and the heroic version to its right (stacked on narrow phones) */
.heroic-word { color: #ff7a24; }
.heroic-points { display: grid; gap: 4px 34px; margin-top: 8px; }
.loot-compare { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 34px; align-items: start; }
.loot-card { margin: 0; }
.loot-card img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
	background: #120e0a; }
.loot-card figcaption { margin-top: 10px; text-align: center; font-family: var(--heading); letter-spacing: 0.08em;
	color: var(--muted); }
.loot-card-heroic img { outline: 1px solid rgba(255, 122, 36, 0.55); }
.loot-card-heroic figcaption { color: #ff7a24; }
@media (min-width: 640px) {
	.loot-compare { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	.heroic-points { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
	.hero-facts { grid-template-columns: repeat(3, 1fr); }
	.chapters {
		grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); gap: 18px;
		margin: 40px 0 0; padding: 0; overflow: visible;
	}
	.realms { grid-template-columns: repeat(2, 1fr); }
	.realm-wide { grid-column: 1 / -1; }
	.realm-inset figcaption { font-size: 0.7rem; }
	.wb-grid {
		grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); gap: 20px;
		margin: 0; padding: 0; overflow: visible;
	}
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.prof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	:root { --gutter: 28px; }
	.section { padding: 110px 0; }
	.split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
	.split-reverse .shot { order: 2; }
	.shot-tilt .shot-open { transform: perspective(1400px) rotateY(4deg); }
	.shot-tilt-left .shot-open { transform: perspective(1400px) rotateY(-4deg); }
	.shot-tilt .shot-open:hover, .shot-tilt-left .shot-open:hover { transform: none; }
	.shot-open { transition: transform 0.35s ease; }
	/* De breda korten: bilden till vänster, texten till höger (havet tvärtom) */
	.realm-wide { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
	.realm-wide .realm-art, .realm-wide .realm-main { height: 100%; }
	.realm-wide .realm-main { aspect-ratio: auto; min-height: 340px; }
	.realm-wide .realm-body { padding: 34px 34px 30px; align-self: center; }
	.realm-wide .medal { position: static; margin: 0 0 12px; }
	.realm-sea { grid-template-columns: 1fr 1.25fr; }
	.realm-sea .realm-art { order: 2; }
	.realm-sea .realm-inset { right: auto; left: 16px; transform: rotate(1.5deg); }
	.realm-inset { right: 18px; bottom: 18px; width: 42%; }
	.wb-grid { grid-template-columns: repeat(6, 1fr); }
	.wb-card { grid-column: span 2; }
	.wb-card:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
	.wb-card:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.gallery-two { grid-template-columns: repeat(2, 1fr); }
	.prof-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
	.world-extras { grid-template-columns: repeat(3, 1fr); }
	.footer-row { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; }
	.footer-row nav { justify-content: center; }
}

@media (min-width: 1000px) {
	.chapters { grid-template-columns: repeat(4, 1fr); }
	.chapter { min-height: 430px; }
}

/* Menyn i sidhuvudet: tio länkar får plats först här (sidhuvudet lite bredare än innehållet) */
@media (min-width: 1320px) {
	.site-header .wrap { max-width: 1400px; }
	.menu-toggle { display: none; }
	.nav {
		display: flex; gap: 18px; margin-left: 24px;
	}
	.nav a { border: 0; padding: 6px 0; font-size: 0.76rem; position: relative; }
	.nav a::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
		transform: scaleX(0); transition: transform 0.2s ease;
	}
	.nav a:hover::after { transform: scaleX(1); }
	.brand img { width: 150px; }
	.header-row { height: 72px; }
	.menu-open .nav { position: static; flex-direction: row; background: none; padding: 0; box-shadow: none; }
}

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