/* 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-light-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;
}

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

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

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

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

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

#menura-light-root button { font-family: inherit; }
#menura-light-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-light-root section { animation: menura-reveal 0.6s ease-out both; }

/* ===== Responsive breakpoints =====
   Tablet range (≈820–1100px) keeps two-up layouts side-by-side so the
   design stays dense; only narrower widths stack to a single column. */
@media (max-width: 1100px){
  #menura-light-root .resp-cols-6 { grid-template-columns: repeat(3, 1fr) !important; }
  #menura-light-root .resp-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
  #menura-light-root .resp-cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
  #menura-light-root .resp-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
  }
  #menura-light-root .resp-photo-grid > * {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 1.4 !important;
  }
  #menura-light-root .resp-photo-grid > .pg-hero {
    grid-column: span 2 !important;
    aspect-ratio: 1.6 !important;
  }
  /* Tighter section vertical padding on tablet — sections set 112px inline */
  #menura-light-root section { padding-top: 72px !important; padding-bottom: 72px !important; }
  #menura-light-root section#pages { padding-bottom: 0 !important; }
}
/* Tablet → stacked: two-column blocks collapse here, not at 1100 */
@media (max-width: 820px){
  #menura-light-root .resp-cols-2 { grid-template-columns: 1fr !important; }
  #menura-light-root .resp-shead  { grid-template-columns: 1fr !important; gap: 16px !important; }
  #menura-light-root .resp-cta    { grid-template-columns: 1fr !important; gap: 24px !important; align-items: start !important; }
  #menura-light-root .resp-videopages { grid-template-columns: 1fr !important; }
  /* When the video/pages pair stacks, constrain the video width so the
     portrait clip doesn't blow up to the full column. */
  #menura-light-root .resp-videopages > :nth-child(2) {
    max-width: 420px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  #menura-light-root section { padding-top: 56px !important; padding-bottom: 56px !important; }
}
@media (max-width: 720px){
  #menura-light-root .rail { padding: 0 20px; }
  #menura-light-root .resp-cols-6,
  #menura-light-root .resp-cols-4,
  #menura-light-root .resp-cols-3 { grid-template-columns: 1fr !important; }
  /* Iframe demo (device + faders) — keep 2-col through tablet,
     only stack on phones where there isn't room for both. */
  #menura-light-root .resp-embed { grid-template-columns: 1fr !important; }
  #menura-light-root .resp-photo-grid {
    grid-template-columns: 1fr !important;
  }
  #menura-light-root .resp-photo-grid > * {
    grid-column: span 1 !important;
    aspect-ratio: 1.5 !important;
  }
  #menura-light-root .resp-photo-grid > .pg-hero { aspect-ratio: 1.4 !important; }

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

  /* Encoder-page rows (VideoWithPages → PageList): on phones the
     three-column grid (number · name · description) crushes the
     description into ~120 px. Stack to two rows: number+name on top,
     description full-width below. */
  #menura-light-root .pg-list-row {
    grid-template-columns: 32px 1fr !important;
    gap: 6px 12px !important;
  }
  #menura-light-root .pg-list-row > :nth-child(3) {
    grid-column: 2 !important;
  }
}
