/*
Theme Name: sirgijoe
Theme URI: https://sirgijoe.com
Author: sirgijoe
Author URI: https://sirgijoe.com
Description: Custom theme for sirgijoe.com: open-source projects, a digital shop and merch. Olive, sand and brass; soldier meets knight. Works with WooCommerce.
Version: 1.0.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: sirgijoe
*/

/* ---------- Colours (light is default; dark via [data-theme="dark"]) ---------- */
:root {
	--olive: #1C2416;
	--olive-2: #2C3824;
	--sand: #E3C77A;
	--brass: #9C8540;
	--brass-ink: #6B5D2A;
	--green: #55682F;
	--green-dark: #36451C;

	--page: #F6F4EC;
	--soft: #ECE8DA;
	--card: #FFFFFF;
	--field: #FBFAF6;
	--ink: #1D2318;
	--body: #3B4233;
	--muted: #4E5545;
	--faint: #5D6452;
	--line: #E4E1D4;
	--line-2: #CFCBBB;
	--pill: #F1EEE3;

	--band-ink: #EEEADB;
	--band-body: #C5C7B6;
	--band-muted: #AEB3A0;
	--band-line: #4A5740;

	--radius: 16px;
	--shadow: 0 18px 40px -26px #1C241677;
	--shadow-hover: 0 26px 50px -28px #1C241699;
	--max: 1240px;
}
[data-theme="dark"] {
	--page: #12170F;
	--soft: #181F14;
	--card: #1B2317;
	--field: #141A11;
	--ink: #EEEADB;
	--body: #D2D3C4;
	--muted: #B5B9A8;
	--faint: #9EA492;
	--line: #2E3A28;
	--line-2: #4A5740;
	--pill: #242E1E;
	--green: #C9D3A0;
	--green-dark: #E3C77A;
	--brass-ink: #D8BC70;
	--shadow: 0 18px 40px -26px #000000AA;
	--shadow-hover: 0 26px 50px -28px #000000CC;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--page);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: Cinzel, Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
	z-index: 1000; padding: 12px 18px; background: var(--sand); color: var(--olive); border-radius: 10px; font-weight: 700;
}
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-bottom { padding-bottom: 104px; }
.soft-band { background: var(--soft); }
.center { text-align: center; }

