/* Menura Audio — Light theme tokens (for WordPress embed) */

/* Brand fonts — WOFF2 with latin+latin-ext subset, font-display: swap to avoid FOIT */
@font-face {
  font-family: 'Maxi Mono';
  src: url('fonts/ABCMaxiRoundMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'TWK Lausanne';
  src: url('fonts/TWKLausanne-0300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'TWK Lausanne';
  src: url('fonts/TWKLausanne-0700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Light neutrals */
  --paper: #ffffff;
  --bone: #fafaf9;
  --mist: #f3f3f2;
  --hair-color: rgba(0,0,0,0.10);
  --hair-color-strong: rgba(0,0,0,0.18);
  --slate: #6b6b6b;
  --graphite: #2a2a2a;
  --ink: #0a0a0a;

  /* Hardware (black devices on white background) */
  --device-body: #0e0f11;
  --device-panel-grad-top: #1a1b1d;
  --device-panel-grad-bot: #07080a;
  --device-edge: #2a2b2e;
  --device-shadow: 0 28px 60px -22px rgba(0,0,0,0.42), 0 4px 14px rgba(0,0,0,0.08);

  /* Accent — keep brand tomato but darken slightly for light bg */
  --accent: #ef4a26;
  --accent-ink: #ffffff;

  /* Type */
  --mono: 'Maxi Mono', ui-monospace, 'JetBrains Mono', monospace;
  --display: 'TWK Lausanne', ui-sans-serif, system-ui, sans-serif;
  --body: 'TWK Lausanne', ui-sans-serif, system-ui, sans-serif;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* Radius — softer overall */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --hair: 1px solid var(--hair-color);
  --hair-strong: 1px solid var(--hair-color-strong);
  --hair-accent: 1px solid var(--accent);
}

.menura-root {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reserve space while React hydrates so the page below doesn't jump
   when the app mounts. Sized close to a typical first-screen hero. */
.menura-root:empty {
  min-height: 92vh;
  display: block;
}

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

.menura-root .mono { font-family: var(--mono); letter-spacing: 0.01em; }
.menura-root .upper { text-transform: uppercase; letter-spacing: 0.06em; }
.menura-root .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.menura-root ::selection { background: var(--accent); color: var(--accent-ink); }

.menura-root .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.menura-root .label-strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.menura-root .rail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.menura-root button { font-family: inherit; }
.menura-root a { color: inherit; text-decoration: none; }

/* Reveal animation */
@keyframes menura-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menura-root section { animation: menura-reveal 0.6s ease-out both; }

/* Display headings must never hyphenate or break mid-word. Some widths split
   product names like "Delay & Reverb" into "Delay & Re-/verb". Break only at
   real spaces. (The mdfx-dr hero set this inline; here it covers every page.) */
.menura-root h1, .menura-root h2, .menura-root h3 {
  hyphens: none; -webkit-hyphens: none;
  word-break: normal; overflow-wrap: normal;
}

/* Announcement marquee (dormant Kickstarter banner on the landing page) */
@keyframes menura-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Responsive breakpoints =====
   Tablet range (≈820–1100px) keeps two-up layouts side-by-side so the
   design stays dense; only true narrow widths stack to a single column. */
@media (max-width: 1100px){
  .menura-root .resp-cols-6 { grid-template-columns: repeat(3, 1fr) !important; }
  .menura-root .resp-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .menura-root .resp-cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .menura-root .resp-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
  }
  .menura-root .resp-photo-grid > * {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 1.4 !important;
  }
  .menura-root .resp-photo-grid > .pg-hero {
    grid-column: span 2 !important;
    aspect-ratio: 1.6 !important;
  }
}
/* Tablet → stacked: two-column text blocks collapse here, not at 1100 */
@media (max-width: 820px){
  .menura-root .resp-cols-2 { grid-template-columns: 1fr !important; }
  .menura-root .resp-shead  { grid-template-columns: 1fr !important; gap: 16px !important; }
  .menura-root .resp-cta    { grid-template-columns: 1fr !important; gap: 24px !important; align-items: start !important; }
  .menura-root .resp-embed  { grid-template-columns: 1fr !important; }
  .menura-root .resp-videopages { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px){
  .menura-root .rail { padding: 0 20px; }
  .menura-root .resp-cols-6,
  .menura-root .resp-cols-4,
  .menura-root .resp-cols-3 { grid-template-columns: 1fr !important; }
  .menura-root .resp-photo-grid {
    grid-template-columns: 1fr !important;
  }
  .menura-root .resp-photo-grid > * {
    grid-column: span 1 !important;
    aspect-ratio: 1.5 !important;
  }
  .menura-root .resp-photo-grid > .pg-hero { aspect-ratio: 1.4 !important; }

  /* Section paddings get tighter */
  .menura-root section.resp-pad { padding-left: 20px !important; padding-right: 20px !important; }
}
