/* Shared navigation, logo interactions and responsive menu sizes. */
@media(max-width:1050px) {
  .nav {
    padding: 15px 30px;
    gap: 15px;
  }

  .logo {
    width: 275px;
  }

  .menu {
    gap: 18px;
    font-size: 14px;
  }
}

@media(max-width:740px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .logo {
    grid-column: 1/-1;
    justify-self: center;
  }
}

@media(max-width:740px) {
  .menu {
    white-space: nowrap;
  }
}

.menu a {
  border-radius: 8px;
  border: 2px solid #5c7943;
  background: #e2e9bf;
  box-shadow: 0 3px 0 #5c7943;
  color: #33462c;
  transition: transform .2s,background .2s;
}

.menu a:hover:where(html:not([data-touch-input]) *) {
  transform: translateY(-2px);
}

@media(max-width:1150px) and (min-width:741px) {
  .logo {
    width: 245px;
  }

  .menu {
    font-size: 16px;
    gap: 10px;
  }

  .menu a {
    padding: 13px 12px 10px;
  }

  .nav {
    gap: 14px;
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media(max-width:740px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }

  .menu a {
    border-radius: 6px;
    border-width: 1px;
  }
}

@media(max-width:370px) {
  .nav {
    gap: 10px 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.logo {
  flex-shrink: 0;
}

@media(min-width:741px) and (max-width:1150px) {
  .menu {
    gap: 7px;
  }
}

@media(max-width:740px) {
  .nav {
    gap: 10px;
    padding: 12px;
  }

  .menu {
    flex-basis: 100%;
  }
}

.header {
  border-bottom: 0;
  border-image: none;
  position: sticky;
}

.nav {
  max-width: 1280px;
  padding-left: 48px;
  padding-right: 48px;
}

@media(min-width:741px) and (max-width:1150px) {
  .nav {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media(max-width:740px) {
  .nav {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.logo {
  width: 325px;
}

.scrolled .logo {
  width: 190px;
}

.menu a[href$="#geschichten"] {
  background: #f2d7d6;
  border-color: #b53d3c;
  color: #89302f;
  box-shadow: 0 3px 0 #b53d3c;
}

.menu a[href$="#blick-ins-buch"] {
  background: #f3dccf;
  border-color: #ce5f33;
  color: #9e4525;
  box-shadow: 0 3px 0 #ce5f33;
}

.menu a:nth-child(3) {
  background: #e6d9ce;
  border-color: #895837;
  color: #754a2f;
  box-shadow: 0 3px 0 #895837;
}

.menu a:nth-child(4) {
  background: #f5e6bd;
  border-color: #e2a83f;
  color: #815e22;
  box-shadow: 0 3px 0 #e2a83f;
}

.menu a:hover:where(html:not([data-touch-input]) *) {
  background: #fff4dc;
  color: inherit;
  box-shadow: 0 0 0 transparent;
}

@media(min-width:741px) and (max-width:1150px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    gap: 12px;
  }

  .logo {
    width: 234px;
  }

  .scrolled .logo {
    width: 190px;
  }

  .menu {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
}

@media(max-width:740px) {
  .logo {
    width: min(331.5px,100%);
    margin: 0 auto;
  }

  .scrolled .logo {
    width: 150px;
    margin: 0 auto;
  }

  .menu {
    justify-content: center;
  }
}

.menu a[href$="#geschichten"]:hover:where(html:not([data-touch-input]) *) {
  background: #e8bebb;
}

.menu a[href$="#blick-ins-buch"]:hover:where(html:not([data-touch-input]) *) {
  background: #edc1a8;
}

.menu a:nth-child(3):hover:where(html:not([data-touch-input]) *) {
  background: #d4bca8;
}

.menu a:nth-child(4):hover:where(html:not([data-touch-input]) *) {
  background: #f0d58e;
}

.menu a[href$="#geschichten"]:hover:where(html:not([data-touch-input]) *) {
  box-shadow: 0 3px 0 #b53d3c;
}

.menu a[href$="#blick-ins-buch"]:hover:where(html:not([data-touch-input]) *) {
  box-shadow: 0 3px 0 #ce5f33;
}

.menu a:nth-child(3):hover:where(html:not([data-touch-input]) *) {
  box-shadow: 0 3px 0 #895837;
}

.menu a:nth-child(4):hover:where(html:not([data-touch-input]) *) {
  box-shadow: 0 3px 0 #e2a83f;
}

.menu a[href$="#geschichten"]:hover:where(html:not([data-touch-input]) *) {
  color: #89302f;
}

.menu a[href$="#blick-ins-buch"]:hover:where(html:not([data-touch-input]) *) {
  color: #9e4525;
}

.menu a:nth-child(3):hover:where(html:not([data-touch-input]) *) {
  color: #754a2f;
}

.menu a:nth-child(4):hover:where(html:not([data-touch-input]) *) {
  color: #815e22;
}

.nav .amazon-badge {
  background: #e2e9bf;
  border: 2px solid #5c7943;
  border-radius: 8px;
  box-shadow: 0 3px 0 #5c7943;
}

.nav .amazon-badge:hover:where(html:not([data-touch-input]) *) {
  background: #cddd9f;
  box-shadow: 0 3px 0 #5c7943;
}

.menu {
  font-size: 12px;
}

@media(min-width:741px) and (max-width:1150px) {
  .menu {
    font-size: 13px;
  }
}

@media(max-width:740px) {
  .menu {
    font-size: 9px;
    gap: 5px;
  }

  .menu a {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media(max-width:370px) {
  .menu {
    font-size: 8px;
  }
}

.menu a:nth-child(4), .menu a:nth-child(4):hover:where(html:not([data-touch-input]) *) {
  color: #9a760b;
}

.menu a {
  align-content: center;
  text-align: center;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.2;
  height: 60px;
  min-height: 60px;
  padding: 12px 13px 9px;
}

.nav {
  gap: 14px;
}

.menu {
  gap: 8px;
}

.nav .amazon-badge {
  height: 60px;
  min-height: 60px;
  padding: 5px 13px;
}

.nav .amazon-badge img {
  height: auto;
}

@media(min-width:1151px) and (max-width:1250px) {
  .menu a {
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav {
    gap: 12px;
  }
}

@media(min-width:741px) and (max-width:1150px) {
  .menu a {
    font-size: 16px;
    height: 54px;
    min-height: 54px;
    padding: 10px 14px 8px;
  }

  .nav .amazon-badge {
    height: 54px;
    min-height: 54px;
    padding: 5px 13px;
  }
}

@media(max-width:740px) {
  .menu a {
    font-size: 11px;
    height: 44px;
    min-height: 44px;
    padding: 10px 7px 8px;
  }

  .nav .amazon-badge {
    height: 44px;
    min-height: 44px;
    padding: 4px 13px;
  }
}

@media(max-width:370px) {
  .menu a {
    font-size: 10px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .menu {
    gap: 4px;
  }
}

.nav .amazon-badge img {
  width: 80px;
}

@media(min-width:741px) and (max-width:1150px) {
  .nav .amazon-badge img {
    width: 70px;
  }
}

@media(max-width:740px) {
  .nav .amazon-badge img {
    width: 54px;
  }
}

.header .sketch-menu {
  display: flex;
  font-size: 20px;
  flex-basis: auto;
  align-items: center;
}

.header .sketch-menu a:nth-child(n) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #895837;
  height: auto;
  min-height: 74px;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.2;
  transform: none;
}

.header .sketch-menu a:nth-child(n):hover:where(html:not([data-touch-input]) *) {
  color: #895837;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.header .sketch-menu a:nth-child(n):active:where(html:not([data-touch-input]) *) {
  transform: translate(1.5px,1.5px);
}

.nav-sketch {
  display: block;
  flex: 0 0 51.8px;
  width: 51.8px;
  height: 51.8px;
  background-image: url('assets/nav-sketches.webp');
  background-size: 300% 100%;
  background-repeat: no-repeat;
  transition: transform .3s ease;
}

.sketch-butterfly {
  background-position: 0% 50%;
}

.sketch-book {
  background-position: 50% 50%;
}

.sketch-pencil {
  background-position: 100% 50%;
}

.nav-word {
  position: relative;
  padding: 10px 0 12px;
}

.nav-word:after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 2px;
  height: 5px;
  background: #ce5f33;
  opacity: .45;
  clip-path: polygon(0 30%,8% 45%,13% 12%,27% 27%,40% 3%,55% 20%,73% 8%,88% 24%,100% 13%,98% 74%,86% 82%,70% 70%,55% 100%,35% 80%,20% 95%,3% 78%);
  transition: opacity .25s;
}

.sketch-menu a[href$="#blick-ins-buch"] .nav-word:after {
  background: #6c9e9e;
}

.sketch-menu a:nth-child(3) .nav-word:after {
  background: #cba111;
}

.sketch-menu a:hover:where(html:not([data-touch-input]) *) .nav-sketch, .sketch-menu a:focus-visible .nav-sketch {
  transform: scale(1.07) rotate(-3deg);
}

.sketch-menu a:hover:where(html:not([data-touch-input]) *) .nav-word:after, .sketch-menu a:focus-visible .nav-word:after {
  opacity: .85;
}

.header .nav {
  justify-content: space-between;
}

.scrolled .header .nav-sketch {
  width: 39.2px;
  height: 39.2px;
  flex-basis: 39.2px;
}

.scrolled .header .sketch-menu a:nth-child(n) {
  min-height: 56px;
}

@media(min-width:741px) and (max-width:1150px) {
  .header {
    height: 184px;
  }

  .scrolled .header {
    height: 144px;
  }

  .header .nav {
    justify-content: center;
    gap: 6px;
  }

  .header .logo {
    width: 234px;
    margin: 0 auto;
  }

  .scrolled .header .logo {
    width: 150px;
  }

  .header .sketch-menu {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 30px;
  }

  .header .sketch-menu a:nth-child(n) {
    font-size: 17px;
    min-height: 58px;
  }

  .header .nav-sketch {
    width: 40.6px;
    height: 40.6px;
    flex-basis: 40.6px;
  }
}

@media(max-width:740px) {
  .header {
    height: 172px;
  }

  .scrolled .header {
    height: 119px;
  }

  .scrolled .header .sketch-menu {
    margin-block-start: -5px;
  }

  .header .nav {
    padding: 12px 18px 0;
    gap: 8px;
    justify-content: center;
  }

  .header .logo {
    width: 255px;
    margin: 0 auto;
  }

  .scrolled .header .logo {
    width: 150px;
  }

  .header .sketch-menu {
    flex-basis: 100%;
    justify-content: center;
  }

  .header .sketch-menu a:nth-child(n) {
    gap: 3px;
    min-height: 48px;
    padding: 0;
  }

  .header .nav-sketch, .scrolled .header .nav-sketch {
    width: 26.6px;
    height: 26.6px;
    flex-basis: 26.6px;
  }

  .scrolled .header .sketch-menu a:nth-child(n) {
    min-height: 48px;
  }

  .nav-word {
    padding: 8px 0 11px;
  }

  .nav-word:after {
    height: 4px;
  }
}

@media(max-width:370px) {
  .header .sketch-menu {
    gap: 9px;
  }

  .header .sketch-menu a:nth-child(n) {
    font-size: 11px;
  }

  .header .nav-sketch, .scrolled .header .nav-sketch {
    width: 22.4px;
    height: 22.4px;
    flex-basis: 22.4px;
  }
}

@media(min-width:1151px) {
  .header .nav-sketch {
    width: 59.5px;
    height: 59.5px;
    flex-basis: 59.5px;
  }

  .scrolled .header .nav-sketch {
    width: 44.8px;
    height: 44.8px;
    flex-basis: 44.8px;
  }
}

.header .sketch-menu a[href$="#geschichten"] .nav-word:after {
  background: #895837;
}

.header .sketch-menu a[href$="#blick-ins-buch"] .nav-word:after {
  background: #895837;
}

.header .sketch-menu a:nth-child(3) .nav-word:after {
  background: #895837;
}

.header .sketch-menu .nav-word {
  transition: color .25s ease;
}

.header .sketch-menu a[href$="#geschichten"]:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word {
  color: #ce5f33;
}

.header .sketch-menu a[href$="#blick-ins-buch"]:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word {
  color: #e2a83f;
}

.header .sketch-menu a:nth-child(3):is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word {
  color: #8e9d5f;
}

.logo-letters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo-letter, .logo-heart {
  position: absolute;
  inset: 0;
  background: url('assets/charly-final-4.webp') 0 0/100% 100% no-repeat;
  transform-origin: var(--origin) 70%;
}

.letter-0 {
  clip-path: inset(0 82% 27% 0);
  --origin: 9%;
  --delay: 0ms;
}

.letter-1 {
  clip-path: inset(0 66% 27% 18%);
  --origin: 26%;
  --delay: 75ms;
}

.letter-2 {
  clip-path: inset(0 49% 27% 34%);
  --origin: 42.5%;
  --delay: 150ms;
}

.letter-3 {
  clip-path: inset(0 31% 27% 51%);
  --origin: 60%;
  --delay: 225ms;
}

.letter-4 {
  clip-path: inset(0 18% 27% 69%);
  --origin: 75.5%;
  --delay: 300ms;
}

.letter-5 {
  clip-path: inset(0 0 27% 82%);
  --origin: 91%;
  --delay: 375ms;
}

.logo-heart {
  clip-path: polygon(39% 25%,46% 25%,46% 37%,42.5% 46%,39% 37%);
  transform-origin: 42.5% 34%;
}

.wave-logo:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .logo-letter {
  animation: charly-letter-wave 780ms cubic-bezier(.22,.7,.3,1) var(--delay) both;
}

.wave-logo:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .logo-heart {
  animation: charly-heart-pulse 1300ms ease 700ms forwards;
}

.header .sketch-menu {
  gap: 24px;
}

.header .sketch-menu .sketch-author {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #895837;
}

.header .sketch-menu a:nth-child(4) .nav-word:after {
  background: #895837;
}

.header .sketch-menu a:nth-child(4):is(:hover:where(html:not([data-touch-input]) *),:focus-visible,[aria-current="page"]) .nav-word {
  color: #4c8c8b;
}

@media(min-width:1051px) {
  .header .sketch-menu a:nth-child(n) {
    font-size: 20px;
  }
}

@media(max-width:740px) {
  .header .sketch-menu {
    gap: 12px;
  }

  .header .sketch-menu a:nth-child(n) {
    font-size: 11px;
  }
}

@media(max-width:380px) {
  .header .sketch-menu {
    gap: 8px;
  }

  .header .sketch-menu a:nth-child(n) {
    font-size: 10px;
  }
}

.header .sketch-menu .nav-word:after {
  transition: background-color .25s ease;
}

.header .sketch-menu a[href$="#geschichten"]:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word:after {
  background: #ce5f33;
}

.header .sketch-menu a[href$="#blick-ins-buch"]:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word:after {
  background: #e2a83f;
}

.header .sketch-menu a:nth-child(3):is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word:after {
  background: #8e9d5f;
}

.header .sketch-menu a:nth-child(4):is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-word:after {
  background: #4c8c8b;
}

.header .sketch-menu .sketch-parcel {
  background: url('assets/nav-parcel.webp') center/contain no-repeat;
  mix-blend-mode: multiply;
}

@media(min-width:1051px) {
  .scrolled .header .nav-sketch {
    width: 51.8px;
    height: 51.8px;
    flex-basis: 51.8px;
  }

  .scrolled .header .sketch-menu {
    gap: 36px;
  }

  .scrolled .header .sketch-menu a:nth-child(n) {
    min-height: 74px;
    gap: 12px;
  }
}

@media(min-width:741px) and (max-width:1050px) {
  .scrolled .header .nav-sketch {
    width: 43.4px;
    height: 43.4px;
    flex-basis: 43.4px;
  }

  .scrolled .header .sketch-menu {
    gap: 34px;
  }
}

@media(max-width:740px) and (min-width:381px) {
  .scrolled .header .nav-sketch {
    width: 29.4px;
    height: 29.4px;
    flex-basis: 29.4px;
  }

  .scrolled .header .sketch-menu {
    gap: 15px;
  }
}

.header .sketch-menu .sketch-parcel {
  position: relative;
  top: -5px;
}

.header {
  transition: height 550ms cubic-bezier(.22,.61,.36,1),clip-path 550ms cubic-bezier(.22,.61,.36,1)!important;
}

.header:after {
  transition: height 550ms cubic-bezier(.22,.61,.36,1),bottom 550ms cubic-bezier(.22,.61,.36,1)!important;
}

@media(prefers-reduced-motion:reduce) {
  .header, .header:after {
    transition: none!important;
  }
}

.header .logo {
  transition: width 550ms cubic-bezier(.22,.61,.36,1),margin 550ms cubic-bezier(.22,.61,.36,1)!important;
}

.header .nav {
  transition: padding 550ms cubic-bezier(.22,.61,.36,1),gap 550ms cubic-bezier(.22,.61,.36,1)!important;
}

.header .sketch-menu {
  transition: gap 550ms cubic-bezier(.22,.61,.36,1),margin-block-start 550ms cubic-bezier(.22,.61,.36,1)!important;
}

.header .nav-sketch {
  transition: width 550ms cubic-bezier(.22,.61,.36,1),height 550ms cubic-bezier(.22,.61,.36,1),flex-basis 550ms cubic-bezier(.22,.61,.36,1),transform 300ms ease!important;
}

.header .sketch-menu a:nth-child(n) {
  transition: min-height 550ms cubic-bezier(.22,.61,.36,1),gap 550ms cubic-bezier(.22,.61,.36,1),font-size 550ms cubic-bezier(.22,.61,.36,1),padding 550ms cubic-bezier(.22,.61,.36,1),transform 200ms ease!important;
}

.header {
  background: #fcf8ef;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  contain: layout style;
}

.header .logo {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header .nav-sketch {
  backface-visibility: hidden;
}

.header:before {
  content: none;
}

.header:after {
  height: 6px;
}

.scrolled .header:after {
  height: 4px;
}

.header .sketch-menu .nav-word:after {
  content: none;
  display: none;
}

@media(max-width:740px) {
  .header .sketch-menu, .scrolled .header .sketch-menu {
    display: flex;
    flex-wrap: nowrap;
    flex-basis: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .header .sketch-menu a:nth-child(n), .scrolled .header .sketch-menu a:nth-child(n) {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .header .sketch-menu .nav-word {
    display: block;
    padding: 0;
    line-height: 1;
  }

  .header .sketch-menu .sketch-parcel {
    top: -2px;
  }
}

@media(min-width:1151px) {
  .header .nav {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-content: center;
    align-items: end;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .header .logo {
    width: 325px;
    margin: 0;
  }

  .header .sketch-menu {
    justify-self: end;
    align-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
  }

  .header .sketch-menu a:nth-child(n) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 60px;
    height: auto;
    padding: 0;
    font-size: 20px;
  }

  .header .sketch-menu .nav-word {
    padding: 0;
    line-height: 1.2;
  }

  .scrolled .header .logo {
    width: 190px;
  }

  .scrolled .header .nav {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .scrolled .header .sketch-menu {
    gap: 24px;
  }

  .scrolled .header .sketch-menu a:nth-child(n) {
    min-height: 52px;
    gap: 9px;
  }
}

.header:after {
  bottom: calc(4mm - 1px);
}

.header {
  clip-path: inset(0 0 4mm 0);
}

.header .sketch-menu a:nth-child(3) .nav-word {
  transform: translateX(1mm);
}

.scrolled .header:after {
  bottom: calc(2mm - 1px);
}

.scrolled .header {
  clip-path: inset(0 0 2mm 0);
}

@media(max-width:740px) {
  .header {
    --mobile-menu-gutter: 12px;
  }

  .header .nav {
    padding-inline: var(--mobile-menu-gutter);
  }

  .header:after {
    width: calc(100% - 2 * var(--mobile-menu-gutter));
  }

  .header .sketch-menu, .scrolled .header .sketch-menu {
    gap: 4px;
  }

  .header .sketch-menu a:nth-child(n), .scrolled .header .sketch-menu a:nth-child(n) {
    font-size: clamp(12px,3.1vw,13px);
    letter-spacing: 0;
    gap: 3px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    flex: 0 0 clamp(16px,5vw,24px);
  }
}

.header .sketch-menu .nav-sketch {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  transform: none;
  backface-visibility: visible;
}

.scrolled .header .sketch-menu .nav-sketch {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.header .sketch-menu a:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .nav-sketch {
  transform: scale(1.07) rotate(-3deg);
}

@media(min-width:741px) and (max-width:1150px) {
  .header .sketch-menu .nav-sketch {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }
}

@media(max-width:740px) {
  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media(max-width:479px) {
  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

@media(max-width:439px) {
  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media(max-width:399px) {
  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

@media(max-width:359px) {
  .header .sketch-menu .nav-sketch, .scrolled .header .sketch-menu .nav-sketch {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

/* Mobile: restore the original divider and lift the expanded header as a unit.
   Preserve its internal geometry so logo, menu and following content move 10px. */
@media(max-width:740px) {
  .header { height: 162px; }
  .header .nav {
    height: calc(100% + 10px);
    transform: translateY(-10px);
    transition: padding 550ms cubic-bezier(.22,.61,.36,1),gap 550ms cubic-bezier(.22,.61,.36,1),height 550ms cubic-bezier(.22,.61,.36,1),transform 550ms cubic-bezier(.22,.61,.36,1)!important;
  }
  .scrolled .header { height: 119px; }
  .scrolled .header .nav {
    height: 100%;
    transform: none;
  }
}
