:root {
	--accent: #315cf5;
	--ink: #17202a;
	--muted: #68727d;
	--paper: #f5f7f4;
	--surface: #ffffff;
	--surface-soft: #eef1ed;
	--line: #e2e7e1;
	--lime: #d9f76c;
	--header-bg: rgba(245, 247, 244, 0.88);
	--shadow: 0 18px 48px rgba(25, 35, 44, 0.09);
	--shadow-card: 0 10px 32px rgba(25, 35, 44, 0.07);
	--radius: 22px;
	--radius-sm: 14px;
	--content: 1160px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #eff2f4;
	--muted: #a3adb8;
	--paper: #101720;
	--surface: #18222e;
	--surface-soft: #202c38;
	--line: #2b3743;
	--header-bg: rgba(16, 23, 32, 0.9);
	--shadow: 0 18px 48px rgba(0, 0, 0, 0.23);
	--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: #17202a; background: var(--lime); }
.wrap { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	transform: translateY(-180%);
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; align-items: center; justify-content: center; }
.icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header and navigation */
.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: var(--header-bg);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
.site-header__inner { display: flex; min-height: 78px; align-items: center; gap: 38px; }
.brand-lockup { display: flex; flex: 0 0 auto; align-items: center; }
.brand-lockup__text { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -1.2px; }
.brand-lockup__text:hover { color: var(--ink); }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 210px; max-height: 48px; object-fit: contain; }
.brand-mark { display: grid; width: 27px; height: 27px; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 4px; background: var(--accent); }
.brand-mark span:nth-child(2) { background: var(--lime); }
.brand-mark span:nth-child(3) { background: var(--ink); }
.brand-mark span:nth-child(4) { background: color-mix(in srgb, var(--accent) 38%, var(--lime)); }
.primary-navigation { margin-left: auto; }
.primary-navigation__list, .primary-navigation ul { display: flex; align-items: center; gap: 30px; padding: 0; margin: 0; list-style: none; }
.primary-navigation a { display: inline-block; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 650; transition: color .18s ease; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--ink); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.header-search, .theme-toggle, .menu-toggle {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.header-search:hover, .theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); background: var(--surface-soft); color: var(--ink); transform: translateY(-1px); }
.header-search .icon, .theme-toggle .icon, .menu-toggle .icon { width: 18px; height: 18px; }
.theme-toggle__dark { display: none; }
:root[data-theme="dark"] .theme-toggle__light { display: none; }
:root[data-theme="dark"] .theme-toggle__dark { display: inline-flex; }
.menu-toggle { display: none; }

