/* Cullah Campaign — light-mode, site-native palette (see reference_brand_kit.md)
 *
 * Palette sampled from cullah.com's Header template #64657 and Woo email defaults.
 * Display face is variable — swap --cc-font-display to change it everywhere.
 */

:root {
	--cc-bg:           #EDF1F0;    /* off-white w/ teal-gray undertone */
	--cc-surface:      #DEE5E3;    /* slightly deeper surface */
	--cc-border:       #C6D0CD;
	--cc-fg:           #0F1815;    /* headings — near-black w/ slight teal */
	--cc-body:         #283430;    /* body text */
	--cc-muted:        #6E7B78;
	--cc-accent:       #0A3A47;    /* Deep Teal Blue — PRIMARY */
	--cc-accent-deep:  #062833;
	--cc-warm:         #C9A961;    /* Brushed Gold — accent */
	--cc-warm-deep:    #A98841;
	--cc-hero-bg:      #0F1815;    /* reserved for dark strips only */
	--cc-hero-fg:      #EDF1F0;
	--cc-hero-muted:   #8A9592;

	--cc-font:         'Roboto', system-ui, -apple-system, sans-serif;
	--cc-font-display: 'Cinzel', Georgia, serif;
	--cc-font-slab:    'Roboto Slab', Georgia, serif;

	--cc-radius:       10px;
	--cc-radius-lg:    16px;
}

/* ── Progress Bar (horizon line) ─────────────────────────────── */

.cullah-progress {
	color: var(--cc-fg);
	font-family: var(--cc-font);
	max-width: 780px;
	margin: 2rem auto;
}

