/* PaciFIST Firearms, LLC — static rebuild
   Colors, fonts, and texture matched closely to the original Purple Modena
   WordPress theme + PaciFIST logo. See ../../../archive/design-tokens.md */

:root {
	--purple: #440066;
	/* the logo PNG's own background, so the header bar blends into the artwork */
	--purple-logo: #410674;
	--purple-light: #aba3c3;
	--tint: #eae8f0;
	--ink: #000000;
	--body-text: #605467;
	--shadow: #605467;
	--white: #ffffff;
	--max: 1200px;
	--measure: 48rem;
	--radius: 4px;
	--font-display: "Cuprum", "Trebuchet MS", Tahoma, sans-serif;
	--font-body: "Cuprum", "Trebuchet MS", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--purple);
	background: radial-gradient(ellipse at center, var(--purple) 45%, var(--purple-light) 100%) no-repeat;
	background-attachment: fixed;
	color: var(--body-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
}

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

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--purple);
	color: var(--white);
	padding: 10px 16px;
	z-index: 100;
}
.skip-link:focus { left: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--purple-light); }
.content-card a,
.article-body a,
.article-card p a {
	text-decoration: underline;
	text-decoration-color: var(--purple-light);
	text-underline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
	margin: 1.6em 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
blockquote {
	margin: 1.4em 0;
	padding: 0.2em 1.2em;
	border-left: 4px solid var(--purple-light);
	color: var(--body-text);
	font-style: italic;
}
strong { color: var(--purple); }

/* ---------- purple textured surfaces (header/nav/footer) ---------- */

.textured {
	background-color: var(--purple);
	background-image: url(/assets/img/texture-nav-tile.png);
	background-repeat: repeat;
}

/* ---------- header ---------- */

.site-header {
	background: var(--purple-logo);
	box-shadow: 0 0 6px rgba(0,0,0,0.35);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px 24px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 92px; width: auto; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 4px;
	cursor: pointer;
	position: absolute;
	right: 24px;
	top: 22px;
}
.nav-toggle__bar { width: 20px; height: 2px; background: #fff; margin: 0 auto; }

.primary-nav {
	border-top: 1px solid rgba(255,255,255,0.15);
	box-shadow: 0 0 6px rgba(0,0,0,0.35);
}
.primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav a {
	display: block;
	padding: 30px 24px;
	color: #fff;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: 0 0 5px rgba(171,163,195,0.8);
	transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a:focus {
	background: #fff;
	color: var(--purple-light);
	text-shadow: none;
}

@media (max-width: 820px) {
	.nav-toggle { display: flex; }
	.site-header__inner { position: relative; padding: 18px 24px; }
	.site-logo img { height: 64px; }
	.primary-nav {
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 16px 24px; text-align: center; }
}

/* ---------- main / pages ---------- */

/* two-column layout — main content + right sidebar, as the original theme had
   on every page */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 28px;
	align-items: start;
	padding-top: 36px;
	padding-bottom: 64px;
}
.layout__main { display: block; min-width: 0; }
.layout__sidebar { min-width: 0; }

@media (max-width: 900px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
}

.page { padding: 0; }
.page--narrow { max-width: none; }

/* text sitting directly on the purple page background (not inside a
   .content-card) needs light color to stay readable */
.page-intro { margin-bottom: 28px; }
.page-intro h1 { color: #fff; }
.page-intro p { color: #ede8f5; max-width: 60ch; }

/* the floating white card, matching .main-content / article.post on the
   original theme: white + faint paper texture + soft shadow glow */
.content-card {
	background-color: var(--white);
	background-image: url(/assets/img/texture-paper.png);
	background-size: 360px 370px;
	border-radius: var(--radius);
	padding: 36px 40px;
	box-shadow: 0 0 10px var(--shadow);
}
@media (max-width: 560px) {
	.content-card { padding: 24px 20px; }
}

.cta-row {
	margin: 0 0 28px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.cta-row--center {
	justify-content: center;
	margin: 32px 0;
}

.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 10px 22px;
	border-radius: var(--radius);
	text-decoration: none !important;
	background: var(--purple);
	color: #fff !important;
	transition: background 0.15s ease;
}
.btn:hover { background: var(--purple-light); color: #fff !important; }

/* ---------- disclaimer callout ---------- */

.disclaimer {
	background-color: var(--tint);
	border-left: 4px solid var(--purple);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 22px 26px;
	font-size: 0.94rem;
	box-shadow: 0 0 10px var(--shadow);
}
.disclaimer h2, .disclaimer h3 { margin-top: 0; }

/* ---------- articles index ---------- */

.article-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.article-card {
	background-color: var(--white);
	background-image: url(/assets/img/texture-paper.png);
	background-size: 360px 370px;
	border-radius: var(--radius);
	padding: 24px 28px;
	box-shadow: 0 0 10px var(--shadow);
}
.article-card__date {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	color: var(--purple);
	font-weight: 700;
}
.article-card h2 { margin: 4px 0 8px; font-size: 1.35rem; color: var(--ink); }
.article-card h2 a { text-decoration: none; color: var(--ink); }
.article-card h2 a:hover { color: var(--purple); }
.article-card__cats { margin: 10px 0 0 !important; font-size: 0.85rem; }
.article-card__cats a { color: var(--purple); text-decoration: none; }
.article-card__cats a:hover { text-decoration: underline; }
.article-card p { margin: 0; color: var(--body-text); }
.article-card__more { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--purple-light); }

/* ---------- single article ---------- */

.article {
	max-width: var(--measure);
	margin: 0 auto;
}
.article-back {
	display: inline-block;
	margin-bottom: 18px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
}
.article-header { margin-bottom: 28px; }
.article-header h1 { color: var(--ink); }
.article-meta {
	font-family: var(--font-display);
	color: var(--body-text);
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}
.article-body { font-size: 1.05rem; }
.article-body img { border-radius: var(--radius); margin: 0.4em 0 1.1em; box-shadow: 0 0 10px var(--shadow); }
.article-footer {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--tint);
}

/* ---------- forms ---------- */

form.site-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 28px;
}
.site-form fieldset {
	border: 1px solid var(--tint);
	border-radius: var(--radius);
	padding: 18px 20px;
}
.site-form legend {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--purple);
	padding: 0 4px;
}
.site-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
	font-size: 0.95rem;
	color: var(--ink);
}
.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="tel"],
.site-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--purple-light);
	border-radius: 2px;
	font: inherit;
	background: #fafafc;
}
.site-form textarea { min-height: 110px; resize: vertical; }
.rating-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 12px;
}
.rating-row label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	margin-bottom: 0;
}
.field-comment label { font-weight: 400; margin-top: 10px; }
.honeypot { position: absolute; left: -9999px; }