/* ---------- Dark bands (diamond texture + gold glow) ---------- */
.band {
	background-color: var(--olive);
	background-image:
		radial-gradient(circle at var(--glow-x, 74%) var(--glow-y, 46%), #E3C77A26 0, #E3C77A00 38%),
		repeating-linear-gradient(45deg, #FFFFFF05 0 2px, #FFFFFF00 2px 14px);
	color: var(--band-ink);
}
.band a:not(.btn) { color: var(--band-ink); }
.band-joe { background-image: radial-gradient(circle at 78% 40%, #6BFF8E1A 0, #6BFF8E00 40%), repeating-linear-gradient(45deg, #FFFFFF05 0 2px, #FFFFFF00 2px 14px); }

/* ---------- Header / nav ---------- */
.site-header { position: relative; z-index: 20; }
.site-header.plain { background: var(--olive); color: var(--band-ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--band-ink) !important; }
.brand .wordmark { font-family: "Cinzel Decorative", Cinzel, serif; font-weight: 700; font-size: 22px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; align-items: center; font-weight: 500; font-size: 15px; }
.menu a { display: inline-block; padding: 12px 0; text-decoration: none; color: var(--band-ink); border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--sand) !important; }
.menu .current-menu-item > a, .menu .current-menu-ancestor > a, .menu .current_page_item > a, .menu .current_page_parent > a {
	color: var(--sand) !important; border-bottom-color: var(--sand);
}
.icon-btn {
	position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--band-line);
	background: transparent; color: var(--band-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn.gold { background: var(--sand); border-color: var(--sand); color: var(--olive) !important; }
.cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--band-ink); color: var(--olive); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.cart-count:empty { display: none; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }
.menu-wrap { margin-left: auto; }

@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.menu-wrap { order: 3; flex-basis: 100%; display: none; margin-left: 0; }
	.menu-wrap.open { display: block; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; border-top: 1px solid var(--band-line); }
	.menu a { display: block; padding: 14px 0; border-bottom: 1px solid #FFFFFF10; }
	.nav-right { margin-left: auto; }
}

/* ---------- Text bits ---------- */
.eyebrow {
	margin: 0 0 12px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-ink); font-family: Inter, sans-serif;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.band .eyebrow { color: var(--sand); }
.lead { font-size: 19px; line-height: 1.65; color: var(--band-body); max-width: 560px; }
.h-xl { font-size: clamp(40px, 6vw, 66px); line-height: 1.06; }
.h-lg { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.h-md { font-size: clamp(30px, 4vw, 40px); }
.h-sm { font-size: clamp(24px, 3vw, 30px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head .more { margin-left: auto; font-weight: 600; }
.ornament { display: flex; justify-content: center; padding: 0 32px 72px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px;
	border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
	transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--sand); color: var(--olive) !important; }
.btn-gold:hover { background: #EDD58F; }
.btn-ghost { border-color: #6B7660; color: var(--band-ink) !important; font-weight: 600; }
.btn-ghost:hover { border-color: var(--sand); }
.btn-dark { background: var(--olive); color: var(--band-ink) !important; }
[data-theme="dark"] .btn-dark { background: var(--sand); color: var(--olive) !important; }
.btn-outline { border-color: var(--olive); color: var(--olive) !important; font-weight: 600; }
[data-theme="dark"] .btn-outline { border-color: var(--sand); color: var(--sand) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
a.card { text-decoration: none; }
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.grid-fill { grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }
.icon-disc {
	flex: none; width: 48px; height: 48px; border-radius: 24px; background: var(--olive); color: var(--sand);
	display: inline-flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .icon-disc { background: var(--olive-2); }
.icon-disc.sm { width: 42px; height: 42px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 12px; background: var(--pill); font-size: 13px; color: var(--body); }
.pill-dark { background: var(--olive); color: var(--sand); font-size: 12px; font-weight: 600; }
.pill-active { background: #E5EFD9; color: #2F4A1A; font-weight: 600; font-size: 12px; }
.pill-beta { background: #E3C77A; color: #3A2E08; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.pill-soon { background: #F6ECCB; color: #5E4A0E; font-weight: 600; font-size: 12px; }
.pill-idea { background: #ECE8DA; color: #4A4630; font-weight: 600; font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Chips (filters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card);
	color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--olive); color: var(--band-ink); border-color: var(--olive); }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--sand); color: var(--olive); border-color: var(--sand); }
[hidden] { display: none !important; }

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 132px; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.hero-text .lead { margin-top: 26px; max-width: 540px; }
.hero-text .btn-row { margin-top: 38px; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-art svg { width: min(360px, 80vw); height: auto; }
.news-pill {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 16px 8px 8px; border-radius: 22px;
	background: #FFFFFF0F; border: 1px solid var(--band-line); color: #D8D6C6 !important; text-decoration: none; font-size: 14px;
}
.news-pill b { padding: 4px 10px; border-radius: 14px; background: var(--sand); color: var(--olive); font-size: 12px; }
@keyframes sgjFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: sgjFloat 6s ease-in-out infinite; }

.doors { margin-top: -78px; padding-bottom: 88px; position: relative; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-top: 3px solid var(--sand); box-shadow: var(--shadow); min-height: 210px; }
.door .title { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; }
.door .text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.door .cta { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--green); }

.feature-box {
	border-radius: 28px; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
	--glow-x: 85%; --glow-y: 15%;
}
.feature-box .copy { flex: 999 1 440px; min-width: 0; }
.feature-box p.body { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--band-body); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; margin-top: 30px; }
.feature-list div { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--olive-2); color: var(--sand); display: inline-flex; align-items: center; justify-content: center; }
.feature-list b { display: block; font-size: 15px; }
.feature-list span.t { font-size: 14px; line-height: 1.5; color: var(--band-muted); }
.small-note { margin-top: 16px; font-size: 13px; color: #9EA492; }

.screen {
	flex: 1 1 400px; min-width: 0; border-radius: 16px; background: #0A0E0A; border: 1px solid #2E4A33; overflow: hidden;
	box-shadow: 0 0 60px -10px #6BFF8E33, 0 40px 80px -40px #000;
}
.screen-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1B2A1D; }
.screen-bar span { width: 10px; height: 10px; border-radius: 5px; background: #2F4A35; }
.screen-body { padding: 26px 28px 30px; font-family: VT323, "Courier New", monospace; font-size: 26px; line-height: 1.35; color: #6BFF8E; }
.screen-body .dim { color: #3DBF5C; }
.screen img { display: block; width: 100%; height: auto; }
@keyframes blink { 50% { opacity: 0; } }
.cursor { animation: blink 1.1s steps(1) infinite; }

.news-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.news-card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--faint); }
.news-card .meta .pill { background: var(--soft); color: var(--brass-ink); font-weight: 600; font-size: 13px; }
.news-card .title { font-family: Cinzel, serif; font-weight: 700; font-size: 20px; line-height: 1.3; }
.news-card .text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.story { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; max-width: 1100px; }
.story .art { flex: 1 1 220px; display: flex; justify-content: center; }
.story .art svg { width: 220px; height: auto; }
.story .copy { flex: 999 1 460px; min-width: 0; }
.story .copy p { margin-top: 18px; font-size: 18px; line-height: 1.75; color: var(--body); }

.signup { border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.signup .copy { flex: 999 1 400px; min-width: 0; }
.signup .copy p { margin-top: 10px; color: var(--muted); }
.signup .form { flex: 1 1 280px; min-width: 0; }
.signup .form input[type="email"] { width: 100%; }

/* ---------- Products (home + shop) ---------- */
.product-card { display: flex; flex-direction: column; overflow: hidden; border-color: #E0DCCC; }
[data-theme="dark"] .product-card { border-color: var(--line); }
.product-card .thumb {
	position: relative; height: 220px; background: #DEDACB; display: flex; align-items: center; justify-content: center;
	color: #5A6152; font-size: 13px; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .pill-dark { position: absolute; top: 12px; left: 12px; }
.product-card .info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.product-card .name { font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.product-card .price { font-size: 15px; color: var(--muted); }
.empty-note { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.admin-note { padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius); border: 1px dashed var(--gold, #E3C77A); background: rgba(227,199,122,.12); font-size: .9rem; }

/* ---------- Page heads ---------- */
.page-hero { padding-top: 40px; padding-bottom: 96px; }
.page-hero .lead { margin-top: 18px; max-width: 620px; font-size: 18px; }
.overlap { margin-top: -56px; position: relative; }
.crumbs { font-size: 14px; color: var(--band-muted); margin-bottom: 28px; }
.crumbs a { color: var(--band-muted) !important; }

/* ---------- Projects ---------- */
.project-feature { display: flex; flex-wrap: wrap; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.project-feature .term {
	flex: 1 1 380px; min-height: 260px; background: #0A0E0A; display: flex; flex-direction: column; justify-content: center; gap: 6px;
	padding: 36px; font-family: VT323, monospace; font-size: 26px; color: #6BFF8E;
}
.project-feature .term img { width: 100%; height: 100%; object-fit: cover; }
.project-feature .copy { flex: 999 1 420px; min-width: 0; padding: 36px 40px; display: flex; flex-direction: column; gap: 12px; }
.project-feature .name { font-family: Cinzel, serif; font-weight: 700; font-size: 34px; }
.project-feature .meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--faint); }
.project-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 230px; border-radius: 18px; }
.project-card .top { display: flex; align-items: center; gap: 12px; }
.project-card .top .pill { margin-left: auto; }
.project-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--olive); color: var(--sand); display: inline-flex; align-items: center; justify-content: center; }
.project-card .ic.term { background: #0A0E0A; color: #6BFF8E; }
.project-card .name { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; }
.project-card .text { font-size: 15px; color: var(--muted); }
.project-card .tag-row { margin-top: auto; }
.help-box { border-radius: 24px; padding: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; --glow-x: 85%; --glow-y: 20%; }
.help-box b { display: block; font-size: 17px; color: var(--sand); margin-bottom: 6px; }
.help-box span { font-size: 15px; color: #D2D3C4; }

/* ---------- Joe page ---------- */
.joe-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.joe-hero .copy { flex: 999 1 520px; min-width: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badges span { padding: 5px 12px; border-radius: 14px; border: 1px solid var(--band-line); color: #D8D6C6; font-size: 13px; }
.badges .green { background: #6BFF8E1F; border-color: #3F7A4C; color: #8DFFA9; font-weight: 600; }
.download-box { padding: 40px; border-radius: 22px; box-shadow: var(--shadow); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; padding: 5px; border-radius: 14px; background: var(--pill); }
.tab { min-height: 44px; padding: 0 22px; border-radius: 10px; border: none; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--olive); color: var(--band-ink); box-shadow: 0 6px 14px -8px var(--olive); }
[data-theme="dark"] .tab[aria-selected="true"] { background: var(--sand); color: var(--olive); }
.dl-cols { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 30px; }
.dl-files { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dl-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--field); text-decoration: none; color: var(--ink); }
.dl-file .t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.dl-file .t b { font-size: 17px; }
.dl-file code { font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.dl-file .size { font-size: 14px; color: var(--faint); }
.dl-note { flex: 1 1 320px; min-width: 0; border-radius: 14px; background: #F6F1DF; border: 1px solid #E6DCB8; padding: 22px 24px; color: #4A4630; }
[data-theme="dark"] .dl-note { background: #2A2715; border-color: #4A4426; color: #E6DCB8; }
.dl-note b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.group-card { padding: 28px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.group-card .title { font-family: Cinzel, serif; font-weight: 700; font-size: 21px; }
.group-card .text { font-size: 15px; color: var(--muted); }
.step { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 8px 12px; }
.step .n { width: 56px; height: 56px; border-radius: 28px; border: 2px solid var(--brass); color: var(--brass-ink); display: inline-flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-weight: 700; font-size: 22px; }
.step b { font-size: 18px; }
.step span { font-size: 15px; color: var(--muted); max-width: 300px; }
.shot { height: 220px; border-radius: 16px; background: #0B0F0B; border: 1px solid #2E3B2A; display: flex; align-items: center; justify-content: center; color: #6BFF8E; font-family: VT323, monospace; font-size: 22px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.honest { border-radius: 18px; padding: 34px; background: var(--olive); color: var(--band-ink); }
.honest ul { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #D2D3C4; }
.reqs { border-radius: 18px; padding: 34px; }
.reqs .row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reqs .row b { flex: 0 0 150px; font-size: 15px; }
.reqs .row span { flex: 1 1 200px; font-size: 15px; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 16px 22px; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--brass-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.credits { border-radius: 22px; background: var(--soft); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.credits .copy { flex: 999 1 420px; min-width: 0; }
.credits .copy p { margin-top: 10px; color: var(--muted); }

/* ---------- About ---------- */
.about-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 104px; --glow-x: 25%; --glow-y: 55%; }
.about-hero .art { flex: 1 1 300px; display: flex; justify-content: center; }
.about-hero .art svg { width: min(300px, 70vw); height: auto; }
.about-hero .copy { flex: 999 1 520px; min-width: 0; }
.about-hero .lead { margin-top: 22px; max-width: 580px; line-height: 1.7; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .media { flex: 1 1 320px; min-width: 0; margin: 0; }
.split > .copy { flex: 999 1 460px; min-width: 0; }
.split .copy p { font-size: 18px; line-height: 1.75; color: var(--body); margin-top: 16px; }
.photo { display: block; width: 100%; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 50px -30px #1C2416AA; }
.photo.framed { border: 6px solid #FFFFFF; }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.photo-ph { display: flex; align-items: center; justify-content: center; min-height: 380px; border-radius: 20px; border: 2px dashed var(--line-2); color: var(--faint); background: var(--card); text-align: center; padding: 20px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--faint); text-align: center; }
.meaning { padding: 30px; border-radius: 18px; border-top: 3px solid var(--sand); display: flex; flex-direction: column; gap: 10px; }
.meaning .title { font-family: Cinzel, serif; font-weight: 700; font-size: 21px; }
.meaning .text { font-size: 15px; color: var(--muted); }
.timeline .item { display: flex; gap: 24px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { flex: none; width: 20px; height: 20px; border-radius: 10px; background: var(--olive); border: 3px solid var(--sand); }
.timeline .line { flex: 1; width: 2px; background: #C9B983; min-height: 40px; }
.timeline .item:last-child .line { background: transparent; }
.timeline .body { padding-bottom: 36px; }
.timeline .when { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); }
.timeline .title { margin-top: 6px; font-family: Cinzel, serif; font-weight: 700; font-size: 22px; }
.timeline .text { margin-top: 8px; color: var(--body); }
.beliefs { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.beliefs li { display: flex; gap: 14px; align-items: flex-start; }
.beliefs b { font-size: 17px; }
.beliefs span span { display: block; margin-top: 4px; color: var(--muted); }
.photo-wrap { position: relative; }
.photo-wrap figcaption { position: absolute; left: 18px; bottom: 18px; margin: 0; padding: 8px 14px; border-radius: 14px; background: #1C2416E6; color: var(--band-ink); text-align: left; }
.cta-box { border-radius: 24px; padding: 56px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; --glow-x: 85%; --glow-y: 20%; }
.cta-box .copy { flex: 999 1 420px; min-width: 0; }
.cta-box .copy p { margin-top: 12px; font-size: 17px; color: var(--band-body); }

/* ---------- Contact ---------- */
.quick { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.quick b { display: block; }
.quick span.t { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-box { margin-top: 40px; border-radius: 22px; padding: 40px; }
.sgj-form { display: flex; flex-direction: column; gap: 22px; }
.sgj-form fieldset { margin: 0; padding: 0; border: none; }
.sgj-form legend { font-weight: 700; margin-bottom: 12px; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 600; cursor: pointer; }
.radio-chips input:checked + span { background: var(--olive); color: var(--band-ink); border-color: var(--olive); }
[data-theme="dark"] .radio-chips input:checked + span { background: var(--sand); color: var(--olive); border-color: var(--sand); }
.radio-chips input:focus-visible + span { outline: 3px solid var(--sand); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; font-size: 14px; color: var(--faint); }
.field input, .field textarea, .field select, .signup input[type="email"] {
	min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field);
	font: inherit; font-weight: 400; color: var(--ink);
}
.field textarea { padding: 12px 14px; resize: vertical; }
.hint-box { padding: 18px 20px; border-radius: 14px; background: #F6F1DF; border: 1px solid #E6DCB8; font-size: 15px; color: #4A4630; }
[data-theme="dark"] .hint-box { background: #2A2715; border-color: #4A4426; color: #E6DCB8; }
.form-msg { text-align: center; padding: 24px 0; }
.form-msg p { margin-top: 10px; color: var(--muted); }
.form-error { padding: 14px 18px; border-radius: 12px; background: #F8E1DC; color: #6B2416; border: 1px solid #E8B9AE; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- Posts / plain pages ---------- */
.content { font-size: 18px; line-height: 1.75; color: var(--body); }
.content > * + * { margin-top: 1.1em; }
.content h2 { font-size: 30px; margin-top: 1.6em; color: var(--ink); }
.content h3 { font-size: 23px; margin-top: 1.4em; color: var(--ink); }
.content img { border-radius: 14px; }
.content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--sand); }
.content pre { background: var(--olive); color: var(--band-ink); padding: 18px; border-radius: 12px; overflow: auto; font-size: 15px; }
.post-meta { margin-top: 14px; color: var(--band-muted); font-size: 15px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; }
.pagination .current { background: var(--olive); color: var(--band-ink); border-color: var(--olive); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: #BFC2B1; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; padding-top: 64px; padding-bottom: 32px; }
.footer-grid .brand .wordmark { font-size: 20px; }
.footer-grid .about { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer-col h2 { font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-block; color: #BFC2B1; text-decoration: none; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #2E3A28; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: #9EA492; }
.vet-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--band-line); color: #D8D6C6; }
.footer-bottom .end { margin-left: auto; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	.wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.feature-box, .help-box, .cta-box, .signup, .download-box, .form-box, .credits { padding: 28px 22px; }
	.hero { padding-bottom: 110px; }
	.project-feature .copy { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.float, .cursor { animation: none; }
	.lift, .btn, .chip { transition: none; }
	html { scroll-behavior: auto; }
}

.license-help { margin: 8px 0 16px; font-size: .9rem; color: var(--muted); }
.license-help a { color: inherit; text-decoration: underline; }
