/* SHAUGHV drop-ins. Unlayered site styles take precedence. */
@layer shaughv {
  :root {
    --shaughv-white: #FAF8F3;
    --shaughv-cursor-color: #ff5e1a;
  }

  shaughv-mark {
    display: inline-block;
    width: var(--shaughv-mark-size, 96px);
    height: var(--shaughv-mark-size, 96px);
    color: var(--shaughv-mark-color, inherit);
    --shaughv-mark-art-width: 100%;
  }
}

/* Standalone footer */
@layer shaughv {
  .shaughv-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2rem;
    padding: 2rem var(--shaughv-footer-inset, 2.5rem);
    background: var(--shaughv-footer-background, transparent);
    color: var(--shaughv-footer-color, inherit);
    font-family: "Geist Mono", ui-monospace, monospace;
  }

  .shaughv-footer .shaughv-footer__brand {
    display: grid;
    justify-items: start;
    gap: 1.25rem;
    min-width: 0;
  }

  .shaughv-footer .shaughv-footer__marks {
    display: flex;
    align-items: center;
    gap: var(--shaughv-footer-gap, 24px);
  }

  .shaughv-footer .shaughv-footer__wordmark, .shaughv-footer .shaughv-footer__crest {
    display: block;
    flex: none;
    background-color: currentColor;
    mask: var(--shaughv-footer-artwork) center / contain no-repeat;
  }

  .shaughv-footer .shaughv-footer__wordmark {
    --shaughv-footer-artwork: url("logos/footer-wordmark-3a434d1a6202.svg");
    width: calc(95px * var(--shaughv-footer-scale, 1));
    height: calc(64px * var(--shaughv-footer-scale, 1));
    transform: translateY(calc(7px * var(--shaughv-footer-scale, 1)));
  }

  .shaughv-footer .shaughv-footer__crest {
    --shaughv-footer-artwork: url("../crests/Shaughnessy-Crest-Footer.svg");
    width: calc(80px * var(--shaughv-footer-scale, 1));
    height: calc(100px * var(--shaughv-footer-scale, 1));
  }

  .shaughv-footer .shaughv-footer__brand small { font-size: 11px; line-height: 1.6; }
  .shaughv-footer[data-align="center"] { grid-template-columns: 1fr; }
  .shaughv-footer[data-align="center"] .shaughv-footer__brand {
    justify-items: center;
    text-align: center;
  }

  .shaughv-footer .shaughv-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }
  .shaughv-footer .shaughv-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
  }
  .shaughv-footer .shaughv-footer__nav a:hover { text-decoration: underline; }
  .shaughv-footer .shaughv-footer__nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

  @media (max-width: 580px) {
    .shaughv-footer {
      grid-template-columns: 1fr;
      padding-inline: var(--shaughv-footer-inset, 1.75rem);
    }
    .shaughv-footer .shaughv-footer__nav { flex-flow: row wrap; column-gap: 1.25rem; }
  }
}