.site-form button[type="submit"] {
	align-self: flex-start;
	background: var(--purple);
	color: #fff;
	border: none;
	font-family: var(--font-display);
	font-weight: 700;
	padding: 10px 26px;
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.15s ease;
}
.site-form button[type="submit"]:hover { background: var(--purple-light); }

.contact-details {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 20px 0 28px;
	font-size: 1.05rem;
	color: var(--ink);
}
.contact-details a { font-weight: 700; }
.map-embed {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 8px;
	box-shadow: 0 0 10px var(--shadow);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- footer ---------- */

.site-footer { color: #f1edf8; margin-top: 0; }
.site-footer__inner { padding: 36px 24px; text-align: center; }
.site-footer__brand img { height: 34px; margin: 0 auto 8px; }
.site-footer__brand p { margin: 0; color: #e3d9f2; font-size: 0.9rem; }
.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 20px 0;
}
.site-footer__nav a { color: #fff; text-decoration: none; font-size: 0.9rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.site-footer__nav a:hover { color: var(--purple-light); }
.site-footer__contact a { color: #fff; text-decoration: underline; }
.site-footer__legal { font-size: 0.82rem; color: #d9cdeb; margin-top: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }
.site-footer__legal a { color: #fff; }

/* ---------- sidebar widgets ----------
   Matched to the original theme: purple textured title bars, white list
   panels, dotted separators, purple links. */

.widget { margin-bottom: 28px; }
.widget-title {
	margin: 0;
	padding: 10px 15px;
	background-color: var(--purple);
	background-image: url(/assets/img/texture-nav-tile.png);
	background-repeat: repeat;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-shadow: 0 0 5px rgba(171,163,195,0.8);
}
.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: var(--white);
	box-shadow: 0 0 10px var(--shadow);
}
.widget li { margin: 0; }
.widget li a {
	display: block;
	padding: 10px 15px;
	border-bottom: 1px dotted var(--purple-light);
	color: var(--purple);
	font-size: 0.92rem;
	line-height: 1.4;
	text-decoration: none;
}
.widget li:last-child a { border-bottom: none; }
.widget li a:hover { color: var(--purple-light); background: var(--tint); }

.widget-categories li { position: relative; }
.widget-count {
	position: absolute;
	right: 15px;
	top: 10px;
	color: var(--purple-light);
	font-size: 0.78rem;
	pointer-events: none;
}

/* search box in the sidebar */
.searchform {
	display: flex;
	gap: 6px;
	background: var(--white);
	padding: 10px;
	box-shadow: 0 0 10px var(--shadow);
}
.searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--purple-light);
	border-radius: 2px;
	font: inherit;
	background: #fafafc;
}
.searchform button {
	flex: 0 0 auto;
	background: var(--purple);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-weight: 700;
	padding: 8px 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.searchform button:hover { background: var(--purple-light); }

/* ---------- categories on articles ---------- */

.article-categories {
	margin: 0 0 14px;
	font-size: 0.92rem;
	color: var(--body-text);
}
.article-categories a { color: var(--purple); }

/* ---------- category / search page headers ---------- */

.page-eyebrow {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}
.page-eyebrow a { color: #ded4ef; text-decoration: none; }
.page-eyebrow a:hover { color: #fff; }

/* ---------- search page ---------- */

.searchform--page { box-shadow: none; padding: 0; margin-bottom: 18px; }
.search-status { color: var(--body-text); font-size: 0.95rem; margin-bottom: 12px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 16px 0; border-top: 1px dotted var(--purple-light); }
.search-result:first-child { border-top: none; }
.search-result h2 { margin: 2px 0 6px; font-size: 1.15rem; }
.search-result h2 a { color: var(--ink); text-decoration: none; }
.search-result h2 a:hover { color: var(--purple); }
.search-result p { margin: 0; font-size: 0.92rem; color: var(--body-text); }
.search-result__kind {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.74rem;
	color: var(--purple);
	font-weight: 700;
}
