/* Shared heygrexbot.com header. Fixed height, no scroll restyle. */
html { scroll-padding-top: 88px; }

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  background: #262920;
  color: #f4f1e8;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 88px;
  box-sizing: border-box;
  background: #f4f1e8;
  border-bottom: 1px solid #d8d4c6;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #262920;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
}

.site-header .wrap {
  width: min(1120px, calc(100% - 80px));
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline: auto;
}

.site-header .logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  min-width: max-content;
  margin: 0;
  min-height: 44px;
  color: #262920;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .logo:hover { text-decoration: none; }
.site-header .logo-word { display: inline-flex; align-items: baseline; gap: 0; }
.site-header .logo-grex { font-weight: 700; }
.site-header .logo-bot { font-weight: 400; }

.site-header .logo-face {
  display: block;
  width: 44px;
  height: 35px;
  flex: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  position: static;
}

.site-header .logo-face svg { display: block; width: 44px; height: 35px; }
.site-header .logo-face::before,
.site-header .logo-face::after { content: none; }

.site-header nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.site-header .header-cta {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin: 0 0 0 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #c34425;
  border-radius: 9999px;
  background: transparent;
  color: #c34425;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-cta:hover {
  background: #c34425;
  color: #fff;
  text-decoration: none;
}

.site-header .menu-toggle {
  order: 4;
  display: none;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #262920;
  border-radius: 9999px;
  background: #f4f1e8;
  color: #262920;
  font-weight: 400;
  appearance: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header .menu-toggle svg { width: 22px; height: 22px; display: block; }
.site-header .menu-toggle .menu-close { display: none; }
.site-header .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.site-header .menu-toggle[aria-expanded="true"] .menu-close { display: block; }

footer .logo { gap: 11px; }
footer .logo-word { display: inline-flex; align-items: baseline; gap: 0; }
footer .logo-grex { font-weight: 700; }
footer .logo-bot { font-weight: 400; }
footer .logo-face {
  display: block;
  width: 35px;
  height: 28px;
  flex: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
footer .logo-face svg { display: block; width: 35px; height: 28px; }
footer .logo-face::before,
footer .logo-face::after { content: none; }

/* Shown only when scripting is off. Desktop still has the in-bar nav. */
.header-noscript { display: none; }

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }

  .site-header { height: 72px; }
  .site-header .wrap { width: calc(100% - 32px); gap: 8px; flex-wrap: nowrap; padding-block: 0; }
  .site-header .logo { gap: 9px; font-size: 28px; }
  .site-header .logo-face,
  .site-header .logo-face svg { width: 36px; height: 29px; }
  .site-header .header-cta { margin-left: auto; padding: 8px 12px; font-size: 14px; }
  .site-header:not(.navigation-ready) .header-cta { margin-right: 52px; }
  .site-header.navigation-ready .menu-toggle { display: inline-flex; }

  .header-noscript {
    display: block;
    background: #f4f1e8;
    border-bottom: 1px solid #d8d4c6;
    color: #262920;
    font-family: "DM Sans", "Helvetica Neue", sans-serif;
  }
  .header-noscript nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    position: static;
  }
  .header-noscript nav a,
  .site-header nav a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    color: inherit;
    font-family: "DM Sans", "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    order: 2;
    margin: 0;
    padding: 0 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f4f1e8;
    border: 0;
    border-bottom: 1px solid #d8d4c6;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header.navigation-ready .menu-toggle[aria-expanded="true"] + nav { display: flex; }

  .menu-scrim[hidden] { display: none !important; }
  .menu-scrim:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 19;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgb(38 41 32 / 40%);
  }
}

@media (max-width: 380px) {
  .site-header .wrap { width: calc(100% - 24px); }
  .site-header .header-cta { padding: 8px 10px; }
  .header-noscript nav a,
  .site-header nav a { padding-left: 12px; padding-right: 12px; }
}
