/* Give the signature and its little hello more room to breathe. */
:root { --header-height: 118px; --header-logo-width: 252px; --header-inset: 4vw; }
html { scroll-padding-top: calc(var(--header-height) + 12px); }
.site-header,
.has-character-greeting.site-header { height: var(--header-height); padding: 0 var(--header-inset); }
.site-header .wordmark,
.has-character-greeting.site-header .wordmark { width: var(--header-logo-width); flex: 0 0 var(--header-logo-width); }
.has-character-greeting .hero-greeting {
  left: calc(var(--header-inset) + var(--header-logo-width) + 10px);
  width: 188px; height: 130px; bottom: -8px;
}
.has-character-greeting .hero-greeting > span { top: 20px; font-size: 35px; }
.article-page .article-outline { top: calc(var(--header-height) + 28px); max-height: calc(100svh - var(--header-height) - 56px); }
.article-page .article-prose [data-article-body] > section,
.article-page .article-prose .article-references p { scroll-margin-top: 16px; }

@media (min-width: 1101px) and (max-width: 1350px) {
  .site-header #primary-nav { gap: 17px; font-size: 13px; }
  .site-header #primary-nav > a { font-size: 13px; }
  .site-header .nav-contact { padding: 12px 13px; gap: 13px; }
}
@media (max-width: 1250px) {
  :root { --header-logo-width: 222px; }
  .has-character-greeting .hero-greeting { width: 158px; height: 112px; }
  .has-character-greeting .hero-greeting > span { top: 18px; font-size: 30px; }
}
@media (max-width: 1100px) {
  :root { --header-height: 100px; --header-inset: 5vw; }
  .site-header .menu-toggle { display: flex; align-items: center; gap: 20px; border: 1px solid #a3a79d; padding: 11px 14px; background: none; font-size: 12px; min-height: 44px; }
  .site-header .menu-toggle span { font-size: 20px; line-height: 1; }
  .site-header .menu-toggle[aria-expanded=true] span { transform: rotate(45deg); }
  .site-header #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 5vw 25px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px #0002; max-height: calc(100svh - var(--header-height)); overflow-y: auto; }
  .site-header #primary-nav.open { display: flex; }
  .site-header #primary-nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-header #primary-nav .nav-contact { margin: 18px 0 0; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--ink); }
}
@media (max-width: 800px) {
  .article-page .article-outline { max-height: none; }
}
@media (max-width: 600px) {
  :root { --header-height: 96px; --header-logo-width: 190px; }
  .has-character-greeting.site-header { --header-logo-width: 160px; }
  .has-character-greeting .hero-greeting { left: calc(var(--header-inset) + var(--header-logo-width)); width: 124px; height: 90px; bottom: -7px; }
  .has-character-greeting .hero-greeting > span { top: 14px; font-size: 27px; }
  .site-header .menu-toggle { gap: 4px; padding: 10px 7px; }
}
@media (max-width: 400px) {
  .has-character-greeting.site-header { --header-logo-width: 150px; }
  .has-character-greeting .hero-greeting { width: 120px; height: 87px; }
  .has-character-greeting .menu-toggle { width: 44px; height: 44px; padding: 4px 0; gap: 2px; flex-direction: column; justify-content: center; font-size: 10px; }
  .has-character-greeting .menu-toggle span { font-size: 18px; }
}
@media (max-width: 360px) {
  .has-character-greeting.site-header { --header-logo-width: 132px; }
  .has-character-greeting .hero-greeting { left: calc(var(--header-inset) + var(--header-logo-width) + 4px); width: 92px; height: 69px; }
  .has-character-greeting .hero-greeting > span { top: 10px; font-size: 22px; }
}
