/* Muse Metrics Lab — shared stylesheet (static rebuild of the live WordPress theme) */

:root {
  --bg: #181A20;
  --surface: #1E2329;
  --text: #EAECEF;
  --muted: #b7bcc4;
  --primary: #F9D548;
  --secondary: #ECB92E;
  --border: rgba(234, 236, 239, 0.18);
  --wide: 80rem;
  --content: 42rem;
  --gutter: clamp(1.5rem, 6vw, 2rem);
  --space-40: clamp(2rem, 8vw, 3rem);
  --space-50: clamp(2.5rem, 8vw, 4rem);
  --space-60: clamp(3.5rem, 10vw, 6rem);
  --radius-btn: 2rem;
  --fs-small: 1rem;
  --fs-medium: 1.25rem;
  --fs-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 1.433), 2.25rem);
  --fs-xl: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.917), 3rem);
  --fs-xxl: clamp(2.25rem, 2.25rem + ((1vw - 0.2rem) * 2.5), 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.417), 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.75rem; color: var(--text); }
h1 { font-size: var(--fs-xxl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: var(--fs-large); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: clamp(1.5rem, 1.5rem + ((1vw - 0.48rem) * 0.721), 1.875rem); font-weight: 600; line-height: 1.15; }
h5 { font-size: clamp(1.25rem, 1.25rem + ((1vw - 0.48rem) * 0.721), 1.5rem); font-weight: 500; text-transform: uppercase; }
h6 { font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.417), 1.125rem); font-weight: 400; letter-spacing: 0.03em; line-height: 1.6; text-transform: uppercase; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.h-large { font-size: var(--fs-large); }
.h-medium { font-size: var(--fs-medium); letter-spacing: 0; }
.display { font-size: var(--fs-xxl); }
.small { font-size: var(--fs-small); }
.medium { font-size: var(--fs-medium); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10; padding: 0.5rem 1rem; background: var(--primary); color: var(--bg); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--content) + 2 * var(--gutter)); }
.center { text-align: center; }
.gap-top { margin-top: var(--space-40); }

.section { padding: var(--space-60) 0; border-top: 1px solid var(--border); }
.section.alt { background: var(--surface); }
main > .section:first-child, .page-banner + .section { border-top: 0; }

.section-head { max-width: 42rem; margin-bottom: var(--space-40); }
.section-head:last-child { margin-bottom: 0; }

.cols-2, .cols-3, .cols-40-60 { display: grid; gap: var(--space-40); }
.middle { align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; }

@media (min-width: 782px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1.3fr 1fr 1fr; }
  .cols-40-60 { grid-template-columns: 2fr 3fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.ratio-16-9 { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ratio-4-3 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fill { width: 100%; height: 100%; object-fit: cover; }
.cover-img { min-height: 380px; position: relative; }
.cover-img img { position: absolute; inset: 0; }

.panel { border: 1px solid var(--border); padding: var(--space-40); background: var(--bg); }
.section.alt .panel { background: var(--surface); }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-40); }
.buttons.center { justify-content: center; }
.panel .buttons { margin-top: 1.5rem; }
.button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover, .button:focus-visible { background: var(--text); color: var(--bg); }
.button.wide { display: block; width: 100%; text-align: center; }
.button.small { font-size: var(--fs-small); padding: 0.6rem 1.4rem; }
.button.outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.button.outline:hover { background: var(--text); color: var(--bg); }

/* ---------- header ---------- */
.site-header { padding: var(--gutter) 0; }
.header-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.site-title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.3; }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-nav a { text-decoration: none; font-size: var(--fs-small); }
.site-nav a[aria-current="page"] { color: var(--primary); }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.75rem; }
.social a { display: inline-flex; color: var(--text); }
.social a:hover { color: var(--primary); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 600px) {
  .site-title { font-size: 16px; }
  .site-nav ul { gap: 0.5rem 1.1rem; }
}

/* ---------- footer ---------- */
.site-footer { padding: var(--space-50) 0; border-top: 1px solid var(--border); }
.footer-logo { display: inline-block; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: var(--space-50); padding-top: var(--space-40); border-top: 1px solid rgba(204, 204, 204, 0.65);
}
.footer-title { text-decoration: none; font-size: var(--fs-small); }

/* ---------- page banner ---------- */
.page-banner { position: relative; overflow: hidden; padding: var(--space-50) 0; }
.page-banner .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 5, 0.8); z-index: 1; }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { margin: 0; font-size: clamp(1.188rem, 1.188rem + ((1vw - 0.2rem) * 1.153), 1.88rem); }

