/*
Theme Name: DeFoom Journal
Theme URI: https://defoom.com/
Author: DeFoom
Description: An image-led, single-column editorial theme for DeFoom. The homepage shows the latest articles and omits the Game and Games category trees.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: defoom-journal
*/
@font-face {
	font-family: "Journal Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
	src: url("assets/fonts/serif.woff2") format("woff2");
}
@font-face {
	font-family: "Journal Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
	src: url("assets/fonts/sans.woff2") format("woff2");
}
:root {
	--ink: #202a2d;
	--subtle: #586264;
	--accent: #19676c;
	--line: #dce2df;
	--serif: "Journal Serif", Georgia, "Times New Roman", serif;
	--sans: "Journal Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-wrap: break-word; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
figure { margin-inline: 0; }
button, input, select, textarea { font: inherit; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 12px; left: 16px; z-index: 100; background: white; padding: 8px 16px; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { width: min(1080px, calc(100% - 48px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead-inner { min-height: 86px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 650 34px/1 var(--serif); letter-spacing: -.065em; }
.brand, .custom-logo-link, .footer-name, .read-more, .menu-list a, h2 a, .category-link { text-decoration: none; }
.brand img { width: 37px; height: 37px; object-fit: contain; }
.custom-logo-link { display: flex; }
.custom-logo { display: block; max-width: min(200px, 41vw); max-height: 62px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 17px; }
.header-control summary {
	display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer;
	font-size: 14px; font-weight: 600; user-select: none;
}
summary::-webkit-details-marker { display: none; }
.header-control + .header-control { padding-inline-start: 19px; border-inline-start: 1px solid var(--line); }
.header-control[open] summary, summary:hover { color: var(--accent); }
.search-icon { width: 14px; height: 14px; border: 1.65px solid currentColor; border-radius: 50%; position: relative; margin-inline-end: 3px; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 1.6px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
.menu-icon { width: 18px; height: 12px; border-block: 1.65px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; top: calc(50% - .8px); height: 1.6px; width: 12px; background: currentColor; }
.tool-panel {
	z-index: 20; position: absolute; inset-inline-end: 0; top: calc(100% - 6px); width: min(365px, 100%);
	padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 35px #12292c13;
}
.nav-panel { max-height: 70vh; overflow: auto; }
.menu-list, .menu-list ul, .footer-inner ul { padding: 0; margin: 0; list-style: none; }
.menu-list > li + li { border-top: 1px solid var(--line); }
.menu-list a { display: block; padding: 8px 0; font-weight: 550; }
.menu-list ul { padding-inline-start: 18px; }
.menu-list ul a { font-size: 15px; font-weight: 400; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-form input, .comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea, .post-password-form input[type="password"] {
	width: 100%; padding: 10px 12px; border: 1px solid #aab4b2; border-radius: 4px; color: var(--ink); background: white;
}
.search-form button, .comment-form input[type="submit"], .post-password-form input[type="submit"] {
	border: 0; border-radius: 4px; padding: 10px 16px; background: var(--ink); color: white; cursor: pointer; font: 600 14px var(--sans);
}
.search-form button:hover, .comment-form input[type="submit"]:hover { background: var(--accent); }
.stream { width: min(880px, calc(100% - 48px)); margin: clamp(34px,5vw,70px) auto clamp(64px,8vw,112px); min-height: 42vh; }
.article-card { padding-bottom: clamp(36px,5vw,64px); border-bottom: 1px solid var(--line); }
.article-card + .article-card { margin-top: clamp(36px,5vw,64px); }
.cover, .single-cover { display: block; overflow: hidden; border-radius: 5px; margin-bottom: clamp(22px,3vw,34px); }
.cover img { width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: 50% 34%; display: block; }
.article-copy { max-width: 780px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--subtle); font-size: 13px; line-height: 1.5; }
.category-link { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.meta-divider { height: 12px; border-inline-start: 1px solid #acb9b6; }
h1, h2, h3, h4 { font-family: var(--serif); }
.article-card h2, .single-heading h1, .listing-heading h1 {
	margin: 11px 0 15px; color: var(--ink); font: 580 clamp(32px,4.4vw,48px)/1.11 var(--serif);
	letter-spacing: -.045em; text-wrap: pretty;
}
.excerpt { margin: 0; max-width: 765px; color: #424e50; font: 400 clamp(18px,1.8vw,21px)/1.58 var(--serif); }
.read-more { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); border-bottom: 1px solid var(--accent); padding-block: 3px; margin-top: 20px; font-size: 14px; font-weight: 650; }
.read-more .arrow { color: var(--accent); font: 20px/1 var(--sans); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 40px; }
.page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 38px; min-height: 38px; padding: 2px 9px; border-radius: 3px; text-decoration: none; font-size: 15px; }
.page-numbers.current { color: white; background: var(--ink); }
.listing-heading { margin-bottom: 35px; }
.intro { color: var(--subtle); }
.single-heading, .article-body, .post-tags, .comments-area, .post-navigation { max-width: 730px; margin-inline: auto; }
.single-heading { margin-bottom: 30px; }
.single-heading h1 { font-size: clamp(38px,5.5vw,58px); }
.byline, .post-tags { color: var(--subtle); font-size: 14px; }
.single-cover img { display: block; width: 100%; max-height: 600px; object-fit: contain; }
.article-body { font: 400 clamp(18px,2vw,21px)/1.72 var(--serif); display: flow-root; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { line-height: 1.2; letter-spacing: -.025em; margin: 1.65em 0 .5em; }
.article-body p { margin: 0 0 1.15em; }
.article-body a, .post-tags a { color: var(--accent); }
.article-body iframe, .article-body video, .article-body audio, .article-body .wp-caption { max-width: 100%; }
.article-body table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; font-size: .9em; }
.article-body td, .article-body th { padding: 8px 12px; border: 1px solid var(--line); }
.article-body pre { padding: 16px; background: #f5f7f6; overflow-x: auto; }
.article-body blockquote { margin: 1.4em 0; padding-inline-start: 1.1em; border-inline-start: 3px solid var(--accent); }
.alignwide, .alignfull { width: auto; max-width: none; margin-inline: clamp(-75px, calc((730px - 100vw + 48px) / 2), 0px); }
.alignleft { float: left; margin: 0 1.1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.1em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-image figcaption, .wp-caption-text, .gallery-caption { font: 14px/1.5 var(--sans); color: var(--subtle); }
.post-tags { margin-top: 28px; }
.post-navigation, .comments-area { margin-top: 45px; padding-top: 23px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.post-navigation .nav-next { grid-column: 2; text-align: end; }
.post-navigation a { text-decoration: none; font: 550 21px/1.3 var(--serif); }
.nav-kicker { display: block; margin-bottom: 6px; color: var(--subtle); font: 13px var(--sans); }
.comments-area h2, .comments-area h3 { font-size: 28px; }
.comment-list, .comment-list .children { list-style: none; padding-inline-start: 0; }
.comment-list .children { padding-inline-start: min(3vw,24px); }
.comment-list article { padding-block: 14px; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-inline-end: 8px; }
.comment-metadata, .reply, .comment-form { font: 15px/1.6 var(--sans); }
.comment-form label { display: block; }
.comment-form-cookies-consent label { display: inline; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); }
.footer-name { font: 650 25px/1 var(--serif); color: var(--ink); letter-spacing: -.05em; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-inner small { font-size: inherit; }
@media (max-width: 620px) {
	.masthead-inner, .footer-inner, .stream { width: calc(100% - 36px); }
	.masthead-inner { min-height: 70px; }
	.brand { font-size: 30px; }
	.brand img { width: 32px; height: 32px; }
	.header-tools { gap: 8px; }
	.header-control summary { min-width: 36px; }
	.header-control + .header-control { padding-inline-start: 12px; }
	.tool-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
	.tool-panel { padding: 16px; }
	.cover img { aspect-ratio: 1.68 / 1; }
	.article-meta { gap: 9px; }
	.article-card h2 { margin-top: 10px; }
	.footer-inner { gap: 14px; }
	.alignwide, .alignfull { margin-inline: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; gap: 18px; }
	.post-navigation .nav-next { grid-column: 1; text-align: start; }
}
