/* mNow — structure.
 *
 * Layout, type scale application, and spacing for every page.
 * Colour lives in tokens.css and ONLY in tokens.css — this file must
 * contain no hex, rgb(), or hsl() value. Enforced by
 * python tools/brand-checks/check_no_hex.py
 *
 * Spec: docs/superpowers/specs/2026-09-10-mnow-horizon-identity-design.md
 */

  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: dark light; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--action); }
  :focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

  .shell { display: flex; flex-direction: column; min-height: 100vh; position: relative; }
  .inner { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }

  /* --- the band : one horizon, full bleed, vertical --- */
  .band {
    background: linear-gradient(180deg, var(--band-1) 0%, var(--band-2) 58%, var(--band-3) 100%);
    border-bottom: 1px solid var(--horizon-line);
    padding-bottom: var(--space-12);
  }

  /* --- masthead --- */
  .mast { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); padding-top: var(--space-8); }
  .lockup {
    display: inline-block;
    position: relative;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-2xl);
    letter-spacing: var(--tracking-mark);
    line-height: 1;
    color: var(--hero);
    padding-bottom: 9px;
    text-decoration: none;
  }
  .lockup b { font-weight: 800; }
  .lockup::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--rule-on-band);
  }
  .nav { display: flex; gap: var(--space-6); padding-top: var(--space-2); }
  .nav a { color: var(--nav-on-band); text-decoration: none; font-size: var(--text-lg); }
  .nav a:hover { text-decoration: underline; }

  /* --- Services disclosure : <details>/<summary>, no JS --- */
  .nav-menu { position: relative; }
  .nav-menu summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--nav-on-band);
    font-size: var(--text-lg);
    line-height: 1;
    cursor: pointer;
    list-style: none;
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary:hover { text-decoration: underline; }
  .nav-menu summary::after { content: "\25BE"; font-size: var(--text-sm); }
  .nav-menu[open] summary::after { content: "\25B4"; }
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: var(--space-3);
    min-width: 12em;
    display: flex;
    flex-direction: column;
    background: var(--ground);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: var(--space-2);
    z-index: 20;
  }
  .nav-panel a {
    color: var(--ink);
    text-decoration: none;
    font-size: var(--text-lg);
    white-space: nowrap;
    padding: var(--space-2) var(--space-3);
    border-radius: 3px;
  }
  .nav-panel a:hover { text-decoration: underline; }

  /* --- hero, inside the band --- */
  .hero {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-3xl);
    line-height: var(--leading-hero);
    letter-spacing: var(--tracking-hero);
    color: var(--hero);
    margin: var(--space-10) 0 0;
    max-width: 26ch;
    text-wrap: balance;
  }
  .hero b { font-weight: 800; }

  /* --- the position --- */
  .position {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-3xl);
    line-height: 1.12;
    letter-spacing: var(--tracking-head);
    margin: var(--space-12) 0 0;
    max-width: 38ch;
    text-wrap: balance;
  }
  .position em { font-style: normal; font-weight: 800; }
  .position-note {
    color: var(--muted);
    font-size: var(--text-lg);
    line-height: var(--leading-body);
    max-width: 62ch;
    margin: var(--space-6) 0 var(--space-12);
  }

  /* --- three beats --- */
  .beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
  .beat { padding: var(--space-6) var(--space-8) var(--space-8) 0; }
  .beat + .beat { border-left: 1px solid var(--rule); padding-left: var(--space-8); padding-right: var(--space-6); }
  .beat h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-head);
    margin: 0;
  }
  .beat p { color: var(--muted); line-height: var(--leading-body); margin: var(--space-3) 0 0; }

  /* --- onward --- */
  .onward { border-top: 1px solid var(--rule); padding-top: var(--space-8); margin-top: var(--space-4); }
  .onward h2 {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--space-4);
  }
  .links { list-style: none; margin: 0; padding: 0; }
  .links li { border-top: 1px solid var(--rule); }
  .links li:first-child { border-top: 0; }
  .links a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    padding-block: var(--space-4);
    text-decoration: none;
    color: var(--ink);
  }
  .links a:hover .go { text-decoration: underline; }
  .links .name { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); letter-spacing: var(--tracking-head); }
  .links .what { color: var(--muted); font-size: var(--text-lg); margin-inline-start: auto; text-align: right; }
  .links .go { color: var(--action); font-weight: 500; white-space: nowrap; }

  /* --- contact --- */
  .cta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    flex-wrap: wrap;
    border-top: 1px solid var(--rule);
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
  }
  .cta h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); margin: 0; letter-spacing: var(--tracking-head); }
  .cta a { font-size: var(--text-lg); font-weight: 500; }

  /* --- dimensions & rows (Services page) --- */
  .eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--space-4);
  }
  .dimension { border-top: 1px solid var(--rule); padding-top: var(--space-8); margin-top: var(--space-8); }
  .rows { list-style: none; margin: 0; padding: 0; }
  .rows li { padding: var(--space-6) 0; border-top: 1px solid var(--rule); }
  .rows li:first-child { border-top: 0; padding-top: 0; }
  .rows h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-head);
    margin: 0;
  }
  .rows p { color: var(--muted); line-height: var(--leading-body); margin: var(--space-3) 0 0; max-width: 60ch; }
  .rows .outcome { color: var(--ink); }
  .rows .outcome strong { font-weight: 600; }

  /* --- what we are / what we are not (Technology page) --- */
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); border-top: 1px solid var(--rule); padding-top: var(--space-6); }
  .pair h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-head);
    margin: 0 0 var(--space-4);
  }
  .pair ul { list-style: none; margin: 0; padding: 0; color: var(--muted); line-height: var(--leading-body); }
  .pair li { padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
  .pair li:first-child { border-top: 0; padding-top: 0; }
  .pair strong { color: var(--ink); font-weight: 600; }

  footer { margin-top: auto; border-top: 1px solid var(--rule); }
  .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-8); padding-block: var(--space-4) var(--space-6); font-size: var(--text-xs); color: var(--muted); }
  .foot p { margin: 0; }

  /* --- stacked --- */
  @media (max-width: 900px) {
    .nav { display: none; }
    .beats { grid-template-columns: 1fr; }
    .pair { grid-template-columns: 1fr; }
    .beat { padding: var(--space-6) 0; }
    .beat + .beat { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
    .links a { flex-wrap: wrap; }
    .links .what { margin-inline-start: 0; text-align: left; flex-basis: 100%; }
    .cta { flex-direction: column; align-items: flex-start; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
