/* ==========================================================================
   Brand colors and logo.

   The footer uses Joshua's approved final logo, exactly as provided
   (j6FPW_logo_final_v10.png). Web copies live in img/logo.webp and img/logo.png.
   Only outer whitespace was trimmed and the file was scaled; the art was not redrawn.

   The header uses a crop of the porch-house only (img/logo-icon.webp / .png)
   plus live type: "j6" in self-hosted Poppins ExtraBold, navy #162654, with
   "Front Porch Websites" in smaller type beside it. The icon is a crop of
   img/logo.png; the art was not redrawn.

   Palette (locked): brown #5A3A22, teal #14A3A8, amber #F5A623,
   cream #FFF6E8, charcoal #22262A.

   Favicons (favicon-32.png, favicon-180.png) are a square crop of the
   porch-house from the same PNG, scaled to 32 and 180 pixels.
   ========================================================================== */

:root {
  --brown: #5A3A22;
  --teal: #14A3A8;
  --amber: #F5A623;
  --cream: #FFF6E8;
  --charcoal: #22262A;
  --navy: #162654;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  flex: 0 1 auto;
  margin-right: auto;
  max-width: calc(100% - 6.75rem);
  text-decoration: none;
  color: var(--navy);
}
.brand picture,
.brand img {
  display: block;
  width: auto;
  height: 2.55rem;
  max-width: none;
  flex: none;
}
/* The cropped icon is navy on white; multiply drops the white field on cream. */
.brand:not(.brand--on-dark) img { mix-blend-mode: multiply; }

.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}
.brand-j6 {
  font-family: "Poppins", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 0.95;
}
.brand-name {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  white-space: nowrap;
  margin-top: 0.14rem;
}

@media (min-width: 30rem) {
  .brand:not(.brand--on-dark) picture,
  .brand:not(.brand--on-dark) img { height: 2.75rem; }
  .brand-j6 { font-size: 1.85rem; }
  .brand-name { font-size: 0.72rem; }
}
@media (min-width: 56rem) {
  .brand {
    max-width: none;
  }
  .brand:not(.brand--on-dark) picture,
  .brand:not(.brand--on-dark) img { height: 3rem; }
  .brand-j6 { font-size: 2rem; }
  .brand-name { font-size: 0.78rem; }
}

/* The logo is navy on white. In the dark footer, keep that white field
   as a small rounded plate so the art stays unchanged and readable.
   Footer logo height matches Joshua's earlier enlargement of the full mark. */
.brand--on-dark {
  background: #fff;
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  max-width: none;
  gap: 0;
}
.brand--on-dark picture,
.brand--on-dark img { height: 2.7rem; }
@media (min-width: 56rem) {
  .brand--on-dark picture,
  .brand--on-dark img { height: 3.15rem; }
}