/* ---------- home hero ---------- */
.hero { padding-top: var(--gutter); }
.hero-images { display: grid; gap: var(--gutter); padding: 0 var(--gutter); margin-bottom: var(--space-50); }
@media (min-width: 782px) { .hero-images { grid-template-columns: 1fr 1fr; } }

/* ---------- features / lists ---------- */
.features { list-style: none; margin: var(--space-40) 0 0; padding: 0; display: grid; gap: 1.75rem; }
.features li { display: flex; gap: 1rem; align-items: flex-start; }
.features h3 { font-size: var(--fs-medium); letter-spacing: 0; margin-bottom: 0.35rem; }
.icon { width: 24px; height: 24px; flex: none; color: var(--primary); }
.icon-lg { width: 36px; height: 36px; }

.stack { display: grid; gap: 2rem; }
.stack h3, .grid-3 .panel h3 { font-size: var(--fs-medium); letter-spacing: 0; }

.stat-num { font-size: var(--fs-xl); font-weight: 600; color: var(--primary); line-height: 1.15; margin-bottom: 0.5rem; }

.tile figure { margin-bottom: 1rem; }
.tile-kicker { font-size: var(--fs-small); font-weight: 400; color: var(--muted); margin-bottom: 0.25rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery figure { aspect-ratio: 4 / 3; }
@media (min-width: 782px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* ---------- blog cards (home) ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 782px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--border); display: flex; flex-direction: column; }
.card-body { padding: 1.5rem; }
.card-cat { font-size: var(--fs-small); color: var(--primary); margin-bottom: 0.5rem; }
.card-title { font-size: var(--fs-medium); letter-spacing: 0; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-excerpt { font-size: var(--fs-small); color: var(--muted); }

/* ---------- blog listing ---------- */
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 56rem; display: grid; gap: var(--space-50); }
.post-item-media { display: block; margin-bottom: 1.25rem; }
.post-item-title { font-size: var(--fs-large); margin-bottom: 0.5rem; }
.post-item-title a { text-decoration: none; }
.meta { font-size: var(--fs-small); color: var(--muted); }
.meta .sep { margin: 0 0.35rem; }
.post-item-excerpt { margin-top: 0.75rem; }

/* ---------- single post ---------- */
.post { padding: var(--space-50) 0 var(--space-60); }
.post-head, .post-content, .post-foot { max-width: calc(var(--content) + 2 * var(--gutter)); }
.post-head h1 { font-size: var(--fs-xl); }
.post-featured { max-width: calc(56rem + 2 * var(--gutter)); margin: var(--space-40) auto; }
.post-content > * + * { margin-top: 1.25rem; }
.post-content p { margin-bottom: 0; }
.post-content h3, .post-content h4, .post-content h6 { margin-top: 2.5rem; margin-bottom: 0; }
.post-content h6 + *, .post-content h3 + *, .post-content h4 + * { margin-top: 1rem; }
.post-content ul, .post-content ol { padding-left: 1.25rem; margin-bottom: 0; }
.post-content li + li { margin-top: 0.35rem; }
.post-content blockquote { margin-left: 0; margin-right: 0; padding-left: 1.25rem; border-left: 3px solid var(--primary); }
.post-content blockquote p + p { margin-top: 1rem; }
.post-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-content .table { overflow-x: auto; }
.post-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.post-content th { background: var(--surface); }
.post-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-cols .tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.post-foot { margin-top: var(--space-40); padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- FAQ / steps ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-size: var(--fs-medium); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.75rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { display: flex; gap: 1.25rem; align-items: flex-start; }
.steps h3 { font-size: var(--fs-medium); letter-spacing: 0; }
.step-num {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg); font-size: var(--fs-small); font-weight: 600;
}

/* ---------- contact ---------- */
.contact-form p { margin: 0 0 1.1rem; }
.contact-form label { display: block; font-size: var(--fs-small); margin-bottom: 0.35rem; }
.contact-form .req { color: var(--primary); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: calc(0.667em + 1px) calc(1.333em + 1px);
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.384;
}
.section.alt .contact-form input, .section.alt .contact-form textarea { background: var(--surface); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-panel { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; height: 100%; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: var(--fs-medium); }
.contact-list .icon { margin-top: 0.2rem; }
.contact-list p { margin: 0; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
