/*
Theme Name:   FixitNook
Theme URI:    https://fixitnook.com
Description:  Custom child theme for FixitNook, built on GeneratePress. Warm off-white ground, deep teal accent, Space Grotesk headings and Inter body.
Author:       FixitNook
Template:     generatepress
Version:      1.0.4
Requires at least: 6.0
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:  fixitnook
*/

/* ---------- Tokens ---------- */
:root {
	--fx-accent: #0F6E6A;
	--fx-accent-dark: #0A4F4C;
	--fx-accent-soft: #E8F3F2;
	--fx-ink: #1C2321;
	--fx-body: #4A5552;
	--fx-muted: #5B6663;
	--fx-ground: #FBFAF7;
	--fx-sand: #F1EEE6;
	--fx-photo: #E7E2D8;
	--fx-line: #E6E3DC;
	--fx-card: #FFFFFF;
	--fx-tip: #FFF4DF;
	--fx-tip-ink: #8A5A00;
	--fx-dark: #1C2321;
	--fx-radius: 16px;
	--fx-head: 'Space Grotesk', system-ui, sans-serif;
	--fx-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--fx-wrap: 1180px;
}

/* ---------- Base ---------- */
body {
	background: var(--fx-ground);
	color: var(--fx-ink);
	font-family: var(--fx-text);
	font-size: 17px;
	line-height: 1.65;
}
h1, h2, h3, h4, .fx-head {
	font-family: var(--fx-head);
	color: var(--fx-ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-weight: 700;
}
a { color: var(--fx-accent); text-decoration: none; }
a:hover, a:focus { color: var(--fx-accent-dark); }
img { border-radius: 12px; }
.screen-reader-text:focus { background: #fff; color: var(--fx-ink); }

/* GeneratePress containers: let our sections control width */
.site, .site-content, .one-container .container { background: transparent; }
.fx-page .inside-article { background: transparent; }
.fx-page .site-content { display: block; padding: 0; }
.fx-page .content-area, .fx-page .site-main { width: 100%; margin: 0; }
.fx-wrap { max-width: var(--fx-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.fx-full { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }

body.fx-page, body { overflow-x: clip; }
.site-footer, .site-info { background: transparent; padding: 0; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--fx-line); }
.inside-header { max-width: var(--fx-wrap); padding: 14px 24px; }
.main-title { font-family: var(--fx-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.main-title a { color: var(--fx-ink); display: inline-flex; align-items: center; gap: 10px; }
.main-title .fx-nook { color: var(--fx-accent); }
.main-title .fx-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.site-description { display: none; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	color: var(--fx-ink); font-weight: 500; font-size: 15px; padding-left: 14px; padding-right: 14px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-post-ancestor > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--fx-accent); background: transparent; }
.main-navigation .main-nav ul ul { background: #fff; border: 1px solid var(--fx-line); border-radius: 12px; }
.menu-toggle { color: var(--fx-ink); }
.navigation-search input[type="search"] { background: #fff; color: var(--fx-ink); }

/* ---------- Buttons & forms ---------- */
.fx-btn, button.fx-btn, input[type="submit"].fx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
	background: var(--fx-accent); color: #fff; font: 600 16px/1 var(--fx-text); cursor: pointer;
}
.fx-btn:hover, .fx-btn:focus { background: var(--fx-accent-dark); color: #fff; }
.fx-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.fx-search input[type="search"] {
	flex: 1 1 260px; height: 52px; padding: 0 18px; border: 1px solid #D9D4C9;
	border-radius: 12px; font: 16px var(--fx-text); background: #fff; color: var(--fx-ink);
}
.fx-chip {
	display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff;
	border: 1px solid #E0DBD0; color: var(--fx-ink); font-size: 14px; font-weight: 500;
}
.fx-chip.is-active, .fx-chip:hover { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }

/* ---------- Shared bits ---------- */
.fx-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-accent); }
.fx-card { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; color: var(--fx-ink); display: flex; flex-direction: column; }
.fx-card:hover { border-color: #CFC9BC; color: var(--fx-ink); }
.fx-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; background: var(--fx-photo); }
.fx-section-title { font-size: 30px; margin: 0 0 24px; }
.fx-meta { font-size: 14px; color: var(--fx-muted); }
.fx-breadcrumb { font-size: 14px; color: var(--fx-muted); margin: 0; }
.fx-breadcrumb a { color: var(--fx-accent); }

/* ---------- Homepage ---------- */
.fx-hero { background: var(--fx-sand); }
.fx-hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.fx-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fx-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.fx-hero p.fx-lead { margin: 0; font-size: 18px; color: var(--fx-body); max-width: 520px; }
.fx-hero-media { flex: 1 1 380px; min-width: 0; }
.fx-hero-media img { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; }
.fx-popular { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--fx-body); }

.fx-rooms { padding-top: 64px; padding-bottom: 24px; }
.fx-room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fx-room { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); color: var(--fx-ink); }
.fx-room:hover { border-color: var(--fx-accent); color: var(--fx-ink); }
.fx-room svg { width: 32px; height: 32px; stroke: var(--fx-accent); }
.fx-room strong { font-size: 17px; }
.fx-room span { font-size: 14px; color: var(--fx-muted); line-height: 1.5; }

.fx-latest { padding-top: 48px; padding-bottom: 48px; }
.fx-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fx-row-head .fx-section-title { margin: 0; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.fx-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fx-card-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-accent); }
.fx-card-title { font-family: var(--fx-head); font-size: 20px; font-weight: 600; line-height: 1.3; }

.fx-answers-wrap { padding-top: 24px; padding-bottom: 72px; }
.fx-answers { background: #fff; border: 1px solid var(--fx-line); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.fx-answers-intro { flex: 1 1 300px; }
.fx-answers-intro h2 { font-size: 28px; margin: 0 0 12px; }
.fx-answers-intro p { margin: 0; color: var(--fx-body); }
.fx-answers-list { flex: 2 1 480px; display: flex; flex-direction: column; }
.fx-answers-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ECE8E0; color: var(--fx-ink); font-weight: 500; }
.fx-answers-list a:last-child { border-bottom: 0; }
.fx-answers-list a span { color: var(--fx-accent); }

/* ---------- Archive ---------- */
.fx-archive-hero { background: var(--fx-sand); }
.fx-archive-hero .fx-wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.fx-archive-hero h1 { font-size: clamp(32px, 4vw, 44px); margin: 0; letter-spacing: -0.03em; }
.fx-archive-hero .fx-desc, .fx-archive-hero .fx-desc p { margin: 0; font-size: 18px; color: var(--fx-body); max-width: 640px; }
.fx-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fx-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 48px; padding-bottom: 72px; }
.fx-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fx-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fx-featured { flex-direction: row; flex-wrap: wrap; }
.fx-featured .fx-featured-media { flex: 1 1 320px; min-height: 240px; background: var(--fx-photo); }
.fx-featured .fx-featured-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fx-featured .fx-card-body { flex: 1 1 320px; padding: 28px; justify-content: center; }
.fx-featured .fx-card-title { font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; }
.fx-item { display: flex; gap: 20px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--fx-line); border-radius: 14px; color: var(--fx-ink); }
.fx-item:hover { border-color: #CFC9BC; color: var(--fx-ink); }
.fx-item-media { flex: 0 0 140px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--fx-photo); }
.fx-item-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fx-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-item-title { font-family: var(--fx-head); font-size: 19px; font-weight: 600; line-height: 1.3; }
.fx-item-desc { font-size: 14px; line-height: 1.5; color: var(--fx-body); }
.fx-box { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.fx-box.is-sand { background: var(--fx-sand); border-color: var(--fx-sand); }
.fx-box h2 { font-size: 20px; margin: 0; }
.fx-rank { display: flex; gap: 12px; color: var(--fx-ink); font-size: 15px; line-height: 1.4; font-weight: 500; }
.fx-rank b { font-family: var(--fx-head); color: var(--fx-accent); }
.fx-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.fx-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--fx-line); color: var(--fx-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; }
.fx-pagination .page-numbers.current { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }

