/*
Theme Name: Tormult
Description: Tormult’s English and German gaming journal.
Version: 1.1
Text Domain: tormult
*/

:root {
	color-scheme: light;
	--ink: #172433;
	--navy: #101e2b;
	--paper: #f7f3e9;
	--amber: #f2b958;
	--muted: #4d575d;
	--line: #c9c5b9;
	--display: "Instrument Serif", "Baskerville", "Georgia", serif;
	--sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
	--mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.05rem/1.55 var(--sans); }
body, a { overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid #13738b; outline-offset: 4px; }
.masthead a:focus-visible, .hero a:focus-visible { outline-color: var(--amber); }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; }
.shell { width: min(1370px, 90%); margin-inline: auto; }
.skip-link { position: absolute; top: 5px; left: 5px; transform: translateY(-180%); padding: .6em 1em; z-index: 1000; background: white; color: black; }
.skip-link:focus { transform: none; }
.masthead, .hero { background: var(--navy); color: var(--paper); }
.masthead { border-bottom: 1px solid #42505c; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; }
.header-inner { min-height: 80px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; font: 800 1.55rem/1 "Bahnschrift", var(--sans); letter-spacing: .085em; text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 1.95rem; height: 1.95rem; font-size: 0; background: var(--amber); clip-path: polygon(0 16%, 16% 16%, 16% 0, 84% 0, 84% 16%, 100% 16%, 100% 84%, 84% 84%, 84% 100%, 16% 100%, 16% 84%, 0 84%); }
.brand-mark::before { content: ""; position: absolute; inset: 24% 18%; background: var(--navy); clip-path: polygon(0 0, 100% 0, 100% 27%, 65% 27%, 65% 100%, 38% 100%, 38% 27%, 0 27%); }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.7rem, 2.5vw, 2.75rem); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; text-decoration: none; font-size: .96rem; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--amber); border-bottom-color: var(--amber); }
.header-inner .main-nav { margin-left: auto; }
.language-nav { display: inline-flex; align-items: stretch; font: 600 .84rem/1 var(--mono); }
.language-nav > * { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #677683; text-decoration: none; }
.language-nav > * + * { border-left: 0; }
.language-nav [aria-current] { color: var(--navy); background: var(--amber); }
.language-nav a:hover { text-decoration: underline; }
.language-nav [aria-disabled] { color: #bdc4c8; border-style: dashed; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero { border-bottom: 5px solid var(--amber); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(2rem, 4.4vw, 5rem); padding-block: clamp(3rem, 5vw, 5.5rem); }
.hero-copy { padding-block: .5rem; }
.hero-strap, .eyebrow { font: 600 .76rem/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.hero-strap { max-width: 34rem; color: #f8cc84; }
.hero h1 { margin-block: .2em .25em; font: normal clamp(4.3rem, 7.3vw, 7.4rem)/.96 var(--display); letter-spacing: -.062em; }
.hero h1 em { display: block; color: var(--amber); font-weight: normal; }
.hero-intro { max-width: 50ch; color: #e3e4e1; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.55; }
.hero-intro p + p { margin-top: .7em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.65rem; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 47px; padding: .65rem .95rem; border: 1px solid var(--amber); border-radius: 2px; color: #ffda99; font-size: .94rem; font-weight: 650; text-decoration: none; }
.hero-actions a:first-child { background: var(--amber); color: var(--navy); }
.hero-actions a:hover { background: #ffdc9c; border-color: #ffdc9c; color: var(--navy); }
.hero-art { position: relative; min-width: 0; width: 100%; aspect-ratio: 1.26; overflow: hidden; border: 1px solid #72624c; border-radius: 2px; background: #1d303a; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art--host {
	container-type: size;
	display: grid;
	place-items: end center;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	padding: clamp(.7rem, 1.6vw, 1.6rem) 3% 0;
	border-color: #c5a166;
	background-color: #efe1c3;
	background-image: radial-gradient(circle at 52% 67%, #f1c378 0%, #f1c378 48%, transparent 48.25%),
		linear-gradient(135deg, #f7edda, #ecdbb7);
}
/* The standalone WebP adds a credit below the 1312-by-1199 portrait. The page supplies its own caption. */
.hero-portrait__motif { display: block; width: min(100%, calc(100cqh * 1312 / 1199)); aspect-ratio: 1312 / 1199; overflow: hidden; }
.hero-portrait__motif img { width: 100%; height: auto; }
.hero-portrait__name { position: absolute; top: .65rem; left: .85rem; color: var(--ink); font: italic clamp(1.2rem, 2vw, 1.7rem)/1.15 var(--display); }
.hero-portrait__credit { margin-top: .25rem; color: #9ca6ad; font: normal .6875rem/1.4 var(--sans); text-align: right; }

.front-sections { padding-block: clamp(3rem, 4vw, 4.7rem) clamp(4rem, 7vw, 7rem); }
.front-sections > section + section, .article-main > section { margin-top: 3.5rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.45rem; padding-top: .7rem; border-top: 2px solid var(--ink); }
.section-heading h2 { font: normal clamp(2.4rem, 4.4vw, 4.6rem)/1.09 var(--display); letter-spacing: -.045em; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; padding-block: .55rem; font-size: .95rem; font-weight: 650; }
.text-link:hover { color: #784700; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.7rem, 1.6vw, 1.6rem); }
.game-card { display: flex; flex-direction: column; background: #fffdf6; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.game-card:hover, .game-card:focus-visible { border-color: var(--ink); }
.game-card:hover h2, .game-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.game-portrait__motif { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.game-portrait__motif img { display: block; width: 100%; height: auto; }
.game-portrait figcaption { margin: .25rem .5rem 0; color: #626b72; font: normal .6875rem/1.4 var(--sans); text-align: right; }
.game-cover {
	--color: #31534f;
	--highlight: #c8dec2;
	--shade: #123932;
	position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 1.86;
	background-color: var(--color);
	background-image: radial-gradient(rgba(255,255,255,.18) .7px, transparent .85px);
	background-size: 5px 5px; border-bottom: 1px solid var(--line);
}
.game-world-of-warcraft .game-cover { --color: #395067; --highlight: #d1e5eb; --shade: #172e46; }
.game-hearthstone .game-cover { --color: #8a513d; --highlight: #ffe2a2; --shade: #55321e; }
.game-raid-shadow-legends .game-cover { --color: #62556e; --highlight: #efd5d2; --shade: #3c304c; }
.game-warcraft-rumble .game-cover { --color: #716134; --highlight: #f5dea1; --shade: #423719; }
.pixel-item { display: block; width: 32%; max-width: 75px; aspect-ratio: 1; filter: drop-shadow(3px 4px var(--shade)); }
.pixel-item::before { content: ""; display: block; width: 100%; height: 100%; background: var(--highlight); }
.game-ultima-online .pixel-item::before { clip-path: polygon(0 25%, 12% 25%, 12% 37%, 24% 37%, 24% 20%, 36% 20%, 36% 37%, 44% 37%, 44% 10%, 56% 10%, 56% 37%, 64% 37%, 64% 20%, 76% 20%, 76% 37%, 88% 37%, 88% 25%, 100% 25%, 100% 48%, 90% 48%, 90% 90%, 62% 90%, 62% 65%, 55% 65%, 55% 58%, 45% 58%, 45% 65%, 38% 65%, 38% 90%, 10% 90%, 10% 48%, 0 48%); }
.game-world-of-warcraft .pixel-item::before { clip-path: polygon(0 79%, 11% 79%, 11% 65%, 20% 65%, 20% 54%, 28% 54%, 28% 39%, 36% 39%, 36% 24%, 45% 24%, 45% 10%, 52% 10%, 52% 24%, 60% 24%, 60% 39%, 67% 39%, 67% 54%, 77% 54%, 77% 43%, 84% 43%, 84% 57%, 90% 57%, 90% 69%, 100% 69%, 100% 85%, 72% 85%, 72% 74%, 61% 74%, 61% 62%, 49% 62%, 49% 43%, 41% 43%, 41% 62%, 32% 62%, 32% 74%, 21% 74%, 21% 85%, 0 85%); }
.game-hearthstone .pixel-item::before { background: var(--highlight); clip-path: polygon(15% 10%, 67% 10%, 67% 19%, 24% 19%, 24% 71%, 15% 71%, 15% 10%, 34% 28%, 84% 28%, 84% 88%, 34% 88%, 34% 28%, 58% 42%, 51% 50%, 45% 50%, 45% 63%, 51% 63%, 58% 72%, 65% 63%, 72% 63%, 72% 50%, 65% 50%, 58% 42%, 34% 28%); }
.game-raid-shadow-legends .pixel-item::before { clip-path: polygon(8% 12%, 32% 12%, 32% 18%, 68% 18%, 68% 12%, 92% 12%, 92% 56%, 84% 56%, 84% 66%, 76% 66%, 76% 74%, 64% 74%, 64% 82%, 54% 82%, 54% 90%, 46% 90%, 46% 82%, 36% 82%, 36% 74%, 24% 74%, 24% 66%, 16% 66%, 16% 56%, 8% 56%, 8% 12%, 24% 28%, 24% 50%, 32% 50%, 32% 60%, 42% 60%, 42% 69%, 51% 69%, 51% 34%, 32% 34%, 32% 28%, 24% 28%); }
.game-warcraft-rumble .pixel-item::before { clip-path: polygon(18% 10%, 54% 10%, 54% 18%, 66% 18%, 66% 28%, 78% 28%, 78% 40%, 88% 40%, 88% 52%, 78% 52%, 78% 62%, 67% 62%, 67% 53%, 57% 53%, 57% 63%, 47% 63%, 47% 73%, 37% 73%, 37% 83%, 27% 83%, 27% 93%, 15% 93%, 15% 82%, 8% 82%, 8% 72%, 18% 72%, 18% 62%, 28% 62%, 28% 52%, 38% 52%, 38% 42%, 48% 42%, 48% 33%, 37% 33%, 37% 25%, 18% 25%); }
.game-summary { display: flex; flex: 1; flex-direction: column; padding: clamp(.85rem, 1.2vw, 1.4rem); }
.game-summary h2, .game-summary h3 { font: 650 clamp(1.18rem, 1.58vw, 1.7rem)/1.15 var(--sans); letter-spacing: -.035em; }
.game-summary p { margin-top: .6rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.card-arrow { margin-top: auto; padding-top: .7rem; font: normal 1.4rem/1 var(--sans); color: #754b15; }

.article-main { min-height: 68vh; padding-block: 2rem 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: clamp(2rem, 4vw, 4rem); color: var(--muted); font: .9rem/1.5 var(--sans); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs span[aria-current] { color: var(--ink); }
.article-body { max-width: 55rem; }
.article-header { border-top: 2px solid var(--ink); padding-top: 1.2rem; margin-bottom: 1.35rem; }
.article-main h1 { font: normal clamp(3rem, 6vw, 6rem)/1.04 var(--display); letter-spacing: -.055em; }
.article-header .eyebrow { margin-bottom: .9rem; color: #80521c; }
.article-header time { display: block; margin-top: .75rem; font: .9rem/1.6 var(--mono); color: var(--muted); }
.prose { max-width: 67ch; font-size: 1.125rem; }
.prose > * + *, .prose li + li { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.15em; line-height: 1.15; letter-spacing: -.035em; }
.prose h2 { font-family: var(--display); font-size: clamp(2.1rem, 3vw, 3rem); font-weight: normal; }
.prose h3 { font-size: 1.5rem; }
.prose a:hover, .breadcrumbs a:hover { color: #785326; }
.prose blockquote, .prose .evening-box { padding: 1.25rem 1.5rem; margin-inline: 0; background: #ede5d4; border-left: .3rem solid #9d6726; }
.prose .evening-box > * + * { margin-top: .6rem; }
.prose .evening-box h2 { margin-top: 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { vertical-align: top; padding: .6rem; border: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.story { border-left: 3px solid #a57130; padding: .2rem 1rem; }
.story-illustration { display: block; margin-bottom: .85rem; text-decoration: none; }
.story .eyebrow { color: #754b15; }
.story h2, .story h3 { margin-block: .4rem; font: normal 2rem/1.13 var(--display); }
.site-footer { background: #ece6d8; color: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; padding-block: 1.7rem; font-size: .95rem; }
.footer-inner .brand { font-size: 1.1rem; }
.footer-inner .brand-mark { width: 1.45rem; height: 1.45rem; }
.footer-inner p { margin-right: auto; font-family: var(--display); font-style: italic; font-size: 1.25rem; }

.hero-guides-note { max-width: 48ch; margin-top: .75em; color: #ffda99; font-weight: 600; }
.guide-index { max-width: 73rem; }
.guide-index .section-heading { margin-bottom: 0; }
.guide-index ul { list-style: none; padding: 0; margin: 0; }
.guide-index li { display: grid; grid-template-columns: minmax(10rem, .75fr) minmax(0, 2fr); align-items: baseline; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.guide-index h3 { margin: 0; font: normal clamp(1.6rem, 2.1vw, 2.05rem)/1.12 var(--display); }
.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; align-items: start; }
.guide-label { display: block; margin-bottom: .18rem; color: #65471d; font: 600 .8rem/1.4 var(--mono); }
.guide-links a { display: inline-block; padding-block: .2rem; font-size: 1.03rem; line-height: 1.45; text-decoration-thickness: 1px; }
.guide-links a:hover { color: #754b15; text-decoration-thickness: 2px; }
.guide-shortcuts, .profile-guide { margin-bottom: 1.65rem; padding: 1rem 1.25rem; border-inline-start: .25rem solid #a57130; background: #eee7d8; }
.profile-guide h2 { margin-bottom: .8rem; font: normal 1.65rem/1.2 var(--display); }
.written-guide .article-header h1 { font-size: clamp(2.65rem, 4.7vw, 4.6rem); }
.written-guide .prose h2[id] { scroll-margin-top: 1.25rem; }
.written-guide .prose #quick-answer { padding-top: .6em; border-top: 2px solid #a57130; }
.written-guide .prose li { padding-inline-start: .25rem; }
.written-guide .prose li::marker { color: #754b15; font-weight: 700; }
.guide-example { padding: 1.1rem 1.25rem; background: #eee7d8; border-inline-start: .25rem solid #a57130; }
.prose .guide-example h3 { margin-top: 0; }
.guide-example p, .guide-example ol { margin-block: .65rem 0; }
.prose .route-steps { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); padding: 0; list-style-position: inside; }
.prose .route-steps li { padding-inline-start: 0; margin: 0; }
.route-steps small { display: block; margin-top: .15em; font-family: var(--mono); }
@media (max-width: 760px) {
	.guide-index li { grid-template-columns: 1fr; gap: .85rem; padding-block: 1.25rem; }
}
@media (max-width: 480px) {
	.guide-links { grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 1050px) {
	.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero h1 { font-size: clamp(4rem, 7.7vw, 6rem); }
	.hero-art { aspect-ratio: 1.05; }
}
@media (max-width: 760px) {
	.shell { width: min(92%, 42rem); }
	.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .45rem 1rem; padding-block: .65rem .35rem; }
	.header-inner .main-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
	.language-nav { grid-column: 2; grid-row: 1; }
	.main-nav { width: 100%; justify-content: flex-start; gap: .15rem 1.2rem; }
	.main-nav a { font-size: .9rem; }
	.hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding-block: 2.5rem 1.5rem; }
	.hero h1 { font-size: clamp(4rem, 13vw, 6.4rem); }
	.hero-art { aspect-ratio: 1.65; }
	.hero-art--host { aspect-ratio: 1.32; }
	.hero-portrait__credit { font-size: .625rem; }
	.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 480px) {
	.main-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 1.5rem; }
	.hero-actions { display: grid; }
	.game-grid { grid-template-columns: 1fr; }
	.game-card:has(.game-cover) { display: grid; grid-template-columns: 28% minmax(0, 1fr); }
	.game-cover { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
	.pixel-item { width: 60%; }
	.game-summary { padding: 1rem; }
	.footer-inner { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
}
