/*
Theme Name: Fascina Facts
Theme URI: https://fascinafacts.com/
Author: Fascina Facts
Author URI: https://fascinafacts.com/
Description: A clean, fully responsive white theme for fascinafacts.com. Large featured story on the homepage, a readable article layout, a card grid for archives, and an accessible mobile menu.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.8
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: fascinafacts
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, white
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--paper: #ffffff;
	--soft: #f5f6fa;
	--ink: #151a2d;
	--muted: #5a6075;
	--line: #e4e7ef;
	--accent: #2d39f2;
	--accent-dark: #1d27bf;
	--mark: #ffe66d;

	--font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

	--wrap: 1180px;
	--read: 720px;
	--radius: 14px;
	--gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.72;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe,
svg {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-dark);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ink);
}

p {
	margin: 0 0 1.2em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--ink);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(8px);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 68px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-title {
	font-family: var(--font-head);
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%);
	padding: 0 0.1em;
	white-space: nowrap;
}

.site-title:hover {
	color: var(--ink);
}

.custom-logo-link {
	display: block;
	flex-shrink: 0;
}

.custom-logo {
	max-height: 46px;
	width: auto;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu li {
	position: relative;
	margin: 0;
}

.menu > li > a,
.submenu-toggle {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1.1rem;
	font: 600 0.98rem/1 var(--font-head);
	letter-spacing: -0.005em;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.menu > li > a:hover,
.submenu-toggle:hover,
.menu-parent:focus-within > .submenu-toggle,
.menu-parent.is-open > .submenu-toggle {
	background: var(--soft);
	color: var(--ink);
}

.menu > .current-menu-item > a,
.menu > .current_page_item > a,
.menu > .current-menu-ancestor > a,
.menu > .current-menu-ancestor > .submenu-toggle {
	background: var(--ink);
	color: #fff;
}

.submenu-toggle::after,
.menu > .menu-item-has-children > a::after {
	content: "";
	width: 0.38em;
	height: 0.38em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -2px);
	transition: transform 0.2s ease;
}

.menu-parent.is-open > .submenu-toggle::after {
	transform: rotate(225deg) translate(-1px, -2px);
}

.menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 20;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(21, 26, 45, 0.13);
}

.menu .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

.menu .sub-menu a {
	display: block;
	padding: 0.7rem 0.95rem;
	font: 500 0.98rem/1.2 var(--font-head);
	color: var(--ink);
	text-decoration: none;
	border-radius: 11px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.menu .sub-menu a:hover,
.menu .sub-menu .current-menu-item > a,
.menu .sub-menu .current_page_item > a {
	background: #eceeff;
	color: var(--accent-dark);
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu,
.menu .menu-parent.is-open > .sub-menu {
	display: block;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--ink);
	transform: translateX(-50%);
	transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
	top: 50%;
	margin-top: -1px;
}

.nav-toggle-bars::before {
	top: -6px;
}

.nav-toggle-bars::after {
	top: 6px;
}

.nav-open .nav-toggle-bars {
	background: transparent;
}

.nav-open .nav-toggle-bars::before {
	top: 0;
	transform: translateX(-50%) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
	top: 0;
	transform: translateX(-50%) rotate(-45deg);
}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form {
	display: flex;
	gap: 0.4rem;
}

.search-field {
	width: 100%;
	min-width: 0;
	padding: 0.55rem 0.9rem;
	font: 1rem var(--font-head);
	color: var(--ink);
	background-color: var(--soft);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.search-field:focus {
	outline: none;
	border-color: var(--accent);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(45, 57, 242, 0.15);
}

.search-submit,
.button,
.comment-form .submit {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	font: 600 1rem var(--font-head);
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
}

.search-submit:hover,
.button:hover,
.comment-form .submit:hover {
	background: var(--accent-dark);
	color: #fff;
}

.primary-nav .search-form {
	width: 190px;
	flex-shrink: 0;
	transition: width 0.25s ease;
}

.primary-nav .search-form:focus-within {
	width: 250px;
}

.primary-nav .search-field {
	padding: 0.65rem 1rem 0.65rem 2.6rem;
	font-size: 0.95rem;
	border-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6075' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 1rem 50%;
	background-size: 16px;
}

.primary-nav .search-field:focus {
	border-color: var(--accent);
}

.primary-nav .search-submit {
	display: none;
}

/* ==========================================================================
   Main layout
   ========================================================================== */
