/* ═══════════════════════════════════════════════════════════════════
   MARK LYNN DESIGN — masthead + footer (sub-page edition)

   Mirrors the homepage editorial system. Loaded by every sub-page
   AFTER /css/styles.css so it overrides the older masthead/footer
   rules in styles.css without editing that shared file.

   Tokens used:
     --brand-cream    #FAF7F2
     --brand-charcoal #2C2C2C
     --brand-green    #24362E
     --brand-stone    #E8E4DF
     --brand-slate    #9A9590
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --mlf-cream:    #FAF7F2;
  --mlf-charcoal: #2C2C2C;
  --mlf-green:    #24362E;
  --mlf-stone:    #E8E4DF;
  --mlf-slate:    #9A9590;
  --mlf-max:      1280px;
  --mlf-gutter:   clamp(1.25rem, 4vw, 4rem);
  --mlf-serif:    "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --mlf-sans:     "Libre Franklin", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ── Skip-to-content link ──────────────────────────────────────────── */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--mlf-charcoal);
  color: var(--mlf-cream);
  padding: 8px 12px;
  z-index: 100;
  font-family: var(--mlf-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Dark hero block (charcoal sheet ending after the masthead) ──────
   NOTE: no `overflow: hidden` here — sub-pages wrap only the masthead
   (~104px tall) and the absolute-positioned mobile panel must extend
   below it without being clipped. Homepage page-scoped .dark-hero-block
   keeps its own overflow:hidden where the hero figure needs the clip. */
.dark-hero-block {
  background: var(--mlf-charcoal);
  color: var(--mlf-cream);
  position: relative;
}

/* ── Nav masthead (lives INSIDE the dark hero block) ────────────────── */
.nav {
  padding: 32px var(--mlf-gutter) 24px;
  position: relative;
  z-index: 2;
}
.nav-inner {
  max-width: var(--mlf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: inline-block;
  line-height: 0;
}
.nav-logo img {
  height: 68px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--mlf-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.86);
  position: relative;
  padding: 4px 0;
  transition: color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--mlf-cream); }
.nav-links a.is-active { color: var(--mlf-cream); }
.nav-cta {
  justify-self: end;
  font-family: var(--mlf-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mlf-cream);
  border-bottom: 1px solid rgba(250, 247, 242, 0.6);
  padding: 14px 0 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--mlf-cream);
  border-bottom-color: var(--mlf-cream);
}

/* ── Mobile hamburger toggle ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.4);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  justify-self: end;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--mlf-cream); }
.nav-toggle .nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after,
.nav-toggle .nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: var(--mlf-cream);
  display: block;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 150ms cubic-bezier(0.22, 1, 0.36, 1),
              top 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-toggle .nav-toggle-bars::before { top: 0; }
.nav-toggle .nav-toggle-bars span { top: 6.5px; }
.nav-toggle .nav-toggle-bars::after { top: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 6.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 6.5px;
  transform: rotate(-45deg);
}

/* ── Mobile panel (slide-down menu) ────────────────────────────────── */
.mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mlf-cream);
  color: var(--mlf-charcoal);
  border-bottom: 1px solid var(--mlf-stone);
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 30;
  display: none;
}
.mobile-panel.is-open {
  max-height: 80vh;
}
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-panel li {
  border-top: 1px solid var(--mlf-stone);
}
.mobile-panel li:first-child { border-top: 0; }
.mobile-panel a {
  display: block;
  padding: 18px var(--mlf-gutter);
  font-family: var(--mlf-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--mlf-charcoal);
  text-decoration: none;
  letter-spacing: -0.005em;
  min-height: 44px;
}
.mobile-panel a em { font-style: italic; }
.mobile-panel a:hover,
.mobile-panel a:focus-visible { color: var(--mlf-green); background: var(--mlf-stone); }
.mobile-panel .mobile-cta {
  font-family: var(--mlf-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--mlf-cream);
  background: var(--mlf-green);
  padding: 22px var(--mlf-gutter);
}
.mobile-panel .mobile-cta:hover,
.mobile-panel .mobile-cta:focus-visible {
  background: var(--mlf-charcoal);
  color: var(--mlf-cream);
}

@media (max-width: 980px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-inner > nav[aria-label="Primary"] { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel { display: block; }
  .nav-logo img { height: 52px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 48px; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--mlf-stone);
  background: var(--mlf-cream);
  color: var(--mlf-charcoal);
}
.footer-inner {
  max-width: var(--mlf-max);
  margin: 0 auto;
  padding: 64px var(--mlf-gutter) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--mlf-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mlf-slate);
  margin: 0 0 16px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer ul li {
  margin-bottom: 8px;
  font-family: var(--mlf-sans);
  font-size: 14px;
  color: var(--mlf-charcoal);
}
.footer ul li a {
  color: var(--mlf-charcoal);
  text-decoration: none;
}
.footer ul li a:hover,
.footer ul li a:focus-visible { color: var(--mlf-green); }
.footer-brand h4 {
  font-family: var(--mlf-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--mlf-charcoal);
}
.footer-brand p {
  font-family: var(--mlf-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mlf-slate);
  max-width: 38ch;
  margin: 0;
}
.footer-legal {
  max-width: var(--mlf-max);
  margin: 0 auto;
  padding: 24px var(--mlf-gutter) 56px;
  border-top: 1px solid var(--mlf-stone);
  display: flex;
  justify-content: space-between;
  font-family: var(--mlf-sans);
  font-size: 12px;
  color: var(--mlf-slate);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; gap: 8px; }
}