/* Buttons, labels, and section headers */
.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent); }
.button--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #14284d); color: #fff; box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 34%, transparent); }
.button--secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button--secondary:hover { border-color: var(--ink); background: var(--surface-soft); color: var(--ink); }
.button--full { width: 100%; }
.button--download { min-width: 166px; }
.eyebrow, .section-kicker {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 13px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.4;
	text-transform: uppercase;
}
.eyebrow__dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.eyebrow__separator { color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.badge--lime { background: var(--lime); color: #182119; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 780; letter-spacing: -1.2px; line-height: 1.15; }
.section-heading .section-kicker { margin-bottom: 7px; }
.section-link, .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; }
.section-link .icon, .text-link .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.section-link:hover .icon, .text-link:hover .icon { transform: translateX(4px); }

/* Home hero */
.home-hero { overflow: hidden; position: relative; padding: 57px 0 48px; }
.home-hero::before {
	position: absolute;
	inset: 0 0 auto;
	height: 440px;
	background:
		radial-gradient(ellipse at 87% 24%, color-mix(in srgb, var(--lime) 19%, transparent), transparent 31%),
		radial-gradient(ellipse at 59% 82%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 36%);
	content: "";
	pointer-events: none;
}
.home-hero__grid { position: relative; display: grid; min-height: 420px; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); align-items: center; gap: 55px; }
.home-hero__copy { padding: 18px 0 30px; }
.home-hero__copy h1 { max-width: 640px; margin: 0; font-size: clamp(43px, 6.3vw, 75px); font-weight: 800; letter-spacing: -.065em; line-height: .99; }
.home-hero__description { max-width: 520px; margin: 23px 0 24px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.directory-search {
	display: flex;
	max-width: 560px;
	min-height: 60px;
	align-items: center;
	gap: 12px;
	padding: 6px 7px 6px 17px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 12px 32px rgba(25, 35, 44, .07);
}
.directory-search > .icon { color: var(--muted); }
.directory-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.directory-search input::placeholder { color: var(--muted); opacity: .8; }
.directory-search input:focus-visible { outline: none; }
.directory-search:focus-within { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.directory-search button {
	display: inline-flex;
	min-height: 46px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0 19px;
	border: 0;
	border-radius: 11px;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	font-size: 13px;
	font-weight: 750;
	transition: background .18s ease, transform .18s ease;
}
.directory-search button:hover { transform: translateY(-1px); background: var(--accent); }
.home-hero__links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 21px; }
.home-hero__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.home-hero__links a:hover { color: var(--accent); }
.home-hero__links .icon { width: 15px; height: 15px; }
.home-hero__visual { display: flex; min-height: 390px; position: relative; align-items: center; justify-content: center; }
.hero-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; pointer-events: none; }
.hero-orbit--one { width: 410px; height: 410px; }
.hero-orbit--two { width: 320px; height: 320px; border-style: dashed; }
.hero-showcase-empty { display: grid; width: min(100%, 410px); height: 330px; position: relative; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; transform: rotate(-4deg); }
.showcase-tile { display: flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 50px; font-weight: 800; }
.showcase-tile span { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 23px; background: var(--accent); color: white; }
.showcase-tile--one { transform: translateY(10px); }
.showcase-tile--one span { border-radius: 50%; background: var(--lime); color: #192518; }
.showcase-tile--two { transform: translateY(-12px); }
.showcase-tile--two span { background: #1d2731; }
.showcase-tile--three { transform: translateY(8px); }
.showcase-tile--three span { background: #ffbb66; color: #312514; }
.showcase-tile--four { transform: translateY(-8px); }
.showcase-tile--four span { background: #a5dbf4; color: #142b3b; }
.showcase-caption { position: absolute; right: -15px; bottom: 15px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--muted); font-size: 11px; font-weight: 700; transform: rotate(4deg); }
.showcase-caption__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px #8eae36; }
.hero-featured-card { overflow: hidden; width: min(100%, 388px); position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 27px; background: var(--surface); box-shadow: 0 26px 65px rgba(30, 43, 55, .15); transform: rotate(2.5deg); transition: transform .35s ease; }
.hero-featured-card:hover { transform: rotate(0) translateY(-4px); }
.hero-featured-card__cover { display: block; height: 170px; overflow: hidden; background: linear-gradient(145deg, var(--accent), #213556 72%); }
.hero-featured-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-featured-card__cover--empty { background: radial-gradient(circle at 66% 42%, color-mix(in srgb, var(--lime) 60%, transparent), transparent 22%), linear-gradient(145deg, var(--accent), #152535); }
.hero-featured-card__content { padding: 19px 22px 20px; }
.hero-featured-card__eyebrow, .hero-featured-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.hero-featured-card__eyebrow > span:last-child { color: var(--muted); font-size: 11px; font-weight: 700; }
.hero-featured-card__identity { display: flex; align-items: center; gap: 15px; margin: 19px 0 21px; }
.hero-featured-card__identity h2 { margin: 0; font-size: 21px; letter-spacing: -.7px; line-height: 1.2; }
.hero-featured-card__identity h2 a { color: var(--ink); }
.hero-featured-card__identity p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.hero-featured-card__footer { padding-top: 14px; border-top: 1px solid var(--line); }

/* Categories and homepage sections */
.category-strip { display: flex; align-items: center; gap: 22px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-strip__label { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.category-strip__list { display: flex; overflow: auto; align-items: center; gap: 9px; scrollbar-width: none; }
.category-strip__list::-webkit-scrollbar { display: none; }
.category-pill { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 650; transition: border-color .18s ease, background .18s ease; }
.category-pill span { color: var(--muted); font-size: 10px; }
.category-pill:hover, .category-pill.is-current { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.category-pill:hover span, .category-pill.is-current span { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.category-strip__empty { color: var(--muted); font-size: 13px; }
.content-section { padding-top: 66px; padding-bottom: 2px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.directory-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 3px 12px rgba(25, 35, 44, .025); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.directory-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); box-shadow: var(--shadow-card); }
.directory-card__cover { overflow: hidden; height: 162px; position: relative; display: block; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #171c35), #293d56); }
.directory-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.directory-card:hover .directory-card__cover img { transform: scale(1.035); }
.directory-card__cover-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 74% 32%, color-mix(in srgb, var(--lime) 70%, transparent), transparent 15%), linear-gradient(130deg, color-mix(in srgb, var(--accent) 92%, #171c35), #172a3d); }
.directory-card__type { position: absolute; top: 13px; left: 14px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(18, 26, 37, .64); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.directory-card__body { padding: 17px 17px 16px; }
.directory-card__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-icon { display: flex; width: 50px; height: 50px; flex: 0 0 auto; overflow: hidden; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--accent); box-shadow: 0 4px 12px rgba(18, 26, 37, .08); }
a.item-icon:hover { color: var(--accent); }
.item-icon-image { width: 100%; height: 100%; object-fit: cover; }
.item-icon-fallback { font-size: 21px; font-weight: 800; }
.item-icon--large { width: 54px; height: 54px; border-radius: 17px; }
.item-icon--detail { width: 82px; height: 82px; border-radius: 24px; }
.item-icon--detail .item-icon-fallback { font-size: 32px; }
.directory-card__title-wrap { min-width: 0; }
.directory-card__title-wrap h3 { overflow: hidden; margin: 0; font-size: 16px; font-weight: 760; letter-spacing: -.35px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.directory-card__title-wrap h3 a { color: var(--ink); }
.directory-card__title-wrap h3 a:hover { color: var(--accent); }
.directory-card__title-wrap p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.directory-card__excerpt { min-height: 42px; margin: 14px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.directory-card__meta { display: flex; min-height: 28px; align-items: center; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: #a87612; font-size: 12px; font-weight: 800; }
.rating .icon { width: 14px; height: 14px; }
.rating .icon svg { fill: #f4b93f; stroke: #f4b93f; }
.directory-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.directory-card__tags a, .detail-tag { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 650; }
.directory-card__tags a:hover, .detail-tag:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface-soft)); color: var(--accent); }
.empty-state { display: flex; min-height: 145px; flex-direction: column; align-items: center; justify-content: center; padding: 27px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }
.empty-state h2 { margin: 12px 0 4px; color: var(--ink); font-size: 20px; }
.empty-state p { max-width: 520px; margin: 5px 0 0; font-size: 13px; }
.empty-state__symbol { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: var(--surface-soft); color: var(--accent); }
.empty-state__symbol .icon { width: 21px; height: 21px; }
.empty-state--large { min-height: 260px; margin-top: 12px; }

/* Editorial cards */
.journal-section { padding-bottom: 78px; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journal-card { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.journal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.journal-card__image { display: block; overflow: hidden; height: 175px; background: var(--surface-soft); }
.journal-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.journal-card:hover .journal-card__image img { transform: scale(1.04); }
.journal-card__image-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-soft), color-mix(in srgb, var(--accent) 13%, var(--surface-soft))); }
.journal-card__content { padding: 17px 18px 19px; }
.journal-card__date { margin: 0 0 8px !important; color: var(--muted); font-size: 10px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.journal-card h3 { margin: 0; font-size: 17px; letter-spacing: -.35px; line-height: 1.35; }
.journal-card h3 a { color: var(--ink); }
.journal-card h3 a:hover { color: var(--accent); }
.journal-card__content > p:not(.journal-card__date) { margin: 10px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.journal-card .text-link { font-size: 11px; }
.journal-placeholder { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.journal-placeholder p { margin: 0; color: var(--muted); font-size: 13px; }
.journal-placeholder a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }

/* Archive pages and search */
.archive-hero { padding: 43px 0 27px; }
.breadcrumbs { margin: 0 0 26px; color: var(--muted); font-size: 11px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 9px; }
.breadcrumbs li + li::before { color: var(--muted); content: "/"; opacity: .55; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.archive-hero__content { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.archive-hero__content h1, .archive-hero--editorial h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -.06em; line-height: 1.05; }
.archive-hero__description { max-width: 650px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.archive-hero__description p { margin: 0; }
.archive-count { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; padding: 12px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.archive-count strong { font-size: 25px; letter-spacing: -.06em; line-height: 1.2; }
.archive-count span { color: var(--muted); font-size: 10px; }
.archive-category-nav { display: flex; overflow-x: auto; gap: 8px; padding: 23px 0 15px; scrollbar-width: none; }
.archive-category-nav::-webkit-scrollbar { display: none; }
.archive-platform-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.archive-platform-nav > span { margin-right: 2px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.archive-platform-nav a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 650; }
.archive-platform-nav a:hover, .archive-platform-nav a.is-current { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent); }
.archive-search { display: flex; max-width: 460px; gap: 8px; margin-top: 12px; }
.archive-search input { width: 100%; min-width: 0; min-height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.archive-search button { display: inline-flex; min-width: 45px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.archive-search button .icon { width: 17px; height: 17px; }
.archive-results { padding-top: 24px; padding-bottom: 70px; }
.archive-results__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.archive-results__heading h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.archive-results__heading p { margin: 0; color: var(--muted); font-size: 12px; }
.editorial-wrap { padding-top: 36px; padding-bottom: 82px; }
.archive-hero--editorial { padding: 0 0 36px; }
.archive-hero--editorial .breadcrumbs { margin-bottom: 32px; }
.archive-hero--editorial .section-kicker { margin-bottom: 9px; }
.archive-hero--editorial .archive-hero__description { max-width: 630px; }
.editorial-wrap > .journal-grid { margin-top: 4px; }
.search-page .search-results-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.search-page .directory-card, .search-page .journal-card { height: 100%; }
.search-result { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.search-result h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.search-result h2 a { color: var(--ink); }
.search-result > p:last-child { color: var(--muted); font-size: 13px; }
.search-page .archive-search { margin-top: 25px; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 35px; }
.page-numbers { display: inline-flex; min-width: 39px; height: 39px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* App and game details */
.detail-wrap { padding-top: 27px; }
.directory-detail__article { padding-bottom: 4px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 13px 0 29px; border-bottom: 1px solid var(--line); }
.detail-header__identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.detail-header__copy { min-width: 0; }
.detail-header__copy .eyebrow { margin-bottom: 6px; }
.detail-header__copy h1 { margin: 0; font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; letter-spacing: -.06em; line-height: 1.1; }
.detail-header__excerpt { max-width: 590px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.detail-header__excerpt p { margin: 0; }
.detail-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.detail-header__actions { display: flex; flex: 0 0 auto; flex-direction: column; gap: 9px; }
.detail-header__actions .button { min-width: 184px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; align-items: start; gap: 34px; padding-top: 30px; }
.detail-cover { overflow: hidden; margin: 0 0 29px; border-radius: var(--radius); background: var(--surface-soft); }
.detail-cover img { width: 100%; max-height: 490px; object-fit: cover; }
.detail-section { padding: 0 0 29px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.detail-section h2, .detail-panel h2 { margin: 0 0 15px; font-size: 20px; font-weight: 780; letter-spacing: -.55px; line-height: 1.3; }
.entry-content { color: var(--ink); font-size: 15px; line-height: 1.8; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.7em; line-height: 1.3; }
.entry-content h2 { font-size: 1.55em; }
.entry-content h3 { font-size: 1.25em; }
.entry-content blockquote { padding: 2px 0 2px 19px; margin-left: 0; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.entry-content pre { overflow: auto; padding: 17px; border-radius: 12px; background: var(--surface-soft); }
.detail-sidebar { position: sticky; top: 102px; display: grid; gap: 15px; }
.detail-panel { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 5px 20px rgba(25, 35, 44, .035); }
.detail-panel h2 { margin-bottom: 11px; font-size: 16px; }
.spec-list { margin: 0 0 17px; }
.spec-list__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.45; }
.spec-list__row:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); font-weight: 650; text-align: right; }
.detail-panel__note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.source-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.source-list a { display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-soft); font-size: 11px; font-weight: 650; }
.section-heading--compact { margin-bottom: 16px; }
.screenshot-gallery { display: grid; grid-auto-columns: minmax(175px, 1fr); grid-auto-flow: column; overflow-x: auto; gap: 12px; padding: 2px 2px 13px; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent; }
.screenshot-gallery__item { overflow: hidden; min-width: 0; height: 220px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); cursor: zoom-in; scroll-snap-align: start; }
.screenshot-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dialog { width: min(92vw, 1100px); max-width: none; max-height: 90vh; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #111820; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.gallery-dialog::backdrop { background: rgba(5, 10, 16, .82); backdrop-filter: blur(6px); }
.gallery-dialog img { width: 100%; max-height: calc(90vh - 44px); object-fit: contain; }
.gallery-dialog__close { position: absolute; top: 8px; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.video-frame { overflow: hidden; border-radius: 14px; background: #101720; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.video-frame video { display: block; width: 100%; max-height: 560px; background: #101720; }
.version-list { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.version-row { display: grid; grid-template-columns: minmax(90px, .6fr) minmax(0, 1.5fr) auto; align-items: center; gap: 15px; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 11px; }
.version-row:last-child { border-bottom: 0; }
.version-row > div { display: grid; gap: 3px; }
.version-row > div span, .version-row p { margin: 0; color: var(--muted); }
.version-row a { font-weight: 700; white-space: nowrap; }
.related-section { padding-bottom: 68px; }

/* Editorial pages, comments, and fallback screens */
.editorial-article__header { max-width: 850px; margin: 0 auto 28px; text-align: center; }
.editorial-article__header h1, .page-article__header h1 { margin: 0; font-size: clamp(37px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.065em; line-height: 1.06; }
.editorial-article__header .post-categories { margin-bottom: 10px; }
.post-categories a { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.article-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.article-byline span + span::before { padding-right: 12px; content: "·"; }
.editorial-article__cover { overflow: hidden; margin: 0 0 36px; border-radius: var(--radius); background: var(--surface-soft); }
.editorial-article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.editorial-article__layout { display: grid; grid-template-columns: minmax(0, 760px) 270px; justify-content: center; gap: 48px; }
.editorial-article__layout .entry-content { font-size: 17px; }
.blog-sidebar { display: grid; align-content: start; gap: 18px; }
.widget { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.widget-title { margin: 0 0 10px; font-size: 15px; }
.widget ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.page-article { max-width: 780px; margin: 0 auto; }
.page-article__header { margin-bottom: 28px; }
.comments-section { max-width: 760px; padding: 26px 0 0; margin: 20px auto 60px; border-top: 1px solid var(--line); }
.comments-title { font-size: 21px; }
.comment-list { padding-left: 23px; }
.comment-list .comment-body { padding: 15px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.comment-list .comment-meta { font-size: 11px; }
.comment-list .comment-content { font-size: 13px; }
.comment-respond { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.comment-respond label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.comment-respond input:not([type="submit"]), .comment-respond textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.comment-respond input[type="submit"] { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; }
.error-page { display: flex; min-height: 67vh; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 55px; padding-bottom: 80px; }
.error-page__code { color: color-mix(in srgb, var(--accent) 25%, var(--paper)); font-size: clamp(110px, 24vw, 230px); font-weight: 900; letter-spacing: -.1em; line-height: .83; }
.error-page h1 { max-width: 720px; margin: 0; font-size: clamp(35px, 5.5vw, 62px); letter-spacing: -.06em; line-height: 1.04; }
.error-page > p:not(.section-kicker) { max-width: 550px; margin: 15px 0 22px; color: var(--muted); }
.error-page .directory-search { margin-bottom: 17px; }

/* Footer */
.site-footer { padding-top: 38px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__top { display: flex; min-height: 100px; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.footer-brand .brand-lockup__text { font-size: 18px; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-brand p { max-width: 430px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 18px; padding: 4px 0 0; margin: 0; list-style: none; }
.footer-nav__list a { color: var(--muted); font-size: 11px; font-weight: 650; }
.footer-nav__list a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.site-footer__bottom p, .site-footer__bottom a { margin: 0; color: var(--muted); font-size: 10px; }
.site-footer__bottom a:hover { color: var(--accent); }
.back-to-top { margin-left: auto !important; }

/* WordPress editor content and admin */
.alignwide { max-width: min(100%, 1160px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img, .wp-block-cover, .wp-block-embed { border-radius: 12px; }
.wp-block-button__link { border-radius: 999px; }
.wp-block-quote { padding-left: 18px; border-left: 3px solid var(--accent); }
.gallery-caption, .wp-caption-text { color: var(--muted); font-size: 12px; }
.appscope-admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 18px; }
.appscope-admin-field { min-width: 0; padding: 12px; border: 1px solid #dcdcde; border-radius: 6px; background: #fff; }
.appscope-admin-field > label:first-child { display: block; margin-bottom: 7px; }
.appscope-admin-field .description { margin: 5px 0 0; }
.appscope-admin-field--textarea, .appscope-admin-field--gallery { grid-column: 1 / -1; }
.appscope-admin-checkbox { display: flex; align-items: center; gap: 8px; }
.appscope-media-preview img { width: 70px; height: 70px; object-fit: cover; margin-bottom: 8px; border-radius: 12px; }
.appscope-gallery-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.appscope-gallery-preview__item { width: 74px; height: 74px; position: relative; }
.appscope-gallery-preview__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.appscope-gallery-preview__item button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #1d2327; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }

@media (max-width: 980px) {
	.site-header__inner { gap: 20px; }
	.primary-navigation__list, .primary-navigation ul { gap: 18px; }
	.home-hero__grid { gap: 28px; }
	.directory-grid, .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
	.detail-header { align-items: flex-start; }
	.detail-header__actions .button { min-width: 155px; }
}

@media (max-width: 760px) {
	.wrap { width: min(calc(100% - 36px), var(--content)); }
	.site-header__inner { min-height: 68px; gap: 11px; }
	.brand-lockup__text { font-size: 19px; }
	.menu-toggle { display: inline-flex; order: 3; width: 40px; height: 40px; }
	.header-actions { margin-left: auto; }
	.primary-navigation { display: none; position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 12px 18px 17px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation__list, .primary-navigation ul { display: grid; gap: 0; }
	.primary-navigation a { display: block; padding: 12px 3px; border-bottom: 1px solid var(--line); }
	.primary-navigation li:last-child a { border-bottom: 0; }
	.home-hero { padding: 38px 0 34px; }
	.home-hero__grid { min-height: 0; grid-template-columns: 1fr; gap: 15px; }
	.home-hero__copy { padding: 8px 0 0; }
	.home-hero__copy h1 { max-width: 610px; font-size: clamp(43px, 11vw, 68px); }
	.home-hero__description { margin: 17px 0 18px; font-size: 15px; }
	.home-hero__visual { min-height: 315px; }
	.hero-orbit--one { width: 320px; height: 320px; }
	.hero-orbit--two { width: 250px; height: 250px; }
	.hero-showcase-empty { width: min(100%, 350px); height: 270px; gap: 11px; }
	.showcase-tile { border-radius: 21px; }
	.showcase-tile span { width: 61px; height: 61px; border-radius: 18px; font-size: 39px; }
	.showcase-caption { right: -4px; bottom: 0; font-size: 9px; }
	.hero-featured-card { width: min(100%, 365px); }
	.hero-featured-card__cover { height: 135px; }
	.category-strip { display: block; padding: 15px 0; }
	.category-strip__label { margin-bottom: 11px; }
	.content-section { padding-top: 49px; }
	.section-heading { align-items: flex-end; gap: 12px; }
	.section-heading h2 { font-size: 27px; }
	.section-link { font-size: 11px; }
	.directory-grid, .journal-grid { gap: 13px; }
	.directory-card__cover { height: 140px; }
	.directory-card__body { padding: 13px; }
	.item-icon { width: 43px; height: 43px; border-radius: 13px; }
	.directory-card__identity { gap: 10px; }
	.directory-card__title-wrap h3 { font-size: 14px; }
	.directory-card__title-wrap p { font-size: 10px; }
	.directory-card__excerpt { min-height: 0; font-size: 11px; }
	.journal-card__image { height: 145px; }
	.journal-card__content { padding: 14px; }
	.journal-card h3 { font-size: 15px; }
	.archive-hero { padding: 30px 0 21px; }
	.archive-hero__content { align-items: flex-start; }
	.archive-hero__content h1, .archive-hero--editorial h1 { font-size: clamp(37px, 9vw, 52px); }
	.archive-count { padding: 8px 11px; }
	.archive-count strong { font-size: 20px; }
	.archive-count span { font-size: 9px; }
	.archive-results { padding-top: 15px; padding-bottom: 55px; }
	.detail-wrap { padding-top: 19px; }
	.detail-header { flex-direction: column; gap: 17px; padding-bottom: 21px; }
	.detail-header__identity { gap: 14px; }
	.item-icon--detail { width: 66px; height: 66px; border-radius: 19px; }
	.detail-header__copy h1 { font-size: clamp(31px, 8vw, 43px); }
	.detail-header__actions { width: 100%; flex-direction: row; }
	.detail-header__actions .button { width: 100%; min-width: 0; }
	.detail-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
	.detail-sidebar { position: static; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-sidebar > :first-child { grid-column: 1 / -1; }
	.detail-main { grid-row: 2; }
	.detail-cover { margin-bottom: 22px; }
	.detail-section { padding-bottom: 22px; margin-bottom: 20px; }
	.screenshot-gallery { grid-auto-columns: minmax(150px, 43vw); }
	.screenshot-gallery__item { height: 190px; }
	.version-row { grid-template-columns: 1fr auto; gap: 8px; }
	.version-row p { grid-column: 1 / -1; grid-row: 2; }
	.version-row a { grid-column: 2; grid-row: 1; }
	.editorial-wrap { padding-top: 26px; padding-bottom: 60px; }
	.editorial-article__header h1, .page-article__header h1 { font-size: clamp(36px, 9vw, 54px); }
	.editorial-article__layout { grid-template-columns: 1fr; gap: 20px; }
	.editorial-article__layout .entry-content { font-size: 16px; }
	.search-page .search-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
	.site-footer__top { flex-direction: column; gap: 19px; }
	.site-footer__bottom { flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
}

@media (max-width: 520px) {
	.wrap { width: min(calc(100% - 30px), var(--content)); }
	.header-search, .theme-toggle { width: 38px; height: 38px; }
	.directory-search { min-height: 55px; gap: 8px; padding-left: 12px; border-radius: 13px; }
	.directory-search button { min-height: 41px; padding-inline: 13px; font-size: 11px; }
	.directory-search input { font-size: 12px; }
	.home-hero__links { gap: 15px; }
	.home-hero__links a { font-size: 11px; }
	.home-hero__visual { min-height: 282px; }
	.hero-featured-card { max-width: 330px; }
	.hero-featured-card__content { padding: 15px 17px; }
	.hero-featured-card__identity { margin: 15px 0; }
	.category-pill { min-height: 32px; padding: 5px 10px; font-size: 10px; }
	.content-section { padding-top: 43px; }
	.section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
	.section-heading:not(.section-heading--compact) .section-link { align-self: flex-end; margin-top: -3px; }
	.directory-grid, .journal-grid { grid-template-columns: 1fr; }
	.directory-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
	.directory-card__cover { height: 100%; min-height: 142px; }
	.directory-card__body { padding: 12px; }
	.directory-card__excerpt { display: none; }
	.directory-card__meta { margin-top: 8px; }
	.directory-card__tags { margin-top: 8px; }
	.journal-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
	.journal-card__image { height: 100%; min-height: 145px; }
	.journal-card__content { padding: 12px; }
	.journal-card__content > p:not(.journal-card__date) { display: none; }
	.journal-card .text-link { margin-top: 9px; }
	.journal-placeholder { align-items: flex-start; flex-direction: column; padding: 18px; }
	.archive-hero__content { flex-direction: column; }
	.archive-count { flex-direction: row; align-items: baseline; gap: 8px; }
	.archive-search { width: 100%; }
	.archive-search button span { display: none; }
	.archive-category-nav { margin-right: -15px; }
	.archive-results__heading { align-items: flex-start; flex-direction: column; }
	.search-page .search-results-list { grid-template-columns: 1fr; }
	.detail-header__identity { align-items: flex-start; }
	.detail-header__actions { flex-direction: column; }
	.detail-sidebar { grid-template-columns: 1fr; }
	.detail-sidebar > :first-child { grid-column: auto; }
	.detail-sidebar .spec-list__row { grid-template-columns: 110px minmax(0, 1fr); }
	.detail-header__meta { gap: 8px; }
	.version-row { padding: 11px; }
	.screenshot-gallery { margin-right: -15px; }
	.site-footer__bottom { justify-content: flex-start; }
	.site-footer__bottom .back-to-top { width: 100%; margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}