/*
 * Mack Burnett brand palette refresh.
 * This layer intentionally changes color only. The deployed site's structure,
 * copy, spacing, behavior, Newsreader headings, and Inter body type stay intact.
 */
:root {
  --background: 180 20% 98%;
  --foreground: 345 6% 13%;
  --card: 0 0% 100%;
  --card-foreground: 345 6% 13%;
  --popover: 0 0% 100%;
  --popover-foreground: 345 6% 13%;

  --primary: 227 62% 22%; /* #152359 */
  --primary-foreground: 0 0% 100%;
  --primary-container: 204 100% 28%; /* #005690 */
  --primary-container-foreground: 0 0% 100%;

  --secondary: 204 100% 28%;
  --secondary-foreground: 0 0% 100%;
  --muted: 174 35% 95%;
  --muted-foreground: 227 31% 33%;
  --accent: 175 97% 43%; /* #03D9C6 */
  --accent-foreground: 227 62% 22%;

  --destructive: 0 62% 32%; /* #842020 */
  --destructive-foreground: 0 0% 100%;
  --border: 179 21% 79%;
  --input: 179 21% 79%;
  --ring: 175 97% 43%;

  --surface: 180 20% 98%;
  --surface-container: 176 21% 93%;
  --surface-container-low: 174 35% 95%;
  --surface-container-high: 176 18% 90%;
  --surface-container-highest: 177 15% 87%;
  --surface-container-lowest: 0 0% 100%;
  --on-surface: 345 6% 13%;
  --on-surface-variant: 227 25% 30%;
  --outline: 204 24% 50%;
  --outline-variant: 179 21% 79%;

  --sidebar-background: 174 35% 95%;
  --sidebar-foreground: 227 31% 33%;
  --sidebar-primary: 227 62% 22%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 175 97% 43%;
  --sidebar-accent-foreground: 227 62% 22%;
  --sidebar-border: 179 21% 79%;
  --sidebar-ring: 175 97% 43%;

  --mack-deep-blue: #152359;
  --mack-blue: #005690;
  --mack-teal: #03d9c6;
  --mack-near-black: #231f20;
  --mack-coral: #ff8675;
  --mack-brick: #842020;
  --mack-gradient: linear-gradient(120deg, #005690 0%, #03d9c6 100%);
}

.dark {
  --background: 227 62% 14%;
  --foreground: 180 20% 98%;
  --card: 227 52% 19%;
  --card-foreground: 180 20% 98%;
  --popover: 227 52% 19%;
  --popover-foreground: 180 20% 98%;
  --primary: 175 97% 43%;
  --primary-foreground: 227 62% 15%;
  --secondary: 204 100% 28%;
  --secondary-foreground: 0 0% 100%;
  --muted: 227 37% 24%;
  --muted-foreground: 177 25% 74%;
  --accent: 175 97% 43%;
  --accent-foreground: 227 62% 15%;
  --border: 204 39% 33%;
  --input: 204 39% 33%;
  --ring: 175 97% 43%;
}

::selection {
  background: color-mix(in srgb, var(--mack-teal) 38%, white);
  color: var(--mack-deep-blue);
}

/* Reserve the signature gradient for primary conversion actions. */
a.bg-primary,
button.bg-primary {
  background-color: var(--mack-blue);
  background-image: var(--mack-gradient);
  color: #152359;
}

a.bg-primary:hover,
button.bg-primary:hover {
  background-image: linear-gradient(120deg, #005690 8%, #03d9c6 92%);
  filter: saturate(1.08) brightness(0.97);
}

/* Large dark sections stay authoritative and readable. */
section.bg-primary,
footer.bg-primary {
  background-color: var(--mack-deep-blue);
  background-image: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mack-teal);
  outline-offset: 3px;
}

/* Brand-guide monogram paired with the site's existing Newsreader wordmark. */
.mack-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
  text-decoration: none;
}

.mack-site-brand__mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(-45deg);
  transform-origin: center;
}

.mack-site-brand__name {
  color: var(--mack-deep-blue);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .mack-site-brand {
    gap: 0.58rem;
  }

  .mack-site-brand__mark {
    width: 2.6rem;
    height: 2.6rem;
    flex-basis: 2.6rem;
  }

  .mack-site-brand__name {
    font-size: 1.28rem;
  }
}
