﻿@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../../fonts/nunito/nunito-variable.ttf') format('truetype');
}

/* Legacy publication markup shares the same lockup for already-published homepages. */
/* One scale controls the entire lockup. Icon, wordmark and spacing must scale together. */
:root {
  --funify-brand-size: 26px;
}

:root :is(funify-brand, .funify-brand, .publication-brand:has(> .brand-name)) {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  width: max-content;
  height: auto;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  font-size: var(--funify-brand-size);
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

:root :is(.landing-brand, .site-header .brand, .publication-brand) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  height: auto;
  color: inherit;
  text-decoration: none;
}

:root :is(funify-brand, .funify-brand, .publication-brand:has(> .brand-name)) > .brand-icon {
  display: block;
  flex: 0 0 1.4em;
  width: 1.4em;
  height: 1.4em;
  margin: 0;
  padding: 0;
  object-fit: contain;
  transform: translateY(-0.05em);
}

:root :is(funify-brand, .funify-brand, .publication-brand:has(> .brand-name)) > .brand-name {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.028em;
}

:root :is(funify-brand, .funify-brand, .publication-brand:has(> .brand-name)) .brand-accent {
  color: #0057ff;
}

@media (max-width: 560px) {
  :root {
    --funify-brand-size: 24px;
  }
}

/* Keep the editor's compact header rows at their existing height. */
@media (max-width: 767px) {
  .funify-notes-page {
    --funify-brand-size: 24px;
  }
}

@media (max-width: 560px) {
  .funify-notes-page {
    --funify-brand-size: 22px;
  }
}