/* ---------- Single post ---------- */
.fx-single .fx-layout { padding-top: 20px; gap: 48px; }
.fx-article { flex: 999 1 640px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.7; }
.fx-article > * + * { margin-top: 22px; }
.fx-article h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.fx-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--fx-muted); line-height: 1.4; }
.fx-byline img { width: 40px; height: 40px; border-radius: 50%; }
.fx-disclosure { font-size: 13px; color: var(--fx-muted); line-height: 1.5; }
.fx-featured-img img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 18px; }
.entry-content h2 { font-size: 30px; margin: 40px 0 14px; }
.entry-content h3 { font-size: 22px; margin: 28px 0 10px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.1em; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border: 0; background: var(--fx-sand); border-radius: 14px; padding: 20px 24px; font-style: normal; }

/* Quick answer box: add class "fx-quick-answer" to a Group block (or use the pattern) */
.fx-quick-answer { background: var(--fx-accent-soft); border-radius: var(--fx-radius); padding: 24px 28px; margin: 28px 0; }
.fx-quick-answer > :first-child::before { content: "Quick answer"; display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-accent); margin-bottom: 8px; }
.fx-quick-answer p:last-child { margin-bottom: 0; }

/* Tip box: class "fx-tip" */
.fx-tip { background: var(--fx-tip); border-radius: var(--fx-radius); padding: 20px 24px; margin: 28px 0; font-size: 16px; }
.fx-tip p:last-child { margin-bottom: 0; }
.fx-tip strong:first-child { color: var(--fx-tip-ink); }

