/* Apex (magazine.ltd) home and About page only. Loaded as an external file
   because the CSP is style-src 'self' (no inline styles). City pages never
   link this file.

   c9 lockup (Ian 2026-10-12, fit fix 2026-10-13): the lockup fills the page
   column up to 560px and always stays inside the 24px side padding, so
   nothing clips at 390px or 320px; the img width/height attributes only set
   the aspect ratio, never a fixed size. */
.masthead .brand {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  box-sizing: border-box;
  margin: 24px 0 0;
  background: transparent;
}

/* Owner line (Ian 2026-11-03): "by Barrymore Limited LLC" sits directly
   under the lockup, in the page's own serif and ink, left-aligned with the
   lockup's roundel. The About link rides the same line in the accent color. */
.masthead .brand-by {
  margin: 10px 0 0;
  padding-left: min(2%, 11px);
  max-width: 560px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
}

.masthead .brand-by a {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--dune);
  white-space: nowrap;
}

.masthead .brand-by a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.brand-by-sep {
  color: var(--gray);
  padding: 0 4px;
}

/* The owner line makes the masthead a little taller; take the extra height
   out of the gap above the hero so the first screen stays tight. */
.masthead {
  margin-bottom: 56px;
}

@media (max-width: 600px) {
  .masthead {
    margin-bottom: 40px;
  }

  .masthead .brand-by {
    font-size: 21px;
  }
}
