/* Theme Base CSS */
main.site-main {
	display: block;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.85rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: #111827;
	color: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid var(--mhsb-focus-ring, #1d4ed8);
	outline-offset: 2px;
}

.mhsb-default-content {
	max-width: var(--mhsb-content-width, 72rem);
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}

.mhsb-page-title {
	margin: 0 0 1.25rem;
	line-height: 1.1;
}

.mhsb-entry-content > *:first-child {
	margin-top: 0;
}

.mhsb-entry-content > *:last-child {
	margin-bottom: 0;
}


/* Global CSS */
/* =====================================================================
   Top Auto Aesthetics — GLOBAL CSS
   Tokens, reset, body, layout shell, decorative orbs/grain, typography,
   buttons, reveal-on-scroll utility, reduced-motion guard.
   Header/Footer/Page styling lives in their respective files.
   ===================================================================== */

:root {
  /* surfaces */
  --bg-0: #07070a;
  --bg-1: #0b0b10;
  --bg-2: #111117;
  --bg-3: #15161d;
  --line: rgba(231, 200, 136, 0.14);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* ink */
  --ink-0: #f7f1e3;
  --ink-1: rgba(247, 241, 227, 0.78);
  --ink-2: rgba(247, 241, 227, 0.55);
  --ink-3: rgba(247, 241, 227, 0.35);

  /* gold */
  --gold-50: #fbeec8;
  --gold-100: #f3dfa8;
  --gold-300: #e6c378;
  --gold-500: #d2a454;
  --gold-700: #a57a30;
  --gold-900: #6d4d17;

  --grad-gold: linear-gradient(120deg, #f6e4b1 0%, #e6c378 28%, #c79443 62%, #7a5422 100%);
  --grad-gold-soft: linear-gradient(130deg, rgba(246, 228, 177, 0.35) 0%, rgba(198, 146, 64, 0.18) 55%, rgba(110, 78, 32, 0.06) 100%);
  --grad-onyx: radial-gradient(1200px 600px at 80% -10%, rgba(214, 167, 92, 0.12), transparent 60%),
               radial-gradient(900px 500px at -10% 30%, rgba(93, 63, 145, 0.10), transparent 60%),
               linear-gradient(180deg, #07070a 0%, #09090d 100%);

  --shadow-hi: 0 40px 120px rgba(0, 0, 0, 0.55), 0 8px 30px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 520ms;

  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg-0); color: var(--ink-0); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--grad-onyx);
  overflow-x: hidden;
  position: relative;
}
@media (pointer: coarse), (max-width: 900px) {
  body { cursor: auto; }
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* All headlines are Jost by default — class rules fine-tune weight/size. */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', 'Inter', sans-serif;
  margin: 0;
}

::selection { background: rgba(230, 195, 120, 0.4); color: #0a0a0d; }

.ta-shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

.ta-section { position: relative; padding: clamp(56px, 7vw, 96px) 0; }
.ta-section + .ta-section::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(231, 200, 136, 0.22) 50%, transparent 100%);
}

/* ---------- Decorative orbs + grain ---------- */
.ta-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ta-orb {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  filter: blur(120px); opacity: .35; will-change: transform;
  mix-blend-mode: screen;
  transition: transform .45s var(--ease-out);
}
.ta-orb--a { top: -20%; right: -20%; background: radial-gradient(circle at 30% 30%, #e6c378, transparent 60%); opacity: .28; }
.ta-orb--b { top: 30%; left: -25%;  background: radial-gradient(circle at 50% 50%, #6c4db8, transparent 60%); opacity: .18; }
.ta-orb--c { bottom: -30%; right: -10%; background: radial-gradient(circle at 50% 50%, #a57a30, transparent 60%); opacity: .22; }

.ta-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: .05; mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
.ta-h2 {
  font-family: 'Jost', 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin: 14px 0 18px;
}
.ta-h2 em {
  font-style: normal;
  font-weight: 500;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-300);
}
.ta-eyebrow em { font-style: normal; }
.ta-eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 18px rgba(230, 195, 120, 0.8);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.5); opacity: .5; }
}

.ta-section__head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 46px); }
.ta-section__head p { color: var(--ink-1); font-size: clamp(15px, 1.2vw, 17px); max-width: 60ch; }
.ta-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ta-section__head--center .ta-eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.ta-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.ta-btn svg { transition: color .3s var(--ease); }
.ta-btn:hover svg { transform: none; }

.ta-btn--gold {
  color: #1a1304;
  background: var(--grad-gold);
  box-shadow: 0 10px 30px rgba(198, 146, 64, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.ta-btn--gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, #fff3c8 0%, #ecca7c 50%, #c18a34 100%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.ta-btn--gold:hover { box-shadow: 0 14px 36px rgba(198, 146, 64, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.ta-btn--gold:hover::after { opacity: 1; }

.ta-btn--ghost {
  color: var(--ink-0);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.2);
}
.ta-btn--ghost::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, rgba(246, 228, 177, 0.08), rgba(198, 146, 64, 0.06));
  opacity: 0; transition: opacity .4s var(--ease);
}
.ta-btn--ghost:hover { color: var(--gold-100); box-shadow: inset 0 0 0 1px rgba(246, 228, 177, 0.55); }
.ta-btn--ghost:hover::before { opacity: 1; }

.ta-btn--lg { padding: 17px 28px; font-size: 13px; }

.ta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-100);
  border-bottom: 1px solid rgba(246, 228, 177, 0.35);
  padding-bottom: 6px;
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.ta-link:hover { color: var(--gold-50); gap: 12px; border-color: var(--gold-50); }

/* ---------- Reveal on scroll ---------- */
.ta-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--rev-delay, 0ms);
  will-change: transform, opacity;
}
.ta-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .ta-reveal { opacity: 1 !important; transform: none !important; }
}