.cullah-progress-stats {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.cullah-progress-raised-amount {
	font-family: var(--cc-font-display);
	font-weight: 700;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1;
	color: var(--cc-fg);
	letter-spacing: 0.01em;
}

.cullah-progress-raised-of {
	display: inline-block;
	margin-left: 0.6rem;
	font-size: 1rem;
	color: var(--cc-muted);
	font-family: var(--cc-font);
}

.cullah-progress-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: var(--cc-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.cullah-progress-track {
	background: var(--cc-surface);
	border: 1px solid var(--cc-border);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	position: relative;
}

.cullah-progress-fill {
	background: linear-gradient(90deg, var(--cc-accent), var(--cc-warm));
	height: 100%;
	border-radius: 999px;
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cullah-progress-pct {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	color: var(--cc-muted);
	text-align: right;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

/* ── Tier Cards ─────────────────────────────────────────────── */

.cullah-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	max-width: 1200px;
	margin: 2rem auto;
	font-family: var(--cc-font);
}

.cullah-tier {
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	padding: 1.75rem 1.5rem;
	color: var(--cc-body);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cullah-tier:hover {
	transform: translateY(-2px);
	border-color: var(--cc-accent);
	box-shadow: 0 8px 24px -10px rgba(10,58,71,0.25);
}

.cullah-tier-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--cc-border);
}

.cullah-tier-name {
	margin: 0;
	font-family: var(--cc-font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cullah-tier-price {
	font-family: var(--cc-font-display);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--cc-fg);
	letter-spacing: 0;
}

.cullah-tier-desc {
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--cc-body);
}

.cullah-tier-desc p { margin: 0 0 0.5rem; }
.cullah-tier-desc ul { margin: 0.5rem 0 0.5rem 1.25rem; padding: 0; }
.cullah-tier-desc li { margin: 0.25rem 0; }

.cullah-tier-footer {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 1.25rem;
}

.cullah-tier-stock,
.cullah-tier-sold {
	font-size: 0.75rem;
	color: var(--cc-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.cullah-tier-stock { color: #A98841; }

.cullah-tier-btn {
	display: inline-block;
	background: var(--cc-accent);
	color: #FFFFFF !important;
	padding: 0.8rem 1.25rem;
	border-radius: var(--cc-radius);
	font-weight: 500;
	font-size: 1rem;
	font-family: var(--cc-font);
	text-align: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s ease, transform 0.1s ease;
	letter-spacing: 0.02em;
}
.cullah-tier-btn:hover { background: var(--cc-accent-deep); transform: translateY(-1px); }
.cullah-tier-btn-disabled { background: var(--cc-surface); color: var(--cc-muted) !important; pointer-events: none; cursor: not-allowed; border: 1px solid var(--cc-border); }
.cullah-tier-soldout { opacity: 0.55; }

/* Middle tier subtle emphasis */
.cullah-tier:nth-child(3) {
	border-color: var(--cc-accent);
	box-shadow: 0 0 0 1px var(--cc-accent);
}

/* ── Gift fields inside a tier ──────────────────────────────── */

.cullah-tier-form { display: flex; flex-direction: column; gap: 0.6rem; }

.cullah-tier-gift-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.85rem;
	color: var(--cc-muted);
	padding: 0.35rem 0;
	user-select: none;
}
.cullah-tier-gift-check { accent-color: var(--cc-accent); cursor: pointer; }
.cullah-tier-gift-toggle:hover .cullah-tier-gift-toggle-label { color: var(--cc-fg); }

.cullah-tier-gift-fields { display: flex; flex-direction: column; gap: 0.5rem; }
.cullah-tier-gift-fields[hidden] { display: none !important; }

.cullah-tier-gift-input {
	width: 100%;
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	border-radius: calc(var(--cc-radius) - 2px);
	color: var(--cc-fg);
	padding: 0.65rem 0.8rem;
	font-family: var(--cc-font);
	font-size: 0.9rem;
	resize: vertical;
	box-sizing: border-box;
}
.cullah-tier-gift-input:focus {
	outline: none;
	border-color: var(--cc-accent);
	box-shadow: 0 0 0 3px rgba(10,58,71,0.15);
}
.cullah-tier-gift-input::placeholder { color: #ACACAC; }

/* ── Custom-amount gift form ────────────────────────────────── */

.cullah-gift {
	max-width: 560px;
	margin: 2.5rem auto;
	padding: 2rem;
	background: var(--cc-surface);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	color: var(--cc-body);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	font-family: var(--cc-font);
}
.cullah-gift-title {
	margin: 0;
	font-family: var(--cc-font-display);
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--cc-fg);
}
.cullah-gift-subtitle { margin: 0 0 0.5rem; color: var(--cc-muted); font-size: 0.95rem; }

.cullah-gift-amount-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cullah-gift-input-wrap { position: relative; display: flex; align-items: center; flex: 1 1 140px; }
.cullah-gift-currency {
	position: absolute;
	left: 0.85rem;
	font-size: 1.2rem;
	color: var(--cc-muted);
	pointer-events: none;
	font-family: var(--cc-font-display);
}
.cullah-gift-amount {
	width: 100%;
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	color: var(--cc-fg);
	padding: 0.8rem 1rem 0.8rem 1.75rem;
	font-family: var(--cc-font-display);
	font-size: 1.3rem;
	font-weight: 600;
	box-sizing: border-box;
	-moz-appearance: textfield;
}
.cullah-gift-amount::-webkit-outer-spin-button, .cullah-gift-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cullah-gift-amount:focus { outline: none; border-color: var(--cc-accent); box-shadow: 0 0 0 3px rgba(10,58,71,0.15); }

.cullah-gift-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cullah-gift-preset {
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	color: var(--cc-body);
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--cc-font);
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.15s ease;
}
.cullah-gift-preset:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cullah-gift-preset.is-active { background: var(--cc-accent); border-color: var(--cc-accent); color: #FFFFFF; }

.cullah-gift-btn { width: auto; align-self: flex-start; padding-left: 2rem; padding-right: 2rem; }

/* ── Countdown ──────────────────────────────────────────────── */

.cullah-countdown { max-width: 560px; margin: 2rem auto; text-align: center; font-family: var(--cc-font); }
.cullah-countdown-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.cullah-countdown-part {
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	padding: 1.25rem 0.5rem;
}
.cullah-countdown-num {
	display: block;
	font-family: var(--cc-font-display);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	color: var(--cc-fg);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.cullah-countdown-lbl {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--cc-muted);
	margin-top: 0.4rem;
	font-weight: 500;
}
.cullah-countdown-label { margin-top: 1rem; font-size: 0.95rem; color: var(--cc-muted); font-style: italic; }

/* ── Toast ──────────────────────────────────────────────────── */

.cullah-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--cc-fg);
	color: var(--cc-bg);
	padding: 0.9rem 1.25rem;
	border-radius: var(--cc-radius);
	box-shadow: 0 10px 30px -8px rgba(0,0,0,0.25);
	display: flex;
	align-items: center;
	gap: 1rem;
	z-index: 9999;
	max-width: calc(100vw - 2rem);
	font-family: var(--cc-font);
	animation: cullah-toast-in 0.35s cubic-bezier(0.22,1,0.36,1), cullah-toast-fade 1s ease 6s forwards;
}
.cullah-toast-msg { font-size: 0.95rem; }
.cullah-toast-cta {
	color: var(--cc-accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.cullah-toast-cta:hover { text-decoration: underline; }

@keyframes cullah-toast-in {
	from { opacity: 0; transform: translate(-50%, 16px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cullah-toast-fade { to { opacity: 0; pointer-events: none; } }
.cullah-toast:hover { animation-play-state: paused; opacity: 1; }

/* ── Dispatches — editorial letters with Ogham chapter marks ─── */

.cullah-dispatches {
	max-width: 720px;
	margin: 3rem auto;
	font-family: var(--cc-font);
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.cullah-dispatch {
	border-top: 1px solid var(--cc-border);
	padding-top: 2rem;
}
.cullah-dispatch:first-child { border-top: none; padding-top: 0; }

.cullah-dispatch-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.cullah-dispatch-ogham {
	font-family: 'Noto Sans Ogham', serif;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--cc-accent);
	flex: none;
	width: 3rem;
	text-align: center;
}

.cullah-dispatch-meta { line-height: 1.3; }

.cullah-dispatch-number {
	font-family: var(--cc-font-display);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cullah-dispatch-date {
	font-size: 0.85rem;
	color: var(--cc-muted);
	font-style: italic;
}

.cullah-dispatch-title {
	font-family: var(--cc-font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.15;
	letter-spacing: 0.02em;
	color: var(--cc-fg);
	margin: 0 0 1rem;
}

.cullah-dispatch-body {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cc-body);
}
.cullah-dispatch-body p { margin: 0 0 1em; }
.cullah-dispatch-body p:last-of-type { margin-bottom: 0.5em; }

.cullah-dispatch-link {
	display: inline-block;
	color: var(--cc-accent);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.cullah-dispatch-link:hover { border-color: var(--cc-accent); }

/* ── Backer Wall ─────────────────────────────────────────────── */

.cullah-backers {
	max-width: 900px;
	margin: 3rem auto;
	font-family: var(--cc-font);
}

.cullah-backers-header {
	text-align: center;
	margin-bottom: 2rem;
}
.cullah-backers-count {
	font-family: var(--cc-font-display);
	font-size: clamp(2.75rem, 6vw, 4rem);
	font-weight: 700;
	color: var(--cc-accent);
	line-height: 1;
	letter-spacing: 0.02em;
}
.cullah-backers-label {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.85rem;
	color: var(--cc-muted);
	margin-top: 0.5rem;
	font-weight: 500;
}
.cullah-backers-note {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--cc-muted);
	font-style: italic;
}

.cullah-backers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.cullah-backers-name {
	display: inline-block;
	background: var(--cc-surface);
	border: 1px solid var(--cc-border);
	color: var(--cc-body);
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cullah-backers-name:hover {
	border-color: var(--cc-accent);
	color: var(--cc-accent);
	transform: translateY(-1px);
}

.cullah-backers-empty {
	text-align: center;
	color: var(--cc-muted);
	font-style: italic;
	font-size: 1rem;
}

/* ── Closing ceremony (campaign ended) ───────────────────────── */

.cullah-closed {
	max-width: 640px;
	margin: 3rem auto;
	padding: 3rem 2rem;
	text-align: center;
	background: var(--cc-surface);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	font-family: var(--cc-font);
}

.cullah-closed-mark {
	color: var(--cc-accent);
	margin-bottom: 1rem;
	line-height: 0;
}

.cullah-closed-title {
	font-family: var(--cc-font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	letter-spacing: 0.03em;
	color: var(--cc-fg);
	margin: 0 0 1rem;
}

.cullah-closed-msg {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--cc-body);
	max-width: 520px;
	margin: 0 auto 1rem;
}

.cullah-closed-msg strong { color: var(--cc-fg); }

.cullah-closed-followup {
	font-size: 0.95rem;
	color: var(--cc-muted);
	margin: 0;
}

/* ── Landing shell ───────────────────────────────────────────── */

.cullah-landing {
	background: var(--cc-bg);
	color: var(--cc-body);
	font-family: var(--cc-font);
	padding: 4rem 1.5rem;
	max-width: 1080px;
	margin: 0 auto;
}

.cullah-landing-hero {
	text-align: center;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--cc-border);
	margin-bottom: 3rem;
}

.cullah-landing-mark {
	width: 120px;
	height: auto;
	margin: 0 auto 1.5rem;
	display: block;
}

.cullah-landing-title {
	font-family: var(--cc-font-display);
	font-weight: 700;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	letter-spacing: 0.03em;
	color: var(--cc-fg);
	margin: 0 0 0.4rem;
	line-height: 1.05;
}

.cullah-landing-ogham {
	font-family: 'Noto Sans Ogham', serif;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	letter-spacing: 0.15em;
	color: var(--cc-accent);
	margin-bottom: 1rem;
}

.cullah-landing-tagline {
	font-family: var(--cc-font);
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	color: var(--cc-body);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.5;
}

.cullah-landing-letter {
	max-width: 620px;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--cc-body);
}

.cullah-landing-letter p { margin: 0 0 1.2rem; }
.cullah-landing-sig {
	font-family: var(--cc-font-display);
	font-size: 1rem;
	letter-spacing: 0.08em;
	color: var(--cc-muted);
	margin-top: 2rem !important;
}

.cullah-landing-section {
	margin: 4rem 0;
}

.cullah-landing-section-title {
	font-family: var(--cc-font-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	letter-spacing: 0.05em;
	text-align: center;
	color: var(--cc-fg);
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.cullah-landing-section-sub {
	text-align: center;
	color: var(--cc-muted);
	margin: 0 auto 1.5rem;
	max-width: 540px;
	font-style: italic;
	font-size: 0.98rem;
}

/* ── Tier Ogham subtitle ─────────────────────────────────────── */

.cullah-tier-title-block {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.cullah-tier-ogham {
	font-family: 'Noto Sans Ogham', serif;
	font-size: 1.1rem;
	letter-spacing: 0.12em;
	color: var(--cc-accent);
	line-height: 1;
}

/* ── Ogham stem-line divider ─────────────────────────────────── */

.cullah-divider {
	display: block;
	width: 100%;
	max-width: 300px;
	height: 40px;
	margin: 3rem auto;
	color: var(--cc-muted);
}

.cullah-divider-accent {
	color: var(--cc-accent);
	stroke: var(--cc-accent) !important;
}

/* ── Orbit mark (3 dots on a tilted ring + static rays) ──────── */

.cullah-orbit-mark {
	width: 130px;
	height: auto;
	margin: 0 auto 1.5rem;
	display: block;
	color: var(--cc-fg);
}

.cullah-orbit-mark .cc-orbit-dot {
	transform-box: fill-box;
	transform-origin: center;
	animation: cullah-orbit-ring 4s linear infinite;
}

.cullah-orbit-mark .cc-orbit-dot-1 { animation-delay: -2.667s; }
.cullah-orbit-mark .cc-orbit-dot-2 { animation-delay: -1.333s; }
.cullah-orbit-mark .cc-orbit-dot-3 { animation-delay:  0s;     }

@keyframes cullah-orbit-ring {
	0%    { transform: translate(-26px,  3px) scale(0.80); opacity: 0.85; }
	12.5% { transform: translate(-18px,  6px) scale(0.72); opacity: 0.77; }
	25%   { transform: translate(  0px,  9px) scale(0.65); opacity: 0.70; }
	37.5% { transform: translate( 18px,  6px) scale(0.72); opacity: 0.77; }
	50%   { transform: translate( 26px,  3px) scale(0.80); opacity: 0.85; }
	62.5% { transform: translate( 18px, -2px) scale(1.02); opacity: 0.92; }
	75%   { transform: translate(  0px, -5px) scale(1.25); opacity: 1;    }
	87.5% { transform: translate(-18px, -2px) scale(1.02); opacity: 0.92; }
	100%  { transform: translate(-26px,  3px) scale(0.80); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
	.cullah-orbit-mark .cc-orbit-dot { animation: none; opacity: 1; transform: none; }
}

/* ── Higher-specificity overrides to beat theme [type=submit] reset ── */

button.cullah-tier-btn,
a.cullah-tier-btn {
	background: var(--cc-accent);
	color: #FFFFFF;
	padding: 0.8rem 1.25rem;
	border: none;
	border-radius: var(--cc-radius);
	font-family: var(--cc-font);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	width: 100%;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	text-transform: none;
}
button.cullah-tier-btn:hover,
a.cullah-tier-btn:hover {
	background: var(--cc-accent-deep);
	color: #FFFFFF;
	transform: translateY(-1px);
}
button.cullah-tier-btn:focus,
a.cullah-tier-btn:focus {
	outline: 2px solid var(--cc-accent);
	outline-offset: 2px;
}
.cullah-tier-btn-disabled,
span.cullah-tier-btn-disabled {
	background: var(--cc-surface);
	color: var(--cc-muted);
	border: 1px solid var(--cc-border);
	pointer-events: none;
	cursor: not-allowed;
}

/* ── Orbit mark placed inside a section header ───────────────── */

.cullah-landing-orbit-mark {
	width: 90px;
	height: auto;
	display: block;
	margin: 0 auto 1rem;
	color: var(--cc-accent);
}
