/* KL Home Remodeling brand, taken from the business card.

   The two blues (set as variables by the recoloured template stylesheet):
     --navy   #131C3F  the K, the window and the bands of the card
     --accent #3354B8  the L, the roof and "Remodeling": buttons and other filled things
   --accent-ink is the blue used for small text and lines. On navy that is #86A0F2, the royal blue
   lightened, because the royal blue itself is too dark there to read (2.5:1). On the light sections
   it is the royal blue itself (6.8:1 on white).

   The logo is the card's KL mark, traced from the photo of the card, in the card's own colours:
   navy K, royal blue L. Those need a light ground, so wherever the logo sits on a dark area
   (over the hero photo, in the navy footer) it stands on a white plate, the way it does on the card. */

:root {
  --logo-k: var(--navy);
  --logo-l: var(--accent);
}

/* ---------- The mark ---------- */

.kl-mark { display: block; flex-shrink: 0; width: auto; height: 30px; overflow: visible; }
.kl-mark .kl-k, .kl-mark .kl-win { fill: var(--logo-k); }
.kl-mark .kl-l, .kl-mark .kl-roof { fill: var(--logo-l); }

/* The template sizes its own square icon; the KL mark is wide, so only its height is set. */
.brand > svg.kl-mark,
.footer-brand .brand > svg.kl-mark { width: auto; height: 30px; }

/* ---------- The lockup: mark, then Home and Remodeling in the two colours, set tight like the card ---------- */

/* The plate is as tall as the button at the other end of the header (49 px) and has its corners. */
.brand { gap: 11px; padding: 9.5px 16px 9.5px 13px; border-radius: 2px; background: #fff; }
.brand > span { letter-spacing: -.9px; word-spacing: 0; }
.brand-letters > .brand-text { font-weight: 800 !important; }
.footer-brand .brand-letters > span { font-weight: 800 !important; }
.footer-brand .brand > span { font-size: 24px; }
.brand-home { color: var(--logo-k); }
.brand-rem { color: var(--logo-l); }
.brand:focus-visible { outline-offset: 3px; }

@media (max-width: 640px) {
  /* On a phone the plate matches the menu button beside it (44 px). */
  .brand { gap: 9px; padding: 9.5px 13px 9.5px 11px; }
  .brand > svg.kl-mark,
  .footer-brand .brand > svg.kl-mark { height: 25px; }
  .footer-brand .brand > span { font-size: 20px; }
}

/* ---------- Light sections ----------
   Experience and Meet the owner stand on white, What we build on light gray, so the page is not one
   dark run. The template takes its colours from variables; a light section only restates them. */

.on-light {
  --bg: #fff;
  --surface: #F3F5FA;
  --text: var(--navy);
  --muted: #5B6485;               /* 5.9:1 on white, 5.2:1 on the gray */
  --line: #131C3F26;
  --accent-ink: var(--accent);
  background: var(--bg);
  color: var(--text);
}
.on-light.on-gray { --bg: #EEF1F7; --surface: #fff; }

/* Copy the template set in fixed light tints. */
.on-light .projects-heading p,
.on-light .studio-intro p,
.on-light .owner-bio p { color: #3A4468; }

/* Whatever lies on a photograph keeps its light ink. */
.on-light .collage-card,
.on-light .project-image-wrap,
.on-light .material-frontplate {
  --text: #F4F6FC;
  --muted: #C4CBE3;
  --accent-ink: #86A0F2;
  color: #F4F6FC;
}

/* The portrait: a softer shadow on white, and the plate behind it a little stronger so it does not wash out. */
.on-light .material-frontplate { box-shadow: 0 24px 60px #131C3F33; }

/* ---------- Royal blue where the template had its accent filled in ---------- */

.button.accent:hover { background: var(--accent-hover); }
.button.accent:focus-visible, .button:focus-visible { outline-color: #fff; }

/* The photo wall is the royal blue section of the page (the template's was its green one).
   Blue on blue would not stand out, so the button there is white and turns navy under the pointer. */
.mosaic-content > .button.accent { background: #fff; color: var(--navy); }
.mosaic-content > .button.accent:hover { background: var(--navy); color: #fff; }
