/* An open page with game artwork and a useful list of farming selections. */
.homeJournal { padding: 0 var(--gutter) 42px; }
.journalHero
{
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	min-height: 410px;
	border-bottom: 1px solid var(--line-strong);
}
.journalHeroCopy { padding: 28px 35px 35px 4px; align-self: center; }
.journalHero h1 { margin-top: 17px; font-size: clamp(38px, 4.1vw, 76px); color: var(--ink); line-height: 1.07; }
.journalHero h1 em { color: var(--portal); font-style: normal; }
.journalLead { max-width: 36ch; margin-top: 22px; color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; }
.journalHeroText { max-width: 49ch; margin-top: 13px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.journalInventory { margin-top: 18px; color: var(--text-muted); font-size: 12px; }
.journalInventory strong { color: var(--ink); font-weight: bold; }
/* A single composition brings the map, captures, equipment and runes together. */
.journalAtlas { position: relative; display: grid; place-items: center; min-height: 100%; overflow: hidden; }
.journalAtlasMap
{
	position: absolute;
	inset: 0;
	background-position: 60% 54%;
	background-size: 165% auto;
	mix-blend-mode: multiply;
	opacity: .13;
	filter: saturate(.65);
	mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent);
}
.homeHeroScene
{
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 14px 6px;
	width: 100%;
	max-width: 520px;
	height: 370px;
	margin-block: 14px 24px;
}
.homeHeroTheme { position: relative; min-width: 0; }
.homeHeroTheme::before { content: ""; position: absolute; inset: 4% 0 12%; background: radial-gradient(ellipse, var(--hero-halo), transparent 70%); }
.homeHeroTheme img { position: absolute; object-fit: contain; filter: drop-shadow(0 7px 3px #403c2926); }
.homeHeroLabel { position: absolute; inset: auto 0 0; color: var(--ink-soft); font: 700 12px/1.5 var(--body); text-align: center; }
.homeHeroMap { --hero-halo: #c8dfdfb3; }
.homeHeroMapPaper { position: absolute; top: 12%; left: 9%; width: 80%; height: 67%; overflow: hidden; border: 5px solid #fff9e8; border-radius: 5px; background: #e6e2ca; box-shadow: 0 8px 12px #403c2926; transform: rotate(-9deg); }
.homeHeroMapPaper img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 54%; filter: none; }
.homeHeroMapPaper::after { content: ""; position: absolute; top: 42%; left: 54%; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--portal); box-shadow: 0 2px 4px #203a4c33; }
.homeHeroTofu { width: 34%; height: 45%; right: 0; bottom: 13%; transform: rotate(7deg); }
.homeHeroOcre { --hero-halo: #f7dfa199; }
.homeHeroEgg { width: 64%; height: 86%; top: 4%; left: 18%; transform: rotate(11deg); }
.homeHeroEquipment { --hero-halo: #c5dbcd99; }
.homeHeroHat { width: 55%; height: 62%; top: 3%; left: 6%; transform: rotate(-10deg); }
.homeHeroCape { width: 52%; height: 65%; top: 4%; right: 2%; transform: rotate(12deg); }
.homeHeroBoots { width: 35%; height: 38%; bottom: 14%; left: 35%; transform: rotate(-7deg); }
.homeHeroForge { --hero-halo: #e7c69c99; }
.homeHeroSolomonk { width: 72%; height: 64%; top: -2%; left: 14%; transform: rotate(-7deg); }
.homeHeroForgeRunes { position: absolute; display: flex; justify-content: center; gap: 7px; width: 78%; height: 26%; bottom: 13%; left: 11%; }
.homeHeroForgeRunes img { position: static; width: calc((100% - 14px) / 3); height: 100%; }
.homeToolSections { display: grid; gap: 42px; padding-top: 34px; }
.homeToolSection { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.homeToolSection:last-child { padding-bottom: 0; border-bottom: 0; }
.homeToolHeading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.homeToolHeading > div { min-width: 0; }
.homeToolHeading h2 { font-size: clamp(32px, 3vw, 44px); }
.homeToolIntro { max-width: 50ch; margin-top: 16px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.homeToolHeading .btn { flex: none; }
.homeToolTopics { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; }
.homeToolTopics li { display: flex; align-items: baseline; gap: 9px; }
.homeToolTopics li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--portal); }
/* Native game artwork gives each tool its own visual composition. */
.homeToolCopy { padding-block: 16px; }
.homeToolCopy .btn { margin-top: 24px; }
.homeToolSection:nth-child(3) .homeToolVisual { order: -1; }
.homeToolVisual
{
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	height: 310px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: radial-gradient(circle at 50% 45%, #fff9, transparent 65%), var(--surface-muted);
}
.homeToolVisual > img { position: absolute; object-fit: contain; filter: drop-shadow(0 9px 5px #203a4c22); }
.homeMapArtwork { inset: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: 58% 52%; filter: saturate(.8) !important; }
.homeMapModes { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: 30px; padding: 14px 18px; background: #102c3ee8; color: #edf7fa; }
.homeMapModes > div { display: grid; justify-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.homeMapModes .mapSpellIcon { --map-spell-icon-size: 48px; }
.homeToolVisual-forgemagie
{
	border-color: #c29d78;
	background: radial-gradient(ellipse at 50% 35%, #fff6dfb3, transparent 65%), linear-gradient(145deg, #f0e3d2, #d6b28d);
}
.homeForgeBackdrop { position: absolute; top: 12px; left: calc(50% - 106px); width: 212px; height: 212px; border: 1px solid #a56f3e4d; border-radius: 50%; box-shadow: 0 0 0 15px #a56f3e0a, inset 0 0 36px #a56f3e14; }
.homeForgeBackdrop::before { content: ""; position: absolute; inset: 13px; border: 1px dashed #a56f3e33; border-radius: inherit; }
.homeToolVisual-forgemagie > .homeForgeEquipment { top: 25px; left: calc(50% - 95px); width: 190px; height: 155px; transform: rotate(-7deg); filter: drop-shadow(0 10px 5px #76533345); }
.homeForgeRunes { position: absolute; bottom: 45px; left: 50%; display: flex; gap: 12px; transform: translateX(-50%); }
.homeForgeRunes > div { display: grid; justify-items: center; gap: 5px; padding: 10px 10px 7px; border: 1px solid #b1885d88; border-radius: 6px; background: #fffaf0b8; box-shadow: inset 0 1px #ffffffb3; }
.homeForgeRunes img { width: 52px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 2px #76533333); }
.homeForgeRunes span { color: #65452f; font: 700 11px/1.4 var(--body); letter-spacing: .08em; }
.homeToolVisual-forgemagie .homeVisualCaption { color: #70503a; }
.homeVisualCaption { position: absolute; inset: auto 15px 17px; color: var(--ink-soft); font: 700 13px/1.5 var(--body); text-align: center; }
.homeToolVisual-quete-ocre { background: radial-gradient(ellipse at 50% 55%, #fff4ba, transparent 65%), #efe4c6; border-color: #d7c493; }
.homeOcreEgg { width: 160px; height: 215px; top: 32px; left: calc(50% - 80px); transform: rotate(8deg); }
.homeOcreCreature { width: 85px; height: 85px; }
.homeOcreTofu { top: 172px; left: calc(50% - 157px); transform: rotate(-10deg); }
.homeOcreCrab { width: 102px; height: 90px; top: 165px; left: calc(50% + 64px); transform: rotate(8deg); }
.homeOcreMoskito { top: 30px; left: calc(50% + 75px); }
.homeToolVisual-stuffs { background-color: #dbe8e6; border-color: #adc8c4; }
.homeEquipmentGrid { display: grid; grid-template-columns: repeat(2, 130px); gap: 12px; transform: rotate(-4deg); }
.homeEquipmentGrid > div { display: grid; justify-items: center; gap: 1px; padding: 7px 12px; border: 1px solid #adc8c4; border-radius: 7px; background: #f7fafbbf; }
.homeEquipmentGrid img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 5px 2px #203a4c20); }
.homeEquipmentGrid span { color: var(--ink-soft); font-size: 11px; }
.journalBottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); align-items: start; gap: 46px; margin-top: 30px; }
.journalFarm { scroll-margin-top: 100px; }
.journalFarm > h3 { margin-bottom: 15px; font-size: 28px; }
.farmStyleList { margin: 0; padding: 0; list-style: none; }
.farmStyleList li { border-bottom: 1px solid var(--line); }
.farmStyleLink
{
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 79px;
	padding: 13px 6px;
	text-decoration: none;
	transition: background-color .15s;
}
.farmStyleLink:hover { background: var(--portal-pale); }
.farmStyleLink .mapSpellIcon { --map-spell-icon-size: 40px; }
.farmStyleLink .mapSpellIcon img,
.homeMapModes .mapSpellIcon img { top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.farmStyleLink .mapSpellIcon .farmStyleIconActive { display: none; }
.farmStyleLink:is(:hover, :focus-visible) .mapSpellIcon { background: var(--button-background); }
.farmStyleLink:is(:hover, :focus-visible) .farmStyleIconInactive { display: none; }
.farmStyleLink:is(:hover, :focus-visible) .farmStyleIconActive { display: block; }
.farmStyleName h4 { font-size: 23px; }
.farmStyleName > span { color: var(--text-muted); font-size: 12px; }
.farmStyleCount { margin-left: auto; color: var(--ink-soft); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.farmStyleArrow { color: var(--portal); font-size: 21px; }
.journalNote { margin-top: 2px; padding-left: 24px; border-left: 2px solid var(--portal); }
.journalNote h3 { color: var(--ink); font-size: 21px; }
.journalNote p { margin-top: 14px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.journalNote small { display: block; margin-top: 16px; color: var(--text-muted); font-size: 11px; }
@media (max-width: 950px)
{
	.journalHero { grid-template-columns: 1.2fr 1fr; }
	.journalHeroCopy { padding-right: 22px; }
	.journalHero h1 { font-size: clamp(38px, 5.4vw, 60px); }
	.journalBottom { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); }
}
@media (max-width: 760px)
{
	.homeToolSections { gap: 28px; padding-top: 25px; }
	.homeToolSection { padding-bottom: 28px; }
	.homeToolHeading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.homeToolCopy { padding-block: 0; }
	.homeToolVisual { height: 290px; }
	.homeToolSection:nth-child(3) .homeToolVisual { order: 0; }
	.homeMapModes { gap: 24px; }
	.homeForgeBackdrop { top: 3px; }
	.homeToolVisual-forgemagie > .homeForgeEquipment { top: 16px; }
	.homeOcreCrab { left: calc(50% + 19px); }
	.homeOcreTofu { left: calc(50% - 120px); }
	.homeOcreMoskito { width: 68px; height: 68px; left: calc(50% + 60px); }
	.homeEquipmentGrid { grid-template-columns: repeat(2, 120px); }
	.homeEquipmentGrid img { width: 94px; height: 94px; }
	.homeToolHeading h2 { font-size: 28px; }
	.homeToolTopics { flex-direction: column; gap: 9px; }
	.journalHero { grid-template-columns: 1fr; }
	.journalHeroCopy { padding: 18px 0 10px; }
	.journalHero h1 { font-size: clamp(38px, 8vw, 62px); }
	.journalAtlas { min-height: 310px; margin-top: 14px; }
	.journalAtlasMap { background-size: 100%; background-position: 60% 55%; mask-image: linear-gradient(0deg, transparent, #000 20%, #000 80%, transparent); }
	.homeHeroScene { height: 300px; max-width: 440px; margin-block: 4px 16px; gap: 12px 4px; }
	.homeHeroLabel { font-size: 11px; }
	.journalBottom { grid-template-columns: 1fr; gap: 28px; margin-top: 25px; }
	.journalFarm > h3 { font-size: 25px; }
	.farmStyleLink { gap: 12px; }
	.farmStyleName h4 { font-size: 22px; }
	.farmStyleCount { font-size: 12px; }
	.journalNote { padding-left: 17px; }
}
@media (max-width: 360px)
{
	.homeEquipmentGrid { grid-template-columns: repeat(2, 110px); }
	.homeEquipmentGrid img { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce)
{
	.farmStyleLink { transition: none; }
}
