/* Base: reset, typography, buttons and shared section patterns. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--rx-header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--rx-ink);
	color: var(--rx-on-dark);
	font-family: var(--rx-font-ui);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

a { color: var(--rx-accent); }
a:hover { color: var(--rx-gold-light); }

:focus-visible { outline: 2px solid var(--rx-focus-ring); outline-offset: 3px; }
.rx-on-light :focus-visible { outline-color: var(--rx-olive); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.rx-skip {
	position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px;
	background: var(--rx-ivory); color: var(--rx-ink); text-decoration: none; font-size: 14px;
	transform: translateY(-200%);
}
.rx-skip:focus { transform: none; }

/* ---------- Layout ---------- */
.rx-container { max-width: var(--rx-container); margin-inline: auto; padding-inline: var(--rx-gutter); }

/* ---------- Type patterns ---------- */
.rx-eyebrow {
	display: block;
	font-family: var(--rx-font-ui); /* also used on h2 labels, which theme.json sets in the display face */
	font-weight: 400;
	font-size: var(--rx-fs-label);
	letter-spacing: var(--rx-track-eyebrow);
	text-transform: uppercase;
	color: var(--rx-accent);
}
.rx-on-light .rx-eyebrow { color: var(--rx-bronze); }

.rx-h2 {
	margin-top: 18px;
	font-family: var(--rx-font-display);
	font-weight: 500;
	font-size: var(--rx-fs-h2);
	line-height: 1;
}

/* ---------- Buttons ---------- */
.rx-btn {
	position: relative; /* contains .screen-reader-text so it can't escape scroll containers */
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 48px; padding: 16px 24px;
	border: 1px solid transparent; border-radius: 0;
	font-family: var(--rx-font-ui); font-size: 12px; font-weight: 500; letter-spacing: .18em;
	text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.rx-btn:hover { transform: translateY(-1px); }
.rx-btn:active { transform: translateY(0); }
.rx-btn--lg { padding: 18px 30px; font-size: 13px; }
.rx-btn--gold { background: var(--rx-btn-primary-bg); color: var(--rx-btn-primary-fg); }
.rx-btn--gold:hover { background: var(--rx-btn-primary-bg-hover); color: var(--rx-btn-primary-fg); }
.rx-btn--ghost { border-color: var(--rx-btn-ghost-border); color: var(--rx-on-dark); background: transparent; }
.rx-btn--ghost:hover { background: rgba(244, 240, 232, .08); border-color: var(--rx-ivory); color: var(--rx-on-dark); }
.rx-btn--ink { background: var(--rx-text-ink); color: var(--rx-ivory); }
.rx-btn--ink:hover { background: var(--rx-olive); color: var(--rx-ivory); }
.rx-btn svg { flex-shrink: 0; }

.rx-link {
	display: inline-flex; align-items: center; gap: 10px; padding: 16px 4px; min-height: 48px;
	color: var(--rx-on-dark); text-decoration: none;
	font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	transition: color .3s, gap .3s;
}
.rx-link:hover { gap: 16px; color: var(--rx-gold-light); }

/* ---------- Media hover zoom (design: 1.4s to 1.04) ---------- */
.rx-zoom { overflow: hidden; }
.rx-zoom img { transition: transform var(--rx-dur-media) var(--rx-ease); }
.rx-zoom:hover img { transform: scale(1.04); }

/* ---------- Reveal (design: 1.2s, 28px rise, 150ms stagger) ---------- */
@keyframes rxUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.rx-reveal { animation: rxUp var(--rx-dur-reveal) var(--rx-ease) both; }
.rx-d1 { animation-delay: .15s; } .rx-d2 { animation-delay: .3s; } .rx-d3 { animation-delay: .45s; } .rx-d4 { animation-delay: .6s; }

/* Scroll reveals: only hidden once JS confirms it can reveal them. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--rx-dur-reveal) var(--rx-ease), transform var(--rx-dur-reveal) var(--rx-ease); transition-delay: calc(var(--rx-i, 0) * 150ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.rx-reveal, .rx-d1, .rx-d2, .rx-d3, .rx-d4 { animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.rx-zoom img, .rx-btn, .rx-link { transition: none !important; }
}

/* ---------- Development-only placeholder for sections in later milestones ---------- */
.rx-pending {
	padding-block: 72px;
	background: repeating-linear-gradient(135deg, var(--rx-charcoal) 0 14px, #0d110f 14px 28px);
	border-block: 1px dashed rgba(197, 168, 120, .4);
}
.rx-pending__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.rx-pending__title { font-family: var(--rx-font-display); font-weight: 500; font-size: 34px; }
.rx-pending__note { font-size: 14px; color: var(--rx-on-dark-muted); max-width: 560px; }
