/* Mimic Me — shared chrome for the public pages (sfx-packs.html, creator-guide.html).
 *
 * Load order on every page:  theme.css (tokens)  ->  public-system.css (this file)  ->  <page>.css
 * This file holds everything the two pages have in common: page base, header + menu, buttons,
 * the calm blue hero band, section headings and the footer. Page-specific styling lives in the
 * page's own stylesheet, so nothing here is overridden later.
 *
 * Colour rules (see theme.css): blue brand, white / very light blue surfaces, navy text.
 * Yellow is only for the one primary call-to-action per page (.button.cta).
 */

:root {
  --pub-hero: radial-gradient(70% 120% at 90% 0%, rgba(255, 255, 255, .13), transparent 60%),
              linear-gradient(160deg, var(--mm-blue-deep) 0%, #1573cc 100%);
  --pub-edge: #07407c;            /* bottom edge of chunky blue buttons */
  --pub-ring: var(--mm-blue-deep); /* focus ring on light surfaces */
  --pub-ok-text: #0e6a47;          /* AA-safe text tones for status messages */
  --pub-danger-text: #a42a2a;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; margin: 0; color: var(--mm-ink); background: var(--mm-blue-tint); font-family: var(--mm-font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--mm-font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pub-ring); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: #fff; }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.icon { flex: none; width: 1.25em; height: 1.25em; }

.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; border-radius: 12px; color: var(--mm-ink); background: #fff; box-shadow: var(--mm-shadow-card); font-weight: 900; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ---------- header + menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--mm-line); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 72px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--mm-tap); color: var(--mm-navy); font-family: var(--mm-font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--mm-blue-soft) url("avatar-brand.webp") center 18% / cover no-repeat; box-shadow: 0 0 0 2px var(--mm-line); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: var(--mm-tap); padding: 0 14px; border-radius: 12px; color: var(--mm-ink); font-weight: 800; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav-link:hover { color: var(--mm-blue-deep); background: var(--mm-blue-soft); }
.site-nav .button { margin-left: 8px; }

.nav-toggle { display: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; color: var(--mm-blue-deep); background: var(--mm-blue-soft); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 16px; color: #fff; background: var(--mm-blue-deep); box-shadow: 0 4px 0 var(--pub-edge); font-family: var(--mm-font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { background: #0a56a3; box-shadow: 0 5px 0 var(--pub-edge); transform: translateY(-1px); }
.button:active { box-shadow: 0 1px 0 var(--pub-edge); transform: translateY(3px); }
.button:disabled { opacity: .55; box-shadow: none; transform: none; cursor: not-allowed; }
.button.small { min-height: var(--mm-tap); padding: 8px 18px; font-size: 1rem; }
/* The one primary call-to-action on a page */
.button.cta { color: var(--mm-navy); background: var(--mm-yellow); box-shadow: 0 4px 0 var(--mm-yellow-deep); }
.button.cta:hover { background: var(--mm-yellow); box-shadow: 0 5px 0 var(--mm-yellow-deep); }
.button.cta:active { box-shadow: 0 1px 0 var(--mm-yellow-deep); }
/* Secondary buttons on the blue hero band */
.button.light { color: var(--mm-blue-deep); background: #fff; box-shadow: 0 4px 0 rgba(7, 64, 124, .45); }
.button.light:hover { background: #fff; box-shadow: 0 5px 0 rgba(7, 64, 124, .45); }
.button.outline { border: 2px solid #fff; background: transparent; box-shadow: none; }
.button.outline:hover { color: var(--mm-blue-deep); background: #fff; box-shadow: none; }
/* Quiet button on white / light blue surfaces */
.button.soft { color: var(--mm-blue-deep); background: var(--mm-blue-soft); box-shadow: 0 4px 0 var(--mm-line); }
.button.soft:hover { background: #d6eafb; box-shadow: 0 5px 0 var(--mm-line); }

/* ---------- eyebrow label + hero band ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: var(--mm-blue-deep); background: var(--mm-blue-soft); font-size: .875rem; font-weight: 900; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }

.hero { color: #fff; background: var(--pub-hero); }
.hero .eyebrow { background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 76px); }
.hero h1 { margin-top: 16px; font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; }
.hero .lead { max-width: 33em; margin-top: 16px; font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- section headings ---------- */
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.section-head h2, .section-title { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--mm-muted); font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { padding: 28px 0 26px; color: var(--mm-ink); background: var(--mm-blue-soft); border-top: 1px solid var(--mm-line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 6px; margin-inline: -10px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: var(--mm-tap); padding: 0 10px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.site-footer nav a:hover { color: var(--mm-blue-deep); text-decoration: underline; text-underline-offset: 4px; }
.footer-note { margin-top: 10px; color: var(--mm-muted); font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), 560px); }
  .nav-row { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .js .nav-toggle { display: grid; }
  .site-nav { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 14px; }
  .js .site-nav:not(.open) { display: none; }
  .nav-link { min-height: 48px; padding: 0 14px; font-size: 1.08rem; }
  .site-nav .button { margin: 8px 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 100%; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 2.4s !important; }
}
