:root {
	color-scheme: dark;
	--ink: #171a17;
	--ink-soft: #202520;
	--paper: #e8e6d9;
	--muted: #b6b9a9;
	--acid: #c7d47c;
	--rust: #cf765b;
	--line: rgba(232, 230, 217, .18);
	--serif: "Literata", Georgia, serif;
	--sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.75;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 10;
	padding: 8px 12px;
	background: var(--acid);
	color: var(--ink);
}
.skip-link:focus { top: 12px; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 70px;
	padding: 0 max(5vw, 24px);
	background: rgba(23, 26, 23, .96);
	border-bottom: 1px solid var(--line);
}
.brand-group { display: inline-flex; align-items: center; gap: 14px; }
.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--paper);
	text-decoration: none;
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 700;
	white-space: nowrap;
}
.wordmark-mark {
	display: grid;
	width: 32px;
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid var(--acid);
	color: var(--acid);
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0;
}
.wordmark small {
	display: block;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
}
.discord-link {
	--discord-background: #5865f2;
	display: grid;
	width: 42px;
	flex: 0 0 42px;
	aspect-ratio: 1;
	place-items: center;
	background: var(--discord-background);
	color: #fff;
	transition: background .18s ease, transform .18s ease;
}
.discord-link:hover { --discord-background: #4752c4; transform: translateY(-2px); }
.discord-link svg { width: 25px; height: 25px; fill: currentColor; }
.menu-toggle { display: none; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.main-nav a {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: color .18s ease;
}
.main-nav a:hover { color: var(--acid); }
.main-nav a.active {
	padding: 8px 13px;
	border: 1px solid var(--acid);
	color: var(--acid);
}
.nav-account { display: inline-flex; align-items: center; gap: 12px; }
.nav-account-name { max-width: 150px; overflow: hidden; color: var(--paper); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-account form { margin: 0; }
.nav-logout { padding: 0; border: 0; background: transparent; color: var(--rust); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.nav-logout:hover { color: var(--acid); }
.hero {
	position: relative;
	display: flex;
	min-height: min(700px, calc(100svh - 70px));
	align-items: flex-end;
	overflow: hidden;
	background-color: #303a30;
	background-image: url("../Img_Univers/Eckume.png");
	background-position: center 9%;
	background-size: cover;
}
.hero::before {
	position: absolute;
	inset: 0;
	background: rgba(15, 20, 16, .62);
	content: "";
}
.hero-content {
	position: relative;
	width: min(1120px, 100%);
	margin: 0 auto;
	padding: 100px 36px 72px;
	animation: arrive .7s ease-out both;
}
.eyebrow {
	margin: 0 0 18px;
	color: var(--acid);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.hero h1 {
	max-width: none;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(48px, 8vw, 94px);
	font-weight: 600;
	line-height: 1.02;
	white-space: nowrap;
}
.hero h1 span { color: var(--acid); }
.hero-copy { max-width: none; margin: 24px 0 0; color: #eeede4; font-size: 17px; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid var(--acid);
	background: var(--acid);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}
.button:hover { background: transparent; color: var(--acid); }
.button-outline { background: transparent; color: var(--paper); border-color: rgba(232, 230, 217, .55); }
.button-outline:hover { border-color: var(--acid); color: var(--acid); }
.hero-caption {
	position: absolute;
	right: max(5vw, 24px);
	bottom: 24px;
	color: rgba(232, 230, 217, .72);
	font-size: 10px;
}
.quick-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-bottom: 1px solid var(--line);
	background: var(--ink-soft);
}
.quick-facts div { padding: 21px 24px; text-align: center; border-right: 1px solid var(--line); }
.quick-facts div:last-child { border-right: 0; }
.quick-facts strong { display: block; color: var(--acid); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.quick-facts span { color: var(--muted); font-size: 11px; }
.content-width { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 45px; }
.section-heading h1, .section-heading h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 500;
	line-height: 1.15;
}
.section-heading p { margin: 15px 0 0; color: var(--muted); }
.section-index { display: block; margin-bottom: 11px; color: var(--rust); font-size: 11px; font-weight: 700; }
.lore-section { background: #1c211c; }
.rules-page-section { background: #1c211c; }
.rules-page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.rules-page-heading { grid-column: 1 / -1; margin-bottom: 44px; }
.rules-subnav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: sticky;
	top: 100px;
	padding: 0 0 0 16px;
	border-left: 1px solid var(--line);
}
.rules-subnav a { padding: 7px 0; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; text-underline-offset: 4px; }
.rules-subnav a:hover, .rules-subnav a:focus-visible { color: var(--acid); text-decoration: underline; }
.rules-subnav-group, .rules-subnav-children { display: flex; flex-direction: column; gap: 8px; }
.rules-subnav-children { padding-left: 12px; border-left: 1px solid var(--line); }
.rules-subnav-children a { font-size: 11px; }
.rules-subnav-group summary { padding: 7px 0; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; line-height: 1.5; list-style: none; }
.rules-subnav-group summary::-webkit-details-marker { display: none; }
.rules-subnav-group summary::before { display: inline-block; width: 14px; color: var(--rust); content: "+"; }
.rules-subnav-group[open] > summary::before { content: "−"; }
details.rules-subnav-group:not([open]) > .rules-subnav-children { display: none; }
.rules-subnav-group .rules-subnav-children { gap: 5px; }
.rules-page-content { min-width: 0; }
.rules-page-content section { padding: 0 0 54px; margin: 0 0 54px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.rules-page-content section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.rules-page-content h2 { margin: 0 0 16px; color: var(--paper); font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 500; line-height: 1.2; }
.rules-page-content h3 { margin: 32px 0 12px; color: var(--acid); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.rules-page-content p { margin: 0 0 16px; color: var(--muted); }
.rules-page-content p strong { color: var(--paper); font-weight: 600; }
.combat-subsection { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.combat-subsection:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.combat-subsection h4, .combat-action-group h4 { margin: 22px 0 9px; color: var(--acid); font-size: 13px; font-weight: 700; }
.combat-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.combat-action-group { padding-top: 4px; border-top: 1px solid var(--line); }
.combat-action-group ul { padding-left: 19px; margin: 0; color: var(--muted); }
.combat-action-group li { padding-left: 3px; margin: 9px 0; }
.combat-action-group li::marker { color: var(--rust); }
.combat-action-group strong { color: var(--paper); }
.skill-filters { padding: 16px; margin: 28px 0 12px; border: 1px solid var(--line); }
.skill-filters legend { padding: 0 8px; color: var(--paper); font-size: 13px; font-weight: 700; }
.skill-filter-options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.skill-filter-options label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }
.skill-filter-options input { width: 16px; height: 16px; accent-color: var(--acid); }
.skill-filter-status { min-height: 24px; color: var(--rust) !important; font-size: 12px; }
.skill-category { margin-top: 40px; scroll-margin-top: 130px; }
.skill-category h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 28px; padding: 0; margin: 0; list-style: none; }
.skill-entry { padding: 15px 0; border-bottom: 1px solid var(--line); }
.skill-entry h4 { margin: 0 0 5px; color: var(--paper); font-size: 14px; font-weight: 700; }
.skill-entry h4 span { color: var(--acid); font-size: 11px; font-weight: 600; }
.skill-entry p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.skill-entry .skill-note { margin-top: 6px; color: var(--rust); font-size: 11px; }
.skill-empty { padding: 18px 0; }
.characteristic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; }
.characteristic-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.characteristic-list dt { color: var(--paper); font-weight: 700; }
.characteristic-list dt span { color: var(--acid); }
.characteristic-list dd { margin: 5px 0 0; color: var(--muted); }
.rules-coming-soon { min-height: 90px; }
.lore-content { max-width: 820px; margin: 0 auto; }
.lore-content h2 {
	margin: 56px 0 16px;
	color: var(--paper);
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 500;
	line-height: 1.2;
}
.lore-content h2:first-child { margin-top: 0; }
.lore-content h3 {
	margin: 28px 0 10px;
	color: var(--acid);
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
}
.lore-content p { margin: 0 0 16px; color: var(--muted); }
.lore-content p:last-child { margin-bottom: 0; color: var(--paper); }
.lore-illustration { margin: 28px 0 34px; }
.lore-illustration img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #303a30; }
.lore-illustration figcaption { margin-top: 8px; color: var(--rust); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.factions-section { background: #1c211c; }
.faction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.faction-card { padding: 30px; background: var(--ink-soft); }
.faction-number { display: block; margin-bottom: 12px; color: var(--rust); font-size: 11px; font-weight: 700; }
.faction-card h2 { margin: 0 0 18px; color: var(--paper); font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 500; line-height: 1.15; }
.faction-gallery { margin: 0 0 24px; }
.faction-gallery > img { display: block; height: 300px; width: auto; max-width: 100%; object-fit: contain; background: #303a30; cursor: default; }
.faction-gallery details { margin-top: 10px; }
.faction-gallery summary { width: fit-content; color: var(--acid); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.faction-gallery summary::-webkit-details-marker { display: none; }
.faction-gallery summary::before { content: "+"; display: inline-block; margin-right: 7px; }
.faction-gallery details[open] summary::before { content: "−"; }
.faction-gallery-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.faction-gallery-more img { display: block; height: 92px; width: auto; max-width: 100%; object-fit: contain; background: #303a30; cursor: pointer; }
.faction-card h3 { margin: 25px 0 7px; color: var(--acid); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.faction-card p, .faction-card li { color: var(--muted); }
.faction-card p { margin: 0 0 13px; }
.faction-card .faction-lead { color: var(--paper); }
.faction-card strong { color: var(--paper); font-weight: 600; }
.faction-card ul { margin: 0; padding-left: 20px; }
.faction-card li { padding-left: 4px; margin: 7px 0; }
.faction-card li::marker { color: var(--rust); }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.intro-item { padding: 23px 0 26px; border-top: 1px solid var(--line); }
.intro-item h3, .rule-block h3 { margin: 0 0 8px; color: var(--acid); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.intro-item p, .rule-block p { margin: 0; color: var(--muted); }
.intro-item strong, .rule-block strong { color: var(--paper); font-weight: 600; }
.note-link { color: var(--acid); text-underline-offset: 3px; }
.rules-section { background: #1c211c; }
.rules-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
.rules-aside { position: sticky; top: 112px; }
.rules-aside h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 1.1; }
.rules-aside p { color: var(--muted); }
.rule-block { padding: 0 0 27px 20px; margin: 0 0 27px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-block:last-child { margin-bottom: 0; }
.rule-block h3 { color: var(--paper); }
.rule-block p + p { margin-top: 12px; }
.rule-block ul { margin: 13px 0 0; padding-left: 20px; color: var(--muted); }
.rule-block li { padding-left: 4px; margin: 5px 0; }
.rule-block li::marker { color: var(--rust); }
.example {
	padding: 12px 16px;
	margin: 15px 0 0;
	border-left: 2px solid var(--rust);
	background: rgba(207, 118, 91, .08);
	color: var(--paper);
	font-family: var(--serif);
	font-style: italic;
}
.warning { color: var(--rust) !important; font-weight: 700; }
.closing {
	padding: 94px 24px 100px;
	background: #282c23;
	text-align: center;
}
.closing-inner { max-width: 760px; margin: 0 auto; }
.closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(37px, 6vw, 62px); font-weight: 500; line-height: 1.12; }
.closing p { max-width: 620px; margin: 19px auto 0; color: var(--muted); }
.closing .hero-actions { justify-content: center; }
.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
	padding: 22px max(5vw, 24px);
	color: var(--muted);
	font-size: 11px;
}
.site-footer a { color: var(--acid); text-underline-offset: 3px; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
	.site-header { min-height: 64px; padding: 0 18px; }
	.menu-toggle {
		display: grid;
		width: 38px;
		height: 38px;
		place-content: center;
		gap: 5px;
		padding: 8px;
		border: 1px solid var(--line);
		background: transparent;
		color: var(--paper);
		cursor: pointer;
	}
	.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
	.menu-toggle[aria-expanded="true"] { border-color: var(--acid); color: var(--acid); }
	.main-nav {
		position: absolute;
		top: 100%;
		right: 18px;
		left: 18px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 10px;
		background: rgba(23, 26, 23, .98);
		border: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
	}
	.main-nav.is-open { display: flex; }
	.main-nav a { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
	.main-nav a.active { padding: 10px 12px; }
	.nav-account { justify-content: space-between; padding: 10px 12px; }
	.hero { min-height: 575px; min-height: min(575px, calc(100svh - 64px)); }
	.hero-content { padding: 85px 24px 76px; }
	.hero h1 { max-width: 100%; font-size: 40px; white-space: normal; overflow-wrap: break-word; }
	.hero-copy { max-width: 540px; font-size: 15px; white-space: normal; }
	.quick-facts { grid-template-columns: repeat(2, 1fr); }
	.quick-facts div:nth-child(2) { border-right: 0; }
	.quick-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.quick-facts div { padding: 15px 12px; }
	.section { padding: 68px 0; }
	.intro-grid { grid-template-columns: 1fr; gap: 0; }
	.faction-grid { grid-template-columns: 1fr; }
	.faction-card { padding: 24px; }
	.faction-gallery > img { height: 260px; }
	.faction-gallery-more img { height: 82px; }
	.rules-layout { grid-template-columns: 1fr; gap: 32px; }
	.rules-aside { position: static; }
	.rules-page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rules-page-heading { margin-bottom: 28px; }
	.rules-subnav {
		top: 64px;
		z-index: 4;
		flex-direction: row;
		gap: 0 18px;
		width: calc(100vw - 36px);
		margin: 0 0 34px calc((100vw - 100%) / -2);
		padding: 8px 18px;
		overflow-x: auto;
		border: 0;
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		background: rgba(28, 33, 28, .98);
		white-space: nowrap;
	}
	.rules-subnav a { flex: 0 0 auto; padding: 7px 0; }
	.rules-subnav-group { flex-direction: row; align-items: center; gap: 14px; }
	.rules-subnav-children { flex-direction: row; gap: 16px; padding-left: 12px; }
	.rules-subnav-group summary { flex: 0 0 auto; }
	.rules-subnav-group .rules-subnav-children { gap: 16px; }
	.characteristic-list { grid-template-columns: 1fr; }
	.combat-action-grid { grid-template-columns: 1fr; gap: 20px; }
	.skill-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.wordmark { gap: 8px; font-size: 16px; }
	.wordmark-mark { width: 28px; }
	.main-nav { gap: 10px; }
	.main-nav a.active { padding: 6px 8px; }
	.content-width { width: calc(100% - 36px); }
	.hero h1 { font-size: 36px; }
	.hero-caption { display: none; }
}