.site-main {
	min-height: 60vh;
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.section-title {
	margin: clamp(2rem, 5vw, 3.5rem) 0 1.25rem;
	font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.page-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.page-title {
	font-size: clamp(1.9rem, 5vw, 2.9rem);
	margin-bottom: 0.3em;
}

.page-description {
	color: var(--muted);
	max-width: 60ch;
}

.page-description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Chips and meta
   ========================================================================== */
.chip {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	margin-bottom: 0.7rem;
	font: 600 0.85rem/1.5 var(--font-head);
	color: var(--accent-dark);
	background: #eceeff;
	border-radius: 999px;
	text-decoration: none;
}

.chip:hover {
	background: var(--mark);
	color: var(--ink);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.1rem;
	font: 500 0.92rem var(--font-head);
	color: var(--muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.hero-media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--soft);
	aspect-ratio: 16 / 10;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-title {
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -0.03em;
	margin-bottom: 0.45em;
}

.hero-title a,
.card-title a {
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 92% / 0 0.3em;
	transition: background-size 0.25s ease;
}

.hero-title a:hover,
.card-title a:hover {
	background-size: 100% 0.3em;
	color: var(--ink);
}

.hero-excerpt {
	font-size: 1.2rem;
	color: var(--muted);
	margin-bottom: 1.1rem;
}

/* ==========================================================================
   Card grid
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem) var(--gap);
}

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card-media {
	display: block;
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: var(--radius);
	background: var(--soft);
	aspect-ratio: 16 / 10;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card-media img {
	transform: scale(1.03);
}

.card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
}

.card-title {
	font-size: 1.35rem;
	line-height: 1.22;
	margin-bottom: 0.5rem;
}

.card-excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--muted);
	margin-bottom: 0.8rem;
}

.card .meta {
	margin-top: auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.9rem;
	font: 600 1rem var(--font-head);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .current {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
}

/* ==========================================================================
   Single post and page
   ========================================================================== */
.single {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.entry-header {
	max-width: 860px;
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.entry-title {
	font-size: clamp(2rem, 5.4vw, 3.6rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin-bottom: 0.5em;
}

.entry-header .meta {
	justify-content: center;
}

.entry-image {
	max-width: 1000px;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.entry-image img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	max-width: none;
	margin-inline: auto;
	font-size: 1.2rem;
	line-height: 1.78;
}

/* Every block sits in a centred reading column... */
.single .entry-content > * {
	max-width: var(--read);
	margin-inline: auto;
}

/* ...except wide blocks, which are wider and still centred. */
.single .entry-content > .alignwide,
.single .entry-content > .alignfull,
.page-single .entry-content > :is(figure, img, .wp-block-image, .wp-block-cover, .wp-block-gallery, .wp-block-columns, .wp-block-group, .wp-block-media-text, .wp-block-embed, .wp-block-video, .wp-block-table, .gallery) {
	max-width: 1100px;
}

.single .entry-content > .alignfull {
	max-width: 100%;
}

.page-single .entry-content > :is(figure, .wp-block-image) img,
.page-single .entry-content > img {
	width: 100%;
	height: auto;
	margin-inline: auto;
}

.page-single .entry-content > .wp-block-image .aligncenter,
.page-single .entry-content > .wp-block-image figure {
	margin-inline: auto;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 3.6vw, 2.1rem);
	margin-block: 2.1em 0.6em;
}

.entry-content h3 {
	font-size: clamp(1.3rem, 3vw, 1.6rem);
	margin-block: 1.8em 0.5em;
}

.entry-content h4 {
	font-size: 1.2rem;
	margin-block: 1.6em 0.4em;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgba(45, 57, 242, 0.4);
}

.entry-content a:hover {
	text-decoration-color: currentColor;
	background: var(--mark);
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	margin-block: 0 1.4em;
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content blockquote {
	margin-block: 2em;
	padding: 0.2em 0 0.2em 1.4em;
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.55;
	border-left: 4px solid var(--mark);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 0.6em;
	font: 500 0.95rem var(--font-head);
	font-style: normal;
	color: var(--muted);
}

.entry-content img {
	border-radius: 10px;
}

.entry-content figure {
	margin-block: 2em;
}

figcaption,
.wp-caption-text,
.wp-element-caption {
	margin-top: 0.6rem;
	font: 0.92rem/1.5 var(--font-head);
	color: var(--muted);
	text-align: center;
}

.entry-content hr {
	margin: 2.5em auto;
	border: 0;
	border-top: 1px solid var(--line);
	max-width: 120px;
}

.entry-content pre {
	overflow-x: auto;
	padding: 1rem 1.2rem;
	font-size: 0.95rem;
	line-height: 1.55;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 10px;
}

.entry-content code {
	padding: 0.1em 0.35em;
	font-size: 0.92em;
	background: var(--soft);
	border-radius: 5px;
}

.entry-content pre code {
	padding: 0;
	background: none;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 1rem;
}

.entry-content th,
.entry-content td {
	padding: 0.65rem 0.9rem;
	text-align: left;
	border: 1px solid var(--line);
}

.entry-content th {
	background: var(--soft);
	font-family: var(--font-head);
}

/* Alignment classes */
.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
	max-width: 50%;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
	max-width: 50%;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.single .entry-content > .alignleft {
	margin-left: max(0px, calc((100% - var(--read)) / 2));
}

.single .entry-content > .alignright {
	margin-right: max(0px, calc((100% - var(--read)) / 2));
}

.entry-content::after,
.entry-footer::after {
	content: "";
	display: table;
	clear: both;
}

.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gallery-item {
	margin: 0;
}

.entry-content iframe,
.entry-content .wp-block-embed__wrapper {
	max-width: 100%;
}

.wp-block-button__link {
	border-radius: 999px;
}

.page-links {
	margin: 2em 0;
	font-family: var(--font-head);
}

.entry-footer {
	max-width: var(--read);
	margin: 2.5rem auto 0;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-list a {
	display: inline-block;
	padding: 0.25rem 0.8rem;
	font: 500 0.9rem var(--font-head);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

.tag-list a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Previous / next */
.post-navigation {
	max-width: var(--read);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.2rem;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--accent);
}

.post-navigation .nav-next {
	text-align: right;
	grid-column: 2;
}

.post-navigation .nav-label {
	display: block;
	margin-bottom: 0.25rem;
	font: 500 0.88rem var(--font-head);
	color: var(--muted);
}

.post-navigation .nav-title {
	display: block;
	font: 700 1.05rem/1.3 var(--font-head);
}

.related {
	margin-top: clamp(2rem, 5vw, 3rem);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
	max-width: var(--read);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: clamp(0.75rem, 4vw, 2rem);
}

.comment-body {
	margin-bottom: 1.5rem;
	padding: 1rem 1.2rem;
	font-size: 1rem;
	line-height: 1.6;
	background: var(--soft);
	border-radius: var(--radius);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.8rem;
	margin-bottom: 0.6rem;
	font-family: var(--font-head);
}

.comment-author .avatar {
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.6rem;
	border-radius: 50%;
}

.comment-metadata,
.comment-metadata a {
	font-size: 0.88rem;
	color: var(--muted);
	text-decoration: none;
}

.reply a {
	font: 600 0.9rem var(--font-head);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font: 600 0.95rem var(--font-head);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	font: 1rem var(--font-body);
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(45, 57, 242, 0.15);
}

/* ==========================================================================
   Not found
   ========================================================================== */
.not-found {
	max-width: 560px;
	margin: clamp(1rem, 6vw, 4rem) auto;
	text-align: center;
}

.not-found .search-form {
	margin: 1.5rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	margin-top: clamp(2rem, 6vw, 4rem);
	background: var(--soft);
	border-top: 1px solid var(--line);
	font-size: 1rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding-block: 2.5rem 1rem;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 0.8rem;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	margin-bottom: 0.45rem;
}

.widget a {
	color: var(--ink);
}

.widget a:hover {
	color: var(--accent);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.5rem;
	font-family: var(--font-head);
}

.footer-widgets + .footer-bottom {
	border-top: 1px solid var(--line);
}

.footer-bottom p {
	margin: 0;
	color: var(--muted);
}

.footer-bottom a {
	color: var(--ink);
}

.footer-nav .menu a {
	font-size: 0.95rem;
	color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.nav-toggle {
		display: inline-block;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
	}

	.nav-open .primary-nav {
		display: flex;
	}

	.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
	}

	.menu > li > a {
		padding: 0.95rem 1.1rem;
		font-size: 1.1rem;
		border-radius: 14px;
	}

	.submenu-toggle {
		width: 100%;
		padding: 0.95rem 1.1rem 0.3rem;
		font-size: 0.95rem;
		color: var(--muted);
		background: transparent !important;
		pointer-events: none;
	}

	.submenu-toggle::after,
	.menu > .menu-item-has-children > a::after {
		display: none;
	}

	.menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0.4rem 0.4rem;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.menu .sub-menu::before {
		display: none;
	}

	.menu .sub-menu a {
		padding: 0.8rem 1.1rem;
		font-size: 1.05rem;
	}

	.primary-nav .search-form,
	.primary-nav .search-form:focus-within {
		width: 100%;
	}

	.hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 1.0625rem;
	}

	.entry-content {
		font-size: 1.125rem;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: auto;
	}

	.alignleft,
	.alignright,
	.single .entry-content > .alignleft,
	.single .entry-content > .alignright {
		float: none;
		display: block;
		max-width: 100%;
		margin: 1em auto;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.post-navigation,
	.related,
	.comments-area {
		display: none;
	}
}