/* Warning box: class "fx-warning" */
.fx-warning { background: #FDECEA; border-radius: var(--fx-radius); padding: 20px 24px; margin: 28px 0; font-size: 16px; }
.fx-warning p:last-child { margin-bottom: 0; }

/* Numbered steps: add class "fx-steps" to a numbered List block */
.entry-content ol.fx-steps { list-style: none; padding: 0; margin-left: 0; counter-reset: fxstep; }
.entry-content ol.fx-steps > li { counter-increment: fxstep; position: relative; padding-left: 54px; margin-bottom: 18px; min-height: 36px; }
.entry-content ol.fx-steps > li::before {
	content: counter(fxstep); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
	background: var(--fx-accent); color: #fff; font: 600 16px/36px var(--fx-text); text-align: center;
}

/* FAQ: Details blocks */
.entry-content details { border-bottom: 1px solid var(--fx-line); padding: 16px 0; }
.entry-content details summary { font-weight: 600; cursor: pointer; }
.entry-content details[open] summary { margin-bottom: 10px; }

.fx-author { display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); flex-wrap: wrap; margin-top: 40px; }
.fx-author img { width: 72px; height: 72px; border-radius: 50%; }
.fx-author-body { flex: 1 1 280px; font-size: 15px; line-height: 1.6; color: var(--fx-body); }
.fx-author-body strong { display: block; font-family: var(--fx-head); font-size: 18px; color: var(--fx-ink); margin-bottom: 4px; }
.fx-toc { position: sticky; top: 24px; }
.fx-toc a { font-size: 15px; display: block; padding: 2px 0; }
.fx-toc a.is-h3 { padding-left: 14px; font-size: 14px; }
.fx-related { background: var(--fx-sand); }
.fx-related .fx-wrap { padding-top: 48px; padding-bottom: 64px; }
.fx-related .fx-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fx-related .fx-card { border: 0; }
.fx-related .fx-card-title { padding: 18px; font-size: 18px; }

/* Widget areas */
.fx-ad-slot:empty { display: none; }
.fx-ad-slot .widget { margin: 0; }

/* ---------- Footer ---------- */
.fx-footer { background: var(--fx-dark); color: #D7DDDB; text-align: left; }
.fx-footer a { color: #D7DDDB; }
.fx-footer a:hover { color: #fff; }
.fx-footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.fx-footer-brand { flex: 1 1 280px; }
.fx-footer-brand .fx-logo-text { font-family: var(--fx-head); font-weight: 700; font-size: 22px; color: #fff; }
.fx-footer-brand .fx-logo-text span { color: #6FC7C0; }
.fx-footer-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; max-width: 320px; }
.fx-footer-cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.fx-footer-cols h2 { color: #fff; font-family: var(--fx-text); font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.fx-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-footer-bottom { border-top: 1px solid #2E3735; padding: 16px 24px; text-align: center; font-size: 13px; color: #A9B3B0; }

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
	body { font-size: 16px; }
	.fx-hero-inner { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
	.fx-hero-media img { height: 240px; }
	.fx-answers { padding: 24px; }
	.fx-item { gap: 14px; }
	.fx-item-media { flex-basis: 96px; height: 72px; }
	.fx-article { font-size: 17px; }
	.entry-content h2 { font-size: 26px; }
	.fx-toc { position: static; }
}
