/*
Theme Name: Safariors
Description: Lightweight classic theme that reproduces the original Safariors look (Aspire/Genesis era) on current WordPress without a framework or page builder.
Author: Safariors
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: safariors
*/

/* Self-hosted fonts (latin). Open Sans is one variable file covering 300-700. */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Shadows Into Light Two";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/shadows-into-light-two-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--accent: #fa5738;
	--ink: #333;
	--blue: #3196c1;
	--line: #ddd;
	--wrap: 1200px;
	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Shadows Into Light Two", cursive;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover, a:focus { color: var(--ink); }
p { margin: 0 0 1.5rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 300; line-height: 1.25; margin: 0 0 1rem; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
strong, b { font-weight: 700; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
blockquote { margin: 0 0 1.5rem; padding: 0 0 0 1.5rem; border-left: 4px solid var(--accent); }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.screen-reader-text { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip-path: none; width: auto; height: auto; background: #fff; padding: .5rem 1rem; z-index: 1000; left: .5rem; top: .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff; box-shadow: 0 0 6px 1px var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.site-branding img, .site-branding .custom-logo { display: block; width: auto; max-height: 56px; }
.site-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.site-title a { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: .25rem .5rem; color: #000; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.main-nav a {
	color: #000; font-size: .75rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
	display: block; padding: .5rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--accent); }

/* Hero (front page) */
.hero {
	position: relative; color: #fff; text-align: left;
	background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), var(--hero-img) center / cover no-repeat;
	padding: 6rem 0 9rem;
}
.hero .wrap { max-width: 1000px; }
.hero h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-bottom: .35rem; }
.hero .btn-pill {
	display: inline-block; margin-top: 1.5rem; padding: .85rem 4.5rem; background: #fff; color: var(--blue);
	border-radius: 999px; font-size: 1.35rem; font-weight: 400; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero .btn-pill:hover { background: var(--blue); color: #fff; }

.press { max-width: var(--wrap); margin: -3.25rem auto 0; padding: 0 1rem; position: relative; z-index: 2; }
.press div { background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: .5rem 1rem; }
.press img { display: block; width: 100%; }

/* Home sections */
.section-title { text-align: center; font-size: 2.1rem; font-weight: 700; margin: 3.5rem 0 2rem; color: #000; }
.section-title::before { content: ""; display: block; height: 1px; background: var(--ink); margin-bottom: 2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.guide-grid p { margin: 0; }

.cta-band {
	margin: 3rem 0; padding: 5.5rem 0; color: #fff;
	background: linear-gradient(rgba(0,0,0,.41), rgba(0,0,0,.41)), var(--cta-img) center / cover fixed no-repeat;
	clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: 1000px; }
.cta-band p { font-family: var(--hand); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.cta-band p span { color: #3bb4ec; }
.cta-band .btn-blue { background: var(--blue); color: #fff; padding: .85rem 2.5rem; border-radius: 3px; font-size: 1.35rem; white-space: nowrap; }
.cta-band .btn-blue:hover { background: #fff; color: var(--blue); }

/* Post cards */
.card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; padding: 0; margin: 0 0 2rem; list-style: none; }
.card { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h2 { font-size: .9rem; font-weight: 400; line-height: 1.45; margin: 0; padding: .75rem .75rem 1rem; text-align: justify; }
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: .5rem; margin: 2rem 0 3rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .4rem .9rem; border: 1px solid var(--line); color: var(--ink); }
.pagination .current, .pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Archive / single / page */
.page-header { text-align: center; margin: 3rem 0 2rem; }
.page-header h1 { font-weight: 700; }
.archive-description { max-width: 800px; margin: 0 auto; }
.site-main { padding: 2rem 0 1rem; }

.entry { max-width: 80%; margin: 0 auto; }
.entry-title { font-size: 2.25rem; font-weight: 700; margin-bottom: .5rem; }
.entry-meta { font-size: .875rem; color: #777; margin-bottom: 1.5rem; }
.entry-content { text-align: justify; }
.entry-content img { height: auto; }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin: 0 auto 1rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .875rem; text-align: center; color: #777; }
.seealsobox { border: 1px solid #b89e40; background: #fffcf4; padding: 20px; margin-bottom: 1.5rem; }
.category-fishing .entry, .category-hiking .entry, .category-hunting .entry, .category .entry { max-width: 100%; }

.amzlink.btn, a.btn { display: inline-block; padding: .6rem 1.5rem; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 400; }
a.btn:hover { background: var(--ink); color: #fff; }
a.btn.orange { background: #f90; }
a.btn.aligncenter { display: table; margin: 0 auto 1.5rem; }
a.btn.medium { font-size: 1rem; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem auto; max-width: 80%; font-size: .95rem; }

.comments-area { max-width: 80%; margin: 3rem auto; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea,
.search-form input[type=search], .wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea {
	width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); font: inherit; background: #fff;
}
input[type=submit], button[type=submit], .wpcf7-submit { background: var(--accent); color: #fff; border: 0; padding: .7rem 1.75rem; font: inherit; cursor: pointer; transition: background .3s; }
input[type=submit]:hover, button[type=submit]:hover { background: var(--ink); }

/* Footer */
.site-footer { background: #000; color: #fff; text-align: center; padding: 1.75rem 1rem; font-size: .6875rem; line-height: 1.6; margin-top: 3rem; }
.site-footer p { margin: 0 0 .5rem; text-transform: uppercase; }
.site-footer .copy { font-size: .8125rem; text-transform: none; margin: 0; }
.site-footer a { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
	.card-grid { grid-template-columns: repeat(3, 1fr); }
	.guide-grid { grid-template-columns: 1fr; }
	.entry, .post-nav, .comments-area { max-width: 100%; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 6px 6px -4px var(--line); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
	.main-nav a { padding: .75rem 0; border-bottom: 1px solid #eee; }
	.hero { padding: 4rem 0 7rem; }
	.hero .btn-pill { padding: .75rem 2.5rem; }
	.cta-band { clip-path: none; background-attachment: scroll; }
}
@media (max-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } body { font-size: 1rem; } }
@media (max-width: 420px) { .card-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
