/* Cyrus Interactive Endeavors - main styles. Black/white base, white-gold + yellow-gold titles, buttons green on hover (black text, AA); links underline only. No green text. */
:root {
	--ci-black: #0B0B0B;
	--ci-surface: #161616;
	--ci-card: #1A1A1A;
	--ci-line: #2C2C2C;
	--ci-white: #FFFFFF;
	--ci-text: #F2F2F2;
	--ci-muted: #B8B8B8;
	--ci-white-gold: #E8DCC4;
	--ci-yellow-gold: #D4AF37;
	--ci-green: #2EAD5B;
	--ci-radius: 12px;
	--ci-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ci-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--ci-black); color: var(--ci-text); font: 16px/1.6 var(--ci-font); }
img { max-width: 100%; height: auto; }
a { color: var(--ci-yellow-gold); text-underline-offset: 3px; transition: color .15s; }
a { text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ci-white-gold); outline-offset: 2px; }

/* Headings alternate: h1 yellow gold, h2 white gold, h3 yellow, h4 white gold... */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1, h3, h5 { color: var(--ci-yellow-gold); }
h2, h4, h6 { color: var(--ci-white-gold); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.title-yellow { color: var(--ci-yellow-gold) !important; }
.title-white, .title-white-gold { color: var(--ci-white-gold) !important; }
/* Pages alternate the h1 colour: odd page IDs use white gold. */
body.page.ci-alt h1.title-yellow { color: var(--ci-white-gold) !important; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); }
.center { text-align: center; }
.muted { color: var(--ci-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ci-yellow-gold); color: var(--ci-black); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons: gold fill, green on hover */
.btn, button, input[type="submit"], input[type="button"], .wp-block-button__link {
	display: inline-block; background: var(--ci-yellow-gold); color: var(--ci-black); border: 2px solid var(--ci-yellow-gold);
	border-radius: 999px; padding: .6rem 1.3rem; font: 600 1rem/1.2 var(--ci-font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .btn:focus-visible, button:hover, button:focus-visible, input[type="submit"]:hover, input[type="button"]:hover, .wp-block-button__link:hover {
	background: var(--ci-green); border-color: var(--ci-green); color: var(--ci-black);
}
.btn-outline { background: transparent; color: var(--ci-white-gold); border-color: var(--ci-white-gold); }
.btn-small { padding: .35rem .9rem; font-size: .9rem; }
.btn-large { padding: .85rem 1.8rem; font-size: 1.1rem; }
.btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }

input, select, textarea { background: var(--ci-surface); color: var(--ci-text); border: 1px solid var(--ci-line); border-radius: 8px; padding: .6rem .75rem; font: inherit; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ci-yellow-gold); outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,.35); }
label { color: var(--ci-white-gold); }

.card { background: var(--ci-card); border: 1px solid var(--ci-line); border-radius: var(--ci-radius); padding: 1.5rem; margin-bottom: 1rem; }

/* Header */
.site-header { background: var(--ci-black); border-bottom: 1px solid var(--ci-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ci-white); font-weight: 700; font-size: 1.15rem; }
.brand:hover .brand-name { text-decoration: underline; }
.custom-logo { max-height: 48px; width: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.primary-nav .menu { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.primary-nav .menu a { color: var(--ci-white); text-decoration: none; font-weight: 500; }
.primary-nav .menu a:hover, .primary-nav .menu a:focus-visible { text-decoration: underline; }
.primary-nav .current-menu-item > a { color: var(--ci-yellow-gold); }
.primary-nav .sub-menu { display: none; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--ci-line); padding: .5rem .7rem; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ci-white); position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -7px; } .nav-toggle .bars::after { position: absolute; top: 7px; }
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ci-black); flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--ci-line); }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; }
}

/* Layout */
.site-main { min-height: 60vh; padding-bottom: 3rem; }
.site-main:focus { outline: none; }
.page-head { padding: 2.5rem 0 1rem; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding-top: 2rem; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 1.25rem; padding: 0; margin-block: 0; list-style: none; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.align-center { align-items: center; }
.section { padding: 4rem 0; }
.section-alt { background: var(--ci-surface); border-block: 1px solid var(--ci-line); }

/* Hero */
.hero { padding: 6rem 0 5rem; background: radial-gradient(1000px 400px at 50% 0, rgba(212,175,55,.18), transparent 70%), var(--ci-black); border-bottom: 1px solid var(--ci-line); text-align: center; }
.hero-small { padding: 3.5rem 0 2.5rem; }
.hero .lead { font-size: 1.25rem; max-width: 720px; margin: 0 auto 2rem; color: var(--ci-white); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; color: var(--ci-white-gold); font-size: .85rem; }
.actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.feature h3 { margin-bottom: .3rem; }
.price-card { display: flex; flex-direction: column; gap: .5rem; }
.price-card.featured { border-color: var(--ci-yellow-gold); box-shadow: 0 0 0 1px var(--ci-yellow-gold); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--ci-white); margin: 0; }
.price span { font-size: 1rem; color: var(--ci-muted); font-weight: 400; }
.ticks { list-style: none; padding: 0; margin: .5rem 0 1rem; flex: 1; }
.ticks li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ci-yellow-gold); font-weight: 700; }
.store-btn { margin: .3rem; }

/* Posts */
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.meta { color: var(--ci-muted); font-size: .9rem; }
.entry-content { overflow-wrap: anywhere; }
.entry-content blockquote { border-left: 4px solid var(--ci-yellow-gold); margin: 1rem 0; padding: .5rem 1rem; color: var(--ci-white-gold); }
.entry-content pre, code { font-family: var(--ci-mono); background: var(--ci-surface); border-radius: 6px; }
.entry-content pre { padding: 1rem; overflow: auto; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--ci-line); padding: .5rem; }
.nav-links { display: flex; gap: .5rem; justify-content: space-between; margin: 1.5rem 0; flex-wrap: wrap; }
a.page-numbers:hover { background: var(--ci-green); color: var(--ci-black); text-decoration: none; }
.page-numbers { padding: .3rem .7rem; border: 1px solid var(--ci-line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--ci-yellow-gold); color: var(--ci-black); }
.search-form { display: flex; gap: .5rem; } .search-form input { flex: 1; }
.widget ul { padding-left: 1.1rem; }
.comment-list { padding-left: 1rem; }
.alignwide { width: min(1160px, 100vw - 2rem); margin-inline: calc(50% - min(1160px, 100vw - 2rem) / 2); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }

/* Footer */
.site-footer { background: #050505; border-top: 1px solid var(--ci-line); padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.menu-vertical { list-style: none; padding: 0; margin: 0; } .menu-vertical li { margin: .3rem 0; }
.site-footer .menu-vertical a, .site-footer .menu a { color: var(--ci-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .menu { list-style: none; padding: 0; }
.copyright { border-top: 1px solid var(--ci-line); margin-top: 2rem; padding-top: 1rem; color: var(--ci-muted); font-size: .9rem; }
