/* Elemental Sanctuaries site — palette and type are taken from the game itself. */
@font-face {
	font-family: "Lilita One";
	src: url("/fonts/lilita-one.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("/fonts/nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-display: swap;
}

:root {
	--pine: #173a22;
	--pine-deep: #0f2717;
	--leaf: #f1f8e6;
	--leaf-2: #e2f0cc;
	--meadow: #8ccb3e;
	--meadow-deep: #5f9a1f;
	--sap: #f0a22e;
	--bloom: #2f8fd0;
	--ink: #14261a;
	--ink-soft: #3f5546;
	--frost: #7fd3f2;
	--water: #2bb5b0;
	--fire: #ef6a2c;
	--radius-lg: 28px;
	--radius-sm: 12px;
	--measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--leaf);
	color: var(--ink);
	font: 400 1.0625rem/1.65 "Nunito", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--bloom); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--sap); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sap); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; margin: 0; }

/* Header bar */
.bar {
	background: var(--pine);
	color: var(--leaf);
}
.bar__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--leaf); text-decoration: none; font-family: "Lilita One", sans-serif; font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; }
.bar nav { display: flex; gap: 1.25rem; font-weight: 700; }
.bar nav a { color: var(--leaf); text-decoration: none; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current="page"] { border-bottom-color: var(--meadow); color: #fff; }

/* Home hero: the guardian, its home, and the winding trail to the four sanctuaries */
.hero {
	max-width: 1120px;
	margin: 0 auto;
	padding: 3.5rem 1.25rem 2rem;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); color: var(--pine); }
.hero__lede { font-size: 1.25rem; max-width: 34ch; color: var(--ink-soft); margin: 1.1rem 0 1.6rem; }
.hero__status { display: inline-block; font-weight: 800; color: var(--pine); background: var(--leaf-2); border: 2px solid var(--pine); border-radius: 999px; padding: 0.35rem 1rem; }
.hero__art { position: relative; aspect-ratio: 1 / 1; }
.hero__art img { position: absolute; height: auto; filter: drop-shadow(0 10px 0 rgba(23, 58, 34, 0.12)); }
.hero__home { width: 74%; right: 0; bottom: 4%; }
.hero__guardian { width: 46%; left: 2%; bottom: 0; }

.trail-section { max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
.trail-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--pine); max-width: 22ch; }
.trail-section > p { max-width: var(--measure); color: var(--ink-soft); }

.trail { position: relative; margin-top: 2.5rem; }
.trail svg.path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.trail svg.path path { fill: none; stroke: #c9a26a; stroke-width: 26; stroke-linecap: round; }
.trail svg.path path.dots { stroke: #a7824d; stroke-width: 4; stroke-dasharray: 2 16; }
.stops { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stop { text-align: center; }
.stop:nth-child(even) { margin-top: 5.5rem; }
.emblem {
	width: 112px; height: 112px; margin: 0 auto 0.9rem;
	border-radius: 50%;
	display: grid; place-items: center;
	border: 5px solid var(--pine);
	background: var(--leaf);
	box-shadow: 0 6px 0 var(--pine);
}
.emblem svg { width: 58px; height: 58px; }
.stop h3 { font-size: 1.6rem; color: var(--pine); }
.stop p { margin: 0.25rem auto 0; max-width: 22ch; color: var(--ink-soft); font-size: 0.98rem; }
.tag { display: inline-block; margin-top: 0.5rem; font-weight: 800; font-size: 0.9rem; padding: 0.15rem 0.7rem; border-radius: 999px; border: 2px solid currentColor; }
.tag--free { color: var(--meadow-deep); }
.tag--paid { color: var(--ink-soft); }

.facts {
	background: var(--pine);
	color: var(--leaf);
}
.facts__inner { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.facts h3 { font-size: 1.45rem; color: #fff; margin-bottom: 0.4rem; }
.facts p { margin: 0; color: #d6e8cf; }

/* Document pages (privacy, support) */
.doc { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem 4rem; display: grid; grid-template-columns: 220px minmax(0, var(--measure)); gap: 3rem; }
.doc__title { grid-column: 1 / -1; }
.doc__title h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); color: var(--pine); }
.doc__title p { color: var(--ink-soft); margin: 0.6rem 0 0; }
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: 0.95rem; }
.toc h2 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.3rem 0; }
.toc a { color: var(--pine); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { font-size: 1.7rem; color: var(--pine); margin: 2.4rem 0 0.6rem; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul { padding-left: 1.2rem; }
.summary { background: var(--leaf-2); border: 3px solid var(--pine); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; }
.summary p { margin: 0.4rem 0 0; }
.summary strong { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.25rem; color: var(--pine); }

.mail {
	display: inline-flex; align-items: center; gap: 0.6rem;
	background: var(--meadow); color: var(--pine-deep);
	font-weight: 900; font-size: 1.15rem; text-decoration: none;
	padding: 0.8rem 1.4rem; border-radius: 999px;
	border: 3px solid var(--pine); box-shadow: 0 5px 0 var(--pine);
}
.mail:hover { background: #9fdb4f; color: var(--pine-deep); }
.mail:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pine); }

.faq details { border-bottom: 2px solid var(--leaf-2); padding: 0.9rem 0; }
.faq summary { font-weight: 800; cursor: pointer; color: var(--pine); font-size: 1.08rem; }
.faq details p { margin: 0.6rem 0 0; }

footer { background: var(--pine-deep); color: #c9dcc3; }
footer .inner { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.95rem; }
footer a { color: #e8f4e2; }

@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; padding-top: 2rem; }
	.hero__art { max-width: 420px; width: 100%; margin: 0 auto; }
	.stops { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
	.stop:nth-child(even) { margin-top: 3rem; }
	.trail svg.path { display: none; }
	.facts__inner { grid-template-columns: 1fr; }
	.doc { grid-template-columns: 1fr; gap: 1.5rem; }
	.toc { position: static; }
}
@media (max-width: 420px) {
	.bar nav { gap: 0.9rem; font-size: 0.95rem; }
	.brand span { display: none; }
	.emblem { width: 92px; height: 92px; }
}
